Overview
Max Total Supply
10,036 TULIP
Holders
798
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
7 TULIPLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
EtherTulipsV2
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./ERC721.sol"; import "./ERC721Enumerable.sol"; contract EtherTulipsV2 is ERC721, ERC721Enumerable, Ownable { using Strings for uint256; event SalesStart(); address public bridgeAddress; uint256 public constant price1 = 75000000000000000 wei; // 0.075 ETH uint256 public constant price2 = 150000000000000000 wei; // 0.15 ETH uint256 public constant maxHiddenAttrBlocks = 19350; // around 72 hours uint256 public constant v1Supply = 7251; uint256 public constant v2MaxSupply = 5094; uint256 public constant maxPurchaseAmount = 30; uint16 public constant numReserved = 24; uint256 public mostRecentSaleBlock = 0; uint256 public startSalesBlock = 0; uint256 private v2Supply = 0; uint256 private numUnimportedTokens = v1Supply; bool[v1Supply] private tokenImported; constructor(address _bridgeAddress) ERC721("EtherTulips", "TULIP") { bridgeAddress = _bridgeAddress; // tulips reserved for the winners of giveaways and contests _mintTokens(numReserved); } function mint(uint16 _numTokens) public payable { require(totalSupply() + _numTokens <= maxSupply(), "Insufficient supply"); require(salesOpen(), "The sales period is not open"); require(_numTokens <= maxPurchaseAmount, "Too many purchases at once"); uint256 totalCost = price() * _numTokens; require(msg.value == totalCost, "Incorrect amount sent"); _mintTokens(_numTokens); } function maxSupply() public pure returns (uint256 max) { max = v1Supply + v2MaxSupply; } function price() public view returns (uint256) { if (attributesAvailable()) { return price2; } else { return price1; } } function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { require(_exists(_tokenId), "ERC721Metadata: URI query for nonexistent token"); if (_isV1(_tokenId)) { return string(abi.encodePacked(_baseURI(), "v1/", uint256(_tokenId).toString(), ".json")); } else if (attributesAvailable()) { uint256 design = _getDesign(_tokenId); return string(abi.encodePacked(_baseURI(), "v2/", uint256(design).toString(), ".json")); } else { return string(abi.encodePacked(_baseURI(), "v2/seed.json")); } } function contractURI() public pure returns (string memory) { return string(abi.encodePacked(_baseURI(), "contract-meta.json")); } /* Overridden ERC721 for unimported tokens */ function balanceOf(address _owner) public view override returns (uint256 balance) { balance = super.balanceOf(_owner); if (_owner == bridgeAddress) { balance += numUnimportedTokens; } } function ownerOf(uint256 _tokenId) public view override returns (address owner) { if (_isUnimportedV1(_tokenId)) { owner = bridgeAddress; } else { owner = super.ownerOf(_tokenId); } } function safeTransferFrom( address _from, address _to, uint256 _tokenId, bytes memory _data ) public virtual override { if (_isUnimportedV1(_tokenId)) { require(_isApprovedOrOwner(_msgSender(), _tokenId), "ERC721: transfer caller is not owner nor approved"); ERC721._importTransfer(_from, _to, _tokenId); require(_checkOnERC721Received(_from, _to, _tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } else { ERC721._safeTransfer(_from, _to, _tokenId, _data); } } // called in safeTransferFrom and transferFrom function _beforeTokenTransfer( address _from, address _to, uint256 _tokenId ) internal override(ERC721, ERC721Enumerable) { require(_to != address(0), "Cannot send to null address"); // prevents burning if (_from == bridgeAddress && _isUnimportedV1(_tokenId)) { tokenImported[_tokenId] = true; numUnimportedTokens--; } else if (_from != _to && _from != address(0)) { _removeTokenFromOwnerEnumeration(_from, _tokenId); } if (_to == bridgeAddress) { require(_isV1(_tokenId), "tokens minted with EtherTulips V2 cannot be bridged to EtherTulips V1"); } if (_to != _from) { _addTokenToOwnerEnumeration(_to, _tokenId); } } function _exists(uint256 _tokenId) internal view override returns (bool) { return _tokenId < totalSupply(); } /* Overridden ERC721Enumerable for unimported tokens */ function totalSupply() public view override returns (uint256 supply) { supply = v1Supply + v2Supply; } function tokenByIndex(uint256 _index) public view override returns (uint256 tokenId) { require(_index < this.totalSupply(), "index out of bounds"); tokenId = _index; } function tokenOfOwnerByIndex(address _owner, uint256 _index) public view override returns (uint256 tokenId) { if (_owner == bridgeAddress && _index >= super.balanceOf(_owner)) { require(_index < balanceOf(_owner), "owner index out of bounds for bridge"); uint256 steps = _index - super.balanceOf(_owner) + 1; for (tokenId = 0; tokenId < v1Supply; tokenId++) { if (!tokenImported[tokenId]) { steps--; } if (steps == 0) { return tokenId; } } require(false, "Unreachable code"); } else { tokenId = super.tokenOfOwnerByIndex(_owner, _index); } } /* State checking */ function salesStarted() public view returns (bool isStarted) { isStarted = startSalesBlock != 0; } function salesOpen() public view returns (bool isOpen) { isOpen = salesStarted() && totalSupply() < maxSupply(); } function attributesAvailable() public view returns (bool isAvailable) { uint256 elapsedBlocks = block.number - startSalesBlock; isAvailable = salesStarted() && (totalSupply() == maxSupply() || elapsedBlocks >= maxHiddenAttrBlocks); } /* Owner ownly */ function startSales() external onlyOwner { require(!salesStarted(), "Sales already started"); startSalesBlock = block.number; emit SalesStart(); } function withdrawBalance(uint256 _amount) external onlyOwner { require(_amount <= address(this).balance); payable(msg.sender).transfer(_amount); } /* Internal */ function _isV1(uint256 _tokenId) internal pure returns (bool) { return _tokenId < v1Supply; } function _isUnimportedV1(uint256 _tokenId) internal view returns (bool) { return _isV1(_tokenId) && !tokenImported[_tokenId]; } function _numImported() internal view returns (uint256) { return v1Supply - numUnimportedTokens; } function _getDesign(uint256 _tokenId) internal view returns (uint256 design) { require(attributesAvailable(), "Attributes are not yet available"); require(!_isV1(_tokenId), "_getDesign is only valid for v2 tokens"); design = (_tokenId + mostRecentSaleBlock) % v2MaxSupply; } function _baseURI() internal pure override returns (string memory) { return "https://tokens.ethertulips.com/meta/"; } function _mintTokens(uint16 _numTokens) internal { for (uint i = 0; i < _numTokens; i++) { _safeMint(msg.sender); } if (!attributesAvailable()) { mostRecentSaleBlock = block.number; } } function _safeMint(address to) internal { _safeMint(to, v1Supply + v2Supply); v2Supply++; } /* Provided by Open Zeppelin */ function supportsInterface( bytes4 interfaceId ) public view override(ERC721, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // Identical to openzeppelin ERC721Enumerable.sol, but allows for function overrides and has _importTransfer pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /* To only be used when importing a v1 token via the bridge */ function _importTransfer( address from, address to, uint256 tokenId ) internal virtual { require(ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) internal returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // Identical to openzeppelin ERC721Enumerable.sol, but with visibility changed from private to internal for some functions pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "./ERC721.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) internal { 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) internal { _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) internal { // 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) internal { // 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 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 pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../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 tokenId); /** * @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); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_bridgeAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[],"name":"SalesStart","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"attributesAvailable","outputs":[{"internalType":"bool","name":"isAvailable","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bridgeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxHiddenAttrBlocks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPurchaseAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"max","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint16","name":"_numTokens","type":"uint16"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mostRecentSaleBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numReserved","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"salesOpen","outputs":[{"internalType":"bool","name":"isOpen","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"salesStarted","outputs":[{"internalType":"bool","name":"isStarted","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startSales","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startSalesBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","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":"supply","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"v1Supply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"v2MaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawBalance","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526000600c556000600d556000600e55611c53600f553480156200002657600080fd5b506040516200332a3803806200332a833981016040819052620000499162000a2c565b604080518082018252600b81526a457468657254756c69707360a81b602080830191825283518085019094526005845264054554c49560dc1b908401528151919291620000999160009162000986565b508051620000af90600190602084019062000986565b505050620000cc620000c6620000fa60201b60201c565b620000fe565b600b80546001600160a01b0319166001600160a01b038316179055620000f3601862000150565b5062000bbf565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005b8161ffff1681101562000180576200016b3362000198565b80620001778162000b8b565b91505062000153565b506200018b620001cf565b620001955743600c555b50565b620001b581600e54611c53620001af919062000aff565b62000221565b600e8054906000620001c78362000b8b565b919050555050565b600080600d5443620001e2919062000b1a565b9050620001f0600d54151590565b80156200021b57506200020262000247565b6200020c6200025e565b14806200021b5750614b968110155b91505090565b620002438282604051806020016040528060008152506200027260201b60201c565b5050565b6000620002596113e6611c5362000aff565b905090565b6000600e54611c5362000259919062000aff565b6200027e8383620002ee565b6200028d600084848462000437565b620002e95760405162461bcd60e51b815260206004820152603260248201526000805160206200330a83398151915260448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084015b60405180910390fd5b505050565b6001600160a01b038216620003465760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401620002e0565b6200035181620005a0565b15620003a05760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401620002e0565b620003ae60008383620005b4565b6001600160a01b0382166000908152600360205260408120805460019290620003d990849062000aff565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600062000458846001600160a01b0316620007a260201b620012711760201c565b156200059457604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906200049290339089908890889060040162000a86565b602060405180830381600087803b158015620004ad57600080fd5b505af1925050508015620004e0575060408051601f3d908101601f19168201909252620004dd9181019062000a5c565b60015b62000579573d80801562000511576040519150601f19603f3d011682016040523d82523d6000602084013e62000516565b606091505b508051620005715760405162461bcd60e51b815260206004820152603260248201526000805160206200330a83398151915260448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401620002e0565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905062000598565b5060015b949350505050565b6000620005ac6200025e565b909110919050565b6001600160a01b0382166200060c5760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f742073656e6420746f206e756c6c206164647265737300000000006044820152606401620002e0565b600b546001600160a01b0384811691161480156200063057506200063081620007a8565b156200069a576001601082611c5381106200065b57634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908315150217905550600f60008154809291906200068f9062000b34565b9190505550620006d7565b816001600160a01b0316836001600160a01b031614158015620006c557506001600160a01b03831615155b15620006d757620006d78382620007ff565b600b546001600160a01b03838116911614156200077c57620006fa81611c531190565b6200077c5760405162461bcd60e51b815260206004820152604560248201527f746f6b656e73206d696e746564207769746820457468657254756c697073205660448201527f322063616e6e6f74206265206272696467656420746f20457468657254756c69606482015264707320563160d81b608482015260a401620002e0565b826001600160a01b0316826001600160a01b031614620002e957620002e98282620008ac565b3b151590565b6000620007b682611c531190565b8015620007f95750601082611c538110620007e157634e487b7160e01b600052603260045260246000fd5b602081049091015460ff601f9092166101000a900416155b92915050565b600060016200081984620008fd60201b620012771760201c565b62000825919062000b1a565b60008381526007602052604090205490915080821462000879576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6000620008c483620008fd60201b620012771760201c565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60006001600160a01b0382166200096a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401620002e0565b506001600160a01b031660009081526003602052604090205490565b828054620009949062000b4e565b90600052602060002090601f016020900481019282620009b8576000855562000a03565b82601f10620009d357805160ff191683800117855562000a03565b8280016001018555821562000a03579182015b8281111562000a03578251825591602001919060010190620009e6565b5062000a1192915062000a15565b5090565b5b8082111562000a11576000815560010162000a16565b60006020828403121562000a3e578081fd5b81516001600160a01b038116811462000a55578182fd5b9392505050565b60006020828403121562000a6e578081fd5b81516001600160e01b03198116811462000a55578182fd5b600060018060a01b0380871683526020818716818501528560408501526080606085015284519150816080850152825b8281101562000ad45785810182015185820160a00152810162000ab6565b8281111562000ae6578360a084870101525b5050601f01601f19169190910160a00195945050505050565b6000821982111562000b155762000b1562000ba9565b500190565b60008282101562000b2f5762000b2f62000ba9565b500390565b60008162000b465762000b4662000ba9565b506000190190565b600181811c9082168062000b6357607f821691505b6020821081141562000b8557634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141562000ba25762000ba262000ba9565b5060010190565b634e487b7160e01b600052601160045260246000fd5b61273b8062000bcf6000396000f3fe6080604052600436106102255760003560e01c806385e1454811610123578063b917ae4e116100ab578063e8a3d4851161006f578063e8a3d485146105f1578063e985e9c514610606578063f0d10dcd1461064f578063f2fde38b14610665578063f952fcad1461068557600080fd5b8063b917ae4e14610570578063c162394e14610586578063c87b56dd1461059c578063d5abeb01146105bc578063da76d5cd146105d157600080fd5b8063a22cb465116100f2578063a22cb465146104d1578063a3c573eb146104f1578063b150a6f614610511578063b75ecf1314610539578063b88d4fde1461055057600080fd5b806385e14548146104745780638da5cb5b1461048957806395d89b41146104a7578063a035b1fe146104bc57600080fd5b806327a3181d116101b15780636caf25ce116101755780636caf25ce146103f857806370a0823114610414578063715018a614610434578063729205e7146104495780637ddc41731461045e57600080fd5b806327a3181d1461035c5780632f745c591461037857806342842e0e146103985780634f6ccce7146103b85780636352211e146103d857600080fd5b80630a3c3295116101f85780630a3c3295146102db57806318160ddd146102f05780631f283f471461031357806323b872dd1461032957806323cf0a221461034957600080fd5b806301ffc9a71461022a57806306fdde031461025f578063081812fc14610281578063095ea7b3146102b9575b600080fd5b34801561023657600080fd5b5061024a610245366004612227565b61069a565b60405190151581526020015b60405180910390f35b34801561026b57600080fd5b506102746106ab565b6040516102569190612402565b34801561028d57600080fd5b506102a161029c366004612281565b61073d565b6040516001600160a01b039091168152602001610256565b3480156102c557600080fd5b506102d96102d43660046121fe565b6107ca565b005b3480156102e757600080fd5b506102d96108e0565b3480156102fc57600080fd5b50610305610981565b604051908152602001610256565b34801561031f57600080fd5b50610305614b9681565b34801561033557600080fd5b506102d96103443660046120b4565b610998565b6102d961035736600461225f565b6109c9565b34801561036857600080fd5b50610305670214e8348c4f000081565b34801561038457600080fd5b506103056103933660046121fe565b610b44565b3480156103a457600080fd5b506102d96103b33660046120b4565b610cb8565b3480156103c457600080fd5b506103056103d3366004612281565b610cd3565b3480156103e457600080fd5b506102a16103f3366004612281565b610d8e565b34801561040457600080fd5b5061030567010a741a4627800081565b34801561042057600080fd5b5061030561042f366004612068565b610dbd565b34801561044057600080fd5b506102d9610dee565b34801561045557600080fd5b5061024a610e24565b34801561046a57600080fd5b50610305611c5381565b34801561048057600080fd5b5061024a610e4e565b34801561049557600080fd5b50600a546001600160a01b03166102a1565b3480156104b357600080fd5b50610274610e97565b3480156104c857600080fd5b50610305610ea6565b3480156104dd57600080fd5b506102d96104ec3660046121c4565b610ecf565b3480156104fd57600080fd5b50600b546102a1906001600160a01b031681565b34801561051d57600080fd5b50610526601881565b60405161ffff9091168152602001610256565b34801561054557600080fd5b50600d54151561024a565b34801561055c57600080fd5b506102d961056b3660046120ef565b610f94565b34801561057c57600080fd5b506103056113e681565b34801561059257600080fd5b50610305600d5481565b3480156105a857600080fd5b506102746105b7366004612281565b611012565b3480156105c857600080fd5b50610305611134565b3480156105dd57600080fd5b506102d96105ec366004612281565b611144565b3480156105fd57600080fd5b506102746111a8565b34801561061257600080fd5b5061024a610621366004612082565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561065b57600080fd5b50610305600c5481565b34801561067157600080fd5b506102d9610680366004612068565b6111d6565b34801561069157600080fd5b50610305601e81565b60006106a5826112fe565b92915050565b6060600080546106ba9061261f565b80601f01602080910402602001604051908101604052809291908181526020018280546106e69061261f565b80156107335780601f1061070857610100808354040283529160200191610733565b820191906000526020600020905b81548152906001019060200180831161071657829003601f168201915b5050505050905090565b600061074882611323565b6107ae5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006107d582610d8e565b9050806001600160a01b0316836001600160a01b031614156108435760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107a5565b336001600160a01b038216148061085f575061085f8133610621565b6108d15760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107a5565b6108db8383611335565b505050565b600a546001600160a01b0316331461090a5760405162461bcd60e51b81526004016107a5906124ab565b600d54156109525760405162461bcd60e51b815260206004820152601560248201527414d85b195cc8185b1c9958591e481cdd185c9d1959605a1b60448201526064016107a5565b43600d556040517fd951695d0b072809560e0d25befd0eea3a285400e67a5b23ac872c75631cb2f490600090a1565b6000600e54611c53610993919061257a565b905090565b6109a233826113a3565b6109be5760405162461bcd60e51b81526004016107a590612529565b6108db83838361148d565b6109d1611134565b8161ffff166109de610981565b6109e8919061257a565b1115610a2c5760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e7420737570706c7960681b60448201526064016107a5565b610a34610e24565b610a805760405162461bcd60e51b815260206004820152601c60248201527f5468652073616c657320706572696f64206973206e6f74206f70656e0000000060448201526064016107a5565b601e8161ffff161115610ad55760405162461bcd60e51b815260206004820152601a60248201527f546f6f206d616e7920707572636861736573206174206f6e636500000000000060448201526064016107a5565b60008161ffff16610ae4610ea6565b610aee91906125a6565b9050803414610b375760405162461bcd60e51b8152602060048201526015602482015274125b98dbdc9c9958dd08185b5bdd5b9d081cd95b9d605a1b60448201526064016107a5565b610b40826115ba565b5050565b600b546000906001600160a01b038481169116148015610b6c5750610b6883611277565b8210155b15610ca757610b7a83610dbd565b8210610bd45760405162461bcd60e51b8152602060048201526024808201527f6f776e657220696e646578206f7574206f6620626f756e647320666f722062726044820152636964676560e01b60648201526084016107a5565b6000610bdf84611277565b610be990846125c5565b610bf490600161257a565b9050600091505b611c53821015610c6c57601082611c538110610c2757634e487b7160e01b600052603260045260246000fd5b602081049091015460ff601f9092166101000a900416610c4f5780610c4b81612608565b9150505b80610c5a57506106a5565b81610c648161265a565b925050610bfb565b60405162461bcd60e51b815260206004820152601060248201526f556e726561636861626c6520636f646560801b60448201526064016107a5565b610cb183836115f8565b9392505050565b6108db83838360405180602001604052806000815250610f94565b6000306001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610d0e57600080fd5b505afa158015610d22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d469190612299565b8210610d8a5760405162461bcd60e51b8152602060048201526013602482015272696e646578206f7574206f6620626f756e647360681b60448201526064016107a5565b5090565b6000610d998261168e565b15610daf575050600b546001600160a01b031690565b6106a5826116e1565b919050565b6000610dc882611277565b600b549091506001600160a01b0383811691161415610db857600f546106a5908261257a565b600a546001600160a01b03163314610e185760405162461bcd60e51b81526004016107a5906124ab565b610e226000611758565b565b6000610e31600d54151590565b80156109935750610e40611134565b610e48610981565b10905090565b600080600d5443610e5f91906125c5565b9050610e6c600d54151590565b8015610e915750610e7b611134565b610e83610981565b1480610e915750614b968110155b91505090565b6060600180546106ba9061261f565b6000610eb0610e4e565b15610ec25750670214e8348c4f000090565b5067010a741a4627800090565b6001600160a01b038216331415610f285760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107a5565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610f9d8261168e565b1561100057610fac33836113a3565b610fc85760405162461bcd60e51b81526004016107a590612529565b610fd38484846117aa565b610fdf8484848461183d565b610ffb5760405162461bcd60e51b81526004016107a590612415565b61100c565b61100c8484848461194a565b50505050565b606061101d82611323565b6110815760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016107a5565b61108c82611c531190565b156110c95761109961197d565b6110a28361199d565b6040516020016110b3929190612363565b6040516020818303038152906040529050919050565b6110d1610e4e565b1561111c5760006110e183611ab7565b90506110eb61197d565b6110f48261199d565b6040516020016111059291906122dd565b604051602081830303815290604052915050919050565b61112461197d565b6040516020016110b39190612395565b60006109936113e6611c5361257a565b600a546001600160a01b0316331461116e5760405162461bcd60e51b81526004016107a5906124ab565b4781111561117b57600080fd5b604051339082156108fc029083906000818181858888f19350505050158015610b40573d6000803e3d6000fd5b60606111b261197d565b6040516020016111c2919061232d565b604051602081830303815290604052905090565b600a546001600160a01b031633146112005760405162461bcd60e51b81526004016107a5906124ab565b6001600160a01b0381166112655760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107a5565b61126e81611758565b50565b3b151590565b60006001600160a01b0382166112e25760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016107a5565b506001600160a01b031660009081526003602052604090205490565b60006001600160e01b0319821663780e9d6360e01b14806106a557506106a582611b8f565b600061132d610981565b909110919050565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061136a82610d8e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006113ae82611323565b61140f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107a5565b600061141a83610d8e565b9050806001600160a01b0316846001600160a01b031614806114555750836001600160a01b031661144a8461073d565b6001600160a01b0316145b8061148557506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166114a082610d8e565b6001600160a01b0316146114c65760405162461bcd60e51b81526004016107a5906124e0565b6001600160a01b0382166114ec5760405162461bcd60e51b81526004016107a590612467565b6114f7838383611bdf565b611502600082611335565b6001600160a01b038316600090815260036020526040812080546001929061152b9084906125c5565b90915550506001600160a01b038216600090815260036020526040812080546001929061155990849061257a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60005b8161ffff168110156115e4576115d233611db8565b806115dc8161265a565b9150506115bd565b506115ed610e4e565b61126e5743600c5550565b600061160383611277565b82106116655760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016107a5565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600061169b82611c531190565b80156106a55750601082611c5381106116c457634e487b7160e01b600052603260045260246000fd5b602081049091015460ff601f9092166101000a9004161592915050565b6000818152600260205260408120546001600160a01b0316806106a55760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016107a5565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b826001600160a01b03166117bd82610d8e565b6001600160a01b0316146117e35760405162461bcd60e51b81526004016107a5906124e0565b6001600160a01b0382166118095760405162461bcd60e51b81526004016107a590612467565b611814838383611bdf565b6001600160a01b038216600090815260036020526040812080546001929061155990849061257a565b60006001600160a01b0384163b1561193f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906118819033908990889088906004016123c5565b602060405180830381600087803b15801561189b57600080fd5b505af19250505080156118cb575060408051601f3d908101601f191682019092526118c891810190612243565b60015b611925573d8080156118f9576040519150601f19603f3d011682016040523d82523d6000602084013e6118fe565b606091505b50805161191d5760405162461bcd60e51b81526004016107a590612415565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611485565b506001949350505050565b61195584848461148d565b6119618484848461183d565b61100c5760405162461bcd60e51b81526004016107a590612415565b60606040518060600160405280602481526020016126e260249139905090565b6060816119c15750506040805180820190915260018152600360fc1b602082015290565b8160005b81156119eb57806119d58161265a565b91506119e49050600a83612592565b91506119c5565b60008167ffffffffffffffff811115611a1457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611a3e576020820181803683370190505b5090505b841561148557611a536001836125c5565b9150611a60600a86612675565b611a6b90603061257a565b60f81b818381518110611a8e57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611ab0600a86612592565b9450611a42565b6000611ac1610e4e565b611b0d5760405162461bcd60e51b815260206004820181905260248201527f4174747269627574657320617265206e6f742079657420617661696c61626c6560448201526064016107a5565b611b1882611c531190565b15611b745760405162461bcd60e51b815260206004820152602660248201527f5f67657444657369676e206973206f6e6c792076616c696420666f7220763220604482015265746f6b656e7360d01b60648201526084016107a5565b6113e6600c5483611b85919061257a565b6106a59190612675565b60006001600160e01b031982166380ac58cd60e01b1480611bc057506001600160e01b03198216635b5e139f60e01b145b806106a557506301ffc9a760e01b6001600160e01b03198316146106a5565b6001600160a01b038216611c355760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f742073656e6420746f206e756c6c2061646472657373000000000060448201526064016107a5565b600b546001600160a01b038481169116148015611c565750611c568161168e565b15611cbb576001601082611c538110611c7f57634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908315150217905550600f6000815480929190611cb190612608565b9190505550611cf4565b816001600160a01b0316836001600160a01b031614158015611ce557506001600160a01b03831615155b15611cf457611cf48382611de9565b600b546001600160a01b0383811691161415611d9557611d1581611c531190565b611d955760405162461bcd60e51b815260206004820152604560248201527f746f6b656e73206d696e746564207769746820457468657254756c697073205660448201527f322063616e6e6f74206265206272696467656420746f20457468657254756c69606482015264707320563160d81b608482015260a4016107a5565b826001600160a01b0316826001600160a01b0316146108db576108db8282611e86565b611dd181600e54611c53611dcc919061257a565b611eca565b600e8054906000611de18361265a565b919050555050565b60006001611df684611277565b611e0091906125c5565b600083815260076020526040902054909150808214611e53576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6000611e9183611277565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b610b40828260405180602001604052806000815250611ee98383611f12565b611ef6600084848461183d565b6108db5760405162461bcd60e51b81526004016107a590612415565b6001600160a01b038216611f685760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107a5565b611f7181611323565b15611fbe5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107a5565b611fca60008383611bdf565b6001600160a01b0382166000908152600360205260408120805460019290611ff390849061257a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b80356001600160a01b0381168114610db857600080fd5b600060208284031215612079578081fd5b610cb182612051565b60008060408385031215612094578081fd5b61209d83612051565b91506120ab60208401612051565b90509250929050565b6000806000606084860312156120c8578081fd5b6120d184612051565b92506120df60208501612051565b9150604084013590509250925092565b60008060008060808587031215612104578081fd5b61210d85612051565b935061211b60208601612051565b925060408501359150606085013567ffffffffffffffff8082111561213e578283fd5b818701915087601f830112612151578283fd5b813581811115612163576121636126b5565b604051601f8201601f19908116603f0116810190838211818310171561218b5761218b6126b5565b816040528281528a60208487010111156121a3578586fd5b82602086016020830137918201602001949094529598949750929550505050565b600080604083850312156121d6578182fd5b6121df83612051565b9150602083013580151581146121f3578182fd5b809150509250929050565b60008060408385031215612210578182fd5b61221983612051565b946020939093013593505050565b600060208284031215612238578081fd5b8135610cb1816126cb565b600060208284031215612254578081fd5b8151610cb1816126cb565b600060208284031215612270578081fd5b813561ffff81168114610cb1578182fd5b600060208284031215612292578081fd5b5035919050565b6000602082840312156122aa578081fd5b5051919050565b600081518084526122c98160208601602086016125dc565b601f01601f19169290920160200192915050565b600083516122ef8184602088016125dc565b6276322f60e81b908301908152835161230f8160038401602088016125dc565b64173539b7b760d91b60039290910191820152600801949350505050565b6000825161233f8184602087016125dc565b7131b7b73a3930b1ba16b6b2ba30973539b7b760711b920191825250601201919050565b600083516123758184602088016125dc565b6276312f60e81b908301908152835161230f8160038401602088016125dc565b600082516123a78184602087016125dc565b6b3b1917b9b2b2b2173539b7b760a11b920191825250600c01919050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906123f8908301846122b1565b9695505050505050565b602081526000610cb160208301846122b1565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6000821982111561258d5761258d612689565b500190565b6000826125a1576125a161269f565b500490565b60008160001904831182151516156125c0576125c0612689565b500290565b6000828210156125d7576125d7612689565b500390565b60005b838110156125f75781810151838201526020016125df565b8381111561100c5750506000910152565b60008161261757612617612689565b506000190190565b600181811c9082168061263357607f821691505b6020821081141561265457634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561266e5761266e612689565b5060010190565b6000826126845761268461269f565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461126e57600080fdfe68747470733a2f2f746f6b656e732e657468657274756c6970732e636f6d2f6d6574612fa26469706673582212202b3c6749a699cbde467b0059f55e3b6f58c5ae0ae31572e95b2e4828e56ff5a764736f6c634300080400334552433732313a207472616e7366657220746f206e6f6e2045524337323152650000000000000000000000008d9ebd38442b681a253e5a1f7dc5721b269904bf
Deployed Bytecode
0x6080604052600436106102255760003560e01c806385e1454811610123578063b917ae4e116100ab578063e8a3d4851161006f578063e8a3d485146105f1578063e985e9c514610606578063f0d10dcd1461064f578063f2fde38b14610665578063f952fcad1461068557600080fd5b8063b917ae4e14610570578063c162394e14610586578063c87b56dd1461059c578063d5abeb01146105bc578063da76d5cd146105d157600080fd5b8063a22cb465116100f2578063a22cb465146104d1578063a3c573eb146104f1578063b150a6f614610511578063b75ecf1314610539578063b88d4fde1461055057600080fd5b806385e14548146104745780638da5cb5b1461048957806395d89b41146104a7578063a035b1fe146104bc57600080fd5b806327a3181d116101b15780636caf25ce116101755780636caf25ce146103f857806370a0823114610414578063715018a614610434578063729205e7146104495780637ddc41731461045e57600080fd5b806327a3181d1461035c5780632f745c591461037857806342842e0e146103985780634f6ccce7146103b85780636352211e146103d857600080fd5b80630a3c3295116101f85780630a3c3295146102db57806318160ddd146102f05780631f283f471461031357806323b872dd1461032957806323cf0a221461034957600080fd5b806301ffc9a71461022a57806306fdde031461025f578063081812fc14610281578063095ea7b3146102b9575b600080fd5b34801561023657600080fd5b5061024a610245366004612227565b61069a565b60405190151581526020015b60405180910390f35b34801561026b57600080fd5b506102746106ab565b6040516102569190612402565b34801561028d57600080fd5b506102a161029c366004612281565b61073d565b6040516001600160a01b039091168152602001610256565b3480156102c557600080fd5b506102d96102d43660046121fe565b6107ca565b005b3480156102e757600080fd5b506102d96108e0565b3480156102fc57600080fd5b50610305610981565b604051908152602001610256565b34801561031f57600080fd5b50610305614b9681565b34801561033557600080fd5b506102d96103443660046120b4565b610998565b6102d961035736600461225f565b6109c9565b34801561036857600080fd5b50610305670214e8348c4f000081565b34801561038457600080fd5b506103056103933660046121fe565b610b44565b3480156103a457600080fd5b506102d96103b33660046120b4565b610cb8565b3480156103c457600080fd5b506103056103d3366004612281565b610cd3565b3480156103e457600080fd5b506102a16103f3366004612281565b610d8e565b34801561040457600080fd5b5061030567010a741a4627800081565b34801561042057600080fd5b5061030561042f366004612068565b610dbd565b34801561044057600080fd5b506102d9610dee565b34801561045557600080fd5b5061024a610e24565b34801561046a57600080fd5b50610305611c5381565b34801561048057600080fd5b5061024a610e4e565b34801561049557600080fd5b50600a546001600160a01b03166102a1565b3480156104b357600080fd5b50610274610e97565b3480156104c857600080fd5b50610305610ea6565b3480156104dd57600080fd5b506102d96104ec3660046121c4565b610ecf565b3480156104fd57600080fd5b50600b546102a1906001600160a01b031681565b34801561051d57600080fd5b50610526601881565b60405161ffff9091168152602001610256565b34801561054557600080fd5b50600d54151561024a565b34801561055c57600080fd5b506102d961056b3660046120ef565b610f94565b34801561057c57600080fd5b506103056113e681565b34801561059257600080fd5b50610305600d5481565b3480156105a857600080fd5b506102746105b7366004612281565b611012565b3480156105c857600080fd5b50610305611134565b3480156105dd57600080fd5b506102d96105ec366004612281565b611144565b3480156105fd57600080fd5b506102746111a8565b34801561061257600080fd5b5061024a610621366004612082565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561065b57600080fd5b50610305600c5481565b34801561067157600080fd5b506102d9610680366004612068565b6111d6565b34801561069157600080fd5b50610305601e81565b60006106a5826112fe565b92915050565b6060600080546106ba9061261f565b80601f01602080910402602001604051908101604052809291908181526020018280546106e69061261f565b80156107335780601f1061070857610100808354040283529160200191610733565b820191906000526020600020905b81548152906001019060200180831161071657829003601f168201915b5050505050905090565b600061074882611323565b6107ae5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006107d582610d8e565b9050806001600160a01b0316836001600160a01b031614156108435760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107a5565b336001600160a01b038216148061085f575061085f8133610621565b6108d15760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107a5565b6108db8383611335565b505050565b600a546001600160a01b0316331461090a5760405162461bcd60e51b81526004016107a5906124ab565b600d54156109525760405162461bcd60e51b815260206004820152601560248201527414d85b195cc8185b1c9958591e481cdd185c9d1959605a1b60448201526064016107a5565b43600d556040517fd951695d0b072809560e0d25befd0eea3a285400e67a5b23ac872c75631cb2f490600090a1565b6000600e54611c53610993919061257a565b905090565b6109a233826113a3565b6109be5760405162461bcd60e51b81526004016107a590612529565b6108db83838361148d565b6109d1611134565b8161ffff166109de610981565b6109e8919061257a565b1115610a2c5760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e7420737570706c7960681b60448201526064016107a5565b610a34610e24565b610a805760405162461bcd60e51b815260206004820152601c60248201527f5468652073616c657320706572696f64206973206e6f74206f70656e0000000060448201526064016107a5565b601e8161ffff161115610ad55760405162461bcd60e51b815260206004820152601a60248201527f546f6f206d616e7920707572636861736573206174206f6e636500000000000060448201526064016107a5565b60008161ffff16610ae4610ea6565b610aee91906125a6565b9050803414610b375760405162461bcd60e51b8152602060048201526015602482015274125b98dbdc9c9958dd08185b5bdd5b9d081cd95b9d605a1b60448201526064016107a5565b610b40826115ba565b5050565b600b546000906001600160a01b038481169116148015610b6c5750610b6883611277565b8210155b15610ca757610b7a83610dbd565b8210610bd45760405162461bcd60e51b8152602060048201526024808201527f6f776e657220696e646578206f7574206f6620626f756e647320666f722062726044820152636964676560e01b60648201526084016107a5565b6000610bdf84611277565b610be990846125c5565b610bf490600161257a565b9050600091505b611c53821015610c6c57601082611c538110610c2757634e487b7160e01b600052603260045260246000fd5b602081049091015460ff601f9092166101000a900416610c4f5780610c4b81612608565b9150505b80610c5a57506106a5565b81610c648161265a565b925050610bfb565b60405162461bcd60e51b815260206004820152601060248201526f556e726561636861626c6520636f646560801b60448201526064016107a5565b610cb183836115f8565b9392505050565b6108db83838360405180602001604052806000815250610f94565b6000306001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610d0e57600080fd5b505afa158015610d22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d469190612299565b8210610d8a5760405162461bcd60e51b8152602060048201526013602482015272696e646578206f7574206f6620626f756e647360681b60448201526064016107a5565b5090565b6000610d998261168e565b15610daf575050600b546001600160a01b031690565b6106a5826116e1565b919050565b6000610dc882611277565b600b549091506001600160a01b0383811691161415610db857600f546106a5908261257a565b600a546001600160a01b03163314610e185760405162461bcd60e51b81526004016107a5906124ab565b610e226000611758565b565b6000610e31600d54151590565b80156109935750610e40611134565b610e48610981565b10905090565b600080600d5443610e5f91906125c5565b9050610e6c600d54151590565b8015610e915750610e7b611134565b610e83610981565b1480610e915750614b968110155b91505090565b6060600180546106ba9061261f565b6000610eb0610e4e565b15610ec25750670214e8348c4f000090565b5067010a741a4627800090565b6001600160a01b038216331415610f285760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107a5565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610f9d8261168e565b1561100057610fac33836113a3565b610fc85760405162461bcd60e51b81526004016107a590612529565b610fd38484846117aa565b610fdf8484848461183d565b610ffb5760405162461bcd60e51b81526004016107a590612415565b61100c565b61100c8484848461194a565b50505050565b606061101d82611323565b6110815760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016107a5565b61108c82611c531190565b156110c95761109961197d565b6110a28361199d565b6040516020016110b3929190612363565b6040516020818303038152906040529050919050565b6110d1610e4e565b1561111c5760006110e183611ab7565b90506110eb61197d565b6110f48261199d565b6040516020016111059291906122dd565b604051602081830303815290604052915050919050565b61112461197d565b6040516020016110b39190612395565b60006109936113e6611c5361257a565b600a546001600160a01b0316331461116e5760405162461bcd60e51b81526004016107a5906124ab565b4781111561117b57600080fd5b604051339082156108fc029083906000818181858888f19350505050158015610b40573d6000803e3d6000fd5b60606111b261197d565b6040516020016111c2919061232d565b604051602081830303815290604052905090565b600a546001600160a01b031633146112005760405162461bcd60e51b81526004016107a5906124ab565b6001600160a01b0381166112655760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107a5565b61126e81611758565b50565b3b151590565b60006001600160a01b0382166112e25760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016107a5565b506001600160a01b031660009081526003602052604090205490565b60006001600160e01b0319821663780e9d6360e01b14806106a557506106a582611b8f565b600061132d610981565b909110919050565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061136a82610d8e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006113ae82611323565b61140f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107a5565b600061141a83610d8e565b9050806001600160a01b0316846001600160a01b031614806114555750836001600160a01b031661144a8461073d565b6001600160a01b0316145b8061148557506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166114a082610d8e565b6001600160a01b0316146114c65760405162461bcd60e51b81526004016107a5906124e0565b6001600160a01b0382166114ec5760405162461bcd60e51b81526004016107a590612467565b6114f7838383611bdf565b611502600082611335565b6001600160a01b038316600090815260036020526040812080546001929061152b9084906125c5565b90915550506001600160a01b038216600090815260036020526040812080546001929061155990849061257a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60005b8161ffff168110156115e4576115d233611db8565b806115dc8161265a565b9150506115bd565b506115ed610e4e565b61126e5743600c5550565b600061160383611277565b82106116655760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016107a5565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600061169b82611c531190565b80156106a55750601082611c5381106116c457634e487b7160e01b600052603260045260246000fd5b602081049091015460ff601f9092166101000a9004161592915050565b6000818152600260205260408120546001600160a01b0316806106a55760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016107a5565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b826001600160a01b03166117bd82610d8e565b6001600160a01b0316146117e35760405162461bcd60e51b81526004016107a5906124e0565b6001600160a01b0382166118095760405162461bcd60e51b81526004016107a590612467565b611814838383611bdf565b6001600160a01b038216600090815260036020526040812080546001929061155990849061257a565b60006001600160a01b0384163b1561193f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906118819033908990889088906004016123c5565b602060405180830381600087803b15801561189b57600080fd5b505af19250505080156118cb575060408051601f3d908101601f191682019092526118c891810190612243565b60015b611925573d8080156118f9576040519150601f19603f3d011682016040523d82523d6000602084013e6118fe565b606091505b50805161191d5760405162461bcd60e51b81526004016107a590612415565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611485565b506001949350505050565b61195584848461148d565b6119618484848461183d565b61100c5760405162461bcd60e51b81526004016107a590612415565b60606040518060600160405280602481526020016126e260249139905090565b6060816119c15750506040805180820190915260018152600360fc1b602082015290565b8160005b81156119eb57806119d58161265a565b91506119e49050600a83612592565b91506119c5565b60008167ffffffffffffffff811115611a1457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611a3e576020820181803683370190505b5090505b841561148557611a536001836125c5565b9150611a60600a86612675565b611a6b90603061257a565b60f81b818381518110611a8e57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611ab0600a86612592565b9450611a42565b6000611ac1610e4e565b611b0d5760405162461bcd60e51b815260206004820181905260248201527f4174747269627574657320617265206e6f742079657420617661696c61626c6560448201526064016107a5565b611b1882611c531190565b15611b745760405162461bcd60e51b815260206004820152602660248201527f5f67657444657369676e206973206f6e6c792076616c696420666f7220763220604482015265746f6b656e7360d01b60648201526084016107a5565b6113e6600c5483611b85919061257a565b6106a59190612675565b60006001600160e01b031982166380ac58cd60e01b1480611bc057506001600160e01b03198216635b5e139f60e01b145b806106a557506301ffc9a760e01b6001600160e01b03198316146106a5565b6001600160a01b038216611c355760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f742073656e6420746f206e756c6c2061646472657373000000000060448201526064016107a5565b600b546001600160a01b038481169116148015611c565750611c568161168e565b15611cbb576001601082611c538110611c7f57634e487b7160e01b600052603260045260246000fd5b602091828204019190066101000a81548160ff021916908315150217905550600f6000815480929190611cb190612608565b9190505550611cf4565b816001600160a01b0316836001600160a01b031614158015611ce557506001600160a01b03831615155b15611cf457611cf48382611de9565b600b546001600160a01b0383811691161415611d9557611d1581611c531190565b611d955760405162461bcd60e51b815260206004820152604560248201527f746f6b656e73206d696e746564207769746820457468657254756c697073205660448201527f322063616e6e6f74206265206272696467656420746f20457468657254756c69606482015264707320563160d81b608482015260a4016107a5565b826001600160a01b0316826001600160a01b0316146108db576108db8282611e86565b611dd181600e54611c53611dcc919061257a565b611eca565b600e8054906000611de18361265a565b919050555050565b60006001611df684611277565b611e0091906125c5565b600083815260076020526040902054909150808214611e53576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6000611e9183611277565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b610b40828260405180602001604052806000815250611ee98383611f12565b611ef6600084848461183d565b6108db5760405162461bcd60e51b81526004016107a590612415565b6001600160a01b038216611f685760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107a5565b611f7181611323565b15611fbe5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107a5565b611fca60008383611bdf565b6001600160a01b0382166000908152600360205260408120805460019290611ff390849061257a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b80356001600160a01b0381168114610db857600080fd5b600060208284031215612079578081fd5b610cb182612051565b60008060408385031215612094578081fd5b61209d83612051565b91506120ab60208401612051565b90509250929050565b6000806000606084860312156120c8578081fd5b6120d184612051565b92506120df60208501612051565b9150604084013590509250925092565b60008060008060808587031215612104578081fd5b61210d85612051565b935061211b60208601612051565b925060408501359150606085013567ffffffffffffffff8082111561213e578283fd5b818701915087601f830112612151578283fd5b813581811115612163576121636126b5565b604051601f8201601f19908116603f0116810190838211818310171561218b5761218b6126b5565b816040528281528a60208487010111156121a3578586fd5b82602086016020830137918201602001949094529598949750929550505050565b600080604083850312156121d6578182fd5b6121df83612051565b9150602083013580151581146121f3578182fd5b809150509250929050565b60008060408385031215612210578182fd5b61221983612051565b946020939093013593505050565b600060208284031215612238578081fd5b8135610cb1816126cb565b600060208284031215612254578081fd5b8151610cb1816126cb565b600060208284031215612270578081fd5b813561ffff81168114610cb1578182fd5b600060208284031215612292578081fd5b5035919050565b6000602082840312156122aa578081fd5b5051919050565b600081518084526122c98160208601602086016125dc565b601f01601f19169290920160200192915050565b600083516122ef8184602088016125dc565b6276322f60e81b908301908152835161230f8160038401602088016125dc565b64173539b7b760d91b60039290910191820152600801949350505050565b6000825161233f8184602087016125dc565b7131b7b73a3930b1ba16b6b2ba30973539b7b760711b920191825250601201919050565b600083516123758184602088016125dc565b6276312f60e81b908301908152835161230f8160038401602088016125dc565b600082516123a78184602087016125dc565b6b3b1917b9b2b2b2173539b7b760a11b920191825250600c01919050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906123f8908301846122b1565b9695505050505050565b602081526000610cb160208301846122b1565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6000821982111561258d5761258d612689565b500190565b6000826125a1576125a161269f565b500490565b60008160001904831182151516156125c0576125c0612689565b500290565b6000828210156125d7576125d7612689565b500390565b60005b838110156125f75781810151838201526020016125df565b8381111561100c5750506000910152565b60008161261757612617612689565b506000190190565b600181811c9082168061263357607f821691505b6020821081141561265457634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561266e5761266e612689565b5060010190565b6000826126845761268461269f565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461126e57600080fdfe68747470733a2f2f746f6b656e732e657468657274756c6970732e636f6d2f6d6574612fa26469706673582212202b3c6749a699cbde467b0059f55e3b6f58c5ae0ae31572e95b2e4828e56ff5a764736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000008d9ebd38442b681a253e5a1f7dc5721b269904bf
-----Decoded View---------------
Arg [0] : _bridgeAddress (address): 0x8d9ebD38442B681A253e5A1f7Dc5721B269904bf
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000008d9ebd38442b681a253e5a1f7dc5721b269904bf
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.