ERC-721
Overview
Max Total Supply
0 OAP
Holders
22
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 OAPLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
OasisAccessPass
Compiler Version
v0.8.14+commit.80d49f37
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.14; // ========== EXTERNAL IMPORTS ========== import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import {Base64} from "@openzeppelin/contracts/utils/Base64.sol"; /*/////////////////////////////////////// /////////╭━━━━┳╮╱╱╱╱╱╭━━━╮/////////////// /////////┃╭╮╭╮┃┃╱╱╱╱╱┃╭━╮┃/////////////// /////////╰╯┃┃╰┫╰━┳━━╮┃┃╱┃┣━━┳━━┳┳━━╮///// /////////╱╱┃┃╱┃╭╮┃┃━┫┃┃╱┃┃╭╮┃━━╋┫━━┫///// /////////╱╱┃┃╱┃┃┃┃┃━┫┃╰━╯┃╭╮┣━━┃┣━━┃///// /////////╱╱╰╯╱╰╯╰┻━━╯╰━━━┻╯╰┻━━┻┻━━╯///// ///////////////////////////////////////*/ /** * @author 0xFirekeeper * @title Oasis Access Pass - Your Ticket Into The Oasis Games! * @notice ERC721 token that grants you access into the Oasis games, renewable with $OST. */ contract OasisAccessPass is ERC721, Ownable { using Counters for Counters.Counter; using Strings for uint256; /*/////////////////////////////////////////////////////////////// ERRORS //////////////////////////////////////////////////////////////*/ /// @notice Error for if owns OAP. error MaxOnePerAddress(); /// @notice Error for if transferring. error Soulbound(); /// @notice Error for if does not own OAP. error DoesNotExist(); /*/////////////////////////////////////////////////////////////// STATE VARIABLES //////////////////////////////////////////////////////////////*/ /// @notice Oasis Token address. IERC20 public immutable ost; /// @notice Oasis Graveyard address. address public immutable oasisGraveyard; /// @notice Image URL. string public image; /// @notice Free time granted upon mint in seconds. uint256 public startingDuration; /// @notice $OST cost per second extended. uint256 public ostCostPerSecond; /// @notice Address to Token ID. mapping(address => uint256) public addressToId; /// @notice Token ID to expiry date. mapping(uint256 => uint256) public idToExpiry; /// @notice Token ID counter. Counters.Counter private _tokenIdCounter; /*/////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor( IERC20 _ost, address _oasisGraveyard, string memory _image, uint256 _startingDuration, uint256 _ostCostPerSecond ) ERC721("Oasis Access Pass", "OAP") { ost = _ost; oasisGraveyard = _oasisGraveyard; image = _image; startingDuration = _startingDuration; ostCostPerSecond = _ostCostPerSecond; } /*/////////////////////////////////////////////////////////////// USER FUNCTIONS //////////////////////////////////////////////////////////////*/ /** * @notice Mints an Oasis Access Pass. */ function mint() external { if (balanceOf(msg.sender) > 0) revert MaxOnePerAddress(); _tokenIdCounter.increment(); uint256 tokenId = _tokenIdCounter.current(); addressToId[msg.sender] = tokenId; idToExpiry[tokenId] = block.timestamp + startingDuration; _mint(msg.sender, tokenId); } /** * @notice Extends an Oasis Access Pass by burning $OST. * @param _seconds Amount of seconds to extend. */ function extend(uint256 _seconds) external { if (balanceOf(msg.sender) == 0) revert DoesNotExist(); uint256 ostCost = ostCostPerSecond * _seconds; ost.transferFrom(msg.sender, oasisGraveyard, ostCost); uint256 tokenId = getID(msg.sender); if (isExpired(tokenId)) idToExpiry[tokenId] = block.timestamp + _seconds; else idToExpiry[tokenId] += _seconds; } /*/////////////////////////////////////////////////////////////// VIEW FUNCTIONS //////////////////////////////////////////////////////////////*/ /** * @notice Returns whether the user has an ID. * @param _user User address. * @return hasID_ Whether the user has an ID. */ function hasID(address _user) public view returns (bool hasID_) { return balanceOf(_user) > 0; } /** * @notice Returns the token ID of the user. * @param _user User address. * @return tokenId_ Token ID of the user. */ function getID(address _user) public view returns (uint256 tokenId_) { return addressToId[_user]; } /** * @notice Returns the expiry date of a token. * @param _tokenId Token ID. * @return expiry_ Expiry date timestamp. */ function getExpiry(uint256 _tokenId) public view returns (uint256 expiry_) { return idToExpiry[_tokenId]; } /** * @notice Returns whether an OAP is expired. * @param _tokenId Token ID. * @return expired_ Whether specified token ID is expired. */ function isExpired(uint256 _tokenId) public view returns (bool expired_) { return block.timestamp > idToExpiry[_tokenId]; } /*/////////////////////////////////////////////////////////////// OWNER FUNCTIONS //////////////////////////////////////////////////////////////*/ /** * @notice Sets the image URL. * @param _image Image URL. */ function setImage(string calldata _image) external onlyOwner { image = _image; } /** * @notice Sets the starting duration. * @param _startingDuration Starting duration in seconds. */ function setStartingDuration(uint256 _startingDuration) external onlyOwner { startingDuration = _startingDuration; } /** * @notice Oasis Token cost per second. * @param _ostCostPerSecond 18 decimal OST cost per second extended. */ function setOstCostPerSecond(uint256 _ostCostPerSecond) external onlyOwner { ostCostPerSecond = _ostCostPerSecond; } /*/////////////////////////////////////////////////////////////// ERC721 OVERRIDES //////////////////////////////////////////////////////////////*/ /** * @notice Only allow transfers if from AddressZero. * @param _from Address to transfer '_amount' from. * @param _to Address to transfer '_amount' to. * @param _amount Amount of tokens to transfer. */ function _beforeTokenTransfer(address _from, address _to, uint256 _amount) internal override { if (_from != address(0)) revert Soulbound(); super._beforeTokenTransfer(_from, _to, _amount); } /** * @notice Returns the token metadata. * @param _tokenId Token ID. * @return string Base-64-encoded string URI. */ function tokenURI(uint256 _tokenId) public view override returns (string memory) { string memory tokenID = _tokenId.toString(); // prettier-ignore string memory json = string.concat( '{', '"description": "', "Oasis Access Pass - Your Ticket Into The Oasis Games!", '",', '"image": "', image, '",', '"name": "', name(), " #", tokenID, '",', '"attributes": [', '{"trait_type":"ID","value":"', tokenID,'"}', ',', '{"display_type": "date","trait_type":"Expires On","value":', idToExpiry[_tokenId].toString(),'}', ']', '}' ); return string.concat("data:application/json;base64,", Base64.encode(bytes(json))); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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); /** * @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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @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: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol) pragma solidity ^0.8.0; /** * @dev Provides a set of functions to operate with Base64 strings. * * _Available since v4.5._ */ library Base64 { /** * @dev Base64 Encoding/Decoding Table */ string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /** * @dev Converts a `bytes` to its Bytes64 `string` representation. */ function encode(bytes memory data) internal pure returns (string memory) { /** * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol */ if (data.length == 0) return ""; // Loads the table into memory string memory table = _TABLE; // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter // and split into 4 numbers of 6 bits. // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up // - `data.length + 2` -> Round up // - `/ 3` -> Number of 3-bytes chunks // - `4 *` -> 4 characters for each chunk string memory result = new string(4 * ((data.length + 2) / 3)); /// @solidity memory-safe-assembly assembly { // Prepare the lookup table (skip the first "length" byte) let tablePtr := add(table, 1) // Prepare result pointer, jump over length let resultPtr := add(result, 32) // Run over the input, 3 bytes at a time for { let dataPtr := data let endPtr := add(data, mload(data)) } lt(dataPtr, endPtr) { } { // Advance 3 bytes dataPtr := add(dataPtr, 3) let input := mload(dataPtr) // To write each character, shift the 3 bytes (18 bits) chunk // 4 times in blocks of 6 bits for each character (18, 12, 6, 0) // and apply logical AND with 0x3F which is the number of // the previous character in the ASCII table prior to the Base64 Table // The result is then added to the table to get the character to write, // and finally write it in the result pointer but with a left shift // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F)))) resultPtr := add(resultPtr, 1) // Advance } // When data `bytes` is not exactly 3 bytes long // it is padded with `=` characters at the end switch mod(mload(data), 3) case 1 { mstore8(sub(resultPtr, 1), 0x3d) mstore8(sub(resultPtr, 2), 0x3d) } case 2 { mstore8(sub(resultPtr, 1), 0x3d) } } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "london", "remappings": [], "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IERC20","name":"_ost","type":"address"},{"internalType":"address","name":"_oasisGraveyard","type":"address"},{"internalType":"string","name":"_image","type":"string"},{"internalType":"uint256","name":"_startingDuration","type":"uint256"},{"internalType":"uint256","name":"_ostCostPerSecond","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"DoesNotExist","type":"error"},{"inputs":[],"name":"MaxOnePerAddress","type":"error"},{"inputs":[],"name":"Soulbound","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressToId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_seconds","type":"uint256"}],"name":"extend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getExpiry","outputs":[{"internalType":"uint256","name":"expiry_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getID","outputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"hasID","outputs":[{"internalType":"bool","name":"hasID_","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"idToExpiry","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"image","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"isExpired","outputs":[{"internalType":"bool","name":"expired_","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oasisGraveyard","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ost","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ostCostPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_image","type":"string"}],"name":"setImage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ostCostPerSecond","type":"uint256"}],"name":"setOstCostPerSecond","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startingDuration","type":"uint256"}],"name":"setStartingDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startingDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c06040523480156200001157600080fd5b5060405162003f7138038062003f71833981810160405281019062000037919062000591565b6040518060400160405280601181526020017f4f617369732041636365737320506173730000000000000000000000000000008152506040518060400160405280600381526020017f4f415000000000000000000000000000000000000000000000000000000000008152508160009080519060200190620000bb9291906200025f565b508060019080519060200190620000d49291906200025f565b505050620000f7620000eb6200019160201b60201c565b6200019960201b60201c565b8473ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250508373ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff16815250508260079080519060200190620001779291906200025f565b50816008819055508060098190555050505050506200069c565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200026d9062000667565b90600052602060002090601f016020900481019282620002915760008555620002dd565b82601f10620002ac57805160ff1916838001178555620002dd565b82800160010185558215620002dd579182015b82811115620002dc578251825591602001919060010190620002bf565b5b509050620002ec9190620002f0565b5090565b5b808211156200030b576000816000905550600101620002f1565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620003508262000323565b9050919050565b6000620003648262000343565b9050919050565b620003768162000357565b81146200038257600080fd5b50565b60008151905062000396816200036b565b92915050565b620003a78162000343565b8114620003b357600080fd5b50565b600081519050620003c7816200039c565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200042282620003d7565b810181811067ffffffffffffffff82111715620004445762000443620003e8565b5b80604052505050565b6000620004596200030f565b905062000467828262000417565b919050565b600067ffffffffffffffff8211156200048a5762000489620003e8565b5b6200049582620003d7565b9050602081019050919050565b60005b83811015620004c2578082015181840152602081019050620004a5565b83811115620004d2576000848401525b50505050565b6000620004ef620004e9846200046c565b6200044d565b9050828152602081018484840111156200050e576200050d620003d2565b5b6200051b848285620004a2565b509392505050565b600082601f8301126200053b576200053a620003cd565b5b81516200054d848260208601620004d8565b91505092915050565b6000819050919050565b6200056b8162000556565b81146200057757600080fd5b50565b6000815190506200058b8162000560565b92915050565b600080600080600060a08688031215620005b057620005af62000319565b5b6000620005c08882890162000385565b9550506020620005d388828901620003b6565b945050604086015167ffffffffffffffff811115620005f757620005f66200031e565b5b620006058882890162000523565b935050606062000618888289016200057a565b92505060806200062b888289016200057a565b9150509295509295909350565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200068057607f821691505b60208210810362000696576200069562000638565b5b50919050565b60805160a0516138a1620006d060003960008181610da90152610ee9015260008181610d6c0152610f2301526138a16000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c806395d89b411161010f578063c6f0b477116100a2578063e37c4fe011610071578063e37c4fe0146105c9578063e985e9c5146105e7578063f2fde38b14610617578063f3ccaac014610633576101f0565b8063c6f0b4771461051d578063c87b56dd14610539578063cb0e0d7d14610569578063d9548e5314610599576101f0565b8063a22cb465116100de578063a22cb46514610497578063a756fdd0146104b3578063ad036c36146104d1578063b88d4fde14610501576101f0565b806395d89b411461040f5780639714378c1461042d57806399f826a5146104495780639ff5167514610479576101f0565b806326b7c7f111610187578063715018a611610156578063715018a6146103ad57806371adb5e6146103b757806378908756146103d35780638da5cb5b146103f1576101f0565b806326b7c7f11461030157806342842e0e146103315780636352211e1461034d57806370a082311461037d576101f0565b80631249c58b116101c35780631249c58b1461028f57806313c726081461029957806319021222146102c957806323b872dd146102e5576101f0565b806301ffc9a7146101f557806306fdde0314610225578063081812fc14610243578063095ea7b314610273575b600080fd5b61020f600480360381019061020a9190612220565b610651565b60405161021c9190612268565b60405180910390f35b61022d610733565b60405161023a919061231c565b60405180910390f35b61025d60048036038101906102589190612374565b6107c5565b60405161026a91906123e2565b60405180910390f35b61028d60048036038101906102889190612429565b61080b565b005b610297610922565b005b6102b360048036038101906102ae9190612374565b6109f3565b6040516102c09190612478565b60405180910390f35b6102e360048036038101906102de9190612374565b610a10565b005b6102ff60048036038101906102fa9190612493565b610a22565b005b61031b60048036038101906103169190612374565b610a82565b6040516103289190612478565b60405180910390f35b61034b60048036038101906103469190612493565b610a9a565b005b61036760048036038101906103629190612374565b610aba565b60405161037491906123e2565b60405180910390f35b610397600480360381019061039291906124e6565b610b6b565b6040516103a49190612478565b60405180910390f35b6103b5610c22565b005b6103d160048036038101906103cc9190612578565b610c36565b005b6103db610c54565b6040516103e89190612478565b60405180910390f35b6103f9610c5a565b60405161040691906123e2565b60405180910390f35b610417610c84565b604051610424919061231c565b60405180910390f35b61044760048036038101906104429190612374565b610d16565b005b610463600480360381019061045e91906124e6565b610e9e565b6040516104709190612478565b60405180910390f35b610481610ee7565b60405161048e91906123e2565b60405180910390f35b6104b160048036038101906104ac91906125f1565b610f0b565b005b6104bb610f21565b6040516104c89190612690565b60405180910390f35b6104eb60048036038101906104e691906124e6565b610f45565b6040516104f89190612268565b60405180910390f35b61051b600480360381019061051691906127db565b610f59565b005b61053760048036038101906105329190612374565b610fbb565b005b610553600480360381019061054e9190612374565b610fcd565b604051610560919061231c565b60405180910390f35b610583600480360381019061057e91906124e6565b61105c565b6040516105909190612478565b60405180910390f35b6105b360048036038101906105ae9190612374565b611074565b6040516105c09190612268565b60405180910390f35b6105d1611093565b6040516105de9190612478565b60405180910390f35b61060160048036038101906105fc919061285e565b611099565b60405161060e9190612268565b60405180910390f35b610631600480360381019061062c91906124e6565b61112d565b005b61063b6111b0565b604051610648919061231c565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061071c57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061072c575061072b8261123e565b5b9050919050565b606060008054610742906128cd565b80601f016020809104026020016040519081016040528092919081815260200182805461076e906128cd565b80156107bb5780601f10610790576101008083540402835291602001916107bb565b820191906000526020600020905b81548152906001019060200180831161079e57829003601f168201915b5050505050905090565b60006107d0826112a8565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061081682610aba565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610886576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161087d90612970565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166108a56112f3565b73ffffffffffffffffffffffffffffffffffffffff1614806108d457506108d3816108ce6112f3565b611099565b5b610913576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161090a90612a02565b60405180910390fd5b61091d83836112fb565b505050565b600061092d33610b6b565b1115610965576040517ff17c6a9700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61096f600c6113b4565b600061097b600c6113ca565b905080600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600854426109cf9190612a51565b600b6000838152602001908152602001600020819055506109f033826113d8565b50565b6000600b6000838152602001908152602001600020549050919050565b610a186115b1565b8060088190555050565b610a33610a2d6112f3565b8261162f565b610a72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6990612b19565b60405180910390fd5b610a7d8383836116c4565b505050565b600b6020528060005260406000206000915090505481565b610ab583838360405180602001604052806000815250610f59565b505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610b62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5990612b85565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610bdb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd290612c17565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610c2a6115b1565b610c34600061192a565b565b610c3e6115b1565b818160079190610c4f929190612111565b505050565b60085481565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054610c93906128cd565b80601f0160208091040260200160405190810160405280929190818152602001828054610cbf906128cd565b8015610d0c5780601f10610ce157610100808354040283529160200191610d0c565b820191906000526020600020905b815481529060010190602001808311610cef57829003601f168201915b5050505050905090565b6000610d2133610b6b565b03610d58576040517fb0ce759100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600081600954610d689190612c37565b90507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd337f0000000000000000000000000000000000000000000000000000000000000000846040518463ffffffff1660e01b8152600401610de793929190612c91565b6020604051808303816000875af1158015610e06573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e2a9190612cdd565b506000610e3633610e9e565b9050610e4181611074565b15610e6e578242610e529190612a51565b600b600083815260200190815260200160002081905550610e99565b82600b60008381526020019081526020016000206000828254610e919190612a51565b925050819055505b505050565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b7f000000000000000000000000000000000000000000000000000000000000000081565b610f1d610f166112f3565b83836119f0565b5050565b7f000000000000000000000000000000000000000000000000000000000000000081565b600080610f5183610b6b565b119050919050565b610f6a610f646112f3565b8361162f565b610fa9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa090612b19565b60405180910390fd5b610fb584848484611b5c565b50505050565b610fc36115b1565b8060098190555050565b60606000610fda83611bb8565b905060006007610fe8610733565b8384611006600b60008a815260200190815260200160002054611bb8565b60405160200161101a959493929190613086565b604051602081830303815290604052905061103481611d18565b60405160200161104491906131ee565b60405160208183030381529060405292505050919050565b600a6020528060005260406000206000915090505481565b6000600b60008381526020019081526020016000205442119050919050565b60095481565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6111356115b1565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036111a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119b90613286565b60405180910390fd5b6111ad8161192a565b50565b600780546111bd906128cd565b80601f01602080910402602001604051908101604052809291908181526020018280546111e9906128cd565b80156112365780601f1061120b57610100808354040283529160200191611236565b820191906000526020600020905b81548152906001019060200180831161121957829003601f168201915b505050505081565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6112b181611e7b565b6112f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e790612b85565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661136e83610aba565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001816000016000828254019250508190555050565b600081600001549050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611447576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143e906132f2565b60405180910390fd5b61145081611e7b565b15611490576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114879061335e565b60405180910390fd5b61149c60008383611ee7565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546114ec9190612a51565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46115ad60008383611f5d565b5050565b6115b96112f3565b73ffffffffffffffffffffffffffffffffffffffff166115d7610c5a565b73ffffffffffffffffffffffffffffffffffffffff161461162d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611624906133ca565b60405180910390fd5b565b60008061163b83610aba565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061167d575061167c8185611099565b5b806116bb57508373ffffffffffffffffffffffffffffffffffffffff166116a3846107c5565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166116e482610aba565b73ffffffffffffffffffffffffffffffffffffffff161461173a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117319061345c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036117a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a0906134ee565b60405180910390fd5b6117b4838383611ee7565b6117bf6000826112fb565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461180f919061350e565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546118669190612a51565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611925838383611f5d565b505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611a5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a559061358e565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b4f9190612268565b60405180910390a3505050565b611b678484846116c4565b611b7384848484611f62565b611bb2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba990613620565b60405180910390fd5b50505050565b606060008203611bff576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611d13565b600082905060005b60008214611c31578080611c1a90613640565b915050600a82611c2a91906136b7565b9150611c07565b60008167ffffffffffffffff811115611c4d57611c4c6126b0565b5b6040519080825280601f01601f191660200182016040528015611c7f5781602001600182028036833780820191505090505b5090505b60008514611d0c57600182611c98919061350e565b9150600a85611ca791906136e8565b6030611cb39190612a51565b60f81b818381518110611cc957611cc8613719565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611d0591906136b7565b9450611c83565b8093505050505b919050565b60606000825103611d3a57604051806020016040528060008152509050611e76565b600060405180606001604052806040815260200161382c6040913990506000600360028551611d699190612a51565b611d7391906136b7565b6004611d7f9190612c37565b67ffffffffffffffff811115611d9857611d976126b0565b5b6040519080825280601f01601f191660200182016040528015611dca5781602001600182028036833780820191505090505b509050600182016020820185865187015b80821015611e36576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845360018401935050611ddb565b5050600386510660018114611e525760028114611e6557611e6d565b603d6001830353603d6002830353611e6d565b603d60018303535b50505080925050505b919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614611f4d576040517fa4420a9500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611f588383836120e9565b505050565b505050565b6000611f838473ffffffffffffffffffffffffffffffffffffffff166120ee565b156120dc578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611fac6112f3565b8786866040518563ffffffff1660e01b8152600401611fce949392919061379d565b6020604051808303816000875af192505050801561200a57506040513d601f19601f8201168201806040525081019061200791906137fe565b60015b61208c573d806000811461203a576040519150601f19603f3d011682016040523d82523d6000602084013e61203f565b606091505b506000815103612084576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161207b90613620565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506120e1565b600190505b949350505050565b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b82805461211d906128cd565b90600052602060002090601f01602090048101928261213f5760008555612186565b82601f1061215857803560ff1916838001178555612186565b82800160010185558215612186579182015b8281111561218557823582559160200191906001019061216a565b5b5090506121939190612197565b5090565b5b808211156121b0576000816000905550600101612198565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6121fd816121c8565b811461220857600080fd5b50565b60008135905061221a816121f4565b92915050565b600060208284031215612236576122356121be565b5b60006122448482850161220b565b91505092915050565b60008115159050919050565b6122628161224d565b82525050565b600060208201905061227d6000830184612259565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156122bd5780820151818401526020810190506122a2565b838111156122cc576000848401525b50505050565b6000601f19601f8301169050919050565b60006122ee82612283565b6122f8818561228e565b935061230881856020860161229f565b612311816122d2565b840191505092915050565b6000602082019050818103600083015261233681846122e3565b905092915050565b6000819050919050565b6123518161233e565b811461235c57600080fd5b50565b60008135905061236e81612348565b92915050565b60006020828403121561238a576123896121be565b5b60006123988482850161235f565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006123cc826123a1565b9050919050565b6123dc816123c1565b82525050565b60006020820190506123f760008301846123d3565b92915050565b612406816123c1565b811461241157600080fd5b50565b600081359050612423816123fd565b92915050565b600080604083850312156124405761243f6121be565b5b600061244e85828601612414565b925050602061245f8582860161235f565b9150509250929050565b6124728161233e565b82525050565b600060208201905061248d6000830184612469565b92915050565b6000806000606084860312156124ac576124ab6121be565b5b60006124ba86828701612414565b93505060206124cb86828701612414565b92505060406124dc8682870161235f565b9150509250925092565b6000602082840312156124fc576124fb6121be565b5b600061250a84828501612414565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261253857612537612513565b5b8235905067ffffffffffffffff81111561255557612554612518565b5b6020830191508360018202830111156125715761257061251d565b5b9250929050565b6000806020838503121561258f5761258e6121be565b5b600083013567ffffffffffffffff8111156125ad576125ac6121c3565b5b6125b985828601612522565b92509250509250929050565b6125ce8161224d565b81146125d957600080fd5b50565b6000813590506125eb816125c5565b92915050565b60008060408385031215612608576126076121be565b5b600061261685828601612414565b9250506020612627858286016125dc565b9150509250929050565b6000819050919050565b600061265661265161264c846123a1565b612631565b6123a1565b9050919050565b60006126688261263b565b9050919050565b600061267a8261265d565b9050919050565b61268a8161266f565b82525050565b60006020820190506126a56000830184612681565b92915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6126e8826122d2565b810181811067ffffffffffffffff82111715612707576127066126b0565b5b80604052505050565b600061271a6121b4565b905061272682826126df565b919050565b600067ffffffffffffffff821115612746576127456126b0565b5b61274f826122d2565b9050602081019050919050565b82818337600083830152505050565b600061277e6127798461272b565b612710565b90508281526020810184848401111561279a576127996126ab565b5b6127a584828561275c565b509392505050565b600082601f8301126127c2576127c1612513565b5b81356127d284826020860161276b565b91505092915050565b600080600080608085870312156127f5576127f46121be565b5b600061280387828801612414565b945050602061281487828801612414565b93505060406128258782880161235f565b925050606085013567ffffffffffffffff811115612846576128456121c3565b5b612852878288016127ad565b91505092959194509250565b60008060408385031215612875576128746121be565b5b600061288385828601612414565b925050602061289485828601612414565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806128e557607f821691505b6020821081036128f8576128f761289e565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b600061295a60218361228e565b9150612965826128fe565b604082019050919050565b600060208201905081810360008301526129898161294d565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b60006129ec603e8361228e565b91506129f782612990565b604082019050919050565b60006020820190508181036000830152612a1b816129df565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612a5c8261233e565b9150612a678361233e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612a9c57612a9b612a22565b5b828201905092915050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000612b03602e8361228e565b9150612b0e82612aa7565b604082019050919050565b60006020820190508181036000830152612b3281612af6565b9050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000612b6f60188361228e565b9150612b7a82612b39565b602082019050919050565b60006020820190508181036000830152612b9e81612b62565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000612c0160298361228e565b9150612c0c82612ba5565b604082019050919050565b60006020820190508181036000830152612c3081612bf4565b9050919050565b6000612c428261233e565b9150612c4d8361233e565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612c8657612c85612a22565b5b828202905092915050565b6000606082019050612ca660008301866123d3565b612cb360208301856123d3565b612cc06040830184612469565b949350505050565b600081519050612cd7816125c5565b92915050565b600060208284031215612cf357612cf26121be565b5b6000612d0184828501612cc8565b91505092915050565b7f7b00000000000000000000000000000000000000000000000000000000000000815250565b7f226465736372697074696f6e223a202200000000000000000000000000000000815250565b600081905092915050565b7f4f61736973204163636573732050617373202d20596f7572205469636b65742060008201527f496e746f20546865204f617369732047616d6573210000000000000000000000602082015250565b6000612dbd603583612d56565b9150612dc882612d61565b603582019050919050565b7f222c000000000000000000000000000000000000000000000000000000000000815250565b7f22696d616765223a202200000000000000000000000000000000000000000000815250565b60008190508160005260206000209050919050565b60008154612e41816128cd565b612e4b8186612d56565b94506001821660008114612e665760018114612e7757612eaa565b60ff19831686528186019350612eaa565b612e8085612e1f565b60005b83811015612ea257815481890152600182019150602081019050612e83565b838801955050505b50505092915050565b7f226e616d65223a20220000000000000000000000000000000000000000000000815250565b6000612ee482612283565b612eee8185612d56565b9350612efe81856020860161229f565b80840191505092915050565b7f2023000000000000000000000000000000000000000000000000000000000000815250565b7f2261747472696275746573223a205b0000000000000000000000000000000000815250565b7f7b2274726169745f74797065223a224944222c2276616c7565223a2200000000815250565b7f227d000000000000000000000000000000000000000000000000000000000000815250565b7f2c00000000000000000000000000000000000000000000000000000000000000815250565b7f7b22646973706c61795f74797065223a202264617465222c2274726169745f7460008201527f797065223a2245787069726573204f6e222c2276616c7565223a000000000000602082015250565b6000613024603a83612d56565b915061302f82612fc8565b603a82019050919050565b7f7d00000000000000000000000000000000000000000000000000000000000000815250565b7f5d00000000000000000000000000000000000000000000000000000000000000815250565b600061309182612d0a565b6001820191506130a082612d30565b6010820191506130af82612db0565b91506130ba82612dd3565b6002820191506130c982612df9565b600a820191506130d98288612e34565b91506130e482612dd3565b6002820191506130f382612eb3565b6009820191506131038287612ed9565b915061310e82612f0a565b60028201915061311e8286612ed9565b915061312982612dd3565b60028201915061313882612f30565b600f8201915061314782612f56565b601c820191506131578285612ed9565b915061316282612f7c565b60028201915061317182612fa2565b60018201915061318082613017565b915061318c8284612ed9565b91506131978261303a565b6001820191506131a682613060565b6001820191506131b58261303a565b6001820191508190509695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815250565b60006131f9826131c8565b601d820191506132098284612ed9565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061327060268361228e565b915061327b82613214565b604082019050919050565b6000602082019050818103600083015261329f81613263565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006132dc60208361228e565b91506132e7826132a6565b602082019050919050565b6000602082019050818103600083015261330b816132cf565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000613348601c8361228e565b915061335382613312565b602082019050919050565b600060208201905081810360008301526133778161333b565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006133b460208361228e565b91506133bf8261337e565b602082019050919050565b600060208201905081810360008301526133e3816133a7565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b600061344660258361228e565b9150613451826133ea565b604082019050919050565b6000602082019050818103600083015261347581613439565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006134d860248361228e565b91506134e38261347c565b604082019050919050565b60006020820190508181036000830152613507816134cb565b9050919050565b60006135198261233e565b91506135248361233e565b92508282101561353757613536612a22565b5b828203905092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b600061357860198361228e565b915061358382613542565b602082019050919050565b600060208201905081810360008301526135a78161356b565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b600061360a60328361228e565b9150613615826135ae565b604082019050919050565b60006020820190508181036000830152613639816135fd565b9050919050565b600061364b8261233e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361367d5761367c612a22565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006136c28261233e565b91506136cd8361233e565b9250826136dd576136dc613688565b5b828204905092915050565b60006136f38261233e565b91506136fe8361233e565b92508261370e5761370d613688565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081519050919050565b600082825260208201905092915050565b600061376f82613748565b6137798185613753565b935061378981856020860161229f565b613792816122d2565b840191505092915050565b60006080820190506137b260008301876123d3565b6137bf60208301866123d3565b6137cc6040830185612469565b81810360608301526137de8184613764565b905095945050505050565b6000815190506137f8816121f4565b92915050565b600060208284031215613814576138136121be565b5b6000613822848285016137e9565b9150509291505056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212206c466e1a8c156fee09672389f35765df74719c1fcb43cec97b25cd168ee68b3a64736f6c634300080e0033000000000000000000000000fea64746f5ba3c6561bce7d4d32fd157ec60696500000000000000000000000048d0b3c9f07901c0daef80ce59e2b94ee527830400000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000e100000000000000000000000000000000000000000000000001158e460913d00000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d53486e48377072485a33564d6f506a794c71524c634d744d626f6b33457147623466563572556437784247500000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101f05760003560e01c806395d89b411161010f578063c6f0b477116100a2578063e37c4fe011610071578063e37c4fe0146105c9578063e985e9c5146105e7578063f2fde38b14610617578063f3ccaac014610633576101f0565b8063c6f0b4771461051d578063c87b56dd14610539578063cb0e0d7d14610569578063d9548e5314610599576101f0565b8063a22cb465116100de578063a22cb46514610497578063a756fdd0146104b3578063ad036c36146104d1578063b88d4fde14610501576101f0565b806395d89b411461040f5780639714378c1461042d57806399f826a5146104495780639ff5167514610479576101f0565b806326b7c7f111610187578063715018a611610156578063715018a6146103ad57806371adb5e6146103b757806378908756146103d35780638da5cb5b146103f1576101f0565b806326b7c7f11461030157806342842e0e146103315780636352211e1461034d57806370a082311461037d576101f0565b80631249c58b116101c35780631249c58b1461028f57806313c726081461029957806319021222146102c957806323b872dd146102e5576101f0565b806301ffc9a7146101f557806306fdde0314610225578063081812fc14610243578063095ea7b314610273575b600080fd5b61020f600480360381019061020a9190612220565b610651565b60405161021c9190612268565b60405180910390f35b61022d610733565b60405161023a919061231c565b60405180910390f35b61025d60048036038101906102589190612374565b6107c5565b60405161026a91906123e2565b60405180910390f35b61028d60048036038101906102889190612429565b61080b565b005b610297610922565b005b6102b360048036038101906102ae9190612374565b6109f3565b6040516102c09190612478565b60405180910390f35b6102e360048036038101906102de9190612374565b610a10565b005b6102ff60048036038101906102fa9190612493565b610a22565b005b61031b60048036038101906103169190612374565b610a82565b6040516103289190612478565b60405180910390f35b61034b60048036038101906103469190612493565b610a9a565b005b61036760048036038101906103629190612374565b610aba565b60405161037491906123e2565b60405180910390f35b610397600480360381019061039291906124e6565b610b6b565b6040516103a49190612478565b60405180910390f35b6103b5610c22565b005b6103d160048036038101906103cc9190612578565b610c36565b005b6103db610c54565b6040516103e89190612478565b60405180910390f35b6103f9610c5a565b60405161040691906123e2565b60405180910390f35b610417610c84565b604051610424919061231c565b60405180910390f35b61044760048036038101906104429190612374565b610d16565b005b610463600480360381019061045e91906124e6565b610e9e565b6040516104709190612478565b60405180910390f35b610481610ee7565b60405161048e91906123e2565b60405180910390f35b6104b160048036038101906104ac91906125f1565b610f0b565b005b6104bb610f21565b6040516104c89190612690565b60405180910390f35b6104eb60048036038101906104e691906124e6565b610f45565b6040516104f89190612268565b60405180910390f35b61051b600480360381019061051691906127db565b610f59565b005b61053760048036038101906105329190612374565b610fbb565b005b610553600480360381019061054e9190612374565b610fcd565b604051610560919061231c565b60405180910390f35b610583600480360381019061057e91906124e6565b61105c565b6040516105909190612478565b60405180910390f35b6105b360048036038101906105ae9190612374565b611074565b6040516105c09190612268565b60405180910390f35b6105d1611093565b6040516105de9190612478565b60405180910390f35b61060160048036038101906105fc919061285e565b611099565b60405161060e9190612268565b60405180910390f35b610631600480360381019061062c91906124e6565b61112d565b005b61063b6111b0565b604051610648919061231c565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061071c57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061072c575061072b8261123e565b5b9050919050565b606060008054610742906128cd565b80601f016020809104026020016040519081016040528092919081815260200182805461076e906128cd565b80156107bb5780601f10610790576101008083540402835291602001916107bb565b820191906000526020600020905b81548152906001019060200180831161079e57829003601f168201915b5050505050905090565b60006107d0826112a8565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061081682610aba565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610886576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161087d90612970565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166108a56112f3565b73ffffffffffffffffffffffffffffffffffffffff1614806108d457506108d3816108ce6112f3565b611099565b5b610913576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161090a90612a02565b60405180910390fd5b61091d83836112fb565b505050565b600061092d33610b6b565b1115610965576040517ff17c6a9700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61096f600c6113b4565b600061097b600c6113ca565b905080600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600854426109cf9190612a51565b600b6000838152602001908152602001600020819055506109f033826113d8565b50565b6000600b6000838152602001908152602001600020549050919050565b610a186115b1565b8060088190555050565b610a33610a2d6112f3565b8261162f565b610a72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6990612b19565b60405180910390fd5b610a7d8383836116c4565b505050565b600b6020528060005260406000206000915090505481565b610ab583838360405180602001604052806000815250610f59565b505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610b62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5990612b85565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610bdb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd290612c17565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610c2a6115b1565b610c34600061192a565b565b610c3e6115b1565b818160079190610c4f929190612111565b505050565b60085481565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054610c93906128cd565b80601f0160208091040260200160405190810160405280929190818152602001828054610cbf906128cd565b8015610d0c5780601f10610ce157610100808354040283529160200191610d0c565b820191906000526020600020905b815481529060010190602001808311610cef57829003601f168201915b5050505050905090565b6000610d2133610b6b565b03610d58576040517fb0ce759100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600081600954610d689190612c37565b90507f000000000000000000000000fea64746f5ba3c6561bce7d4d32fd157ec60696573ffffffffffffffffffffffffffffffffffffffff166323b872dd337f00000000000000000000000048d0b3c9f07901c0daef80ce59e2b94ee5278304846040518463ffffffff1660e01b8152600401610de793929190612c91565b6020604051808303816000875af1158015610e06573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e2a9190612cdd565b506000610e3633610e9e565b9050610e4181611074565b15610e6e578242610e529190612a51565b600b600083815260200190815260200160002081905550610e99565b82600b60008381526020019081526020016000206000828254610e919190612a51565b925050819055505b505050565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b7f00000000000000000000000048d0b3c9f07901c0daef80ce59e2b94ee527830481565b610f1d610f166112f3565b83836119f0565b5050565b7f000000000000000000000000fea64746f5ba3c6561bce7d4d32fd157ec60696581565b600080610f5183610b6b565b119050919050565b610f6a610f646112f3565b8361162f565b610fa9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa090612b19565b60405180910390fd5b610fb584848484611b5c565b50505050565b610fc36115b1565b8060098190555050565b60606000610fda83611bb8565b905060006007610fe8610733565b8384611006600b60008a815260200190815260200160002054611bb8565b60405160200161101a959493929190613086565b604051602081830303815290604052905061103481611d18565b60405160200161104491906131ee565b60405160208183030381529060405292505050919050565b600a6020528060005260406000206000915090505481565b6000600b60008381526020019081526020016000205442119050919050565b60095481565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6111356115b1565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036111a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119b90613286565b60405180910390fd5b6111ad8161192a565b50565b600780546111bd906128cd565b80601f01602080910402602001604051908101604052809291908181526020018280546111e9906128cd565b80156112365780601f1061120b57610100808354040283529160200191611236565b820191906000526020600020905b81548152906001019060200180831161121957829003601f168201915b505050505081565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6112b181611e7b565b6112f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e790612b85565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661136e83610aba565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001816000016000828254019250508190555050565b600081600001549050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611447576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143e906132f2565b60405180910390fd5b61145081611e7b565b15611490576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114879061335e565b60405180910390fd5b61149c60008383611ee7565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546114ec9190612a51565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46115ad60008383611f5d565b5050565b6115b96112f3565b73ffffffffffffffffffffffffffffffffffffffff166115d7610c5a565b73ffffffffffffffffffffffffffffffffffffffff161461162d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611624906133ca565b60405180910390fd5b565b60008061163b83610aba565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061167d575061167c8185611099565b5b806116bb57508373ffffffffffffffffffffffffffffffffffffffff166116a3846107c5565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166116e482610aba565b73ffffffffffffffffffffffffffffffffffffffff161461173a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117319061345c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036117a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a0906134ee565b60405180910390fd5b6117b4838383611ee7565b6117bf6000826112fb565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461180f919061350e565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546118669190612a51565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611925838383611f5d565b505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611a5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a559061358e565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b4f9190612268565b60405180910390a3505050565b611b678484846116c4565b611b7384848484611f62565b611bb2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba990613620565b60405180910390fd5b50505050565b606060008203611bff576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611d13565b600082905060005b60008214611c31578080611c1a90613640565b915050600a82611c2a91906136b7565b9150611c07565b60008167ffffffffffffffff811115611c4d57611c4c6126b0565b5b6040519080825280601f01601f191660200182016040528015611c7f5781602001600182028036833780820191505090505b5090505b60008514611d0c57600182611c98919061350e565b9150600a85611ca791906136e8565b6030611cb39190612a51565b60f81b818381518110611cc957611cc8613719565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611d0591906136b7565b9450611c83565b8093505050505b919050565b60606000825103611d3a57604051806020016040528060008152509050611e76565b600060405180606001604052806040815260200161382c6040913990506000600360028551611d699190612a51565b611d7391906136b7565b6004611d7f9190612c37565b67ffffffffffffffff811115611d9857611d976126b0565b5b6040519080825280601f01601f191660200182016040528015611dca5781602001600182028036833780820191505090505b509050600182016020820185865187015b80821015611e36576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845360018401935050611ddb565b5050600386510660018114611e525760028114611e6557611e6d565b603d6001830353603d6002830353611e6d565b603d60018303535b50505080925050505b919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614611f4d576040517fa4420a9500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611f588383836120e9565b505050565b505050565b6000611f838473ffffffffffffffffffffffffffffffffffffffff166120ee565b156120dc578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611fac6112f3565b8786866040518563ffffffff1660e01b8152600401611fce949392919061379d565b6020604051808303816000875af192505050801561200a57506040513d601f19601f8201168201806040525081019061200791906137fe565b60015b61208c573d806000811461203a576040519150601f19603f3d011682016040523d82523d6000602084013e61203f565b606091505b506000815103612084576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161207b90613620565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506120e1565b600190505b949350505050565b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b82805461211d906128cd565b90600052602060002090601f01602090048101928261213f5760008555612186565b82601f1061215857803560ff1916838001178555612186565b82800160010185558215612186579182015b8281111561218557823582559160200191906001019061216a565b5b5090506121939190612197565b5090565b5b808211156121b0576000816000905550600101612198565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6121fd816121c8565b811461220857600080fd5b50565b60008135905061221a816121f4565b92915050565b600060208284031215612236576122356121be565b5b60006122448482850161220b565b91505092915050565b60008115159050919050565b6122628161224d565b82525050565b600060208201905061227d6000830184612259565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156122bd5780820151818401526020810190506122a2565b838111156122cc576000848401525b50505050565b6000601f19601f8301169050919050565b60006122ee82612283565b6122f8818561228e565b935061230881856020860161229f565b612311816122d2565b840191505092915050565b6000602082019050818103600083015261233681846122e3565b905092915050565b6000819050919050565b6123518161233e565b811461235c57600080fd5b50565b60008135905061236e81612348565b92915050565b60006020828403121561238a576123896121be565b5b60006123988482850161235f565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006123cc826123a1565b9050919050565b6123dc816123c1565b82525050565b60006020820190506123f760008301846123d3565b92915050565b612406816123c1565b811461241157600080fd5b50565b600081359050612423816123fd565b92915050565b600080604083850312156124405761243f6121be565b5b600061244e85828601612414565b925050602061245f8582860161235f565b9150509250929050565b6124728161233e565b82525050565b600060208201905061248d6000830184612469565b92915050565b6000806000606084860312156124ac576124ab6121be565b5b60006124ba86828701612414565b93505060206124cb86828701612414565b92505060406124dc8682870161235f565b9150509250925092565b6000602082840312156124fc576124fb6121be565b5b600061250a84828501612414565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261253857612537612513565b5b8235905067ffffffffffffffff81111561255557612554612518565b5b6020830191508360018202830111156125715761257061251d565b5b9250929050565b6000806020838503121561258f5761258e6121be565b5b600083013567ffffffffffffffff8111156125ad576125ac6121c3565b5b6125b985828601612522565b92509250509250929050565b6125ce8161224d565b81146125d957600080fd5b50565b6000813590506125eb816125c5565b92915050565b60008060408385031215612608576126076121be565b5b600061261685828601612414565b9250506020612627858286016125dc565b9150509250929050565b6000819050919050565b600061265661265161264c846123a1565b612631565b6123a1565b9050919050565b60006126688261263b565b9050919050565b600061267a8261265d565b9050919050565b61268a8161266f565b82525050565b60006020820190506126a56000830184612681565b92915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6126e8826122d2565b810181811067ffffffffffffffff82111715612707576127066126b0565b5b80604052505050565b600061271a6121b4565b905061272682826126df565b919050565b600067ffffffffffffffff821115612746576127456126b0565b5b61274f826122d2565b9050602081019050919050565b82818337600083830152505050565b600061277e6127798461272b565b612710565b90508281526020810184848401111561279a576127996126ab565b5b6127a584828561275c565b509392505050565b600082601f8301126127c2576127c1612513565b5b81356127d284826020860161276b565b91505092915050565b600080600080608085870312156127f5576127f46121be565b5b600061280387828801612414565b945050602061281487828801612414565b93505060406128258782880161235f565b925050606085013567ffffffffffffffff811115612846576128456121c3565b5b612852878288016127ad565b91505092959194509250565b60008060408385031215612875576128746121be565b5b600061288385828601612414565b925050602061289485828601612414565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806128e557607f821691505b6020821081036128f8576128f761289e565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b600061295a60218361228e565b9150612965826128fe565b604082019050919050565b600060208201905081810360008301526129898161294d565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b60006129ec603e8361228e565b91506129f782612990565b604082019050919050565b60006020820190508181036000830152612a1b816129df565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612a5c8261233e565b9150612a678361233e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612a9c57612a9b612a22565b5b828201905092915050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000612b03602e8361228e565b9150612b0e82612aa7565b604082019050919050565b60006020820190508181036000830152612b3281612af6565b9050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000612b6f60188361228e565b9150612b7a82612b39565b602082019050919050565b60006020820190508181036000830152612b9e81612b62565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000612c0160298361228e565b9150612c0c82612ba5565b604082019050919050565b60006020820190508181036000830152612c3081612bf4565b9050919050565b6000612c428261233e565b9150612c4d8361233e565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612c8657612c85612a22565b5b828202905092915050565b6000606082019050612ca660008301866123d3565b612cb360208301856123d3565b612cc06040830184612469565b949350505050565b600081519050612cd7816125c5565b92915050565b600060208284031215612cf357612cf26121be565b5b6000612d0184828501612cc8565b91505092915050565b7f7b00000000000000000000000000000000000000000000000000000000000000815250565b7f226465736372697074696f6e223a202200000000000000000000000000000000815250565b600081905092915050565b7f4f61736973204163636573732050617373202d20596f7572205469636b65742060008201527f496e746f20546865204f617369732047616d6573210000000000000000000000602082015250565b6000612dbd603583612d56565b9150612dc882612d61565b603582019050919050565b7f222c000000000000000000000000000000000000000000000000000000000000815250565b7f22696d616765223a202200000000000000000000000000000000000000000000815250565b60008190508160005260206000209050919050565b60008154612e41816128cd565b612e4b8186612d56565b94506001821660008114612e665760018114612e7757612eaa565b60ff19831686528186019350612eaa565b612e8085612e1f565b60005b83811015612ea257815481890152600182019150602081019050612e83565b838801955050505b50505092915050565b7f226e616d65223a20220000000000000000000000000000000000000000000000815250565b6000612ee482612283565b612eee8185612d56565b9350612efe81856020860161229f565b80840191505092915050565b7f2023000000000000000000000000000000000000000000000000000000000000815250565b7f2261747472696275746573223a205b0000000000000000000000000000000000815250565b7f7b2274726169745f74797065223a224944222c2276616c7565223a2200000000815250565b7f227d000000000000000000000000000000000000000000000000000000000000815250565b7f2c00000000000000000000000000000000000000000000000000000000000000815250565b7f7b22646973706c61795f74797065223a202264617465222c2274726169745f7460008201527f797065223a2245787069726573204f6e222c2276616c7565223a000000000000602082015250565b6000613024603a83612d56565b915061302f82612fc8565b603a82019050919050565b7f7d00000000000000000000000000000000000000000000000000000000000000815250565b7f5d00000000000000000000000000000000000000000000000000000000000000815250565b600061309182612d0a565b6001820191506130a082612d30565b6010820191506130af82612db0565b91506130ba82612dd3565b6002820191506130c982612df9565b600a820191506130d98288612e34565b91506130e482612dd3565b6002820191506130f382612eb3565b6009820191506131038287612ed9565b915061310e82612f0a565b60028201915061311e8286612ed9565b915061312982612dd3565b60028201915061313882612f30565b600f8201915061314782612f56565b601c820191506131578285612ed9565b915061316282612f7c565b60028201915061317182612fa2565b60018201915061318082613017565b915061318c8284612ed9565b91506131978261303a565b6001820191506131a682613060565b6001820191506131b58261303a565b6001820191508190509695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815250565b60006131f9826131c8565b601d820191506132098284612ed9565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061327060268361228e565b915061327b82613214565b604082019050919050565b6000602082019050818103600083015261329f81613263565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006132dc60208361228e565b91506132e7826132a6565b602082019050919050565b6000602082019050818103600083015261330b816132cf565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000613348601c8361228e565b915061335382613312565b602082019050919050565b600060208201905081810360008301526133778161333b565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006133b460208361228e565b91506133bf8261337e565b602082019050919050565b600060208201905081810360008301526133e3816133a7565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b600061344660258361228e565b9150613451826133ea565b604082019050919050565b6000602082019050818103600083015261347581613439565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006134d860248361228e565b91506134e38261347c565b604082019050919050565b60006020820190508181036000830152613507816134cb565b9050919050565b60006135198261233e565b91506135248361233e565b92508282101561353757613536612a22565b5b828203905092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b600061357860198361228e565b915061358382613542565b602082019050919050565b600060208201905081810360008301526135a78161356b565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b600061360a60328361228e565b9150613615826135ae565b604082019050919050565b60006020820190508181036000830152613639816135fd565b9050919050565b600061364b8261233e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361367d5761367c612a22565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006136c28261233e565b91506136cd8361233e565b9250826136dd576136dc613688565b5b828204905092915050565b60006136f38261233e565b91506136fe8361233e565b92508261370e5761370d613688565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081519050919050565b600082825260208201905092915050565b600061376f82613748565b6137798185613753565b935061378981856020860161229f565b613792816122d2565b840191505092915050565b60006080820190506137b260008301876123d3565b6137bf60208301866123d3565b6137cc6040830185612469565b81810360608301526137de8184613764565b905095945050505050565b6000815190506137f8816121f4565b92915050565b600060208284031215613814576138136121be565b5b6000613822848285016137e9565b9150509291505056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212206c466e1a8c156fee09672389f35765df74719c1fcb43cec97b25cd168ee68b3a64736f6c634300080e0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000fea64746f5ba3c6561bce7d4d32fd157ec60696500000000000000000000000048d0b3c9f07901c0daef80ce59e2b94ee527830400000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000e100000000000000000000000000000000000000000000000001158e460913d00000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d53486e48377072485a33564d6f506a794c71524c634d744d626f6b33457147623466563572556437784247500000000000000000000000
-----Decoded View---------------
Arg [0] : _ost (address): 0xfEA64746f5ba3c6561BCE7D4D32fd157eC606965
Arg [1] : _oasisGraveyard (address): 0x48D0B3C9f07901c0daEF80Ce59E2B94EE5278304
Arg [2] : _image (string): ipfs://QmSHnH7prHZ3VMoPjyLqRLcMtMbok3EqGb4fV5rUd7xBGP
Arg [3] : _startingDuration (uint256): 3600
Arg [4] : _ostCostPerSecond (uint256): 1250000000000000000
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 000000000000000000000000fea64746f5ba3c6561bce7d4d32fd157ec606965
Arg [1] : 00000000000000000000000048d0b3c9f07901c0daef80ce59e2b94ee5278304
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000e10
Arg [4] : 0000000000000000000000000000000000000000000000001158e460913d0000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [6] : 697066733a2f2f516d53486e48377072485a33564d6f506a794c71524c634d74
Arg [7] : 4d626f6b33457147623466563572556437784247500000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.