ERC-721
Overview
Max Total Supply
219 BIO
Holders
108
Total Transfers
-
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Life
Compiler Version
v0.6.12+commit.27d51765
Optimization Enabled:
Yes with 999999 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity =0.6.12; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import "./ERC721.sol"; import "./interface/ILife.sol"; /** * @title NFTKEY Life collection contract */ contract Life is ILife, ERC721, Ownable, ReentrancyGuard { using SafeMath for uint256; using Address for address; constructor(string memory name_, string memory symbol_) public ERC721(name_, symbol_) {} uint256 public constant SALE_START_TIMESTAMP = 1616247000; uint256 public constant MAX_NFT_SUPPLY = 10000; mapping(address => uint256) private _pendingWithdrawals; mapping(uint256 => uint8[]) private _bioDNAById; mapping(bytes32 => bool) private _bioExistanceByHash; uint8 private _feeFraction = 1; uint8 private _feeBase = 100; mapping(uint256 => Listing) private _bioListedForSale; mapping(uint256 => Bid) private _bioWithBids; /** * @dev See {ILife-getBioDNA}. */ function getBioDNA(uint256 bioId) external view override returns (uint8[] memory) { return _bioDNAById[bioId]; } /** * @dev See {ILife-allBioDNAs}. */ function getBioDNAs(uint256 from, uint256 size) external view override returns (uint8[][] memory) { uint256 endBioIndex = from + size; require(endBioIndex <= totalSupply(), "Requesting too many Bios"); uint8[][] memory bios = new uint8[][](size); for (uint256 i; i < size; i++) { bios[i] = _bioDNAById[i + from]; } return bios; } /** * @dev See {ILife-getBioPrice}. */ function getBioPrice() public view override returns (uint256) { require(block.timestamp >= SALE_START_TIMESTAMP, "Sale has not started"); require(totalSupply() < MAX_NFT_SUPPLY, "Sale has already ended"); uint256 currentSupply = totalSupply(); if (currentSupply > 9900) { return 10000000000000000000; // 9901 - 10000 10 ETH } else if (currentSupply > 9500) { return 2000000000000000000; // 9501 - 9900 2.0 ETH } else if (currentSupply > 8500) { return 1000000000000000000; // 8501 - 9500 1 ETH } else if (currentSupply > 4500) { return 800000000000000000; // 4501 - 8500 0.8 ETH } else if (currentSupply > 2500) { return 600000000000000000; // 2501 - 4500 0.6 ETH } else if (currentSupply > 1000) { return 400000000000000000; // 1001 - 2500 0.4 ETH } else if (currentSupply > 100) { return 200000000000000000; // 101 - 1000 0.2 ETH } else { return 100000000000000000; // 0 - 100 0.1 ETH } } /** * @dev See {ILife-isBioExist}. */ function isBioExist(uint8[] memory bioDNA) external view override returns (bool) { bytes32 bioHashOriginal = keccak256(abi.encodePacked(bioDNA)); return _bioExistanceByHash[bioHashOriginal]; } /** * @dev See {ILife-mintBio}. */ function mintBio(uint8[] memory bioDNA) external payable override { // Bio RLE require(totalSupply() < MAX_NFT_SUPPLY, "Sale has already ended"); require(totalSupply().add(1) <= MAX_NFT_SUPPLY, "Exceeds MAX_NFT_SUPPLY"); require(getBioPrice() == msg.value, "Ether value sent is not correct"); bytes32 bioHash = keccak256(abi.encodePacked(bioDNA)); require(!_bioExistanceByHash[bioHash], "Bio already existed"); uint256 activeCellCount = 0; uint256 totalCellCount = 0; for (uint8 i = 0; i < bioDNA.length; i++) { totalCellCount = totalCellCount.add(bioDNA[i]); if (i % 2 == 1) { activeCellCount = activeCellCount.add(bioDNA[i]); } } require(totalCellCount <= 289, "Total cell count should be smaller than 289"); require( activeCellCount >= 5 && activeCellCount <= 48, "Active cell count of Bio is not allowed" ); uint256 mintIndex = totalSupply(); _bioExistanceByHash[bioHash] = true; _bioDNAById[mintIndex] = bioDNA; _safeMint(msg.sender, mintIndex); _pendingWithdrawals[owner()] = _pendingWithdrawals[owner()].add(msg.value); emit BioMinted(mintIndex, msg.sender, bioDNA, bioHash); } modifier saleEnded() { require(totalSupply() >= MAX_NFT_SUPPLY, "Bio sale still going"); _; } modifier bioExist(uint256 bioId) { require(bioId < totalSupply(), "Bio doesn't exist"); _; } modifier isBioOwner(uint256 bioId) { require(ownerOf(bioId) == msg.sender, "Not the owner of this Bio"); _; } /** * @dev See {ILife-getBioListing}. */ function getBioListing(uint256 bioId) external view override returns (Listing memory) { return _bioListedForSale[bioId]; } /** * @dev See {ILife-getListings}. */ function getBioListings(uint256 from, uint256 size) external view override returns (Listing[] memory) { uint256 endBioIndex = from + size; require(endBioIndex <= totalSupply(), "Requesting too many listings"); Listing[] memory listings = new Listing[](size); for (uint256 i; i < size; i++) { listings[i] = _bioListedForSale[i + from]; } return listings; } /** * @dev See {ILife-getBioBid}. */ function getBioBid(uint256 bioId) external view override returns (Bid memory) { return _bioWithBids[bioId]; } /** * @dev See {ILife-getBioBids}. */ function getBioBids(uint256 from, uint256 size) external view override returns (Bid[] memory) { uint256 endBioIndex = from + size; require(endBioIndex <= totalSupply(), "Requesting too many bids"); Bid[] memory bids = new Bid[](size); for (uint256 i; i < totalSupply(); i++) { bids[i] = _bioWithBids[i + from]; } return bids; } /** * @dev See {ILife-listBioForSale}. */ function listBioForSale(uint256 bioId, uint256 minValue) external override saleEnded bioExist(bioId) isBioOwner(bioId) { _bioListedForSale[bioId] = Listing( true, bioId, msg.sender, minValue, address(0), block.timestamp ); emit BioListed(bioId, minValue, msg.sender, address(0)); } /** * @dev See {ILife-listBioForSaleToAddress}. */ function listBioForSaleToAddress( uint256 bioId, uint256 minValue, address toAddress ) external override saleEnded bioExist(bioId) isBioOwner(bioId) { _bioListedForSale[bioId] = Listing( true, bioId, msg.sender, minValue, toAddress, block.timestamp ); emit BioListed(bioId, minValue, msg.sender, toAddress); } function _delistBio(uint256 bioId) private saleEnded bioExist(bioId) { emit BioDelisted(bioId, _bioListedForSale[bioId].seller); delete _bioListedForSale[bioId]; } function _removeBid(uint256 bioId) private saleEnded bioExist(bioId) { emit BioBidRemoved(bioId, _bioWithBids[bioId].bidder); delete _bioWithBids[bioId]; } /** * @dev See {ILife-delistBio}. */ function delistBio(uint256 bioId) external override isBioOwner(bioId) { require(_bioListedForSale[bioId].isForSale, "Bio is not for sale"); _delistBio(bioId); } /** * @dev Return ETH if it's not a contract, else add it to pending withdrawals * @param receiver Address to receive value * @param value value to send */ function _sendValue(address receiver, uint256 value) private { if (receiver.isContract() && receiver != msg.sender) { _pendingWithdrawals[receiver] = value; } else { Address.sendValue(payable(receiver), value); } } /** * @dev See {ILife-buyBio}. */ function buyBio(uint256 bioId) external payable override saleEnded bioExist(bioId) nonReentrant { Listing memory listing = _bioListedForSale[bioId]; require(listing.isForSale, "Bio is not for sale"); require( listing.onlySellTo == address(0) || listing.onlySellTo == msg.sender, "Bio is not selling to this address" ); require(ownerOf(bioId) == listing.seller, "This seller is not the owner"); require(msg.sender != ownerOf(bioId), "This Bio belongs to this address"); uint256 fees = listing.minValue.mul(_feeFraction).div(_feeBase); require( msg.value >= listing.minValue + fees, "The value send is below sale price plus fees" ); uint256 valueWithoutFees = msg.value.sub(fees); _sendValue(ownerOf(bioId), valueWithoutFees); _pendingWithdrawals[owner()] = _pendingWithdrawals[owner()].add(fees); emit BioBought(bioId, valueWithoutFees, listing.seller, msg.sender); _safeTransfer(ownerOf(bioId), msg.sender, bioId, ""); _delistBio(bioId); Bid memory existingBid = _bioWithBids[bioId]; if (existingBid.bidder == msg.sender) { _sendValue(msg.sender, existingBid.value); _removeBid(bioId); } } /** * @dev See {ILife-enterBidForBio}. */ function enterBidForBio(uint256 bioId) external payable override saleEnded bioExist(bioId) nonReentrant { require(ownerOf(bioId) != address(0), "This Bio has been burnt"); require(ownerOf(bioId) != msg.sender, "Owner of Bio doesn't need to bid"); require(msg.value != 0, "The bid price is too low"); Bid memory existingBid = _bioWithBids[bioId]; require(msg.value > existingBid.value, "The bid price is no higher than existing one"); if (existingBid.value > 0) { _sendValue(existingBid.bidder, existingBid.value); } _bioWithBids[bioId] = Bid(true, bioId, msg.sender, msg.value, block.timestamp); emit BioBidEntered(bioId, msg.value, msg.sender); } /** * @dev See {ILife-acceptBidForBio}. */ function acceptBidForBio(uint256 bioId) external override saleEnded bioExist(bioId) isBioOwner(bioId) nonReentrant { Bid memory existingBid = _bioWithBids[bioId]; require(existingBid.hasBid && existingBid.value > 0, "This Bio doesn't have a valid bid"); uint256 fees = existingBid.value.mul(_feeFraction).div(_feeBase + _feeFraction); uint256 bioValue = existingBid.value.sub(fees); _sendValue(msg.sender, bioValue); _pendingWithdrawals[owner()] = _pendingWithdrawals[owner()].add(fees); _safeTransfer(msg.sender, existingBid.bidder, bioId, ""); emit BioBidAccepted(bioId, bioValue, msg.sender, existingBid.bidder); _removeBid(bioId); if (_bioListedForSale[bioId].isForSale) { _delistBio(bioId); } } /** * @dev See {ILife-withdrawBidForBio}. */ function withdrawBidForBio(uint256 bioId) external override saleEnded bioExist(bioId) nonReentrant { Bid memory existingBid = _bioWithBids[bioId]; require(existingBid.bidder == msg.sender, "This address doesn't have active bid"); _sendValue(msg.sender, existingBid.value); emit BioBidWithdrawn(bioId, existingBid.value, existingBid.bidder); _removeBid(bioId); } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 bioId ) public override nonReentrant { require( _isApprovedOrOwner(_msgSender(), bioId), "ERC721: transfer caller is not owner nor approved" ); _transfer(from, to, bioId); if (_bioListedForSale[bioId].seller == from) { _delistBio(bioId); } if (_bioWithBids[bioId].bidder == to) { _sendValue(_bioWithBids[bioId].bidder, _bioWithBids[bioId].value); _removeBid(bioId); } } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 bioId ) public override { safeTransferFrom(from, to, bioId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 bioId, bytes memory _data ) public override nonReentrant { require( _isApprovedOrOwner(_msgSender(), bioId), "ERC721: transfer caller is not owner nor approved" ); _safeTransfer(from, to, bioId, _data); if (_bioListedForSale[bioId].seller == from) { _delistBio(bioId); } if (_bioWithBids[bioId].bidder == to) { _sendValue(_bioWithBids[bioId].bidder, _bioWithBids[bioId].value); _removeBid(bioId); } } /** * @dev See {ILife-serviceFee}. */ function serviceFee() external view override returns (uint8, uint8) { return (_feeFraction, _feeBase); } /** * @dev See {ILife-pendingWithdrawals}. */ function pendingWithdrawals(address toAddress) external view override returns (uint256) { return _pendingWithdrawals[toAddress]; } /** * @dev See {ILife-withdraw}. */ function withdraw() external override nonReentrant { require(_pendingWithdrawals[msg.sender] > 0, "There is nothing to withdraw"); _sendValue(msg.sender, _pendingWithdrawals[msg.sender]); _pendingWithdrawals[msg.sender] = 0; } /** * @dev Change withdrawal fee percentage. * If 1%, then input (1,100) * If 0.5%, then input (5,1000) * @param feeFraction_ Fraction of withdrawal fee based on feeBase_ * @param feeBase_ Fraction of withdrawal fee base */ function changeSeriveFee(uint8 feeFraction_, uint8 feeBase_) external onlyOwner { require(feeFraction_ <= feeBase_, "Fee fraction exceeded base."); uint256 percentage = (feeFraction_ * 1000) / feeBase_; require(percentage <= 25, "Attempt to set percentage higher than 2.5%."); _feeFraction = feeFraction_; _feeBase = feeBase_; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/introspection/ERC165.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/EnumerableSet.sol"; import "@openzeppelin/contracts/utils/EnumerableMap.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./interface/IERC721Metadata.sol"; /** * @title ERC721 Non-Fungible Token Standard basic implementation * @dev see https://eips.ethereum.org/EIPS/eip-721 */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector` bytes4 private constant _ERC721_RECEIVED = 0x150b7a02; // Mapping from holder address to their (enumerable) set of owned tokens mapping(address => EnumerableSet.UintSet) private _holderTokens; // Enumerable mapping from token ids to their owners EnumerableMap.UintToAddressMap private _tokenOwners; // 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; // Token name string private _name; // Token symbol string private _symbol; /* * bytes4(keccak256('balanceOf(address)')) == 0x70a08231 * bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e * bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3 * bytes4(keccak256('getApproved(uint256)')) == 0x081812fc * bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465 * bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5 * bytes4(keccak256('transferFrom(address,address,uint256)')) == 0x23b872dd * bytes4(keccak256('safeTransferFrom(address,address,uint256)')) == 0x42842e0e * bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) == 0xb88d4fde * * => 0x70a08231 ^ 0x6352211e ^ 0x095ea7b3 ^ 0x081812fc ^ * 0xa22cb465 ^ 0xe985e9c5 ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd */ bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd; /* * bytes4(keccak256('name()')) == 0x06fdde03 * bytes4(keccak256('symbol()')) == 0x95d89b41 * bytes4(keccak256('tokenURI(uint256)')) == 0xc87b56dd * * => 0x06fdde03 ^ 0x95d89b41 ^ 0xc87b56dd == 0x5b5e139f */ bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f; /* * bytes4(keccak256('totalSupply()')) == 0x18160ddd * bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) == 0x2f745c59 * bytes4(keccak256('tokenByIndex(uint256)')) == 0x4f6ccce7 * * => 0x18160ddd ^ 0x2f745c59 ^ 0x4f6ccce7 == 0x780e9d63 */ bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) public { _name = name_; _symbol = symbol_; // register the supported interfaces to conform to ERC721 via ERC165 _registerInterface(_INTERFACE_ID_ERC721); _registerInterface(_INTERFACE_ID_ERC721_METADATA); _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE); } /** * @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 _holderTokens[owner].length(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return _tokenOwners.get(tokenId, "ERC721: owner query for nonexistent token"); } /** * @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 {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { return _holderTokens[owner].at(index); } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { // _tokenOwners are indexed by tokenIds, so .length() returns the number of tokenIds return _tokenOwners.length(); } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { (uint256 tokenId, ) = _tokenOwners.at(index); return tokenId; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || ERC721.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 _tokenOwners.contains(tokenId); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || ERC721.isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: d* * - `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); _holderTokens[to].add(tokenId); _tokenOwners.set(tokenId, to); emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); // internal owner _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _holderTokens[owner].remove(tokenId); _tokenOwners.remove(tokenId); emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); // internal owner require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _holderTokens[from].remove(tokenId); _holderTokens[to].add(tokenId); _tokenOwners.set(tokenId, to); emit Transfer(from, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (!to.isContract()) { return true; } bytes memory returndata = to.functionCall( abi.encodeWithSelector( IERC721Receiver(to).onERC721Received.selector, _msgSender(), from, tokenId, _data ), "ERC721: transfer to non ERC721Receiver implementer" ); bytes4 retval = abi.decode(returndata, (bytes4)); return (retval == _ERC721_RECEIVED); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); // internal owner } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; import "@openzeppelin/contracts/token/ERC721/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); }
// SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity =0.6.12; pragma experimental ABIEncoderV2; /** * @title NFTKEY Life interface */ interface ILife { struct Listing { bool isForSale; uint256 bioId; address seller; uint256 minValue; address onlySellTo; uint256 timestamp; } struct Bid { bool hasBid; uint256 bioId; address bidder; uint256 value; uint256 timestamp; } event BioMinted(uint256 indexed bioId, address indexed owner, uint8[] bioDNA, bytes32 bioHash); event BioListed( uint256 indexed bioId, uint256 minValue, address indexed fromAddress, address indexed toAddress ); event BioDelisted(uint256 indexed bioId, address indexed fromAddress); event BioBidEntered(uint256 indexed bioId, uint256 value, address indexed fromAddress); event BioBidWithdrawn(uint256 indexed bioId, uint256 value, address indexed fromAddress); event BioBidRemoved(uint256 indexed bioId, address indexed fromAddress); event BioBought( uint256 indexed bioId, uint256 value, address indexed fromAddress, address indexed toAddress ); event BioBidAccepted( uint256 indexed bioId, uint256 value, address indexed fromAddress, address indexed toAddress ); /** * @dev Gets DNA encoding of a Bio by token Id * @param bioId Bio token Id * @return Bio DNA encoding */ function getBioDNA(uint256 bioId) external view returns (uint8[] memory); /** * @dev Gets DNA encoding of a Bios * @param from From Bio id * @param size Query size * @return Bio DNAs */ function getBioDNAs(uint256 from, uint256 size) external view returns (uint8[][] memory); /** * @dev Gets current Bio Price * @return Current Bio Price */ function getBioPrice() external view returns (uint256); /** * @dev Check if a Bio is already minted or not * @param bioDNA Bio DNA encoding * @return If Bio exist, or if similar Bio exist */ function isBioExist(uint8[] memory bioDNA) external view returns (bool); /** * @dev Mint Bio * @param bioDNA Bio DNA encoding */ function mintBio(uint8[] memory bioDNA) external payable; /** * @dev Get Bio listing information * @param bioId Bio token id * @return Bio Listing detail */ function getBioListing(uint256 bioId) external view returns (Listing memory); /** * @dev Get Bio listings * @param from From Bio id * @param size Query size * @return Bio Listings */ function getBioListings(uint256 from, uint256 size) external view returns (Listing[] memory); /** * @dev Get Bio bid information * @param bioId Bio token id * @return Bio bid detail */ function getBioBid(uint256 bioId) external view returns (Bid memory); /** * @dev Get Bio bids * @param from From Bio id * @param size Query size * @return Bio bids */ function getBioBids(uint256 from, uint256 size) external view returns (Bid[] memory); /** * @dev List a Bio for sale * @param bioId Bio token id * @param minValue Bio minimum value */ function listBioForSale(uint256 bioId, uint256 minValue) external; /** * @dev List a Bio for sale to a certain address * @param bioId Bio token id * @param minValue Bio minimum value * @param toAddress Address to sell this Bio to */ function listBioForSaleToAddress( uint256 bioId, uint256 minValue, address toAddress ) external; /** * @dev Delist a Bio * @param bioId Bio token id */ function delistBio(uint256 bioId) external; /** * @dev Buy a Bio * @param bioId Bio token id */ function buyBio(uint256 bioId) external payable; /** * @dev Put bid on a Bio * @param bioId Bio token id */ function enterBidForBio(uint256 bioId) external payable; /** * @dev Accept s bid for a Bio * @param bioId Bio token id */ function acceptBidForBio(uint256 bioId) external; /** * @dev Withdraw s bid for a Bio * @param bioId Bio token id */ function withdrawBidForBio(uint256 bioId) external; /** * @dev Returns service fee. * @return The first value is fraction, the second one is fraction base */ function serviceFee() external view returns (uint8, uint8); /** * @dev Get pending withdrawals * @param toAddress Address to check withdrawals */ function pendingWithdrawals(address toAddress) external view returns (uint256); /** * @dev Withdraw ether from this contract */ function withdraw() external; }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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 () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts may inherit from this and call {_registerInterface} to declare * their support of an interface. */ abstract contract ERC165 is IERC165 { /* * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7 */ bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7; /** * @dev Mapping of interface ids to whether or not it's supported. */ mapping(bytes4 => bool) private _supportedInterfaces; constructor () internal { // Derived contracts need only register support for their own interfaces, // we register support for ERC165 itself here _registerInterface(_INTERFACE_ID_ERC165); } /** * @dev See {IERC165-supportsInterface}. * * Time complexity O(1), guaranteed to always use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return _supportedInterfaces[interfaceId]; } /** * @dev Registers the contract as an implementer of the interface defined by * `interfaceId`. Support of the actual ERC165 interface is automatic and * registering its interface id is not required. * * See {IERC165-supportsInterface}. * * Requirements: * * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`). */ function _registerInterface(bytes4 interfaceId) internal virtual { require(interfaceId != 0xffffffff, "ERC165: invalid interface id"); _supportedInterfaces[interfaceId] = true; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; import "../../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.6.2 <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); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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.6.2 <0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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 GSN 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 payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Library for managing an enumerable variant of Solidity's * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`] * type. * * Maps have the following properties: * * - Entries are added, removed, and checked for existence in constant time * (O(1)). * - Entries are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableMap for EnumerableMap.UintToAddressMap; * * // Declare a set state variable * EnumerableMap.UintToAddressMap private myMap; * } * ``` * * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are * supported. */ library EnumerableMap { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Map type with // bytes32 keys and values. // The Map implementation uses private functions, and user-facing // implementations (such as Uint256ToAddressMap) are just wrappers around // the underlying Map. // This means that we can only create new EnumerableMaps for types that fit // in bytes32. struct MapEntry { bytes32 _key; bytes32 _value; } struct Map { // Storage of map keys and values MapEntry[] _entries; // Position of the entry defined by a key in the `entries` array, plus 1 // because index 0 means a key is not in the map. mapping (bytes32 => uint256) _indexes; } /** * @dev Adds a key-value pair to a map, or updates the value for an existing * key. O(1). * * Returns true if the key was added to the map, that is if it was not * already present. */ function _set(Map storage map, bytes32 key, bytes32 value) private returns (bool) { // We read and store the key's index to prevent multiple reads from the same storage slot uint256 keyIndex = map._indexes[key]; if (keyIndex == 0) { // Equivalent to !contains(map, key) map._entries.push(MapEntry({ _key: key, _value: value })); // The entry is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value map._indexes[key] = map._entries.length; return true; } else { map._entries[keyIndex - 1]._value = value; return false; } } /** * @dev Removes a key-value pair from a map. O(1). * * Returns true if the key was removed from the map, that is if it was present. */ function _remove(Map storage map, bytes32 key) private returns (bool) { // We read and store the key's index to prevent multiple reads from the same storage slot uint256 keyIndex = map._indexes[key]; if (keyIndex != 0) { // Equivalent to contains(map, key) // To delete a key-value pair from the _entries array in O(1), we swap the entry to delete with the last one // in the array, and then remove the last entry (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = keyIndex - 1; uint256 lastIndex = map._entries.length - 1; // When the entry to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. MapEntry storage lastEntry = map._entries[lastIndex]; // Move the last entry to the index where the entry to delete is map._entries[toDeleteIndex] = lastEntry; // Update the index for the moved entry map._indexes[lastEntry._key] = toDeleteIndex + 1; // All indexes are 1-based // Delete the slot where the moved entry was stored map._entries.pop(); // Delete the index for the deleted slot delete map._indexes[key]; return true; } else { return false; } } /** * @dev Returns true if the key is in the map. O(1). */ function _contains(Map storage map, bytes32 key) private view returns (bool) { return map._indexes[key] != 0; } /** * @dev Returns the number of key-value pairs in the map. O(1). */ function _length(Map storage map) private view returns (uint256) { return map._entries.length; } /** * @dev Returns the key-value pair stored at position `index` in the map. O(1). * * Note that there are no guarantees on the ordering of entries inside the * array, and it may change when more entries are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Map storage map, uint256 index) private view returns (bytes32, bytes32) { require(map._entries.length > index, "EnumerableMap: index out of bounds"); MapEntry storage entry = map._entries[index]; return (entry._key, entry._value); } /** * @dev Tries to returns the value associated with `key`. O(1). * Does not revert if `key` is not in the map. */ function _tryGet(Map storage map, bytes32 key) private view returns (bool, bytes32) { uint256 keyIndex = map._indexes[key]; if (keyIndex == 0) return (false, 0); // Equivalent to contains(map, key) return (true, map._entries[keyIndex - 1]._value); // All indexes are 1-based } /** * @dev Returns the value associated with `key`. O(1). * * Requirements: * * - `key` must be in the map. */ function _get(Map storage map, bytes32 key) private view returns (bytes32) { uint256 keyIndex = map._indexes[key]; require(keyIndex != 0, "EnumerableMap: nonexistent key"); // Equivalent to contains(map, key) return map._entries[keyIndex - 1]._value; // All indexes are 1-based } /** * @dev Same as {_get}, with a custom error message when `key` is not in the map. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {_tryGet}. */ function _get(Map storage map, bytes32 key, string memory errorMessage) private view returns (bytes32) { uint256 keyIndex = map._indexes[key]; require(keyIndex != 0, errorMessage); // Equivalent to contains(map, key) return map._entries[keyIndex - 1]._value; // All indexes are 1-based } // UintToAddressMap struct UintToAddressMap { Map _inner; } /** * @dev Adds a key-value pair to a map, or updates the value for an existing * key. O(1). * * Returns true if the key was added to the map, that is if it was not * already present. */ function set(UintToAddressMap storage map, uint256 key, address value) internal returns (bool) { return _set(map._inner, bytes32(key), bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the key was removed from the map, that is if it was present. */ function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) { return _remove(map._inner, bytes32(key)); } /** * @dev Returns true if the key is in the map. O(1). */ function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) { return _contains(map._inner, bytes32(key)); } /** * @dev Returns the number of elements in the map. O(1). */ function length(UintToAddressMap storage map) internal view returns (uint256) { return _length(map._inner); } /** * @dev Returns the element stored at position `index` in the set. O(1). * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) { (bytes32 key, bytes32 value) = _at(map._inner, index); return (uint256(key), address(uint160(uint256(value)))); } /** * @dev Tries to returns the value associated with `key`. O(1). * Does not revert if `key` is not in the map. * * _Available since v3.4._ */ function tryGet(UintToAddressMap storage map, uint256 key) internal view returns (bool, address) { (bool success, bytes32 value) = _tryGet(map._inner, bytes32(key)); return (success, address(uint160(uint256(value)))); } /** * @dev Returns the value associated with `key`. O(1). * * Requirements: * * - `key` must be in the map. */ function get(UintToAddressMap storage map, uint256 key) internal view returns (address) { return address(uint160(uint256(_get(map._inner, bytes32(key))))); } /** * @dev Same as {get}, with a custom error message when `key` is not in the map. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryGet}. */ function get(UintToAddressMap storage map, uint256 key, string memory errorMessage) internal view returns (address) { return address(uint160(uint256(_get(map._inner, bytes32(key), errorMessage)))); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping (bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { require(set._values.length > index, "EnumerableSet: index out of bounds"); return set._values[index]; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor () internal { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev String operations. */ library Strings { /** * @dev Converts a `uint256` to its ASCII `string` 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); uint256 index = digits - 1; temp = value; while (temp != 0) { buffer[index--] = bytes1(uint8(48 + temp % 10)); temp /= 10; } return string(buffer); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 999999 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"}],"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":"uint256","name":"bioId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":true,"internalType":"address","name":"fromAddress","type":"address"},{"indexed":true,"internalType":"address","name":"toAddress","type":"address"}],"name":"BioBidAccepted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"bioId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":true,"internalType":"address","name":"fromAddress","type":"address"}],"name":"BioBidEntered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"bioId","type":"uint256"},{"indexed":true,"internalType":"address","name":"fromAddress","type":"address"}],"name":"BioBidRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"bioId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":true,"internalType":"address","name":"fromAddress","type":"address"}],"name":"BioBidWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"bioId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":true,"internalType":"address","name":"fromAddress","type":"address"},{"indexed":true,"internalType":"address","name":"toAddress","type":"address"}],"name":"BioBought","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"bioId","type":"uint256"},{"indexed":true,"internalType":"address","name":"fromAddress","type":"address"}],"name":"BioDelisted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"bioId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"minValue","type":"uint256"},{"indexed":true,"internalType":"address","name":"fromAddress","type":"address"},{"indexed":true,"internalType":"address","name":"toAddress","type":"address"}],"name":"BioListed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"bioId","type":"uint256"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint8[]","name":"bioDNA","type":"uint8[]"},{"indexed":false,"internalType":"bytes32","name":"bioHash","type":"bytes32"}],"name":"BioMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_NFT_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SALE_START_TIMESTAMP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"bioId","type":"uint256"}],"name":"acceptBidForBio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"bioId","type":"uint256"}],"name":"buyBio","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint8","name":"feeFraction_","type":"uint8"},{"internalType":"uint8","name":"feeBase_","type":"uint8"}],"name":"changeSeriveFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"bioId","type":"uint256"}],"name":"delistBio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"bioId","type":"uint256"}],"name":"enterBidForBio","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"bioId","type":"uint256"}],"name":"getBioBid","outputs":[{"components":[{"internalType":"bool","name":"hasBid","type":"bool"},{"internalType":"uint256","name":"bioId","type":"uint256"},{"internalType":"address","name":"bidder","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"internalType":"struct ILife.Bid","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"from","type":"uint256"},{"internalType":"uint256","name":"size","type":"uint256"}],"name":"getBioBids","outputs":[{"components":[{"internalType":"bool","name":"hasBid","type":"bool"},{"internalType":"uint256","name":"bioId","type":"uint256"},{"internalType":"address","name":"bidder","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"internalType":"struct ILife.Bid[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"bioId","type":"uint256"}],"name":"getBioDNA","outputs":[{"internalType":"uint8[]","name":"","type":"uint8[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"from","type":"uint256"},{"internalType":"uint256","name":"size","type":"uint256"}],"name":"getBioDNAs","outputs":[{"internalType":"uint8[][]","name":"","type":"uint8[][]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"bioId","type":"uint256"}],"name":"getBioListing","outputs":[{"components":[{"internalType":"bool","name":"isForSale","type":"bool"},{"internalType":"uint256","name":"bioId","type":"uint256"},{"internalType":"address","name":"seller","type":"address"},{"internalType":"uint256","name":"minValue","type":"uint256"},{"internalType":"address","name":"onlySellTo","type":"address"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"internalType":"struct ILife.Listing","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"from","type":"uint256"},{"internalType":"uint256","name":"size","type":"uint256"}],"name":"getBioListings","outputs":[{"components":[{"internalType":"bool","name":"isForSale","type":"bool"},{"internalType":"uint256","name":"bioId","type":"uint256"},{"internalType":"address","name":"seller","type":"address"},{"internalType":"uint256","name":"minValue","type":"uint256"},{"internalType":"address","name":"onlySellTo","type":"address"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"internalType":"struct ILife.Listing[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBioPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8[]","name":"bioDNA","type":"uint8[]"}],"name":"isBioExist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"bioId","type":"uint256"},{"internalType":"uint256","name":"minValue","type":"uint256"}],"name":"listBioForSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"bioId","type":"uint256"},{"internalType":"uint256","name":"minValue","type":"uint256"},{"internalType":"address","name":"toAddress","type":"address"}],"name":"listBioForSaleToAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8[]","name":"bioDNA","type":"uint8[]"}],"name":"mintBio","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"toAddress","type":"address"}],"name":"pendingWithdrawals","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":"bioId","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":"bioId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"serviceFee","outputs":[{"internalType":"uint8","name":"","type":"uint8"},{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":"","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":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"bioId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"bioId","type":"uint256"}],"name":"withdrawBidForBio","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600d8054600160ff199091161761ff0019166164001790553480156200002957600080fd5b5060405162005e5238038062005e528339810160408190526200004c91620002ce565b8181620000606301ffc9a760e01b6200012c565b8151620000759060069060208501906200018b565b5080516200008b9060079060208401906200018b565b506200009e6380ac58cd60e01b6200012c565b620000b0635b5e139f60e01b6200012c565b620000c263780e9d6360e01b6200012c565b5060009050620000d162000187565b600880546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350506001600955506200036c565b6001600160e01b03198082161415620001625760405162461bcd60e51b8152600401620001599062000335565b60405180910390fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b3390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620001ce57805160ff1916838001178555620001fe565b82800160010185558215620001fe579182015b82811115620001fe578251825591602001919060010190620001e1565b506200020c92915062000210565b5090565b5b808211156200020c576000815560010162000211565b600082601f83011262000238578081fd5b81516001600160401b03808211156200024f578283fd5b6040516020601f8401601f191682018101838111838210171562000271578586fd5b806040525081945083825286818588010111156200028e57600080fd5b600092505b83831015620002b2578583018101518284018201529182019162000293565b83831115620002c45760008185840101525b5050505092915050565b60008060408385031215620002e1578182fd5b82516001600160401b0380821115620002f8578384fd5b620003068683870162000227565b935060208501519150808211156200031c578283fd5b506200032b8582860162000227565b9150509250929050565b6020808252601c908201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604082015260600190565b615ad6806200037c6000396000f3fe6080604052600436106102bb5760003560e01c80638abdf5aa1161016e578063d802115d116100cb578063ee9871781161007f578063f2fde38b11610064578063f2fde38b14610759578063f3f4370314610779578063f574b9d014610799576102bb565b8063ee987178146106ff578063f1d914c61461072c576102bb565b8063e43ad3f9116100b0578063e43ad3f91461069f578063e4bd48cb146106bf578063e985e9c5146106df576102bb565b8063d802115d1461066c578063df531bd91461068c576102bb565b806395d89b4111610122578063a6c57d3011610107578063a6c57d3014610617578063b5077f4414610637578063b88d4fde1461064c576102bb565b806395d89b41146105e2578063a22cb465146105f7576102bb565b80638da5cb5b116101535780638da5cb5b1461058b57806393e58ec4146105a0578063946807fd146105cd576102bb565b80638abdf5aa1461053b5780638b8b9d7c1461055e576102bb565b80632f745c591161021c5780636352211e116101d057806370a08231116101b557806370a08231146104f3578063715018a614610513578063875e403b14610528576102bb565b80636352211e146104be578063692ab1b5146104de576102bb565b806342842e0e1161020157806342842e0e1461045e5780634f6ccce71461047e5780635eef51ee1461049e576102bb565b80632f745c59146104295780633ccfd60b14610449576102bb565b806318160ddd11610273578063190df01611610258578063190df016146103d657806323b872dd146103e957806329ab16f814610409576102bb565b806318160ddd14610394578063189180b1146103b6576102bb565b8063081812fc116102a4578063081812fc14610318578063095ea7b3146103455780630eee166f14610367576102bb565b806301ffc9a7146102c057806306fdde03146102f6575b600080fd5b3480156102cc57600080fd5b506102e06102db36600461469d565b6107c6565b6040516102ed9190614a9a565b60405180910390f35b34801561030257600080fd5b5061030b6107fd565b6040516102ed9190614aa5565b34801561032457600080fd5b506103386103333660046146d5565b6108b2565b6040516102ed91906148ed565b34801561035157600080fd5b506103656103603660046145d6565b610925565b005b34801561037357600080fd5b506103876103823660046146d5565b610a25565b6040516102ed9190614a65565b3480156103a057600080fd5b506103a9610aa5565b6040516102ed9190615962565b3480156103c257600080fd5b506103656103d13660046146ed565b610ab6565b6103656103e43660046146d5565b610cb5565b3480156103f557600080fd5b50610365610404366004614487565b6111c4565b34801561041557600080fd5b506103656104243660046146d5565b611311565b34801561043557600080fd5b506103a96104443660046145d6565b611642565b34801561045557600080fd5b5061036561167a565b34801561046a57600080fd5b50610365610479366004614487565b611733565b34801561048a57600080fd5b506103a96104993660046146d5565b61174e565b3480156104aa57600080fd5b506103656104b9366004614746565b611764565b3480156104ca57600080fd5b506103386104d93660046146d5565b6118d3565b3480156104ea57600080fd5b506103a96118fb565b3480156104ff57600080fd5b506103a961050e366004614438565b611a5a565b34801561051f57600080fd5b50610365611ad7565b6103656105363660046146d5565b611bb9565b34801561054757600080fd5b50610550611f3a565b6040516102ed92919061596b565b34801561056a57600080fd5b5061057e6105793660046146d5565b611f4d565b6040516102ed9190615954565b34801561059757600080fd5b50610338611fce565b3480156105ac57600080fd5b506105c06105bb3660046146d5565b611fea565b6040516102ed9190615946565b3480156105d957600080fd5b506103a961205c565b3480156105ee57600080fd5b5061030b612064565b34801561060357600080fd5b5061036561061236600461459b565b6120e3565b34801561062357600080fd5b506103656106323660046146d5565b61221d565b34801561064357600080fd5b506103a96122ca565b34801561065857600080fd5b506103656106673660046144c7565b6122d0565b34801561067857600080fd5b5061036561068736600461470e565b61241f565b61036561069a366004614600565b6126a6565b3480156106ab57600080fd5b506103656106ba3660046146d5565b612a2e565b3480156106cb57600080fd5b506102e06106da366004614600565b612c07565b3480156106eb57600080fd5b506102e06106fa366004614453565b612c68565b34801561070b57600080fd5b5061071f61071a3660046146ed565b612ca3565b6040516102ed9190614957565b34801561073857600080fd5b5061074c6107473660046146ed565b612de6565b6040516102ed9190614a23565b34801561076557600080fd5b50610365610774366004614438565b612f26565b34801561078557600080fd5b506103a9610794366004614438565b613074565b3480156107a557600080fd5b506107b96107b43660046146ed565b61309c565b6040516102ed91906149d5565b7fffffffff000000000000000000000000000000000000000000000000000000001660009081526020819052604090205460ff1690565b60068054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108a75780601f1061087c576101008083540402835291602001916108a7565b820191906000526020600020905b81548152906001019060200180831161088a57829003601f168201915b505050505090505b90565b60006108bd826131d4565b6108fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390615462565b60405180910390fd5b5060009081526004602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610930826118d3565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610998576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061561c565b8073ffffffffffffffffffffffffffffffffffffffff166109b76131e1565b73ffffffffffffffffffffffffffffffffffffffff1614806109e057506109e0816106fa6131e1565b610a16576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061515a565b610a2083836131e5565b505050565b6000818152600b6020908152604091829020805483518184028101840190945280845260609392830182828015610a9957602002820191906000526020600020906000905b825461010083900a900460ff16815260206001928301818104948501949093039092029101808411610a6a5790505b50505050509050919050565b6000610ab16002613285565b905090565b612710610ac1610aa5565b1015610af9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906155ae565b81610b02610aa5565b8110610b3a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061542b565b8233610b45826118d3565b73ffffffffffffffffffffffffffffffffffffffff1614610b92576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614ccf565b6040805160c0810182526001808252602080830188815233848601818152606086018a81526000608088018181524260a08a019081528e8352600e909752898220985189549015157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00909116178955945196880196909655905160028701805473ffffffffffffffffffffffffffffffffffffffff9283167fffffffffffffffffffffffff000000000000000000000000000000000000000091821617909155915160038801559251600487018054919094169116179091559051600590930192909255915186907fa7a584e7624acac024b64f75bf17052ca8d2b451fa4b0272491f763e499f1baf90610ca7908890615962565b60405180910390a450505050565b612710610cc0610aa5565b1015610cf8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906155ae565b80610d01610aa5565b8110610d39576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061542b565b60026009541415610d76576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061586c565b6002600955610d83614284565b506000828152600e6020908152604091829020825160c081018452815460ff161515808252600183015493820193909352600282015473ffffffffffffffffffffffffffffffffffffffff9081169482019490945260038201546060820152600482015490931660808401526005015460a0830152610e2e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906155e5565b608081015173ffffffffffffffffffffffffffffffffffffffff161580610e6e5750608081015173ffffffffffffffffffffffffffffffffffffffff1633145b610ea4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906156b0565b806040015173ffffffffffffffffffffffffffffffffffffffff16610ec8846118d3565b73ffffffffffffffffffffffffffffffffffffffff1614610f15576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390615214565b610f1e836118d3565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610f83576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390615911565b600d546060820151600091610fad9160ff6101008304811692610fa7929116613290565b906132e4565b905080826060015101341015610fef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614f41565b6000610ffb3483613330565b905061100f611009866118d3565b82613372565b61104c82600a600061101f611fce565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002054906133ef565b600a6000611058611fce565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff16836040015173ffffffffffffffffffffffffffffffffffffffff16867fb6f21281116e004e8f1dae8d7aac53d87a85c152f36874873ecb704e31f46779846040516110f89190615962565b60405180910390a461112361110c866118d3565b33876040518060200160405280600081525061342e565b61112c85613481565b6111346142e8565b506000858152600f6020908152604091829020825160a081018452815460ff1615158152600182015492810192909252600281015473ffffffffffffffffffffffffffffffffffffffff1692820183905260038101546060830152600401546080820152903314156111b7576111ae338260600151613372565b6111b7866135da565b5050600160095550505050565b60026009541415611201576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061586c565b60026009556112176112116131e1565b82613725565b61124d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061570d565b6112588383836137f8565b6000818152600e602052604090206002015473ffffffffffffffffffffffffffffffffffffffff848116911614156112935761129381613481565b6000818152600f602052604090206002015473ffffffffffffffffffffffffffffffffffffffff83811691161415611307576000818152600f6020526040902060028101546003909101546112fe9173ffffffffffffffffffffffffffffffffffffffff1690613372565b611307816135da565b5050600160095550565b61271061131c610aa5565b1015611354576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906155ae565b8061135d610aa5565b8110611395576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061542b565b81336113a0826118d3565b73ffffffffffffffffffffffffffffffffffffffff16146113ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614ccf565b6002600954141561142a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061586c565b60026009556114376142e8565b506000838152600f6020908152604091829020825160a081018452815460ff16158015808352600184015494830194909452600283015473ffffffffffffffffffffffffffffffffffffffff1694820194909452600382015460608201526004909101546080820152916114af575060008160600151115b6114e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906154f4565b600d54606082015160009161150f9160ff808316610100909304811683011691610fa79190613290565b9050600061152a82846060015161333090919063ffffffff16565b90506115363382613372565b61154682600a600061101f611fce565b600a6000611552611fce565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506115af338460400151886040518060200160405280600081525061342e565b826040015173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16877f6c0f88fbd661e3830b0dbcc98bc114ff15a9c0c3097587762abd618ab9a9920c846040516116119190615962565b60405180910390a4611622866135da565b6000868152600e602052604090205460ff16156111b7576111b786613481565b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604081206116719083613995565b90505b92915050565b600260095414156116b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061586c565b6002600955336000908152600a6020526040902054611702576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906152a8565b336000818152600a602052604090205461171c9190613372565b336000908152600a60205260408120556001600955565b610a20838383604051806020016040528060008152506122d0565b60008061175c6002846139a1565b509392505050565b61176c6131e1565b73ffffffffffffffffffffffffffffffffffffffff1661178a611fce565b73ffffffffffffffffffffffffffffffffffffffff16146117d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906154bf565b8060ff168260ff161115611817576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906157a1565b60008160ff168360ff166103e80261ffff168161183057fe5b0461ffff1690506019811115611872576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906150fd565b50600d805460ff928316610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff949093167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff009091161792909216179055565b600061167482604051806060016040528060298152602001615a7860299139600291906139bd565b6000636055f8d842101561193b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390615835565b612710611946610aa5565b1061197d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390615679565b6000611987610aa5565b90506126ac8111156119a457678ac7230489e800009150506108af565b61251c8111156119bf57671bc16d674ec800009150506108af565b6121348111156119da57670de0b6b3a76400009150506108af565b6111948111156119f557670b1a2bc2ec5000009150506108af565b6109c4811115611a1057670853a0d2313c00009150506108af565b6103e8811115611a2b5767058d15e1762800009150506108af565b6064811115611a45576702c68af0bb1400009150506108af565b67016345785d8a00009150506108af565b5090565b600073ffffffffffffffffffffffffffffffffffffffff8216611aa9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906151b7565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260016020526040902061167490613285565b611adf6131e1565b73ffffffffffffffffffffffffffffffffffffffff16611afd611fce565b73ffffffffffffffffffffffffffffffffffffffff1614611b4a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906154bf565b60085460405160009173ffffffffffffffffffffffffffffffffffffffff16907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600880547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b612710611bc4610aa5565b1015611bfc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906155ae565b80611c05610aa5565b8110611c3d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061542b565b60026009541415611c7a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061586c565b60026009556000611c8a836118d3565b73ffffffffffffffffffffffffffffffffffffffff161415611cd8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614b4a565b33611ce2836118d3565b73ffffffffffffffffffffffffffffffffffffffff161415611d30576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614ab8565b34611d67576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390615032565b611d6f6142e8565b506000828152600f6020908152604091829020825160a081018452815460ff1615158152600182015492810192909252600281015473ffffffffffffffffffffffffffffffffffffffff16928201929092526003820154606082018190526004909201546080820152903411611e11576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390615371565b606081015115611e2d57611e2d81604001518260600151613372565b6040805160a08101825260018082526020808301878152338486018181523460608701818152426080890190815260008d8152600f90975295899020975188547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016901515178855935195870195909555516002860180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9092169190911790559051600385015590516004909301929092559151909185917fdc9b8e354a80160559945b618a792a117f9b4da69e87053005fb7b6ffa3b02a091611f2891615962565b60405180910390a35050600160095550565b600d5460ff808216916101009004169091565b611f55614284565b506000908152600e6020908152604091829020825160c081018452815460ff1615158152600182015492810192909252600281015473ffffffffffffffffffffffffffffffffffffffff90811693830193909352600381015460608301526004810154909216608082015260059091015460a082015290565b60085473ffffffffffffffffffffffffffffffffffffffff1690565b611ff26142e8565b506000908152600f6020908152604091829020825160a081018452815460ff1615158152600182015492810192909252600281015473ffffffffffffffffffffffffffffffffffffffff169282019290925260038201546060820152600490910154608082015290565b636055f8d881565b60078054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108a75780601f1061087c576101008083540402835291602001916108a7565b6120eb6131e1565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612150576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614e3f565b806005600061215d6131e1565b73ffffffffffffffffffffffffffffffffffffffff90811682526020808301939093526040918201600090812091871680825291909352912080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016921515929092179091556121cc6131e1565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516122119190614a9a565b60405180910390a35050565b8033612228826118d3565b73ffffffffffffffffffffffffffffffffffffffff1614612275576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614ccf565b6000828152600e602052604090205460ff166122bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906155e5565b6122c682613481565b5050565b61271081565b6002600954141561230d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061586c565b600260095561232361231d6131e1565b83613725565b612359576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061570d565b6123658484848461342e565b6000828152600e602052604090206002015473ffffffffffffffffffffffffffffffffffffffff858116911614156123a0576123a082613481565b6000828152600f602052604090206002015473ffffffffffffffffffffffffffffffffffffffff84811691161415612414576000828152600f60205260409020600281015460039091015461240b9173ffffffffffffffffffffffffffffffffffffffff1690613372565b612414826135da565b505060016009555050565b61271061242a610aa5565b1015612462576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906155ae565b8261246b610aa5565b81106124a3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061542b565b83336124ae826118d3565b73ffffffffffffffffffffffffffffffffffffffff16146124fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614ccf565b6040518060c001604052806001151581526020018681526020013373ffffffffffffffffffffffffffffffffffffffff1681526020018581526020018473ffffffffffffffffffffffffffffffffffffffff16815260200142815250600e600087815260200190815260200160002060008201518160000160006101000a81548160ff0219169083151502179055506020820151816001015560408201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506060820151816003015560808201518160040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060a082015181600501559050508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16867fa7a584e7624acac024b64f75bf17052ca8d2b451fa4b0272491f763e499f1baf876040516126979190615962565b60405180910390a45050505050565b6127106126b1610aa5565b106126e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390615679565b6127106126fe60016126f8610aa5565b906133ef565b1115612736576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614d3d565b3461273f6118fb565b14612776576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614e76565b6000816040516020016127899190614898565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815291815281516020928301206000818152600c90935291205490915060ff1615612809576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614dab565b60008060005b84518160ff16101561288b57612847858260ff168151811061282d57fe5b602002602001015160ff16836133ef90919063ffffffff16565b91506001808216141561288357612880858260ff168151811061286657fe5b602002602001015160ff16846133ef90919063ffffffff16565b92505b60010161280f565b506101218111156128c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614bb8565b600582101580156128da575060308211155b612910576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906152df565b600061291a610aa5565b6000858152600c6020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055838352600b8252909120875192935061297192909188019061432f565b5061297c33826139d4565b61298c34600a600061101f611fce565b600a6000612998611fce565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff16817f7615a5553a077d849f3e45b912c5dd22a4ea8cdde52766815317ed46f4a24add8787604051612a1f929190614a78565b60405180910390a35050505050565b612710612a39610aa5565b1015612a71576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906155ae565b80612a7a610aa5565b8110612ab2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061542b565b60026009541415612aef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061586c565b6002600955612afc6142e8565b506000828152600f6020908152604091829020825160a081018452815460ff1615158152600182015492810192909252600281015473ffffffffffffffffffffffffffffffffffffffff1692820183905260038101546060830152600401546080820152903314612b99576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906157d8565b612ba7338260600151613372565b806040015173ffffffffffffffffffffffffffffffffffffffff16837f17e872a21f557a840a224a0ae811e787e6f1fffc01ff734c770a5ffec7f36f738360600151604051612bf69190615962565b60405180910390a3611307836135da565b60008082604051602001612c1b9190614898565b604080518083037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001815291815281516020928301206000908152600c90925290205460ff169392505050565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260056020908152604080832093909416825291909152205460ff1690565b6060828201612cb0610aa5565b811115612ce9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614b81565b60608367ffffffffffffffff81118015612d0257600080fd5b50604051908082528060200260200182016040528015612d3657816020015b6060815260200190600190039081612d215790505b50905060005b84811015612ddd578086016000908152600b602090815260409182902080548351818402810184019094528084529091830182828015612db957602002820191906000526020600020906000905b825461010083900a900460ff16815260206001928301818104948501949093039092029101808411612d8a5790505b5050505050828281518110612dca57fe5b6020908102919091010152600101612d3c565b50949350505050565b6060828201612df3610aa5565b811115612e2c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906158a3565b60608367ffffffffffffffff81118015612e4557600080fd5b50604051908082528060200260200182016040528015612e7f57816020015b612e6c614284565b815260200190600190039081612e645790505b50905060005b84811015612ddd578086016000908152600e6020908152604091829020825160c081018452815460ff1615158152600182015492810192909252600281015473ffffffffffffffffffffffffffffffffffffffff90811693830193909352600381015460608301526004810154909216608082015260059091015460a08201528251839083908110612f1357fe5b6020908102919091010152600101612e85565b612f2e6131e1565b73ffffffffffffffffffffffffffffffffffffffff16612f4c611fce565b73ffffffffffffffffffffffffffffffffffffffff1614612f99576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906154bf565b73ffffffffffffffffffffffffffffffffffffffff8116612fe6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614c72565b60085460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600880547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b73ffffffffffffffffffffffffffffffffffffffff166000908152600a602052604090205490565b60608282016130a9610aa5565b8111156130e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906158da565b60608367ffffffffffffffff811180156130fb57600080fd5b5060405190808252806020026020018201604052801561313557816020015b6131226142e8565b81526020019060019003908161311a5790505b50905060005b613143610aa5565b811015612ddd578086016000908152600f6020908152604091829020825160a081018452815460ff1615158152600182015492810192909252600281015473ffffffffffffffffffffffffffffffffffffffff169282019290925260038201546060820152600490910154608082015282518390839081106131c157fe5b602090810291909101015260010161313b565b60006116746002836139ee565b3390565b600081815260046020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8416908117909155819061323f826118d3565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611674826139fa565b60008261329f57506000611674565b828202828482816132ac57fe5b0414611671576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906153ce565b600080821161331f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906150c6565b81838161332857fe5b049392505050565b60008282111561336c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614ead565b50900390565b6133918273ffffffffffffffffffffffffffffffffffffffff166139fe565b80156133b3575073ffffffffffffffffffffffffffffffffffffffff82163314155b156133e55773ffffffffffffffffffffffffffffffffffffffff82166000908152600a602052604090208190556122c6565b6122c68282613a04565b600082820183811015611671576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614d74565b6134398484846137f8565b61344584848484613ae1565b61347b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614c15565b50505050565b61271061348c610aa5565b10156134c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906155ae565b806134cd610aa5565b8110613505576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061542b565b6000828152600e602052604080822060020154905173ffffffffffffffffffffffffffffffffffffffff9091169184917f7d28b5b2b1d0333cb7130071c3b48ef217bc23e449130b4b88c2fdf44ed75b609190a3506000908152600e6020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168155600181018290556002810180547fffffffffffffffffffffffff000000000000000000000000000000000000000090811690915560038201839055600482018054909116905560050155565b6127106135e5610aa5565b101561361d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906155ae565b80613626610aa5565b811061365e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061542b565b6000828152600f602052604080822060020154905173ffffffffffffffffffffffffffffffffffffffff9091169184917fdca36ac865d5deb970c0388e8cb58447a3a0fc86fccc2518c7046d185893c3c19190a3506000908152600f6020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168155600181018290556002810180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690556003810182905560040155565b6000613730826131d4565b613766576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390615069565b6000613771836118d3565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806137e057508373ffffffffffffffffffffffffffffffffffffffff166137c8846108b2565b73ffffffffffffffffffffffffffffffffffffffff16145b806137f057506137f08185612c68565b949350505050565b8273ffffffffffffffffffffffffffffffffffffffff16613818826118d3565b73ffffffffffffffffffffffffffffffffffffffff1614613865576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390615551565b73ffffffffffffffffffffffffffffffffffffffff82166138b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614de2565b6138bd838383610a20565b6138c86000826131e5565b73ffffffffffffffffffffffffffffffffffffffff831660009081526001602052604090206138f79082613c4e565b5073ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604090206139279082613c5a565b5061393460028284613c66565b50808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60006116718383613c89565b60008080806139b08686613ce8565b9097909650945050505050565b60006139ca848484613d5e565b90505b9392505050565b6122c6828260405180602001604052806000815250613dd7565b60006116718383613e24565b5490565b3b151590565b80471015613a3e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614f9e565b60008273ffffffffffffffffffffffffffffffffffffffff1682604051613a64906108af565b60006040518083038185875af1925050503d8060008114613aa1576040519150601f19603f3d011682016040523d82523d6000602084013e613aa6565b606091505b5050905080610a20576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614ee4565b6000613b028473ffffffffffffffffffffffffffffffffffffffff166139fe565b613b0e575060016137f0565b6060613be67f150b7a0200000000000000000000000000000000000000000000000000000000613b3c6131e1565b888787604051602401613b52949392919061490e565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051806060016040528060328152602001615a466032913973ffffffffffffffffffffffffffffffffffffffff88169190613e3c565b9050600081806020019051810190613bfe91906146b9565b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001492505050949350505050565b60006116718383613e4b565b60006116718383613f2f565b60006139ca848473ffffffffffffffffffffffffffffffffffffffff8516613f79565b81546000908210613cc6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614aed565b826000018281548110613cd557fe5b9060005260206000200154905092915050565b815460009081908310613d27576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061524b565b6000846000018481548110613d3857fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b60008281526001840160205260408120548281613da8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39190614aa5565b50846000016001820381548110613dbb57fe5b9060005260206000209060020201600101549150509392505050565b613de18383614010565b613dee6000848484613ae1565b610a20576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614c15565b60009081526001919091016020526040902054151590565b60606139ca848460008561412f565b60008181526001830160205260408120548015613f255783547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8083019190810190600090879083908110613e9c57fe5b9060005260206000200154905080876000018481548110613eb957fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080613ee957fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050611674565b6000915050611674565b6000613f3b8383613e24565b613f7157508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611674565b506000611674565b600082815260018401602052604081205480613fde5750506040805180820182528381526020808201848152865460018181018955600089815284812095516002909302909501918255915190820155865486845281880190925292909120556139cd565b82856000016001830381548110613ff157fe5b90600052602060002090600202016001018190555060009150506139cd565b73ffffffffffffffffffffffffffffffffffffffff821661405d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061533c565b614066816131d4565b1561409d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614d06565b6140a960008383610a20565b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604090206140d89082613c5a565b506140e560028284613c66565b50604051819073ffffffffffffffffffffffffffffffffffffffff8416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60608247101561416b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614fd5565b614174856139fe565b6141aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061576a565b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040516141d491906148d1565b60006040518083038185875af1925050503d8060008114614211576040519150601f19603f3d011682016040523d82523d6000602084013e614216565b606091505b5091509150614226828286614231565b979650505050505050565b606083156142405750816139cd565b8251156142505782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39190614aa5565b6040518060c0016040528060001515815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff16815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600081525090565b6040518060a0016040528060001515815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff16815260200160008152602001600081525090565b82805482825590600052602060002090601f016020900481019282156143c55791602002820160005b8382111561439657835183826101000a81548160ff021916908360ff1602179055509260200192600101602081600001049283019260010302614358565b80156143c35782816101000a81549060ff0219169055600101602081600001049283019260010302614396565b505b50611a569291505b80821115611a565780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001681556001016143cd565b803573ffffffffffffffffffffffffffffffffffffffff8116811461167457600080fd5b803560ff8116811461167457600080fd5b600060208284031215614449578081fd5b6116718383614403565b60008060408385031215614465578081fd5b61446f8484614403565b915061447e8460208501614403565b90509250929050565b60008060006060848603121561449b578081fd5b83356144a6816159f2565b925060208401356144b6816159f2565b929592945050506040919091013590565b600080600080608085870312156144dc578081fd5b6144e68686614403565b935060206144f687828801614403565b935060408601359250606086013567ffffffffffffffff80821115614519578384fd5b818801915088601f83011261452c578384fd5b81358181111561453a578485fd5b61456a847fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160161597f565b9150808252898482850101111561457f578485fd5b8084840185840137810190920192909252939692955090935050565b600080604083850312156145ad578182fd5b6145b78484614403565b9150602083013580151581146145cb578182fd5b809150509250929050565b600080604083850312156145e8578182fd5b6145f28484614403565b946020939093013593505050565b60006020808385031215614612578182fd5b823567ffffffffffffffff811115614628578283fd5b8301601f81018513614638578283fd5b803561464b614646826159a6565b61597f565b8181528381019083850185840285018601891015614667578687fd5b8694505b838510156146915761467d8982614427565b83526001949094019391850191850161466b565b50979650505050505050565b6000602082840312156146ae578081fd5b813561167181615a17565b6000602082840312156146ca578081fd5b815161167181615a17565b6000602082840312156146e6578081fd5b5035919050565b600080604083850312156146ff578182fd5b50508035926020909101359150565b600080600060608486031215614722578283fd5b8335925060208401359150604084013561473b816159f2565b809150509250925092565b60008060408385031215614758578182fd5b6147628484614427565b915061447e8460208501614427565b6000815180845260208085019450808401835b838110156147a357815160ff1687529582019590820190600101614784565b509495945050505050565b600081518084526147c68160208601602086016159c6565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b8051151582526020810151602083015273ffffffffffffffffffffffffffffffffffffffff604082015116604083015260608101516060830152608081015160808301525050565b80511515825260208101516020830152604081015173ffffffffffffffffffffffffffffffffffffffff808216604085015260608301516060850152806080840151166080850152505060a081015160a08301525050565b815160009082906020808601845b838110156148c557815160ff16855293820193908201906001016148a6565b50929695505050505050565b600082516148e38184602087016159c6565b9190910192915050565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b600073ffffffffffffffffffffffffffffffffffffffff80871683528086166020840152508360408301526080606083015261494d60808301846147ae565b9695505050505050565b6000602080830181845280855180835260408601915060408482028701019250838701855b828110156149c8577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc08886030184526149b6858351614771565b9450928501929085019060010161497c565b5092979650505050505050565b6020808252825182820181905260009190848201906040850190845b81811015614a1757614a048385516147f8565b9284019260a092909201916001016149f1565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015614a1757614a52838551614840565b9284019260c09290920191600101614a3f565b6000602082526116716020830184614771565b600060408252614a8b6040830185614771565b90508260208301529392505050565b901515815260200190565b60006020825261167160208301846147ae565b6020808252818101527f4f776e6572206f662042696f20646f65736e2774206e65656420746f20626964604082015260600190565b60208082526022908201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e60408201527f6473000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526017908201527f546869732042696f20686173206265656e206275726e74000000000000000000604082015260600190565b60208082526018908201527f52657175657374696e6720746f6f206d616e792042696f730000000000000000604082015260600190565b6020808252602b908201527f546f74616c2063656c6c20636f756e742073686f756c6420626520736d616c6c60408201527f6572207468616e20323839000000000000000000000000000000000000000000606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b60208082526019908201527f4e6f7420746865206f776e6572206f6620746869732042696f00000000000000604082015260600190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526016908201527f45786365656473204d41585f4e46545f535550504c5900000000000000000000604082015260600190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b60208082526013908201527f42696f20616c7265616479206578697374656400000000000000000000000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460408201527f7265737300000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252601f908201527f45746865722076616c75652073656e74206973206e6f7420636f727265637400604082015260600190565b6020808252601e908201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604082015260600190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260408201527f6563697069656e74206d61792068617665207265766572746564000000000000606082015260800190565b6020808252602c908201527f5468652076616c75652073656e642069732062656c6f772073616c652070726960408201527f636520706c757320666565730000000000000000000000000000000000000000606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60408201527f722063616c6c0000000000000000000000000000000000000000000000000000606082015260800190565b60208082526018908201527f5468652062696420707269636520697320746f6f206c6f770000000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606082015260800190565b6020808252601a908201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604082015260600190565b6020808252602b908201527f417474656d707420746f207365742070657263656e746167652068696768657260408201527f207468616e20322e35252e000000000000000000000000000000000000000000606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560408201527f726f206164647265737300000000000000000000000000000000000000000000606082015260800190565b6020808252601c908201527f546869732073656c6c6572206973206e6f7420746865206f776e657200000000604082015260600190565b60208082526022908201527f456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e60408201527f6473000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601c908201527f5468657265206973206e6f7468696e6720746f20776974686472617700000000604082015260600190565b60208082526027908201527f4163746976652063656c6c20636f756e74206f662042696f206973206e6f742060408201527f616c6c6f77656400000000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f54686520626964207072696365206973206e6f20686967686572207468616e2060408201527f6578697374696e67206f6e650000000000000000000000000000000000000000606082015260800190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60408201527f7700000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526011908201527f42696f20646f65736e2774206578697374000000000000000000000000000000604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526021908201527f546869732042696f20646f65736e2774206861766520612076616c696420626960408201527f6400000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606082015260800190565b60208082526014908201527f42696f2073616c65207374696c6c20676f696e67000000000000000000000000604082015260600190565b60208082526013908201527f42696f206973206e6f7420666f722073616c6500000000000000000000000000604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560408201527f7200000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526016908201527f53616c652068617320616c726561647920656e64656400000000000000000000604082015260600190565b60208082526022908201527f42696f206973206e6f742073656c6c696e6720746f207468697320616464726560408201527f7373000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252601b908201527f466565206672616374696f6e20657863656564656420626173652e0000000000604082015260600190565b60208082526024908201527f54686973206164647265737320646f65736e277420686176652061637469766560408201527f2062696400000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526014908201527f53616c6520686173206e6f742073746172746564000000000000000000000000604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252601c908201527f52657175657374696e6720746f6f206d616e79206c697374696e677300000000604082015260600190565b60208082526018908201527f52657175657374696e6720746f6f206d616e7920626964730000000000000000604082015260600190565b6020808252818101527f546869732042696f2062656c6f6e677320746f20746869732061646472657373604082015260600190565b60a0810161167482846147f8565b60c081016116748284614840565b90815260200190565b60ff92831681529116602082015260400190565b60405181810167ffffffffffffffff8111828210171561599e57600080fd5b604052919050565b600067ffffffffffffffff8211156159bc578081fd5b5060209081020190565b60005b838110156159e15781810151838201526020016159c9565b8381111561347b5750506000910152565b73ffffffffffffffffffffffffffffffffffffffff81168114615a1457600080fd5b50565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114615a1457600080fdfe4552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656ea2646970667358221220a9f3fe8bd6a383f02f5143bb0b87bd332a1e841169ad316eddee5578db47d9ad64736f6c634300060c00330000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000084c696665204e4654000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000342494f0000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102bb5760003560e01c80638abdf5aa1161016e578063d802115d116100cb578063ee9871781161007f578063f2fde38b11610064578063f2fde38b14610759578063f3f4370314610779578063f574b9d014610799576102bb565b8063ee987178146106ff578063f1d914c61461072c576102bb565b8063e43ad3f9116100b0578063e43ad3f91461069f578063e4bd48cb146106bf578063e985e9c5146106df576102bb565b8063d802115d1461066c578063df531bd91461068c576102bb565b806395d89b4111610122578063a6c57d3011610107578063a6c57d3014610617578063b5077f4414610637578063b88d4fde1461064c576102bb565b806395d89b41146105e2578063a22cb465146105f7576102bb565b80638da5cb5b116101535780638da5cb5b1461058b57806393e58ec4146105a0578063946807fd146105cd576102bb565b80638abdf5aa1461053b5780638b8b9d7c1461055e576102bb565b80632f745c591161021c5780636352211e116101d057806370a08231116101b557806370a08231146104f3578063715018a614610513578063875e403b14610528576102bb565b80636352211e146104be578063692ab1b5146104de576102bb565b806342842e0e1161020157806342842e0e1461045e5780634f6ccce71461047e5780635eef51ee1461049e576102bb565b80632f745c59146104295780633ccfd60b14610449576102bb565b806318160ddd11610273578063190df01611610258578063190df016146103d657806323b872dd146103e957806329ab16f814610409576102bb565b806318160ddd14610394578063189180b1146103b6576102bb565b8063081812fc116102a4578063081812fc14610318578063095ea7b3146103455780630eee166f14610367576102bb565b806301ffc9a7146102c057806306fdde03146102f6575b600080fd5b3480156102cc57600080fd5b506102e06102db36600461469d565b6107c6565b6040516102ed9190614a9a565b60405180910390f35b34801561030257600080fd5b5061030b6107fd565b6040516102ed9190614aa5565b34801561032457600080fd5b506103386103333660046146d5565b6108b2565b6040516102ed91906148ed565b34801561035157600080fd5b506103656103603660046145d6565b610925565b005b34801561037357600080fd5b506103876103823660046146d5565b610a25565b6040516102ed9190614a65565b3480156103a057600080fd5b506103a9610aa5565b6040516102ed9190615962565b3480156103c257600080fd5b506103656103d13660046146ed565b610ab6565b6103656103e43660046146d5565b610cb5565b3480156103f557600080fd5b50610365610404366004614487565b6111c4565b34801561041557600080fd5b506103656104243660046146d5565b611311565b34801561043557600080fd5b506103a96104443660046145d6565b611642565b34801561045557600080fd5b5061036561167a565b34801561046a57600080fd5b50610365610479366004614487565b611733565b34801561048a57600080fd5b506103a96104993660046146d5565b61174e565b3480156104aa57600080fd5b506103656104b9366004614746565b611764565b3480156104ca57600080fd5b506103386104d93660046146d5565b6118d3565b3480156104ea57600080fd5b506103a96118fb565b3480156104ff57600080fd5b506103a961050e366004614438565b611a5a565b34801561051f57600080fd5b50610365611ad7565b6103656105363660046146d5565b611bb9565b34801561054757600080fd5b50610550611f3a565b6040516102ed92919061596b565b34801561056a57600080fd5b5061057e6105793660046146d5565b611f4d565b6040516102ed9190615954565b34801561059757600080fd5b50610338611fce565b3480156105ac57600080fd5b506105c06105bb3660046146d5565b611fea565b6040516102ed9190615946565b3480156105d957600080fd5b506103a961205c565b3480156105ee57600080fd5b5061030b612064565b34801561060357600080fd5b5061036561061236600461459b565b6120e3565b34801561062357600080fd5b506103656106323660046146d5565b61221d565b34801561064357600080fd5b506103a96122ca565b34801561065857600080fd5b506103656106673660046144c7565b6122d0565b34801561067857600080fd5b5061036561068736600461470e565b61241f565b61036561069a366004614600565b6126a6565b3480156106ab57600080fd5b506103656106ba3660046146d5565b612a2e565b3480156106cb57600080fd5b506102e06106da366004614600565b612c07565b3480156106eb57600080fd5b506102e06106fa366004614453565b612c68565b34801561070b57600080fd5b5061071f61071a3660046146ed565b612ca3565b6040516102ed9190614957565b34801561073857600080fd5b5061074c6107473660046146ed565b612de6565b6040516102ed9190614a23565b34801561076557600080fd5b50610365610774366004614438565b612f26565b34801561078557600080fd5b506103a9610794366004614438565b613074565b3480156107a557600080fd5b506107b96107b43660046146ed565b61309c565b6040516102ed91906149d5565b7fffffffff000000000000000000000000000000000000000000000000000000001660009081526020819052604090205460ff1690565b60068054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108a75780601f1061087c576101008083540402835291602001916108a7565b820191906000526020600020905b81548152906001019060200180831161088a57829003601f168201915b505050505090505b90565b60006108bd826131d4565b6108fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390615462565b60405180910390fd5b5060009081526004602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610930826118d3565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610998576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061561c565b8073ffffffffffffffffffffffffffffffffffffffff166109b76131e1565b73ffffffffffffffffffffffffffffffffffffffff1614806109e057506109e0816106fa6131e1565b610a16576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061515a565b610a2083836131e5565b505050565b6000818152600b6020908152604091829020805483518184028101840190945280845260609392830182828015610a9957602002820191906000526020600020906000905b825461010083900a900460ff16815260206001928301818104948501949093039092029101808411610a6a5790505b50505050509050919050565b6000610ab16002613285565b905090565b612710610ac1610aa5565b1015610af9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906155ae565b81610b02610aa5565b8110610b3a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061542b565b8233610b45826118d3565b73ffffffffffffffffffffffffffffffffffffffff1614610b92576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614ccf565b6040805160c0810182526001808252602080830188815233848601818152606086018a81526000608088018181524260a08a019081528e8352600e909752898220985189549015157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00909116178955945196880196909655905160028701805473ffffffffffffffffffffffffffffffffffffffff9283167fffffffffffffffffffffffff000000000000000000000000000000000000000091821617909155915160038801559251600487018054919094169116179091559051600590930192909255915186907fa7a584e7624acac024b64f75bf17052ca8d2b451fa4b0272491f763e499f1baf90610ca7908890615962565b60405180910390a450505050565b612710610cc0610aa5565b1015610cf8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906155ae565b80610d01610aa5565b8110610d39576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061542b565b60026009541415610d76576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061586c565b6002600955610d83614284565b506000828152600e6020908152604091829020825160c081018452815460ff161515808252600183015493820193909352600282015473ffffffffffffffffffffffffffffffffffffffff9081169482019490945260038201546060820152600482015490931660808401526005015460a0830152610e2e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906155e5565b608081015173ffffffffffffffffffffffffffffffffffffffff161580610e6e5750608081015173ffffffffffffffffffffffffffffffffffffffff1633145b610ea4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906156b0565b806040015173ffffffffffffffffffffffffffffffffffffffff16610ec8846118d3565b73ffffffffffffffffffffffffffffffffffffffff1614610f15576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390615214565b610f1e836118d3565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610f83576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390615911565b600d546060820151600091610fad9160ff6101008304811692610fa7929116613290565b906132e4565b905080826060015101341015610fef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614f41565b6000610ffb3483613330565b905061100f611009866118d3565b82613372565b61104c82600a600061101f611fce565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002054906133ef565b600a6000611058611fce565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff16836040015173ffffffffffffffffffffffffffffffffffffffff16867fb6f21281116e004e8f1dae8d7aac53d87a85c152f36874873ecb704e31f46779846040516110f89190615962565b60405180910390a461112361110c866118d3565b33876040518060200160405280600081525061342e565b61112c85613481565b6111346142e8565b506000858152600f6020908152604091829020825160a081018452815460ff1615158152600182015492810192909252600281015473ffffffffffffffffffffffffffffffffffffffff1692820183905260038101546060830152600401546080820152903314156111b7576111ae338260600151613372565b6111b7866135da565b5050600160095550505050565b60026009541415611201576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061586c565b60026009556112176112116131e1565b82613725565b61124d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061570d565b6112588383836137f8565b6000818152600e602052604090206002015473ffffffffffffffffffffffffffffffffffffffff848116911614156112935761129381613481565b6000818152600f602052604090206002015473ffffffffffffffffffffffffffffffffffffffff83811691161415611307576000818152600f6020526040902060028101546003909101546112fe9173ffffffffffffffffffffffffffffffffffffffff1690613372565b611307816135da565b5050600160095550565b61271061131c610aa5565b1015611354576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906155ae565b8061135d610aa5565b8110611395576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061542b565b81336113a0826118d3565b73ffffffffffffffffffffffffffffffffffffffff16146113ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614ccf565b6002600954141561142a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061586c565b60026009556114376142e8565b506000838152600f6020908152604091829020825160a081018452815460ff16158015808352600184015494830194909452600283015473ffffffffffffffffffffffffffffffffffffffff1694820194909452600382015460608201526004909101546080820152916114af575060008160600151115b6114e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906154f4565b600d54606082015160009161150f9160ff808316610100909304811683011691610fa79190613290565b9050600061152a82846060015161333090919063ffffffff16565b90506115363382613372565b61154682600a600061101f611fce565b600a6000611552611fce565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506115af338460400151886040518060200160405280600081525061342e565b826040015173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16877f6c0f88fbd661e3830b0dbcc98bc114ff15a9c0c3097587762abd618ab9a9920c846040516116119190615962565b60405180910390a4611622866135da565b6000868152600e602052604090205460ff16156111b7576111b786613481565b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604081206116719083613995565b90505b92915050565b600260095414156116b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061586c565b6002600955336000908152600a6020526040902054611702576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906152a8565b336000818152600a602052604090205461171c9190613372565b336000908152600a60205260408120556001600955565b610a20838383604051806020016040528060008152506122d0565b60008061175c6002846139a1565b509392505050565b61176c6131e1565b73ffffffffffffffffffffffffffffffffffffffff1661178a611fce565b73ffffffffffffffffffffffffffffffffffffffff16146117d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906154bf565b8060ff168260ff161115611817576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906157a1565b60008160ff168360ff166103e80261ffff168161183057fe5b0461ffff1690506019811115611872576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906150fd565b50600d805460ff928316610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff949093167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff009091161792909216179055565b600061167482604051806060016040528060298152602001615a7860299139600291906139bd565b6000636055f8d842101561193b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390615835565b612710611946610aa5565b1061197d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390615679565b6000611987610aa5565b90506126ac8111156119a457678ac7230489e800009150506108af565b61251c8111156119bf57671bc16d674ec800009150506108af565b6121348111156119da57670de0b6b3a76400009150506108af565b6111948111156119f557670b1a2bc2ec5000009150506108af565b6109c4811115611a1057670853a0d2313c00009150506108af565b6103e8811115611a2b5767058d15e1762800009150506108af565b6064811115611a45576702c68af0bb1400009150506108af565b67016345785d8a00009150506108af565b5090565b600073ffffffffffffffffffffffffffffffffffffffff8216611aa9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906151b7565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260016020526040902061167490613285565b611adf6131e1565b73ffffffffffffffffffffffffffffffffffffffff16611afd611fce565b73ffffffffffffffffffffffffffffffffffffffff1614611b4a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906154bf565b60085460405160009173ffffffffffffffffffffffffffffffffffffffff16907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600880547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b612710611bc4610aa5565b1015611bfc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906155ae565b80611c05610aa5565b8110611c3d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061542b565b60026009541415611c7a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061586c565b60026009556000611c8a836118d3565b73ffffffffffffffffffffffffffffffffffffffff161415611cd8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614b4a565b33611ce2836118d3565b73ffffffffffffffffffffffffffffffffffffffff161415611d30576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614ab8565b34611d67576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390615032565b611d6f6142e8565b506000828152600f6020908152604091829020825160a081018452815460ff1615158152600182015492810192909252600281015473ffffffffffffffffffffffffffffffffffffffff16928201929092526003820154606082018190526004909201546080820152903411611e11576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390615371565b606081015115611e2d57611e2d81604001518260600151613372565b6040805160a08101825260018082526020808301878152338486018181523460608701818152426080890190815260008d8152600f90975295899020975188547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016901515178855935195870195909555516002860180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9092169190911790559051600385015590516004909301929092559151909185917fdc9b8e354a80160559945b618a792a117f9b4da69e87053005fb7b6ffa3b02a091611f2891615962565b60405180910390a35050600160095550565b600d5460ff808216916101009004169091565b611f55614284565b506000908152600e6020908152604091829020825160c081018452815460ff1615158152600182015492810192909252600281015473ffffffffffffffffffffffffffffffffffffffff90811693830193909352600381015460608301526004810154909216608082015260059091015460a082015290565b60085473ffffffffffffffffffffffffffffffffffffffff1690565b611ff26142e8565b506000908152600f6020908152604091829020825160a081018452815460ff1615158152600182015492810192909252600281015473ffffffffffffffffffffffffffffffffffffffff169282019290925260038201546060820152600490910154608082015290565b636055f8d881565b60078054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108a75780601f1061087c576101008083540402835291602001916108a7565b6120eb6131e1565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612150576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614e3f565b806005600061215d6131e1565b73ffffffffffffffffffffffffffffffffffffffff90811682526020808301939093526040918201600090812091871680825291909352912080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016921515929092179091556121cc6131e1565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516122119190614a9a565b60405180910390a35050565b8033612228826118d3565b73ffffffffffffffffffffffffffffffffffffffff1614612275576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614ccf565b6000828152600e602052604090205460ff166122bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906155e5565b6122c682613481565b5050565b61271081565b6002600954141561230d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061586c565b600260095561232361231d6131e1565b83613725565b612359576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061570d565b6123658484848461342e565b6000828152600e602052604090206002015473ffffffffffffffffffffffffffffffffffffffff858116911614156123a0576123a082613481565b6000828152600f602052604090206002015473ffffffffffffffffffffffffffffffffffffffff84811691161415612414576000828152600f60205260409020600281015460039091015461240b9173ffffffffffffffffffffffffffffffffffffffff1690613372565b612414826135da565b505060016009555050565b61271061242a610aa5565b1015612462576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906155ae565b8261246b610aa5565b81106124a3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061542b565b83336124ae826118d3565b73ffffffffffffffffffffffffffffffffffffffff16146124fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614ccf565b6040518060c001604052806001151581526020018681526020013373ffffffffffffffffffffffffffffffffffffffff1681526020018581526020018473ffffffffffffffffffffffffffffffffffffffff16815260200142815250600e600087815260200190815260200160002060008201518160000160006101000a81548160ff0219169083151502179055506020820151816001015560408201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506060820151816003015560808201518160040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060a082015181600501559050508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16867fa7a584e7624acac024b64f75bf17052ca8d2b451fa4b0272491f763e499f1baf876040516126979190615962565b60405180910390a45050505050565b6127106126b1610aa5565b106126e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390615679565b6127106126fe60016126f8610aa5565b906133ef565b1115612736576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614d3d565b3461273f6118fb565b14612776576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614e76565b6000816040516020016127899190614898565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815291815281516020928301206000818152600c90935291205490915060ff1615612809576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614dab565b60008060005b84518160ff16101561288b57612847858260ff168151811061282d57fe5b602002602001015160ff16836133ef90919063ffffffff16565b91506001808216141561288357612880858260ff168151811061286657fe5b602002602001015160ff16846133ef90919063ffffffff16565b92505b60010161280f565b506101218111156128c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614bb8565b600582101580156128da575060308211155b612910576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906152df565b600061291a610aa5565b6000858152600c6020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055838352600b8252909120875192935061297192909188019061432f565b5061297c33826139d4565b61298c34600a600061101f611fce565b600a6000612998611fce565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff16817f7615a5553a077d849f3e45b912c5dd22a4ea8cdde52766815317ed46f4a24add8787604051612a1f929190614a78565b60405180910390a35050505050565b612710612a39610aa5565b1015612a71576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906155ae565b80612a7a610aa5565b8110612ab2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061542b565b60026009541415612aef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061586c565b6002600955612afc6142e8565b506000828152600f6020908152604091829020825160a081018452815460ff1615158152600182015492810192909252600281015473ffffffffffffffffffffffffffffffffffffffff1692820183905260038101546060830152600401546080820152903314612b99576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906157d8565b612ba7338260600151613372565b806040015173ffffffffffffffffffffffffffffffffffffffff16837f17e872a21f557a840a224a0ae811e787e6f1fffc01ff734c770a5ffec7f36f738360600151604051612bf69190615962565b60405180910390a3611307836135da565b60008082604051602001612c1b9190614898565b604080518083037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001815291815281516020928301206000908152600c90925290205460ff169392505050565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260056020908152604080832093909416825291909152205460ff1690565b6060828201612cb0610aa5565b811115612ce9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614b81565b60608367ffffffffffffffff81118015612d0257600080fd5b50604051908082528060200260200182016040528015612d3657816020015b6060815260200190600190039081612d215790505b50905060005b84811015612ddd578086016000908152600b602090815260409182902080548351818402810184019094528084529091830182828015612db957602002820191906000526020600020906000905b825461010083900a900460ff16815260206001928301818104948501949093039092029101808411612d8a5790505b5050505050828281518110612dca57fe5b6020908102919091010152600101612d3c565b50949350505050565b6060828201612df3610aa5565b811115612e2c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906158a3565b60608367ffffffffffffffff81118015612e4557600080fd5b50604051908082528060200260200182016040528015612e7f57816020015b612e6c614284565b815260200190600190039081612e645790505b50905060005b84811015612ddd578086016000908152600e6020908152604091829020825160c081018452815460ff1615158152600182015492810192909252600281015473ffffffffffffffffffffffffffffffffffffffff90811693830193909352600381015460608301526004810154909216608082015260059091015460a08201528251839083908110612f1357fe5b6020908102919091010152600101612e85565b612f2e6131e1565b73ffffffffffffffffffffffffffffffffffffffff16612f4c611fce565b73ffffffffffffffffffffffffffffffffffffffff1614612f99576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906154bf565b73ffffffffffffffffffffffffffffffffffffffff8116612fe6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614c72565b60085460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600880547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b73ffffffffffffffffffffffffffffffffffffffff166000908152600a602052604090205490565b60608282016130a9610aa5565b8111156130e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906158da565b60608367ffffffffffffffff811180156130fb57600080fd5b5060405190808252806020026020018201604052801561313557816020015b6131226142e8565b81526020019060019003908161311a5790505b50905060005b613143610aa5565b811015612ddd578086016000908152600f6020908152604091829020825160a081018452815460ff1615158152600182015492810192909252600281015473ffffffffffffffffffffffffffffffffffffffff169282019290925260038201546060820152600490910154608082015282518390839081106131c157fe5b602090810291909101015260010161313b565b60006116746002836139ee565b3390565b600081815260046020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8416908117909155819061323f826118d3565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611674826139fa565b60008261329f57506000611674565b828202828482816132ac57fe5b0414611671576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906153ce565b600080821161331f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906150c6565b81838161332857fe5b049392505050565b60008282111561336c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614ead565b50900390565b6133918273ffffffffffffffffffffffffffffffffffffffff166139fe565b80156133b3575073ffffffffffffffffffffffffffffffffffffffff82163314155b156133e55773ffffffffffffffffffffffffffffffffffffffff82166000908152600a602052604090208190556122c6565b6122c68282613a04565b600082820183811015611671576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614d74565b6134398484846137f8565b61344584848484613ae1565b61347b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614c15565b50505050565b61271061348c610aa5565b10156134c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906155ae565b806134cd610aa5565b8110613505576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061542b565b6000828152600e602052604080822060020154905173ffffffffffffffffffffffffffffffffffffffff9091169184917f7d28b5b2b1d0333cb7130071c3b48ef217bc23e449130b4b88c2fdf44ed75b609190a3506000908152600e6020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168155600181018290556002810180547fffffffffffffffffffffffff000000000000000000000000000000000000000090811690915560038201839055600482018054909116905560050155565b6127106135e5610aa5565b101561361d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906155ae565b80613626610aa5565b811061365e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061542b565b6000828152600f602052604080822060020154905173ffffffffffffffffffffffffffffffffffffffff9091169184917fdca36ac865d5deb970c0388e8cb58447a3a0fc86fccc2518c7046d185893c3c19190a3506000908152600f6020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168155600181018290556002810180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690556003810182905560040155565b6000613730826131d4565b613766576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390615069565b6000613771836118d3565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806137e057508373ffffffffffffffffffffffffffffffffffffffff166137c8846108b2565b73ffffffffffffffffffffffffffffffffffffffff16145b806137f057506137f08185612c68565b949350505050565b8273ffffffffffffffffffffffffffffffffffffffff16613818826118d3565b73ffffffffffffffffffffffffffffffffffffffff1614613865576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390615551565b73ffffffffffffffffffffffffffffffffffffffff82166138b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614de2565b6138bd838383610a20565b6138c86000826131e5565b73ffffffffffffffffffffffffffffffffffffffff831660009081526001602052604090206138f79082613c4e565b5073ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604090206139279082613c5a565b5061393460028284613c66565b50808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60006116718383613c89565b60008080806139b08686613ce8565b9097909650945050505050565b60006139ca848484613d5e565b90505b9392505050565b6122c6828260405180602001604052806000815250613dd7565b60006116718383613e24565b5490565b3b151590565b80471015613a3e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614f9e565b60008273ffffffffffffffffffffffffffffffffffffffff1682604051613a64906108af565b60006040518083038185875af1925050503d8060008114613aa1576040519150601f19603f3d011682016040523d82523d6000602084013e613aa6565b606091505b5050905080610a20576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614ee4565b6000613b028473ffffffffffffffffffffffffffffffffffffffff166139fe565b613b0e575060016137f0565b6060613be67f150b7a0200000000000000000000000000000000000000000000000000000000613b3c6131e1565b888787604051602401613b52949392919061490e565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051806060016040528060328152602001615a466032913973ffffffffffffffffffffffffffffffffffffffff88169190613e3c565b9050600081806020019051810190613bfe91906146b9565b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001492505050949350505050565b60006116718383613e4b565b60006116718383613f2f565b60006139ca848473ffffffffffffffffffffffffffffffffffffffff8516613f79565b81546000908210613cc6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614aed565b826000018281548110613cd557fe5b9060005260206000200154905092915050565b815460009081908310613d27576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061524b565b6000846000018481548110613d3857fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b60008281526001840160205260408120548281613da8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39190614aa5565b50846000016001820381548110613dbb57fe5b9060005260206000209060020201600101549150509392505050565b613de18383614010565b613dee6000848484613ae1565b610a20576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614c15565b60009081526001919091016020526040902054151590565b60606139ca848460008561412f565b60008181526001830160205260408120548015613f255783547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8083019190810190600090879083908110613e9c57fe5b9060005260206000200154905080876000018481548110613eb957fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080613ee957fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050611674565b6000915050611674565b6000613f3b8383613e24565b613f7157508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611674565b506000611674565b600082815260018401602052604081205480613fde5750506040805180820182528381526020808201848152865460018181018955600089815284812095516002909302909501918255915190820155865486845281880190925292909120556139cd565b82856000016001830381548110613ff157fe5b90600052602060002090600202016001018190555060009150506139cd565b73ffffffffffffffffffffffffffffffffffffffff821661405d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061533c565b614066816131d4565b1561409d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614d06565b6140a960008383610a20565b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604090206140d89082613c5a565b506140e560028284613c66565b50604051819073ffffffffffffffffffffffffffffffffffffffff8416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60608247101561416b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614fd5565b614174856139fe565b6141aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061576a565b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040516141d491906148d1565b60006040518083038185875af1925050503d8060008114614211576040519150601f19603f3d011682016040523d82523d6000602084013e614216565b606091505b5091509150614226828286614231565b979650505050505050565b606083156142405750816139cd565b8251156142505782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39190614aa5565b6040518060c0016040528060001515815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff16815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600081525090565b6040518060a0016040528060001515815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff16815260200160008152602001600081525090565b82805482825590600052602060002090601f016020900481019282156143c55791602002820160005b8382111561439657835183826101000a81548160ff021916908360ff1602179055509260200192600101602081600001049283019260010302614358565b80156143c35782816101000a81549060ff0219169055600101602081600001049283019260010302614396565b505b50611a569291505b80821115611a565780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001681556001016143cd565b803573ffffffffffffffffffffffffffffffffffffffff8116811461167457600080fd5b803560ff8116811461167457600080fd5b600060208284031215614449578081fd5b6116718383614403565b60008060408385031215614465578081fd5b61446f8484614403565b915061447e8460208501614403565b90509250929050565b60008060006060848603121561449b578081fd5b83356144a6816159f2565b925060208401356144b6816159f2565b929592945050506040919091013590565b600080600080608085870312156144dc578081fd5b6144e68686614403565b935060206144f687828801614403565b935060408601359250606086013567ffffffffffffffff80821115614519578384fd5b818801915088601f83011261452c578384fd5b81358181111561453a578485fd5b61456a847fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160161597f565b9150808252898482850101111561457f578485fd5b8084840185840137810190920192909252939692955090935050565b600080604083850312156145ad578182fd5b6145b78484614403565b9150602083013580151581146145cb578182fd5b809150509250929050565b600080604083850312156145e8578182fd5b6145f28484614403565b946020939093013593505050565b60006020808385031215614612578182fd5b823567ffffffffffffffff811115614628578283fd5b8301601f81018513614638578283fd5b803561464b614646826159a6565b61597f565b8181528381019083850185840285018601891015614667578687fd5b8694505b838510156146915761467d8982614427565b83526001949094019391850191850161466b565b50979650505050505050565b6000602082840312156146ae578081fd5b813561167181615a17565b6000602082840312156146ca578081fd5b815161167181615a17565b6000602082840312156146e6578081fd5b5035919050565b600080604083850312156146ff578182fd5b50508035926020909101359150565b600080600060608486031215614722578283fd5b8335925060208401359150604084013561473b816159f2565b809150509250925092565b60008060408385031215614758578182fd5b6147628484614427565b915061447e8460208501614427565b6000815180845260208085019450808401835b838110156147a357815160ff1687529582019590820190600101614784565b509495945050505050565b600081518084526147c68160208601602086016159c6565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b8051151582526020810151602083015273ffffffffffffffffffffffffffffffffffffffff604082015116604083015260608101516060830152608081015160808301525050565b80511515825260208101516020830152604081015173ffffffffffffffffffffffffffffffffffffffff808216604085015260608301516060850152806080840151166080850152505060a081015160a08301525050565b815160009082906020808601845b838110156148c557815160ff16855293820193908201906001016148a6565b50929695505050505050565b600082516148e38184602087016159c6565b9190910192915050565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b600073ffffffffffffffffffffffffffffffffffffffff80871683528086166020840152508360408301526080606083015261494d60808301846147ae565b9695505050505050565b6000602080830181845280855180835260408601915060408482028701019250838701855b828110156149c8577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc08886030184526149b6858351614771565b9450928501929085019060010161497c565b5092979650505050505050565b6020808252825182820181905260009190848201906040850190845b81811015614a1757614a048385516147f8565b9284019260a092909201916001016149f1565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015614a1757614a52838551614840565b9284019260c09290920191600101614a3f565b6000602082526116716020830184614771565b600060408252614a8b6040830185614771565b90508260208301529392505050565b901515815260200190565b60006020825261167160208301846147ae565b6020808252818101527f4f776e6572206f662042696f20646f65736e2774206e65656420746f20626964604082015260600190565b60208082526022908201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e60408201527f6473000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526017908201527f546869732042696f20686173206265656e206275726e74000000000000000000604082015260600190565b60208082526018908201527f52657175657374696e6720746f6f206d616e792042696f730000000000000000604082015260600190565b6020808252602b908201527f546f74616c2063656c6c20636f756e742073686f756c6420626520736d616c6c60408201527f6572207468616e20323839000000000000000000000000000000000000000000606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b60208082526019908201527f4e6f7420746865206f776e6572206f6620746869732042696f00000000000000604082015260600190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526016908201527f45786365656473204d41585f4e46545f535550504c5900000000000000000000604082015260600190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b60208082526013908201527f42696f20616c7265616479206578697374656400000000000000000000000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460408201527f7265737300000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252601f908201527f45746865722076616c75652073656e74206973206e6f7420636f727265637400604082015260600190565b6020808252601e908201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604082015260600190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260408201527f6563697069656e74206d61792068617665207265766572746564000000000000606082015260800190565b6020808252602c908201527f5468652076616c75652073656e642069732062656c6f772073616c652070726960408201527f636520706c757320666565730000000000000000000000000000000000000000606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60408201527f722063616c6c0000000000000000000000000000000000000000000000000000606082015260800190565b60208082526018908201527f5468652062696420707269636520697320746f6f206c6f770000000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606082015260800190565b6020808252601a908201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604082015260600190565b6020808252602b908201527f417474656d707420746f207365742070657263656e746167652068696768657260408201527f207468616e20322e35252e000000000000000000000000000000000000000000606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560408201527f726f206164647265737300000000000000000000000000000000000000000000606082015260800190565b6020808252601c908201527f546869732073656c6c6572206973206e6f7420746865206f776e657200000000604082015260600190565b60208082526022908201527f456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e60408201527f6473000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601c908201527f5468657265206973206e6f7468696e6720746f20776974686472617700000000604082015260600190565b60208082526027908201527f4163746976652063656c6c20636f756e74206f662042696f206973206e6f742060408201527f616c6c6f77656400000000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f54686520626964207072696365206973206e6f20686967686572207468616e2060408201527f6578697374696e67206f6e650000000000000000000000000000000000000000606082015260800190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60408201527f7700000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526011908201527f42696f20646f65736e2774206578697374000000000000000000000000000000604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526021908201527f546869732042696f20646f65736e2774206861766520612076616c696420626960408201527f6400000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606082015260800190565b60208082526014908201527f42696f2073616c65207374696c6c20676f696e67000000000000000000000000604082015260600190565b60208082526013908201527f42696f206973206e6f7420666f722073616c6500000000000000000000000000604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560408201527f7200000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526016908201527f53616c652068617320616c726561647920656e64656400000000000000000000604082015260600190565b60208082526022908201527f42696f206973206e6f742073656c6c696e6720746f207468697320616464726560408201527f7373000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252601b908201527f466565206672616374696f6e20657863656564656420626173652e0000000000604082015260600190565b60208082526024908201527f54686973206164647265737320646f65736e277420686176652061637469766560408201527f2062696400000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526014908201527f53616c6520686173206e6f742073746172746564000000000000000000000000604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252601c908201527f52657175657374696e6720746f6f206d616e79206c697374696e677300000000604082015260600190565b60208082526018908201527f52657175657374696e6720746f6f206d616e7920626964730000000000000000604082015260600190565b6020808252818101527f546869732042696f2062656c6f6e677320746f20746869732061646472657373604082015260600190565b60a0810161167482846147f8565b60c081016116748284614840565b90815260200190565b60ff92831681529116602082015260400190565b60405181810167ffffffffffffffff8111828210171561599e57600080fd5b604052919050565b600067ffffffffffffffff8211156159bc578081fd5b5060209081020190565b60005b838110156159e15781810151838201526020016159c9565b8381111561347b5750506000910152565b73ffffffffffffffffffffffffffffffffffffffff81168114615a1457600080fd5b50565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114615a1457600080fdfe4552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656ea2646970667358221220a9f3fe8bd6a383f02f5143bb0b87bd332a1e841169ad316eddee5578db47d9ad64736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000084c696665204e4654000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000342494f0000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name_ (string): Life NFT
Arg [1] : symbol_ (string): BIO
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [3] : 4c696665204e4654000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [5] : 42494f0000000000000000000000000000000000000000000000000000000000
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.