More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 34 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim Nft | 12929829 | 1145 days ago | IN | 0 ETH | 0.00247878 | ||||
Bid | 12927471 | 1145 days ago | IN | 0 ETH | 0.00274593 | ||||
Bid | 12927425 | 1145 days ago | IN | 0 ETH | 0.00301383 | ||||
Bid | 12927400 | 1145 days ago | IN | 0 ETH | 0.00287988 | ||||
Bid | 12927388 | 1145 days ago | IN | 0 ETH | 0.0030808 | ||||
Bid | 12927364 | 1145 days ago | IN | 0 ETH | 0.0028129 | ||||
Bid | 12927352 | 1145 days ago | IN | 0 ETH | 0.00254501 | ||||
Bid | 12927342 | 1145 days ago | IN | 0 ETH | 0.00294685 | ||||
Bid | 12927325 | 1145 days ago | IN | 0 ETH | 0.00301329 | ||||
Bid | 12927304 | 1145 days ago | IN | 0 ETH | 0.00287988 | ||||
Bid | 12927283 | 1145 days ago | IN | 0 ETH | 0.00243433 | ||||
Bid | 12927260 | 1145 days ago | IN | 0 ETH | 0.00274593 | ||||
Bid | 12927251 | 1145 days ago | IN | 0 ETH | 0.00361594 | ||||
Bid | 12927229 | 1145 days ago | IN | 0 ETH | 0.00231558 | ||||
Bid | 12926347 | 1146 days ago | IN | 0 ETH | 0.00200922 | ||||
Bid | 12925749 | 1146 days ago | IN | 0 ETH | 0.00154372 | ||||
Bid | 12925694 | 1146 days ago | IN | 0 ETH | 0.00354962 | ||||
Bid | 12925655 | 1146 days ago | IN | 0 ETH | 0.00167405 | ||||
Bid | 12923623 | 1146 days ago | IN | 0 ETH | 0.00274544 | ||||
Bid | 12923592 | 1146 days ago | IN | 0 ETH | 0.00287936 | ||||
Bid | 12922532 | 1146 days ago | IN | 0 ETH | 0.0022767 | ||||
Bid | 12922480 | 1146 days ago | IN | 0 ETH | 0.00185853 | ||||
Bid | 12922445 | 1146 days ago | IN | 0 ETH | 0.00196868 | ||||
Bid | 12922422 | 1146 days ago | IN | 0 ETH | 0.00177516 | ||||
Bid | 12922352 | 1146 days ago | IN | 0 ETH | 0.00207582 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
KokoswapMarket
Compiler Version
v0.8.0+commit.c7dfd78e
Contract Source Code (Solidity Multiple files format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ERC721.sol"; import "./Counters.sol"; import "./SafeMath.sol"; import "./Ownable.sol"; import "./IMarket.sol"; import "./KokoswapNFT.sol"; import "./IERC20.sol"; contract KokoswapMarket is IMarket,Ownable { uint256 public constant AUCTION_TIME = 86400; //3 days uint256 public constant LAST_BIDDER_RESET_TIME = 900; uint256 public FEE = 15; uint256 public TOKEN_FEE = 15; uint256 public NEXT_BID_PERCENTAGE = 5; address public ERC20_TOKEN_ADDRESS; address public ERC721_TOKEN_ADDRESS; mapping(uint256 => Auction) private auctionList; constructor() {} function listOnAuction(uint256 tokenId, uint256 price, CURRENCY currency, uint256 _days ) public override returns (Auction memory) { require(KokoswapNFT(ERC721_TOKEN_ADDRESS).ownerOf(tokenId) == msg.sender, "EA"); require(!auctionList[tokenId].active, "ES" ); Auction memory newAuction = Auction(true, msg.sender, address(0), price, _days + block.timestamp, currency ); auctionList[tokenId] = newAuction; KokoswapNFT(ERC721_TOKEN_ADDRESS).transferFrom(msg.sender, address(this), tokenId); emit ListOnAuction(msg.sender, tokenId, price, _days + block.timestamp, currency); return newAuction; } function bid(uint256 _tokenId, uint256 _price) public payable override returns(Auction memory){ Auction memory auctionItem = auctionList[_tokenId]; require(auctionItem.active, "ES"); if(block.timestamp > auctionItem.endTime){ if(auctionItem.owner != address(0)){ revert("ET"); } auctionItem.endTime = AUCTION_TIME + block.timestamp; } uint256 bidValueMust = auctionItem.value + (auctionItem.value * NEXT_BID_PERCENTAGE / 100); if(auctionItem.currency == CURRENCY.ETH){ require( bidValueMust <= msg.value, "EV" ); if(auctionItem.owner != address(0)) { payable(auctionItem.owner).transfer(auctionItem.value); } auctionItem.value = msg.value; }else{ require( bidValueMust <= _price, "EV" ); require(IERC20(ERC20_TOKEN_ADDRESS).allowance(msg.sender, address(this)) >= _price, "EA"); IERC20(ERC20_TOKEN_ADDRESS).transferFrom(msg.sender, address(this), _price); if(auctionItem.owner != address(0)) { IERC20(ERC20_TOKEN_ADDRESS).transfer(auctionItem.owner,auctionItem.value); } auctionItem.value = _price; } auctionItem.owner = msg.sender; if (auctionItem.endTime - block.timestamp < LAST_BIDDER_RESET_TIME) { auctionItem.endTime = LAST_BIDDER_RESET_TIME + block.timestamp; } auctionList[_tokenId] = auctionItem; emit Bid(msg.sender, _tokenId, auctionItem.value, auctionItem.currency); return auctionList[_tokenId]; } function claimNft(uint256 _tokenId) public override returns(uint256) { Auction memory auctionItem = auctionList[_tokenId]; require(auctionItem.active, "ES"); require(block.timestamp > auctionItem.endTime, "ET"); require(auctionItem.seller == msg.sender || auctionItem.owner == msg.sender, "EA"); if (auctionItem.owner == address(0)) { KokoswapNFT(ERC721_TOKEN_ADDRESS).transferFrom(address(this), auctionItem.seller, _tokenId); } else { KokoswapNFT(ERC721_TOKEN_ADDRESS).transferFrom(address(this), auctionItem.owner, _tokenId); KokoswapNFT.Artwork memory artwork = KokoswapNFT(ERC721_TOKEN_ADDRESS).getArtwork(_tokenId); uint256 royalityValue = (auctionItem.value * artwork.royalty) / 100; if(auctionItem.currency == CURRENCY.ETH){ uint256 serviceFee = (auctionItem.value * FEE) / 100; uint256 value = auctionItem.value - (serviceFee + royalityValue); payable(auctionItem.seller).transfer(value); if(royalityValue > 0){ payable(artwork.creator).transfer(royalityValue); } }else{ uint256 serviceFee = (auctionItem.value * TOKEN_FEE) / 100; uint256 value = auctionItem.value - (serviceFee + royalityValue); IERC20(ERC20_TOKEN_ADDRESS).transfer(auctionItem.seller,value); if(royalityValue > 0){ IERC20(ERC20_TOKEN_ADDRESS).transfer(artwork.creator,royalityValue); } } } delete auctionList[_tokenId]; emit ClaimNft(auctionItem.owner, _tokenId, auctionItem.value); return _tokenId; } function getAuction(uint256 _tokenId) public view override returns (Auction memory) { return auctionList[_tokenId]; } function setTokenAddress(address erc721contract, address erc20contract ) public override onlyOwner { ERC721_TOKEN_ADDRESS = erc721contract; ERC20_TOKEN_ADDRESS = erc20contract; } function setFee(uint256 fee, uint256 tokenFee) public override onlyOwner { FEE = fee; TOKEN_FEE = tokenFee; } function setNextBidPercentage(uint256 nextBidPercent) public override onlyOwner { NEXT_BID_PERCENTAGE = nextBidPercent; } function withdraw(address _address, uint256 _value, CURRENCY currency) public override onlyOwner { if(currency == CURRENCY.ETH){ payable(_address).transfer(_value); }else{ IERC20(ERC20_TOKEN_ADDRESS).transfer(_address,_value); } } function transferAnyERC20Token(address _address, uint tokens) public onlyOwner returns (bool success) { return IERC20(_address).transfer(owner(), tokens); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./IERC721Metadata.sol"; import "./IERC721Enumerable.sol"; import "./Address.sol"; import "./Context.sol"; import "./Strings.sol"; import "./ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping (uint256 => address) private _owners; // Mapping owner address to token count mapping (address => uint256) private _balances; // Mapping from token ID to approved address mapping (uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping (address => mapping (address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor (string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. Empty by default, can be overriden * in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require(_msgSender() == owner || 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 _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || ERC721.isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint(address to, uint256 tokenId, bytes memory _data) internal virtual { _mint(to, tokenId); require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer(address from, address to, uint256 tokenId) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { // solhint-disable-next-line no-inline-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; 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.8.0; import "./IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IKokoswap { struct Artwork { uint256 date; address creator; string artwork; string metadata; uint256 royalty; } function mintNFT( address recipient, string memory metadata, string memory artwork, uint256 royalty) external returns (uint256); function mintAndApproveNFT( address recipient, string memory metadata, string memory artwork, uint256 royalty) external returns (uint256); function burnNFT(uint256 tokenId) external returns(bool); function getArtwork(uint256 tokenId) external view returns (Artwork memory); function isCreator(address creator) external view returns(bool); function addCreator(address creator) external returns(bool); function removeCreator(address creator) external returns(bool); function setNftMarketContract(address marketContract) external returns(bool); event Mint(address indexed to, uint256 tokenId, string artwork); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IMarket { enum CURRENCY{ ETH, TOKEN} struct Auction { bool active; address seller; address owner; uint256 value; uint256 endTime; CURRENCY currency; } function listOnAuction(uint256 _tokenId, uint256 _price, CURRENCY currency, uint256 _days) external returns (Auction memory); function bid(uint256 _tokenId,uint256 _price) external payable returns (Auction memory); function claimNft(uint256 _tokenId) external returns (uint256); function withdraw(address _address, uint256 _value, CURRENCY currency) external ; function getAuction(uint256 _tokenId) external view returns (Auction memory); function setTokenAddress(address erc721contract, address erc20contract) external ; // function setERC721TokenAddress(address _address) external ; // function setERC20TokenAddress(address _address) external ; function setFee(uint256 fee, uint256 tokenFee) external; function setNextBidPercentage(uint256 nextBidPercent) external; event ListOnAuction(address indexed owner, uint256 tokenId,uint256 price, uint256 endTime, CURRENCY currency); event Bid(address bidder, uint256 indexed tokenId, uint256 value, CURRENCY currency); event ClaimNft(address collector, uint256 indexed tokenId, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ERC721.sol"; import "./Counters.sol"; import "./Ownable.sol"; import "./IKokoswap.sol"; contract KokoswapNFT is ERC721, IKokoswap,Ownable { using Counters for Counters.Counter; Counters.Counter private _tokenIds; mapping(string => uint8) hashes; mapping(uint256 => Artwork) private artworks; mapping(address => uint8) private creators; address public nftMarketContract; constructor() ERC721("Kokoswap NFT", "KOKONFT") {} function mintNFT(address recipient, string memory metadata, string memory artwork, uint256 royalty ) public override returns (uint256) { require(hashes[metadata] != 1); require(hashes[artwork] != 1); require(creators[msg.sender] == 1, "KokoswapNFT: be a creator"); require(royalty <= 50); hashes[metadata] = 1; hashes[artwork] = 1; _tokenIds.increment(); uint256 newItemId = _tokenIds.current(); artworks[newItemId] = Artwork(block.timestamp, msg.sender, artwork, metadata, royalty); _mint(recipient, newItemId); // _setTokenURI(newItemId, tokenURI); emit Mint(recipient, newItemId, artwork); return newItemId; } function mintAndApproveNFT(address recipient, string memory metadata, string memory artwork, uint256 royalty ) public override returns (uint256) { require(hashes[metadata] != 1); require(hashes[artwork] != 1); require(creators[msg.sender] == 1, "KokoswapNFT: be a creator"); require(royalty <= 50); hashes[metadata] = 1; hashes[artwork] = 1; _tokenIds.increment(); uint256 newItemId = _tokenIds.current(); artworks[newItemId] = Artwork(block.timestamp, msg.sender, artwork, metadata, royalty); _mint(recipient, newItemId); emit Mint(recipient, newItemId, artwork); _approve(nftMarketContract, newItemId); return newItemId; } function burnNFT(uint256 tokenId) public override returns(bool){ require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved"); Artwork memory artwork = artworks[tokenId]; delete artworks[tokenId]; delete hashes[artwork.metadata]; delete hashes[artwork.artwork]; _burn(tokenId); return true; } function getArtwork(uint256 tokenId) public view override returns (Artwork memory){ require( _exists(tokenId), "ERC721: approved query for nonexistent token" ); return artworks[tokenId]; } function isCreator(address creator) public view override returns(bool){ return creators[creator] == 1; } function addCreator(address creator) public override onlyOwner returns(bool){ require(creators[creator] != 1, "KokoswapNFT: creator already exist"); creators[creator] = 1; return true; } function removeCreator(address creator) public override onlyOwner returns(bool){ require(creators[creator] == 1, "KokoswapNFT: creator doesn't exist"); creators[creator] = 0; return true; } function setNftMarketContract(address marketContract) public override onlyOwner returns(bool){ nftMarketContract = marketContract; return true; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ 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) { unchecked { 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) { unchecked { 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) { unchecked { // 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) { unchecked { 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) { unchecked { 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) { return a + b; } /** * @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) { 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) { return a * b; } /** * @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. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { 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) { 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) { unchecked { 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. * * 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) { unchecked { 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) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant alphabet = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = alphabet[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"bidder","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"enum IMarket.CURRENCY","name":"currency","type":"uint8"}],"name":"Bid","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"collector","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"ClaimNft","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endTime","type":"uint256"},{"indexed":false,"internalType":"enum IMarket.CURRENCY","name":"currency","type":"uint8"}],"name":"ListOnAuction","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"},{"inputs":[],"name":"AUCTION_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ERC20_TOKEN_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ERC721_TOKEN_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LAST_BIDDER_RESET_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NEXT_BID_PERCENTAGE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"bid","outputs":[{"components":[{"internalType":"bool","name":"active","type":"bool"},{"internalType":"address","name":"seller","type":"address"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"enum IMarket.CURRENCY","name":"currency","type":"uint8"}],"internalType":"struct IMarket.Auction","name":"","type":"tuple"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"claimNft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getAuction","outputs":[{"components":[{"internalType":"bool","name":"active","type":"bool"},{"internalType":"address","name":"seller","type":"address"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"enum IMarket.CURRENCY","name":"currency","type":"uint8"}],"internalType":"struct IMarket.Auction","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"enum IMarket.CURRENCY","name":"currency","type":"uint8"},{"internalType":"uint256","name":"_days","type":"uint256"}],"name":"listOnAuction","outputs":[{"components":[{"internalType":"bool","name":"active","type":"bool"},{"internalType":"address","name":"seller","type":"address"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"enum IMarket.CURRENCY","name":"currency","type":"uint8"}],"internalType":"struct IMarket.Auction","name":"","type":"tuple"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"fee","type":"uint256"},{"internalType":"uint256","name":"tokenFee","type":"uint256"}],"name":"setFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nextBidPercent","type":"uint256"}],"name":"setNextBidPercentage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"erc721contract","type":"address"},{"internalType":"address","name":"erc20contract","type":"address"}],"name":"setTokenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"tokens","type":"uint256"}],"name":"transferAnyERC20Token","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"enum IMarket.CURRENCY","name":"currency","type":"uint8"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600f600155600f600255600560035534801561001f57600080fd5b50600061002a610079565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35061007d565b3390565b611d3c8061008c6000396000f3fe6080604052600436106101145760003560e01c8063bb5bc5eb116100a0578063dc39d06d11610064578063dc39d06d146102b1578063dc8c0575146102de578063e592301a146102f3578063f2fde38b14610308578063f8e5601b1461032857610114565b8063bb5bc5eb14610232578063c56f1b5a14610252578063c57981b514610267578063c7afe9f21461027c578063d37231a71461029c57610114565b8063715018a6116100e7578063715018a6146101b157806378bd7935146101c65780638da5cb5b146101e657806392f6a3ce14610208578063aa9ab1741461021d57610114565b80632892a977146101195780632ec09d391461013b57806352f7c98814610171578063598647f814610191575b600080fd5b34801561012557600080fd5b5061013961013436600461183e565b610348565b005b34801561014757600080fd5b5061015b610156366004611965565b61047e565b6040516101689190611bf6565b60405180910390f35b34801561017d57600080fd5b5061013961018c366004611995565b610a35565b6101a461019f366004611995565b610a7f565b6040516101689190611b99565b3480156101bd57600080fd5b50610139611051565b3480156101d257600080fd5b506101a46101e1366004611965565b6110da565b3480156101f257600080fd5b506101fb611198565b6040516101689190611a14565b34801561021457600080fd5b506101fb6111a7565b34801561022957600080fd5b5061015b6111b6565b34801561023e57600080fd5b506101a461024d3660046119b6565b6111bc565b34801561025e57600080fd5b5061015b611462565b34801561027357600080fd5b5061015b611468565b34801561028857600080fd5b506101396102973660046117db565b61146e565b3480156102a857600080fd5b506101fb6114db565b3480156102bd57600080fd5b506102d16102cc366004611813565b6114ea565b6040516101689190611aa3565b3480156102ea57600080fd5b5061015b6115b9565b3480156102ff57600080fd5b5061015b6115bf565b34801561031457600080fd5b506101396103233660046117a3565b6115c6565b34801561033457600080fd5b50610139610343366004611965565b611686565b6103506116ca565b6001600160a01b0316610361611198565b6001600160a01b0316146103905760405162461bcd60e51b815260040161038790611b48565b60405180910390fd5b60008160018111156103b257634e487b7160e01b600052602160045260246000fd5b14156103f4576040516001600160a01b0384169083156108fc029084906000818181858888f193505050501580156103ee573d6000803e3d6000fd5b50610479565b6004805460405163a9059cbb60e01b81526001600160a01b039091169163a9059cbb91610425918791879101611a66565b602060405180830381600087803b15801561043f57600080fd5b505af1158015610453573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610477919061187b565b505b505050565b6000818152600660209081526040808320815160c081018352815460ff808216151583526101009091046001600160a01b039081169583019590955260018084015490951693820193909352600282015460608201526003820154608082015260048201548594919360a085019291169081111561050c57634e487b7160e01b600052602160045260246000fd5b600181111561052b57634e487b7160e01b600052602160045260246000fd5b905250805190915061054f5760405162461bcd60e51b815260040161038790611b10565b806080015142116105725760405162461bcd60e51b815260040161038790611aae565b60208101516001600160a01b0316331480610599575060408101516001600160a01b031633145b6105b55760405162461bcd60e51b815260040161038790611b7d565b60408101516001600160a01b03166106365760055460208201516040516323b872dd60e01b81526001600160a01b03909216916323b872dd916105ff913091908890600401611a42565b600060405180830381600087803b15801561061957600080fd5b505af115801561062d573d6000803e3d6000fd5b5050505061099d565b60055460408083015190516323b872dd60e01b81526001600160a01b03909216916323b872dd9161066e913091908890600401611a42565b600060405180830381600087803b15801561068857600080fd5b505af115801561069c573d6000803e3d6000fd5b5050600554604051630b3eefb760e11b8152600093506001600160a01b03909116915063167ddf6e906106d3908790600401611bf6565b60006040518083038186803b1580156106eb57600080fd5b505afa1580156106ff573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610727919081019061189b565b905060006064826080015184606001516107419190611c8c565b61074b9190611c6c565b905060008360a00151600181111561077357634e487b7160e01b600052602160045260246000fd5b14156108405760006064600154856060015161078f9190611c8c565b6107999190611c6c565b905060006107a78383611c54565b85606001516107b69190611cab565b60208601516040519192506001600160a01b03169082156108fc029083906000818181858888f193505050501580156107f3573d6000803e3d6000fd5b5082156108395783602001516001600160a01b03166108fc849081150290604051600060405180830381858888f19350505050158015610837573d6000803e3d6000fd5b505b505061099a565b6000606460025485606001516108569190611c8c565b6108609190611c6c565b9050600061086e8383611c54565b856060015161087d9190611cab565b60048054602088015160405163a9059cbb60e01b81529394506001600160a01b039091169263a9059cbb926108b59291869101611a66565b602060405180830381600087803b1580156108cf57600080fd5b505af11580156108e3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610907919061187b565b5082156109975760048054602086015160405163a9059cbb60e01b81526001600160a01b039092169263a9059cbb926109439291889101611a66565b602060405180830381600087803b15801561095d57600080fd5b505af1158015610971573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610995919061187b565b505b50505b50505b60008381526006602052604080822080546001600160a81b03191681556001810180546001600160a01b03191690556002810183905560038101929092556004909101805460ff19169055818101516060830151915185927fd4908414cdb2f24c8ce76341e36cb074a61b043c671e9d28eb33c11a2f4edcf992610a2392909190611a66565b60405180910390a2829150505b919050565b610a3d6116ca565b6001600160a01b0316610a4e611198565b6001600160a01b031614610a745760405162461bcd60e51b815260040161038790611b48565b600191909155600255565b610a876116ce565b6000838152600660209081526040808320815160c081018352815460ff808216151583526101009091046001600160a01b039081169583019590955260018084015490951693820193909352600282015460608201526003820154608082015260048201549093919260a0850192911690811115610b1557634e487b7160e01b600052602160045260246000fd5b6001811115610b3457634e487b7160e01b600052602160045260246000fd5b9052508051909150610b585760405162461bcd60e51b815260040161038790611b10565b8060800151421115610ba25760408101516001600160a01b031615610b8f5760405162461bcd60e51b815260040161038790611aae565b610b9c4262015180611c54565b60808201525b600060646003548360600151610bb89190611c8c565b610bc29190611c6c565b8260600151610bd19190611c54565b905060008260a001516001811115610bf957634e487b7160e01b600052602160045260246000fd5b1415610c805734811115610c1f5760405162461bcd60e51b815260040161038790611b2c565b60408201516001600160a01b031615610c755781604001516001600160a01b03166108fc83606001519081150290604051600060405180830381858888f19350505050158015610c73573d6000803e3d6000fd5b505b346060830152610e6e565b83811115610ca05760405162461bcd60e51b815260040161038790611b2c565b60048054604051636eb1769f60e11b815286926001600160a01b039092169163dd62ed3e91610cd3913391309101611a28565b60206040518083038186803b158015610ceb57600080fd5b505afa158015610cff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d23919061197d565b1015610d415760405162461bcd60e51b815260040161038790611b7d565b600480546040516323b872dd60e01b81526001600160a01b03909116916323b872dd91610d7491339130918a9101611a42565b602060405180830381600087803b158015610d8e57600080fd5b505af1158015610da2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dc6919061187b565b5060408201516001600160a01b031615610e6657600480546040808501516060860151915163a9059cbb60e01b81526001600160a01b039093169363a9059cbb93610e12939101611a66565b602060405180830381600087803b158015610e2c57600080fd5b505af1158015610e40573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e64919061187b565b505b606082018490525b336040830152608082015161038490610e88904290611cab565b1015610ea057610e9a42610384611c54565b60808301525b600085815260066020908152604091829020845181549286015160ff1993841691151591909117610100600160a81b0319166101006001600160a01b039283160217825592850151600180830180546001600160a01b0319169290951691909117909355606085015160028201556080850151600382015560a0850151600482018054879593949293919216908381811115610f4c57634e487b7160e01b600052602160045260246000fd5b0217905550905050847f209b13671cce6f252f05be352152cc8a6236d8f374f81ce4342cc94a47be73383384606001518560a00151604051610f9093929190611a7f565b60405180910390a2600085815260066020908152604091829020825160c081018452815460ff808216151583526001600160a01b0361010090920482169483019490945260018084015490911694820194909452600282015460608201526003820154608082015260048201549093919260a085019291169081111561102657634e487b7160e01b600052602160045260246000fd5b600181111561104557634e487b7160e01b600052602160045260246000fd5b90525095945050505050565b6110596116ca565b6001600160a01b031661106a611198565b6001600160a01b0316146110905760405162461bcd60e51b815260040161038790611b48565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6110e26116ce565b600082815260066020908152604091829020825160c081018452815460ff808216151583526001600160a01b0361010090920482169483019490945260018084015490911694820194909452600282015460608201526003820154608082015260048201549093919260a085019291169081111561117057634e487b7160e01b600052602160045260246000fd5b600181111561118f57634e487b7160e01b600052602160045260246000fd5b90525092915050565b6000546001600160a01b031690565b6005546001600160a01b031681565b61038481565b6111c46116ce565b6005546040516331a9108f60e11b815233916001600160a01b031690636352211e906111f4908990600401611bf6565b60206040518083038186803b15801561120c57600080fd5b505afa158015611220573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061124491906117bf565b6001600160a01b03161461126a5760405162461bcd60e51b815260040161038790611b7d565b60008581526006602052604090205460ff16156112995760405162461bcd60e51b815260040161038790611b10565b6040805160c08101825260018152336020820152600091810182905260608101869052608081016112ca4286611c54565b81526020018560018111156112ef57634e487b7160e01b600052602160045260246000fd5b9052600087815260066020908152604091829020835181549285015160ff1993841691151591909117610100600160a81b0319166101006001600160a01b039283160217825592840151600180830180546001600160a01b0319169290951691909117909355606084015160028201556080840151600382015560a08401516004820180549596508695929491939092169083818111156113a057634e487b7160e01b600052602160045260246000fd5b0217905550506005546040516323b872dd60e01b81526001600160a01b0390911691506323b872dd906113db90339030908b90600401611a42565b600060405180830381600087803b1580156113f557600080fd5b505af1158015611409573d6000803e3d6000fd5b503392507fc5660d56ca28521ee094f4313486f25d77a03c0f8de39c52fd3933d858c83fb691508890508761143e4288611c54565b8860405161144f9493929190611bff565b60405180910390a290505b949350505050565b60025481565b60015481565b6114766116ca565b6001600160a01b0316611487611198565b6001600160a01b0316146114ad5760405162461bcd60e51b815260040161038790611b48565b600580546001600160a01b039384166001600160a01b03199182161790915560048054929093169116179055565b6004546001600160a01b031681565b60006114f46116ca565b6001600160a01b0316611505611198565b6001600160a01b03161461152b5760405162461bcd60e51b815260040161038790611b48565b826001600160a01b031663a9059cbb611542611198565b846040518363ffffffff1660e01b8152600401611560929190611a66565b602060405180830381600087803b15801561157a57600080fd5b505af115801561158e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115b2919061187b565b9392505050565b60035481565b6201518081565b6115ce6116ca565b6001600160a01b03166115df611198565b6001600160a01b0316146116055760405162461bcd60e51b815260040161038790611b48565b6001600160a01b03811661162b5760405162461bcd60e51b815260040161038790611aca565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b61168e6116ca565b6001600160a01b031661169f611198565b6001600160a01b0316146116c55760405162461bcd60e51b815260040161038790611b48565b600355565b3390565b6040805160c08101825260008082526020820181905291810182905260608101829052608081018290529060a082015290565b8051610a3081611cee565b803560028110610a3057600080fd5b600082601f83011261172b578081fd5b815167ffffffffffffffff81111561174557611745611cd8565b6020611759601f8301601f19168201611c2a565b828152858284870101111561176c578384fd5b835b8381101561178957858101830151828201840152820161176e565b8381111561179957848385840101525b5095945050505050565b6000602082840312156117b4578081fd5b81356115b281611cee565b6000602082840312156117d0578081fd5b81516115b281611cee565b600080604083850312156117ed578081fd5b82356117f881611cee565b9150602083013561180881611cee565b809150509250929050565b60008060408385031215611825578182fd5b823561183081611cee565b946020939093013593505050565b600080600060608486031215611852578081fd5b833561185d81611cee565b9250602084013591506118726040850161170c565b90509250925092565b60006020828403121561188c578081fd5b815180151581146115b2578182fd5b6000602082840312156118ac578081fd5b815167ffffffffffffffff808211156118c3578283fd5b9083019060a082860312156118d6578283fd5b60405160a0810181811083821117156118f1576118f1611cd8565b6040528251815261190460208401611701565b602082015260408301518281111561191a578485fd5b6119268782860161171b565b60408301525060608301518281111561193d578485fd5b6119498782860161171b565b6060830152506080830151608082015280935050505092915050565b600060208284031215611976578081fd5b5035919050565b60006020828403121561198e578081fd5b5051919050565b600080604083850312156119a7578182fd5b50508035926020909101359150565b600080600080608085870312156119cb578081fd5b84359350602085013592506119e26040860161170c565b9396929550929360600135925050565b60028110611a1057634e487b7160e01b600052602160045260246000fd5b9052565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b0384168152602081018390526060810161145a60408301846119f2565b901515815260200190565b602080825260029082015261115560f21b604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b602080825260029082015261455360f01b604082015260600190565b60208082526002908201526122ab60f11b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602080825260029082015261454160f01b604082015260600190565b600060c082019050825115158252602083015160018060a01b0380821660208501528060408601511660408501525050606083015160608301526080830151608083015260a0830151611bef60a08401826119f2565b5092915050565b90815260200190565b848152602081018490526040810183905260808101611c2160608301846119f2565b95945050505050565b60405181810167ffffffffffffffff81118282101715611c4c57611c4c611cd8565b604052919050565b60008219821115611c6757611c67611cc2565b500190565b600082611c8757634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611ca657611ca6611cc2565b500290565b600082821015611cbd57611cbd611cc2565b500390565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611d0357600080fd5b5056fea264697066735822122046d1942a4798899005abf46e3df11914b95d5a8d4e0ee8a186f47cbec2d26dde64736f6c63430008000033
Deployed Bytecode
0x6080604052600436106101145760003560e01c8063bb5bc5eb116100a0578063dc39d06d11610064578063dc39d06d146102b1578063dc8c0575146102de578063e592301a146102f3578063f2fde38b14610308578063f8e5601b1461032857610114565b8063bb5bc5eb14610232578063c56f1b5a14610252578063c57981b514610267578063c7afe9f21461027c578063d37231a71461029c57610114565b8063715018a6116100e7578063715018a6146101b157806378bd7935146101c65780638da5cb5b146101e657806392f6a3ce14610208578063aa9ab1741461021d57610114565b80632892a977146101195780632ec09d391461013b57806352f7c98814610171578063598647f814610191575b600080fd5b34801561012557600080fd5b5061013961013436600461183e565b610348565b005b34801561014757600080fd5b5061015b610156366004611965565b61047e565b6040516101689190611bf6565b60405180910390f35b34801561017d57600080fd5b5061013961018c366004611995565b610a35565b6101a461019f366004611995565b610a7f565b6040516101689190611b99565b3480156101bd57600080fd5b50610139611051565b3480156101d257600080fd5b506101a46101e1366004611965565b6110da565b3480156101f257600080fd5b506101fb611198565b6040516101689190611a14565b34801561021457600080fd5b506101fb6111a7565b34801561022957600080fd5b5061015b6111b6565b34801561023e57600080fd5b506101a461024d3660046119b6565b6111bc565b34801561025e57600080fd5b5061015b611462565b34801561027357600080fd5b5061015b611468565b34801561028857600080fd5b506101396102973660046117db565b61146e565b3480156102a857600080fd5b506101fb6114db565b3480156102bd57600080fd5b506102d16102cc366004611813565b6114ea565b6040516101689190611aa3565b3480156102ea57600080fd5b5061015b6115b9565b3480156102ff57600080fd5b5061015b6115bf565b34801561031457600080fd5b506101396103233660046117a3565b6115c6565b34801561033457600080fd5b50610139610343366004611965565b611686565b6103506116ca565b6001600160a01b0316610361611198565b6001600160a01b0316146103905760405162461bcd60e51b815260040161038790611b48565b60405180910390fd5b60008160018111156103b257634e487b7160e01b600052602160045260246000fd5b14156103f4576040516001600160a01b0384169083156108fc029084906000818181858888f193505050501580156103ee573d6000803e3d6000fd5b50610479565b6004805460405163a9059cbb60e01b81526001600160a01b039091169163a9059cbb91610425918791879101611a66565b602060405180830381600087803b15801561043f57600080fd5b505af1158015610453573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610477919061187b565b505b505050565b6000818152600660209081526040808320815160c081018352815460ff808216151583526101009091046001600160a01b039081169583019590955260018084015490951693820193909352600282015460608201526003820154608082015260048201548594919360a085019291169081111561050c57634e487b7160e01b600052602160045260246000fd5b600181111561052b57634e487b7160e01b600052602160045260246000fd5b905250805190915061054f5760405162461bcd60e51b815260040161038790611b10565b806080015142116105725760405162461bcd60e51b815260040161038790611aae565b60208101516001600160a01b0316331480610599575060408101516001600160a01b031633145b6105b55760405162461bcd60e51b815260040161038790611b7d565b60408101516001600160a01b03166106365760055460208201516040516323b872dd60e01b81526001600160a01b03909216916323b872dd916105ff913091908890600401611a42565b600060405180830381600087803b15801561061957600080fd5b505af115801561062d573d6000803e3d6000fd5b5050505061099d565b60055460408083015190516323b872dd60e01b81526001600160a01b03909216916323b872dd9161066e913091908890600401611a42565b600060405180830381600087803b15801561068857600080fd5b505af115801561069c573d6000803e3d6000fd5b5050600554604051630b3eefb760e11b8152600093506001600160a01b03909116915063167ddf6e906106d3908790600401611bf6565b60006040518083038186803b1580156106eb57600080fd5b505afa1580156106ff573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610727919081019061189b565b905060006064826080015184606001516107419190611c8c565b61074b9190611c6c565b905060008360a00151600181111561077357634e487b7160e01b600052602160045260246000fd5b14156108405760006064600154856060015161078f9190611c8c565b6107999190611c6c565b905060006107a78383611c54565b85606001516107b69190611cab565b60208601516040519192506001600160a01b03169082156108fc029083906000818181858888f193505050501580156107f3573d6000803e3d6000fd5b5082156108395783602001516001600160a01b03166108fc849081150290604051600060405180830381858888f19350505050158015610837573d6000803e3d6000fd5b505b505061099a565b6000606460025485606001516108569190611c8c565b6108609190611c6c565b9050600061086e8383611c54565b856060015161087d9190611cab565b60048054602088015160405163a9059cbb60e01b81529394506001600160a01b039091169263a9059cbb926108b59291869101611a66565b602060405180830381600087803b1580156108cf57600080fd5b505af11580156108e3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610907919061187b565b5082156109975760048054602086015160405163a9059cbb60e01b81526001600160a01b039092169263a9059cbb926109439291889101611a66565b602060405180830381600087803b15801561095d57600080fd5b505af1158015610971573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610995919061187b565b505b50505b50505b60008381526006602052604080822080546001600160a81b03191681556001810180546001600160a01b03191690556002810183905560038101929092556004909101805460ff19169055818101516060830151915185927fd4908414cdb2f24c8ce76341e36cb074a61b043c671e9d28eb33c11a2f4edcf992610a2392909190611a66565b60405180910390a2829150505b919050565b610a3d6116ca565b6001600160a01b0316610a4e611198565b6001600160a01b031614610a745760405162461bcd60e51b815260040161038790611b48565b600191909155600255565b610a876116ce565b6000838152600660209081526040808320815160c081018352815460ff808216151583526101009091046001600160a01b039081169583019590955260018084015490951693820193909352600282015460608201526003820154608082015260048201549093919260a0850192911690811115610b1557634e487b7160e01b600052602160045260246000fd5b6001811115610b3457634e487b7160e01b600052602160045260246000fd5b9052508051909150610b585760405162461bcd60e51b815260040161038790611b10565b8060800151421115610ba25760408101516001600160a01b031615610b8f5760405162461bcd60e51b815260040161038790611aae565b610b9c4262015180611c54565b60808201525b600060646003548360600151610bb89190611c8c565b610bc29190611c6c565b8260600151610bd19190611c54565b905060008260a001516001811115610bf957634e487b7160e01b600052602160045260246000fd5b1415610c805734811115610c1f5760405162461bcd60e51b815260040161038790611b2c565b60408201516001600160a01b031615610c755781604001516001600160a01b03166108fc83606001519081150290604051600060405180830381858888f19350505050158015610c73573d6000803e3d6000fd5b505b346060830152610e6e565b83811115610ca05760405162461bcd60e51b815260040161038790611b2c565b60048054604051636eb1769f60e11b815286926001600160a01b039092169163dd62ed3e91610cd3913391309101611a28565b60206040518083038186803b158015610ceb57600080fd5b505afa158015610cff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d23919061197d565b1015610d415760405162461bcd60e51b815260040161038790611b7d565b600480546040516323b872dd60e01b81526001600160a01b03909116916323b872dd91610d7491339130918a9101611a42565b602060405180830381600087803b158015610d8e57600080fd5b505af1158015610da2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dc6919061187b565b5060408201516001600160a01b031615610e6657600480546040808501516060860151915163a9059cbb60e01b81526001600160a01b039093169363a9059cbb93610e12939101611a66565b602060405180830381600087803b158015610e2c57600080fd5b505af1158015610e40573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e64919061187b565b505b606082018490525b336040830152608082015161038490610e88904290611cab565b1015610ea057610e9a42610384611c54565b60808301525b600085815260066020908152604091829020845181549286015160ff1993841691151591909117610100600160a81b0319166101006001600160a01b039283160217825592850151600180830180546001600160a01b0319169290951691909117909355606085015160028201556080850151600382015560a0850151600482018054879593949293919216908381811115610f4c57634e487b7160e01b600052602160045260246000fd5b0217905550905050847f209b13671cce6f252f05be352152cc8a6236d8f374f81ce4342cc94a47be73383384606001518560a00151604051610f9093929190611a7f565b60405180910390a2600085815260066020908152604091829020825160c081018452815460ff808216151583526001600160a01b0361010090920482169483019490945260018084015490911694820194909452600282015460608201526003820154608082015260048201549093919260a085019291169081111561102657634e487b7160e01b600052602160045260246000fd5b600181111561104557634e487b7160e01b600052602160045260246000fd5b90525095945050505050565b6110596116ca565b6001600160a01b031661106a611198565b6001600160a01b0316146110905760405162461bcd60e51b815260040161038790611b48565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6110e26116ce565b600082815260066020908152604091829020825160c081018452815460ff808216151583526001600160a01b0361010090920482169483019490945260018084015490911694820194909452600282015460608201526003820154608082015260048201549093919260a085019291169081111561117057634e487b7160e01b600052602160045260246000fd5b600181111561118f57634e487b7160e01b600052602160045260246000fd5b90525092915050565b6000546001600160a01b031690565b6005546001600160a01b031681565b61038481565b6111c46116ce565b6005546040516331a9108f60e11b815233916001600160a01b031690636352211e906111f4908990600401611bf6565b60206040518083038186803b15801561120c57600080fd5b505afa158015611220573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061124491906117bf565b6001600160a01b03161461126a5760405162461bcd60e51b815260040161038790611b7d565b60008581526006602052604090205460ff16156112995760405162461bcd60e51b815260040161038790611b10565b6040805160c08101825260018152336020820152600091810182905260608101869052608081016112ca4286611c54565b81526020018560018111156112ef57634e487b7160e01b600052602160045260246000fd5b9052600087815260066020908152604091829020835181549285015160ff1993841691151591909117610100600160a81b0319166101006001600160a01b039283160217825592840151600180830180546001600160a01b0319169290951691909117909355606084015160028201556080840151600382015560a08401516004820180549596508695929491939092169083818111156113a057634e487b7160e01b600052602160045260246000fd5b0217905550506005546040516323b872dd60e01b81526001600160a01b0390911691506323b872dd906113db90339030908b90600401611a42565b600060405180830381600087803b1580156113f557600080fd5b505af1158015611409573d6000803e3d6000fd5b503392507fc5660d56ca28521ee094f4313486f25d77a03c0f8de39c52fd3933d858c83fb691508890508761143e4288611c54565b8860405161144f9493929190611bff565b60405180910390a290505b949350505050565b60025481565b60015481565b6114766116ca565b6001600160a01b0316611487611198565b6001600160a01b0316146114ad5760405162461bcd60e51b815260040161038790611b48565b600580546001600160a01b039384166001600160a01b03199182161790915560048054929093169116179055565b6004546001600160a01b031681565b60006114f46116ca565b6001600160a01b0316611505611198565b6001600160a01b03161461152b5760405162461bcd60e51b815260040161038790611b48565b826001600160a01b031663a9059cbb611542611198565b846040518363ffffffff1660e01b8152600401611560929190611a66565b602060405180830381600087803b15801561157a57600080fd5b505af115801561158e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115b2919061187b565b9392505050565b60035481565b6201518081565b6115ce6116ca565b6001600160a01b03166115df611198565b6001600160a01b0316146116055760405162461bcd60e51b815260040161038790611b48565b6001600160a01b03811661162b5760405162461bcd60e51b815260040161038790611aca565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b61168e6116ca565b6001600160a01b031661169f611198565b6001600160a01b0316146116c55760405162461bcd60e51b815260040161038790611b48565b600355565b3390565b6040805160c08101825260008082526020820181905291810182905260608101829052608081018290529060a082015290565b8051610a3081611cee565b803560028110610a3057600080fd5b600082601f83011261172b578081fd5b815167ffffffffffffffff81111561174557611745611cd8565b6020611759601f8301601f19168201611c2a565b828152858284870101111561176c578384fd5b835b8381101561178957858101830151828201840152820161176e565b8381111561179957848385840101525b5095945050505050565b6000602082840312156117b4578081fd5b81356115b281611cee565b6000602082840312156117d0578081fd5b81516115b281611cee565b600080604083850312156117ed578081fd5b82356117f881611cee565b9150602083013561180881611cee565b809150509250929050565b60008060408385031215611825578182fd5b823561183081611cee565b946020939093013593505050565b600080600060608486031215611852578081fd5b833561185d81611cee565b9250602084013591506118726040850161170c565b90509250925092565b60006020828403121561188c578081fd5b815180151581146115b2578182fd5b6000602082840312156118ac578081fd5b815167ffffffffffffffff808211156118c3578283fd5b9083019060a082860312156118d6578283fd5b60405160a0810181811083821117156118f1576118f1611cd8565b6040528251815261190460208401611701565b602082015260408301518281111561191a578485fd5b6119268782860161171b565b60408301525060608301518281111561193d578485fd5b6119498782860161171b565b6060830152506080830151608082015280935050505092915050565b600060208284031215611976578081fd5b5035919050565b60006020828403121561198e578081fd5b5051919050565b600080604083850312156119a7578182fd5b50508035926020909101359150565b600080600080608085870312156119cb578081fd5b84359350602085013592506119e26040860161170c565b9396929550929360600135925050565b60028110611a1057634e487b7160e01b600052602160045260246000fd5b9052565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b0384168152602081018390526060810161145a60408301846119f2565b901515815260200190565b602080825260029082015261115560f21b604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b602080825260029082015261455360f01b604082015260600190565b60208082526002908201526122ab60f11b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602080825260029082015261454160f01b604082015260600190565b600060c082019050825115158252602083015160018060a01b0380821660208501528060408601511660408501525050606083015160608301526080830151608083015260a0830151611bef60a08401826119f2565b5092915050565b90815260200190565b848152602081018490526040810183905260808101611c2160608301846119f2565b95945050505050565b60405181810167ffffffffffffffff81118282101715611c4c57611c4c611cd8565b604052919050565b60008219821115611c6757611c67611cc2565b500190565b600082611c8757634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611ca657611ca6611cc2565b500290565b600082821015611cbd57611cbd611cc2565b500390565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611d0357600080fd5b5056fea264697066735822122046d1942a4798899005abf46e3df11914b95d5a8d4e0ee8a186f47cbec2d26dde64736f6c63430008000033
Deployed Bytecode Sourcemap
233:5647:13:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5419:281;;;;;;;;;;-1:-1:-1;5419:281:13;;;;;:::i;:::-;;:::i;:::-;;3002:1788;;;;;;;;;;-1:-1:-1;3002:1788:13;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;5144:129;;;;;;;;;;-1:-1:-1;5144:129:13;;;;;:::i;:::-;;:::i;1335:1660::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;1746:148:15:-;;;;;;;;;;;;;:::i;4802:129:13:-;;;;;;;;;;-1:-1:-1;4802:129:13;;;;;:::i;:::-;;:::i;1095:87:15:-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;554:35:13:-;;;;;;;;;;;;;:::i;342:52::-;;;;;;;;;;;;;:::i;672:657::-;;;;;;;;;;-1:-1:-1;672:657:13;;;;;:::i;:::-;;:::i;430:29::-;;;;;;;;;;;;;:::i;401:23::-;;;;;;;;;;;;;:::i;4938:199::-;;;;;;;;;;-1:-1:-1;4938:199:13;;;;;:::i;:::-;;:::i;514:34::-;;;;;;;;;;;;;:::i;5707:168::-;;;;;;;;;;-1:-1:-1;5707:168:13;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;465:38::-;;;;;;;;;;;;;:::i;283:44::-;;;;;;;;;;;;;:::i;2049:244:15:-;;;;;;;;;;-1:-1:-1;2049:244:15;;;;;:::i;:::-;;:::i;5279:133:13:-;;;;;;;;;;-1:-1:-1;5279:133:13;;;;;:::i;:::-;;:::i;5419:281::-;1326:12:15;:10;:12::i;:::-;-1:-1:-1;;;;;1315:23:15;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1315:23:15;;1307:68;;;;-1:-1:-1;;;1307:68:15;;;;;;;:::i;:::-;;;;;;;;;5541:12:13::1;5529:8;:24;;;;;;-1:-1:-1::0;;;5529:24:13::1;;;;;;;;;;5526:168;;;5568:34;::::0;-1:-1:-1;;;;;5568:26:13;::::1;::::0;:34;::::1;;;::::0;5595:6;;5568:34:::1;::::0;;;5595:6;5568:26;:34;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;5526:168;;;5637:19;::::0;;5630:53:::1;::::0;-1:-1:-1;;;5630:53:13;;-1:-1:-1;;;;;5637:19:13;;::::1;::::0;5630:36:::1;::::0;:53:::1;::::0;5667:8;;5676:6;;5630:53:::1;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;5526:168;5419:281:::0;;;:::o;3002:1788::-;3062:7;3110:21;;;:11;:21;;;;;;;;3081:50;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;3081:50:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3062:7;;3081:50;;;;;;;;;;;;;;-1:-1:-1;;;3081:50:13;;;;;;;;;;;;;;;-1:-1:-1;;;3081:50:13;;;;;;;;;;;-1:-1:-1;3149:18:13;;3081:50;;-1:-1:-1;3141:33:13;;;;-1:-1:-1;;;3141:33:13;;;;;;;:::i;:::-;3210:11;:19;;;3192:15;:37;3184:52;;;;-1:-1:-1;;;3184:52:13;;;;;;;:::i;:::-;3254:18;;;;-1:-1:-1;;;;;3254:32:13;3276:10;3254:32;;:67;;-1:-1:-1;3290:17:13;;;;-1:-1:-1;;;;;3290:31:13;3311:10;3290:31;3254:67;3246:82;;;;-1:-1:-1;;;3246:82:13;;;;;;;:::i;:::-;3343:17;;;;-1:-1:-1;;;;;3343:31:13;3339:1302;;3402:20;;3452:18;;;;3390:91;;-1:-1:-1;;;3390:91:13;;-1:-1:-1;;;;;3402:20:13;;;;3390:46;;:91;;3445:4;;3452:18;3472:8;;3390:91;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3339:1302;;;3524:20;;3574:17;;;;;3512:90;;-1:-1:-1;;;3512:90:13;;-1:-1:-1;;;;;3524:20:13;;;;3512:46;;:90;;3567:4;;3574:17;3593:8;;3512:90;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3666:20:13;;3654:54;;-1:-1:-1;;;3654:54:13;;3617:34;;-1:-1:-1;;;;;;3666:20:13;;;;-1:-1:-1;3654:44:13;;:54;;3699:8;;3654:54;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3654:54:13;;;;;;;;;;;;:::i;:::-;3617:91;;3722:21;3786:3;3767:7;:15;;;3747:11;:17;;;:35;;;;:::i;:::-;3746:43;;;;:::i;:::-;3722:67;-1:-1:-1;3843:12:13;3819:11;:20;;;:36;;;;;;-1:-1:-1;;;3819:36:13;;;;;;;;;;3816:815;;;3874:18;3923:3;3916;;3896:11;:17;;;:23;;;;:::i;:::-;3895:31;;;;:::i;:::-;3874:52;-1:-1:-1;3944:13:13;3981:26;3994:13;3874:52;3981:26;:::i;:::-;3960:11;:17;;;:48;;;;:::i;:::-;4034:18;;;;4026:43;;3944:64;;-1:-1:-1;;;;;;4026:36:13;;:43;;;;;3944:64;;4026:43;;;;3944:64;4026:36;:43;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4090:17:13;;4087:110;;4138:7;:15;;;-1:-1:-1;;;;;4130:33:13;:48;4164:13;4130:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4087:110;3816:815;;;;;4250:18;4305:3;4292:9;;4272:11;:17;;;:29;;;;:::i;:::-;4271:37;;;;:::i;:::-;4250:58;-1:-1:-1;4326:13:13;4363:26;4376:13;4250:58;4363:26;:::i;:::-;4342:11;:17;;;:48;;;;:::i;:::-;4415:19;;;4445:18;;;;4408:62;;-1:-1:-1;;;4408:62:13;;4326:64;;-1:-1:-1;;;;;;4415:19:13;;;;4408:36;;:62;;4445:18;4326:64;;4408:62;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;4491:17:13;;4488:129;;4538:19;;;4568:15;;;;4531:67;;-1:-1:-1;;;4531:67:13;;-1:-1:-1;;;;;4538:19:13;;;;4531:36;;:67;;4568:15;4584:13;;4531:67;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;4488:129;3816:815;;;3339:1302;;;4658:21;;;;:11;:21;;;;;;4651:28;;-1:-1:-1;;;;;;4651:28:13;;;;;;;;-1:-1:-1;;;;;;4651:28:13;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;4651:28:13;;;4703:17;;;;4732;;;;4694:56;;4670:8;;4694:56;;;;4703:17;;4732;4694:56;:::i;:::-;;;;;;;;4767:8;4760:15;;;3002:1788;;;;:::o;5144:129::-;1326:12:15;:10;:12::i;:::-;-1:-1:-1;;;;;1315:23:15;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1315:23:15;;1307:68;;;;-1:-1:-1;;;1307:68:15;;;;;;;:::i;:::-;5227:3:13::1;:9:::0;;;;5246::::1;:20:::0;5144:129::o;1335:1660::-;1414:14;;:::i;:::-;1439:26;1468:21;;;:11;:21;;;;;;;;1439:50;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1439:50:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1468:21;;1439:50;;;;;;;;;;;;-1:-1:-1;;;1439:50:13;;;;;;;;;;;;;;;-1:-1:-1;;;1439:50:13;;;;;;;;;;;-1:-1:-1;1507:18:13;;1439:50;;-1:-1:-1;1499:33:13;;;;-1:-1:-1;;;1499:33:13;;;;;;;:::i;:::-;1564:11;:19;;;1546:15;:37;1543:211;;;1601:17;;;;-1:-1:-1;;;;;1601:31:13;;1598:80;;1651:12;;-1:-1:-1;;;1651:12:13;;;;;;;:::i;1598:80::-;1713:30;1728:15;322:5;1713:30;:::i;:::-;1691:19;;;:52;1543:211;1764:20;1850:3;1828:19;;1808:11;:17;;;:39;;;;:::i;:::-;:45;;;;:::i;:::-;1787:11;:17;;;:67;;;;:::i;:::-;1764:90;-1:-1:-1;1891:12:13;1867:11;:20;;;:36;;;;;;-1:-1:-1;;;1867:36:13;;;;;;;;;;1864:745;;;1943:9;1927:12;:25;;1918:42;;;;-1:-1:-1;;;1918:42:13;;;;;;;:::i;:::-;1977:17;;;;-1:-1:-1;;;;;1977:31:13;;1974:123;;2036:11;:17;;;-1:-1:-1;;;;;2028:35:13;:54;2064:11;:17;;;2028:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1974:123;2134:9;2114:17;;;:29;1864:745;;;2197:6;2181:12;:22;;2172:39;;;;-1:-1:-1;;;2172:39:13;;;;;;;:::i;:::-;2240:19;;;2233:64;;-1:-1:-1;;;2233:64:13;;2301:6;;-1:-1:-1;;;;;2240:19:13;;;;2233:37;;:64;;2271:10;;2291:4;;2233:64;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:74;;2225:89;;;;-1:-1:-1;;;2225:89:13;;;;;;;:::i;:::-;2335:19;;;2328:75;;-1:-1:-1;;;2328:75:13;;-1:-1:-1;;;;;2335:19:13;;;;2328:40;;:75;;2369:10;;2389:4;;2396:6;;2328:75;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;2420:17:13;;;;-1:-1:-1;;;;;2420:31:13;;2417:142;;2478:19;;;2508:17;;;;;2526;;;;2471:73;;-1:-1:-1;;;2471:73:13;;-1:-1:-1;;;;;2478:19:13;;;;2471:36;;:73;;2526:17;2471:73;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;2417:142;2572:17;;;:26;;;1864:745;2647:10;2627:17;;;:30;2672:19;;;;391:3;;2672:37;;2694:15;;2672:37;:::i;:::-;:62;2668:155;;;2772:40;2797:15;391:3;2772:40;:::i;:::-;2750:19;;;:62;2668:155;2833:21;;;;:11;:21;;;;;;;;;:35;;;;;;;;-1:-1:-1;;2833:35:13;;;;;;;;;;-1:-1:-1;;;;;;2833:35:13;;-1:-1:-1;;;;;2833:35:13;;;;;;;;;;;-1:-1:-1;2833:35:13;;;;;-1:-1:-1;;;;;;2833:35:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:21;;:35;;;;;;;;;;;;;-1:-1:-1;;;2833:35:13;;;;;;;;;;;;;;;;;2899:8;2883:67;2887:10;2909:11;:17;;;2929:11;:20;;;2883:67;;;;;;;;:::i;:::-;;;;;;;;2967:21;;;;:11;:21;;;;;;;;;2960:28;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2960:28:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2967:21;;2960:28;;;;;;;;;;;;-1:-1:-1;;;2960:28:13;;;;;;;;;;;;;;;-1:-1:-1;;;2960:28:13;;;;;;;;;;;-1:-1:-1;2960:28:13;1335:1660;-1:-1:-1;;;;;1335:1660:13:o;1746:148:15:-;1326:12;:10;:12::i;:::-;-1:-1:-1;;;;;1315:23:15;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1315:23:15;;1307:68;;;;-1:-1:-1;;;1307:68:15;;;;;;;:::i;:::-;1853:1:::1;1837:6:::0;;1816:40:::1;::::0;-1:-1:-1;;;;;1837:6:15;;::::1;::::0;1816:40:::1;::::0;1853:1;;1816:40:::1;1884:1;1867:19:::0;;-1:-1:-1;;;;;;1867:19:15::1;::::0;;1746:148::o;4802:129:13:-;4870:14;;:::i;:::-;4903:21;;;;:11;:21;;;;;;;;;4896:28;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;4896:28:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4903:21;;4896:28;;;;;;;;;;;;-1:-1:-1;;;4896:28:13;;;;;;;;;;;;;;;-1:-1:-1;;;4896:28:13;;;;;;;;;;;-1:-1:-1;4896:28:13;4802:129;-1:-1:-1;;4802:129:13:o;1095:87:15:-;1141:7;1168:6;-1:-1:-1;;;;;1168:6:15;1095:87;:::o;554:35:13:-;;;-1:-1:-1;;;;;554:35:13;;:::o;342:52::-;391:3;342:52;:::o;672:657::-;787:14;;:::i;:::-;833:20;;821:50;;-1:-1:-1;;;821:50:13;;875:10;;-1:-1:-1;;;;;833:20:13;;821:41;;:50;;863:7;;821:50;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;821:64:13;;813:79;;;;-1:-1:-1;;;813:79:13;;;;;;;:::i;:::-;912:20;;;;:11;:20;;;;;:27;;;911:28;903:44;;;;-1:-1:-1;;;903:44:13;;;;;;;:::i;:::-;986:80;;;;;;;;994:4;986:80;;1000:10;986:80;;;;958:25;986:80;;;;;;;;;;;;;;;1031:23;1039:15;1031:5;:23;:::i;:::-;986:80;;;;1056:8;986:80;;;;;;-1:-1:-1;;;986:80:13;;;;;;;;;;;1076:20;;;;:11;:20;;;;;;;;;:33;;;;;;;;-1:-1:-1;;1076:33:13;;;;;;;;;;-1:-1:-1;;;;;;1076:33:13;;-1:-1:-1;;;;;1076:33:13;;;;;;;;;;;-1:-1:-1;1076:33:13;;;;;-1:-1:-1;;;;;;1076:33:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1076:33:13;;:20;;:33;;;;;;;;;;;;;-1:-1:-1;;;1076:33:13;;;;;;;;;;;;;-1:-1:-1;;1132:20:13;;1120:82;;-1:-1:-1;;;1120:82:13;;-1:-1:-1;;;;;1132:20:13;;;;-1:-1:-1;1120:46:13;;:82;;1167:10;;1187:4;;1194:7;;1120:82;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1232:10:13;;-1:-1:-1;1218:76:13;;-1:-1:-1;1244:7:13;;-1:-1:-1;1253:5:13;1260:23;1268:15;1260:5;:23;:::i;:::-;1285:8;1218:76;;;;;;;;;:::i;:::-;;;;;;;;1312:10;-1:-1:-1;672:657:13;;;;;;;:::o;430:29::-;;;;:::o;401:23::-;;;;:::o;4938:199::-;1326:12:15;:10;:12::i;:::-;-1:-1:-1;;;;;1315:23:15;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1315:23:15;;1307:68;;;;-1:-1:-1;;;1307:68:15;;;;;;;:::i;:::-;5047:20:13::1;:37:::0;;-1:-1:-1;;;;;5047:37:13;;::::1;-1:-1:-1::0;;;;;;5047:37:13;;::::1;;::::0;;;5094:19:::1;:35:::0;;;;;::::1;::::0;::::1;;::::0;;4938:199::o;514:34::-;;;-1:-1:-1;;;;;514:34:13;;:::o;5707:168::-;5795:12;1326::15;:10;:12::i;:::-;-1:-1:-1;;;;;1315:23:15;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1315:23:15;;1307:68;;;;-1:-1:-1;;;1307:68:15;;;;;;;:::i;:::-;5833:8:13::1;-1:-1:-1::0;;;;;5826:25:13::1;;5852:7;:5;:7::i;:::-;5861:6;5826:42;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5819:49:::0;5707:168;-1:-1:-1;;;5707:168:13:o;465:38::-;;;;:::o;283:44::-;322:5;283:44;:::o;2049:244:15:-;1326:12;:10;:12::i;:::-;-1:-1:-1;;;;;1315:23:15;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1315:23:15;;1307:68;;;;-1:-1:-1;;;1307:68:15;;;;;;;:::i;:::-;-1:-1:-1;;;;;2138:22:15;::::1;2130:73;;;;-1:-1:-1::0;;;2130:73:15::1;;;;;;;:::i;:::-;2240:6;::::0;;2219:38:::1;::::0;-1:-1:-1;;;;;2219:38:15;;::::1;::::0;2240:6;::::1;::::0;2219:38:::1;::::0;::::1;2268:6;:17:::0;;-1:-1:-1;;;;;;2268:17:15::1;-1:-1:-1::0;;;;;2268:17:15;;;::::1;::::0;;;::::1;::::0;;2049:244::o;5279:133:13:-;1326:12:15;:10;:12::i;:::-;-1:-1:-1;;;;;1315:23:15;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1315:23:15;;1307:68;;;;-1:-1:-1;;;1307:68:15;;;;;;;:::i;:::-;5369:19:13::1;:36:::0;5279:133::o;601:98:1:-;681:10;601:98;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;14:142:18:-;95:13;;117:33;95:13;117:33;:::i;161:152::-;238:20;;287:1;277:12;;267:2;;303:1;300;293:12;318:720;;427:3;420:4;412:6;408:17;404:27;394:2;;449:5;442;435:20;394:2;482:6;476:13;508:18;504:2;501:26;498:2;;;530:18;;:::i;:::-;569:4;597:52;639:2;620:13;;-1:-1:-1;;616:27:18;612:36;;597:52;:::i;:::-;674:2;665:7;658:19;718:3;713:2;708;700:6;696:15;692:24;689:33;686:2;;;739:5;732;725:20;686:2;765:5;779:134;793:2;790:1;787:9;779:134;;;882:14;;;878:23;;872:30;850:15;;;846:24;;839:64;804:10;;779:134;;;931:2;928:1;925:9;922:2;;;991:5;986:2;981;972:7;968:16;964:25;957:40;922:2;-1:-1:-1;1025:7:18;384:654;-1:-1:-1;;;;;384:654:18:o;1043:259::-;;1155:2;1143:9;1134:7;1130:23;1126:32;1123:2;;;1176:6;1168;1161:22;1123:2;1220:9;1207:23;1239:33;1266:5;1239:33;:::i;1307:263::-;;1430:2;1418:9;1409:7;1405:23;1401:32;1398:2;;;1451:6;1443;1436:22;1398:2;1488:9;1482:16;1507:33;1534:5;1507:33;:::i;1575:402::-;;;1704:2;1692:9;1683:7;1679:23;1675:32;1672:2;;;1725:6;1717;1710:22;1672:2;1769:9;1756:23;1788:33;1815:5;1788:33;:::i;:::-;1840:5;-1:-1:-1;1897:2:18;1882:18;;1869:32;1910:35;1869:32;1910:35;:::i;:::-;1964:7;1954:17;;;1662:315;;;;;:::o;1982:327::-;;;2111:2;2099:9;2090:7;2086:23;2082:32;2079:2;;;2132:6;2124;2117:22;2079:2;2176:9;2163:23;2195:33;2222:5;2195:33;:::i;:::-;2247:5;2299:2;2284:18;;;;2271:32;;-1:-1:-1;;;2069:240:18:o;2314:423::-;;;;2473:2;2461:9;2452:7;2448:23;2444:32;2441:2;;;2494:6;2486;2479:22;2441:2;2538:9;2525:23;2557:33;2584:5;2557:33;:::i;:::-;2609:5;-1:-1:-1;2661:2:18;2646:18;;2633:32;;-1:-1:-1;2684:47:18;2727:2;2712:18;;2684:47;:::i;:::-;2674:57;;2431:306;;;;;:::o;2742:297::-;;2862:2;2850:9;2841:7;2837:23;2833:32;2830:2;;;2883:6;2875;2868:22;2830:2;2920:9;2914:16;2973:5;2966:13;2959:21;2952:5;2949:32;2939:2;;3000:6;2992;2985:22;3044:1179;;3192:2;3180:9;3171:7;3167:23;3163:32;3160:2;;;3213:6;3205;3198:22;3160:2;3251:9;3245:16;3280:18;3321:2;3313:6;3310:14;3307:2;;;3342:6;3334;3327:22;3307:2;3370:22;;;;3426:4;3408:16;;;3404:27;3401:2;;;3449:6;3441;3434:22;3401:2;3487;3481:9;3529:4;3521:6;3517:17;3584:6;3572:10;3569:22;3564:2;3552:10;3549:18;3546:46;3543:2;;;3595:18;;:::i;:::-;3631:2;3624:22;3670:9;;3655:25;;3713:44;3753:2;3745:11;;3713:44;:::i;:::-;3708:2;3700:6;3696:15;3689:69;3797:2;3793;3789:11;3783:18;3826:2;3816:8;3813:16;3810:2;;;3847:6;3839;3832:22;3810:2;3889:58;3939:7;3928:8;3924:2;3920:17;3889:58;:::i;:::-;3884:2;3876:6;3872:15;3865:83;;3987:2;3983;3979:11;3973:18;4016:2;4006:8;4003:16;4000:2;;;4037:6;4029;4022:22;4000:2;4079:58;4129:7;4118:8;4114:2;4110:17;4079:58;:::i;:::-;4074:2;4066:6;4062:15;4055:83;;4186:3;4182:2;4178:12;4172:19;4166:3;4158:6;4154:16;4147:45;4211:6;4201:16;;;;;3150:1073;;;;:::o;4228:190::-;;4340:2;4328:9;4319:7;4315:23;4311:32;4308:2;;;4361:6;4353;4346:22;4308:2;-1:-1:-1;4389:23:18;;4298:120;-1:-1:-1;4298:120:18:o;4423:194::-;;4546:2;4534:9;4525:7;4521:23;4517:32;4514:2;;;4567:6;4559;4552:22;4514:2;-1:-1:-1;4595:16:18;;4504:113;-1:-1:-1;4504:113:18:o;4622:258::-;;;4751:2;4739:9;4730:7;4726:23;4722:32;4719:2;;;4772:6;4764;4757:22;4719:2;-1:-1:-1;;4800:23:18;;;4870:2;4855:18;;;4842:32;;-1:-1:-1;4709:171:18:o;4885:423::-;;;;;5061:3;5049:9;5040:7;5036:23;5032:33;5029:2;;;5083:6;5075;5068:22;5029:2;5124:9;5111:23;5101:33;;5181:2;5170:9;5166:18;5153:32;5143:42;;5204:47;5247:2;5236:9;5232:18;5204:47;:::i;:::-;5019:289;;;;-1:-1:-1;5194:57:18;;5298:2;5283:18;5270:32;;-1:-1:-1;;5019:289:18:o;5313:239::-;5396:1;5389:5;5386:12;5376:2;;5441:10;5436:3;5432:20;5429:1;5422:31;5476:4;5473:1;5466:15;5504:4;5501:1;5494:15;5376:2;5528:18;;5366:186::o;5557:203::-;-1:-1:-1;;;;;5721:32:18;;;;5703:51;;5691:2;5676:18;;5658:102::o;5765:304::-;-1:-1:-1;;;;;5995:15:18;;;5977:34;;6047:15;;6042:2;6027:18;;6020:43;5927:2;5912:18;;5894:175::o;6074:375::-;-1:-1:-1;;;;;6332:15:18;;;6314:34;;6384:15;;;;6379:2;6364:18;;6357:43;6431:2;6416:18;;6409:34;;;;6264:2;6249:18;;6231:218::o;6454:274::-;-1:-1:-1;;;;;6646:32:18;;;;6628:51;;6710:2;6695:18;;6688:34;6616:2;6601:18;;6583:145::o;6733:377::-;-1:-1:-1;;;;;6964:32:18;;6946:51;;7028:2;7013:18;;7006:34;;;6934:2;6919:18;;7049:55;7100:2;7085:18;;7077:6;7049:55;:::i;7115:187::-;7280:14;;7273:22;7255:41;;7243:2;7228:18;;7210:92::o;7307:325::-;7509:2;7491:21;;;7548:1;7528:18;;;7521:29;-1:-1:-1;;;7581:2:18;7566:18;;7559:32;7623:2;7608:18;;7481:151::o;7637:402::-;7839:2;7821:21;;;7878:2;7858:18;;;7851:30;7917:34;7912:2;7897:18;;7890:62;-1:-1:-1;;;7983:2:18;7968:18;;7961:36;8029:3;8014:19;;7811:228::o;8044:325::-;8246:2;8228:21;;;8285:1;8265:18;;;8258:29;-1:-1:-1;;;8318:2:18;8303:18;;8296:32;8360:2;8345:18;;8218:151::o;8374:325::-;8576:2;8558:21;;;8615:1;8595:18;;;8588:29;-1:-1:-1;;;8648:2:18;8633:18;;8626:32;8690:2;8675:18;;8548:151::o;8704:356::-;8906:2;8888:21;;;8925:18;;;8918:30;8984:34;8979:2;8964:18;;8957:62;9051:2;9036:18;;8878:182::o;9065:325::-;9267:2;9249:21;;;9306:1;9286:18;;;9279:29;-1:-1:-1;;;9339:2:18;9324:18;;9317:32;9381:2;9366:18;;9239:151::o;9395:729::-;;9579:3;9568:9;9564:19;9556:27;;9630:6;9624:13;9617:21;9610:29;9599:9;9592:48;9687:4;9679:6;9675:17;9669:24;9729:1;9725;9720:3;9716:11;9712:19;9787:2;9773:12;9769:21;9762:4;9751:9;9747:20;9740:51;9859:2;9851:4;9843:6;9839:17;9833:24;9829:33;9822:4;9811:9;9807:20;9800:63;;;9919:4;9911:6;9907:17;9901:24;9894:4;9883:9;9879:20;9872:54;9982:4;9974:6;9970:17;9964:24;9957:4;9946:9;9942:20;9935:54;10038:4;10030:6;10026:17;10020:24;10053:65;10112:4;10101:9;10097:20;10081:14;10053:65;:::i;:::-;;9546:578;;;;:::o;10129:177::-;10275:25;;;10263:2;10248:18;;10230:76::o;10311:423::-;10553:25;;;10609:2;10594:18;;10587:34;;;10652:2;10637:18;;10630:34;;;10540:3;10525:19;;10673:55;10724:2;10709:18;;10701:6;10673:55;:::i;:::-;10507:227;;;;;;;:::o;10739:251::-;10809:2;10803:9;10839:17;;;10886:18;10871:34;;10907:22;;;10868:62;10865:2;;;10933:18;;:::i;:::-;10969:2;10962:22;10783:207;;-1:-1:-1;10783:207:18:o;10995:128::-;;11066:1;11062:6;11059:1;11056:13;11053:2;;;11072:18;;:::i;:::-;-1:-1:-1;11108:9:18;;11043:80::o;11128:217::-;;11194:1;11184:2;;-1:-1:-1;;;11219:31:18;;11273:4;11270:1;11263:15;11301:4;11226:1;11291:15;11184:2;-1:-1:-1;11330:9:18;;11174:171::o;11350:168::-;;11456:1;11452;11448:6;11444:14;11441:1;11438:21;11433:1;11426:9;11419:17;11415:45;11412:2;;;11463:18;;:::i;:::-;-1:-1:-1;11503:9:18;;11402:116::o;11523:125::-;;11591:1;11588;11585:8;11582:2;;;11596:18;;:::i;:::-;-1:-1:-1;11633:9:18;;11572:76::o;11653:127::-;11714:10;11709:3;11705:20;11702:1;11695:31;11745:4;11742:1;11735:15;11769:4;11766:1;11759:15;11785:127;11846:10;11841:3;11837:20;11834:1;11827:31;11877:4;11874:1;11867:15;11901:4;11898:1;11891:15;11917:133;-1:-1:-1;;;;;11994:31:18;;11984:42;;11974:2;;12040:1;12037;12030:12;11974:2;11964:86;:::o
Swarm Source
ipfs://46d1942a4798899005abf46e3df11914b95d5a8d4e0ee8a186f47cbec2d26dde
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
BSC | 100.00% | $0.288681 | 11,850 | $3,420.87 |
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.