Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
12 POK
Holders
12
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 POKLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ProofOfKnight
Compiler Version
v0.8.4+commit.c7e474f2
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.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./Spacewalker.sol"; /** * @author Space Knight Club * @title Proof of Knight - Non tradable NFT proving that you are part of the mysterious Space Knight Club. It's not about paying, it's about getting in */ contract ProofOfKnight is ERC721Enumerable, ERC721Burnable, Ownable { string private baseURI; address private spacewalkerContract; // Number of vouches received per address who wish to become Knight mapping(address => uint256) public numberOfVouchesReceived; // List of addresses vouched per Knight mapping (address => address[]) public addressesVouched; // Number of vouches given per Knight mapping(address => uint256) public numberOfVouchesGiven; // Next possible vouch per Knight mapping(address => uint256) public dateOfNextVouch; constructor(address _spacewalkerContract) ERC721("Proof of Knight", "POK") { spacewalkerContract = _spacewalkerContract; } /** * @notice vouch a Spacewalker in order to become a Knight and join the club * @param spacewalkerAddr - the address owning the Spacewalker that will receive the vouch to become a Knight * @dev number of vouches needed to become a Knight depends on the number of Knights in the club. * between 0 to 20 Knights - 3 Knights vouches are needed to become a Knight * between 21 to 50 Knights - 4 Knights vouches are needed to become a Knight * between 51 to 100 Knights - 5 Knights vouches are needed to become a Knight * between 101 to 500 Knights - 6 Knights vouches are needed to become a Knight * between 501 to 1000 Knights - 7 Knights vouches are needed to become a Knight * after 1001 Knights - 8 Knights vouches are needed to become a Knight */ function vouch(address spacewalkerAddr) public { Spacewalker sw = Spacewalker(spacewalkerContract); require(sw.eligibleToStandTrial(spacewalkerAddr), "Recipient must own at least one Spacewalker NFT that has served its locking period."); require(balanceOf(msg.sender) > 0, "Sender must be a Knight."); require(dateOfNextVouch[msg.sender] < block.timestamp, "Too soon for the Knight to vote."); require(balanceOf(spacewalkerAddr) == 0, "Recipient is already a Knight"); address[] memory addressesVouchedBySender = addressesVouched[msg.sender]; for (uint256 i; i < addressesVouchedBySender.length; i++) { require(addressesVouchedBySender[i] != spacewalkerAddr, "Knight cannot vouch two times the same Spacewalker."); } addressesVouched[msg.sender].push(spacewalkerAddr); numberOfVouchesGiven[msg.sender] +=1; numberOfVouchesReceived[spacewalkerAddr] += 1; dateOfNextVouch[msg.sender] = block.timestamp + 30 days; uint256 totalSupply = totalSupply(); if (totalSupply < 21 && numberOfVouchesReceived[spacewalkerAddr] > 2) { _internalMint(spacewalkerAddr); } else if (totalSupply < 51 && numberOfVouchesReceived[spacewalkerAddr] > 3) { _internalMint(spacewalkerAddr); } else if (totalSupply < 101 && numberOfVouchesReceived[spacewalkerAddr] > 4) { _internalMint(spacewalkerAddr); } else if (totalSupply < 501 && numberOfVouchesReceived[spacewalkerAddr] > 5) { _internalMint(spacewalkerAddr); } else if (totalSupply < 1001 && numberOfVouchesReceived[spacewalkerAddr] > 6) { _internalMint(spacewalkerAddr); } else if (totalSupply > 1000 && numberOfVouchesReceived[spacewalkerAddr] > 7) { _internalMint(spacewalkerAddr); } } function getListOfaddressesVouched(address knight) public view returns(address[] memory) { return addressesVouched[knight]; } /** * @dev Override transfers functions to prevent people from trading. Being a Knight has no price and cannot be transfered */ function safeTransferFrom(address from, address to, uint256 tokenId) public pure override { revert("Can't transfer Proof of Knight NFT"); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) public pure override { revert("Can't transfer Proof of Knight NFT"); } function transferFrom(address from, address to, uint256 tokenId) public pure override { revert("Can't transfer Proof of Knight NFT"); } function setBaseURI(string memory _baseURI) public onlyOwner { baseURI = _baseURI; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); return baseURI; } /** * @notice minting function. Only available for admin of Knights, minting Proof of Knight after standing trial deliberations * @param recipient - the address who will receive the Proof of Knight NFT */ function mint(address recipient) public onlyOwner { _internalMint(recipient); } /** * @dev internal mint - two ways of minting a new Knight * 1 - be vouched by existing Knights to automatically be minted a POK * 2 - owner (DAO) mint a POK after standing trial */ function _internalMint(address recipient) internal { require(balanceOf(recipient) == 0, "Recipient can not already have a Proof of Knight"); uint256 totalSupply = totalSupply(); _safeMint(recipient, totalSupply); } function walletOfOwner(address _owner) public view returns (uint256[] memory) { uint256 tokenCount = balanceOf(_owner); if (tokenCount == 0) { // Return an empty array return new uint256[](0); } uint256[] memory tokensId = new uint256[](tokenCount); for (uint256 i; i < tokenCount; i++) { tokensId[i] = tokenOfOwnerByIndex(_owner, i); } return tokensId; } /** * @notice Burn a POK - removing a Knight from the club. Being a Knight comes with responsabilities. * @param tokenId - token ID of the POK to burn * @dev can only be done by owner (DAO) after majority voting of the Knights. */ function burn(uint256 tokenId) public override onlyOwner { _burn(tokenId); } function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; 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: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../utils/Context.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be irreversibly burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved"); _burn(tokenId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; /** * @author Space Knight Club * @title Spacewalker - NFT that grants access to the Space Knight Club and eligibility to become a Knight */ contract Spacewalker is ERC721Enumerable, Ownable { using SafeMath for uint256; uint256 public constant MAX_SUPPLY = 10000; string public PROVENANCE_HASH = ""; uint256 public startingIndexBlock; uint256 public startingIndex; uint256 private _saleTime = 1630522800; // Date and time GMT: Wednesday 1 September 2021 19:00:00 (https://www.epochconverter.com/) uint256 private _price = 8 * 10**16; // This is currently .08 eth string private _baseTokenURI; // Time one need to hold the token to be eligible to become a Knight mapping(uint => uint) public tokenToTrialLockPeriod; // Date at which the token is unlocked to be eligible to become a Knight mapping(uint => uint) public tokenToUnlockedTrial; constructor() ERC721("Spacewalker", "SW") {} /** * @dev Override hook for transfer functions to reset the locking period of the NFT bought */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); // Reset locking period tokenToUnlockedTrial[tokenId] = block.timestamp + tokenToTrialLockPeriod[tokenId]; } /** * @notice tells if an address is eligible to become a Knight. To be eligible, the address needs to have a Spacewalker NFT that was hold for longer than the NFT locking period * @param candidate - address to check eligibility * @return true if the address has at least one NFT that was hold for longer than its locking period */ function eligibleToStandTrial(address candidate) public view returns (bool) { uint256[] memory tokensOfCandidate = walletOfOwner(candidate); uint256 tokenCount = balanceOf(candidate); // for each NFT of the candidate, check if it was hold for longer than its locking period for (uint256 i; i < tokenCount; i++) { if (block.timestamp > tokenToUnlockedTrial[tokensOfCandidate[i]]) { return true; } } return false; } /** * @notice Save 250 NFT for the team - for promotional purposes */ function reserveNFT(uint256 count) public onlyOwner { uint256 totalSupply = totalSupply(); // make sure we can only mint the first 250 require(totalSupply + count < 251, "Beyond max limit"); for (uint256 index; index < count; index++) { _safeMint(owner(), totalSupply + index); tokenToTrialLockPeriod[totalSupply + index] = 30 days; tokenToUnlockedTrial[totalSupply + index] = block.timestamp + 30 days; } } function setSaleTime(uint256 time) public onlyOwner { _saleTime = time; } function getSaleTime() public view returns (uint256) { return _saleTime; } function isSaleOpen() public view returns (bool) { return block.timestamp >= _saleTime; } function setBaseURI(string memory baseURI) public onlyOwner { _baseTokenURI = baseURI; } function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } /** * @notice mint method * @param _count number of token to be minted * @dev 20 tokens max * @dev the first NFT to be minted have a shoter locking period to become eligible to become a Knight. This is to reward early adopters. */ function mint(uint256 _count) public payable { uint256 totSupply = totalSupply(); require( totSupply + _count <= MAX_SUPPLY, "A transaction of this size would surpass the token limit." ); require( totSupply < MAX_SUPPLY, "All tokens have already been minted." ); require(_count < 21, "Exceeds the max token per transaction limit."); require( msg.value >= _price * _count, "The value submitted with this transaction is too low." ); require( block.timestamp >= _saleTime, "Spacewalker sale is not currently open." ); for (uint256 i; i < _count; i++) { uint256 newId = totSupply + i; // Reward early buyers with shorter lock period to become eligible to become Knight if (newId < 251) { tokenToTrialLockPeriod[newId] = 30 days; } else if (newId < 500) { tokenToTrialLockPeriod[newId] = 90 days; } else if (newId < 2000) { tokenToTrialLockPeriod[newId] = 120 days; } else if (newId < 4000) { tokenToTrialLockPeriod[newId] = 180 days; } else if (newId < 7000) { tokenToTrialLockPeriod[newId] = 240 days; } else if (newId < 10000) { tokenToTrialLockPeriod[newId] = 300 days; } _safeMint(msg.sender, newId); } // If we haven't set the starting index and this is the last saleable token if ((startingIndexBlock == 0) && (totalSupply() == MAX_SUPPLY)) { startingIndexBlock = block.number; } } /** * @notice list of the tokens ID owned by a specific address */ function walletOfOwner(address _owner) public view returns (uint256[] memory) { uint256 tokenCount = balanceOf(_owner); if (tokenCount == 0) { // Return an empty array return new uint256[](0); } uint256[] memory tokensId = new uint256[](tokenCount); for (uint256 i; i < tokenCount; i++) { tokensId[i] = tokenOfOwnerByIndex(_owner, i); } return tokensId; } /* * Set provenance once it's calculated */ function setProvenanceHash(string memory _provenanceHash) external onlyOwner { PROVENANCE_HASH = _provenanceHash; } /** * Set the starting index for the collection */ function setStartingIndex() external { require(startingIndex == 0, "Starting index is already set"); require(startingIndexBlock != 0, "Starting index block must be set"); startingIndex = uint256(blockhash(startingIndexBlock)) % MAX_SUPPLY; // Just a sanity case in the worst case if this function is called late (EVM only stores last 256 block hashes) if (block.number.sub(startingIndexBlock) > 255) { startingIndex = uint256(blockhash(block.number - 1)) % MAX_SUPPLY; } // Prevent default sequence if (startingIndex == 0) { startingIndex = startingIndex.add(1); } } /** * Set the starting index block for the collection, essentially unblocking * setting starting index */ function emergencySetStartingIndexBlock() external onlyOwner { require(startingIndex == 0, "Starting index is already set"); startingIndexBlock = block.number; } function withdrawAll() public payable onlyOwner { require(payable(msg.sender).send(address(this).balance)); } }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_spacewalkerContract","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"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"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"addressesVouched","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"dateOfNextVouch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"knight","type":"address"}],"name":"getListOfaddressesVouched","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numberOfVouchesGiven","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numberOfVouchesReceived","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":"pure","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":"pure","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":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spacewalkerAddr","type":"address"}],"name":"vouch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620044ca380380620044ca8339818101604052810190620000379190620002d4565b6040518060400160405280600f81526020017f50726f6f66206f66204b6e6967687400000000000000000000000000000000008152506040518060400160405280600381526020017f504f4b00000000000000000000000000000000000000000000000000000000008152508160009080519060200190620000bb9291906200020d565b508060019080519060200190620000d49291906200020d565b505050620000f7620000eb6200013f60201b60201c565b6200014760201b60201c565b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050620003b3565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200021b9062000334565b90600052602060002090601f0160209004810192826200023f57600085556200028b565b82601f106200025a57805160ff19168380011785556200028b565b828001600101855582156200028b579182015b828111156200028a5782518255916020019190600101906200026d565b5b5090506200029a91906200029e565b5090565b5b80821115620002b95760008160009055506001016200029f565b5090565b600081519050620002ce8162000399565b92915050565b600060208284031215620002e757600080fd5b6000620002f784828501620002bd565b91505092915050565b60006200030d8262000314565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600060028204905060018216806200034d57607f821691505b602082108114156200036457620003636200036a565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b620003a48162000300565b8114620003b057600080fd5b50565b61410780620003c36000396000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c80636352211e1161010457806395d89b41116100a2578063c87b56dd11610071578063c87b56dd14610576578063dd66e16b146105a6578063e985e9c5146105c2578063f2fde38b146105f2576101cf565b806395d89b41146104f0578063a22cb4651461050e578063b4812ab91461052a578063b88d4fde1461055a576101cf565b806370a08231116100de57806370a0823114610468578063715018a61461049857806379d10486146104a25780638da5cb5b146104d2576101cf565b80636352211e146103ec5780636a6278421461041c5780636b90b98014610438576101cf565b80632f745c591161017157806342966c681161014b57806342966c6814610354578063438b6300146103705780634f6ccce7146103a057806355f804b3146103d0576101cf565b80632f745c59146102d8578063424342001461030857806342842e0e14610338576101cf565b8063095ea7b3116101ad578063095ea7b31461025257806318160ddd1461026e5780631ed566b61461028c57806323b872dd146102bc576101cf565b806301ffc9a7146101d457806306fdde0314610204578063081812fc14610222575b600080fd5b6101ee60048036038101906101e99190612e6d565b61060e565b6040516101fb919061345c565b60405180910390f35b61020c610620565b6040516102199190613477565b60405180910390f35b61023c60048036038101906102379190612f00565b6106b2565b60405161024991906133b1565b60405180910390f35b61026c60048036038101906102679190612e08565b610737565b005b61027661084f565b6040516102839190613739565b60405180910390f35b6102a660048036038101906102a19190612c98565b61085c565b6040516102b39190613739565b60405180910390f35b6102d660048036038101906102d19190612cfd565b610874565b005b6102f260048036038101906102ed9190612e08565b6108af565b6040516102ff9190613739565b60405180910390f35b610322600480360381019061031d9190612c98565b610954565b60405161032f9190613739565b60405180910390f35b610352600480360381019061034d9190612cfd565b61096c565b005b61036e60048036038101906103699190612f00565b6109a7565b005b61038a60048036038101906103859190612c98565b610a2f565b604051610397919061343a565b60405180910390f35b6103ba60048036038101906103b59190612f00565b610bab565b6040516103c79190613739565b60405180910390f35b6103ea60048036038101906103e59190612ebf565b610c42565b005b61040660048036038101906104019190612f00565b610cd8565b60405161041391906133b1565b60405180910390f35b61043660048036038101906104319190612c98565b610d8a565b005b610452600480360381019061044d9190612e08565b610e12565b60405161045f91906133b1565b60405180910390f35b610482600480360381019061047d9190612c98565b610e60565b60405161048f9190613739565b60405180910390f35b6104a0610f18565b005b6104bc60048036038101906104b79190612c98565b610fa0565b6040516104c99190613418565b60405180910390f35b6104da61106d565b6040516104e791906133b1565b60405180910390f35b6104f8611097565b6040516105059190613477565b60405180910390f35b61052860048036038101906105239190612dcc565b611129565b005b610544600480360381019061053f9190612c98565b6112aa565b6040516105519190613739565b60405180910390f35b610574600480360381019061056f9190612d4c565b6112c2565b005b610590600480360381019061058b9190612f00565b6112fd565b60405161059d9190613477565b60405180910390f35b6105c060048036038101906105bb9190612c98565b6113d9565b005b6105dc60048036038101906105d79190612cc1565b611b78565b6040516105e9919061345c565b60405180910390f35b61060c60048036038101906106079190612c98565b611c0c565b005b600061061982611d04565b9050919050565b60606000805461062f90613994565b80601f016020809104026020016040519081016040528092919081815260200182805461065b90613994565b80156106a85780601f1061067d576101008083540402835291602001916106a8565b820191906000526020600020905b81548152906001019060200180831161068b57829003601f168201915b5050505050905090565b60006106bd82611d7e565b6106fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106f390613619565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061074282610cd8565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156107b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107aa90613699565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166107d2611dea565b73ffffffffffffffffffffffffffffffffffffffff1614806108015750610800816107fb611dea565b611b78565b5b610840576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161083790613579565b60405180910390fd5b61084a8383611df2565b505050565b6000600880549050905090565b60106020528060005260406000206000915090505481565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108a690613559565b60405180910390fd5b60006108ba83610e60565b82106108fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f290613499565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b600f6020528060005260406000206000915090505481565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161099e90613559565b60405180910390fd5b6109af611dea565b73ffffffffffffffffffffffffffffffffffffffff166109cd61106d565b73ffffffffffffffffffffffffffffffffffffffff1614610a23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1a90613639565b60405180910390fd5b610a2c81611eab565b50565b60606000610a3c83610e60565b90506000811415610abf57600067ffffffffffffffff811115610a88577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610ab65781602001602082028036833780820191505090505b50915050610ba6565b60008167ffffffffffffffff811115610b01577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610b2f5781602001602082028036833780820191505090505b50905060005b82811015610b9f57610b4785826108af565b828281518110610b80577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508080610b97906139f7565b915050610b35565b5080925050505b919050565b6000610bb561084f565b8210610bf6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bed906136f9565b60405180910390fd5b60088281548110610c30577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b610c4a611dea565b73ffffffffffffffffffffffffffffffffffffffff16610c6861106d565b73ffffffffffffffffffffffffffffffffffffffff1614610cbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb590613639565b60405180910390fd5b80600b9080519060200190610cd4929190612ac5565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610d81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d78906135b9565b60405180910390fd5b80915050919050565b610d92611dea565b73ffffffffffffffffffffffffffffffffffffffff16610db061106d565b73ffffffffffffffffffffffffffffffffffffffff1614610e06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dfd90613639565b60405180910390fd5b610e0f81611fbc565b50565b600e6020528160005260406000208181548110610e2e57600080fd5b906000526020600020016000915091509054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610ed1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec890613599565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610f20611dea565b73ffffffffffffffffffffffffffffffffffffffff16610f3e61106d565b73ffffffffffffffffffffffffffffffffffffffff1614610f94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8b90613639565b60405180910390fd5b610f9e6000612021565b565b6060600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080548060200260200160405190810160405280929190818152602001828054801561106157602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311611017575b50505050509050919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600180546110a690613994565b80601f01602080910402602001604051908101604052809291908181526020018280546110d290613994565b801561111f5780601f106110f45761010080835404028352916020019161111f565b820191906000526020600020905b81548152906001019060200180831161110257829003601f168201915b5050505050905090565b611131611dea565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561119f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119690613539565b60405180910390fd5b80600560006111ac611dea565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611259611dea565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161129e919061345c565b60405180910390a35050565b600d6020528060005260406000206000915090505481565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f490613559565b60405180910390fd5b606061130882611d7e565b611347576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133e90613659565b60405180910390fd5b600b805461135490613994565b80601f016020809104026020016040519081016040528092919081815260200182805461138090613994565b80156113cd5780601f106113a2576101008083540402835291602001916113cd565b820191906000526020600020905b8154815290600101906020018083116113b057829003601f168201915b50505050509050919050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff166369bfc850836040518263ffffffff1660e01b815260040161143991906133b1565b60206040518083038186803b15801561145157600080fd5b505afa158015611465573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114899190612e44565b6114c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114bf90613719565b60405180910390fd5b60006114d333610e60565b11611513576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150a90613679565b60405180910390fd5b42601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410611594576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158b906136b9565b60405180910390fd5b600061159f83610e60565b146115df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d6906135d9565b60405180910390fd5b6000600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054806020026020016040519081016040528092919081815260200182805480156116a057602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311611656575b5050505050905060005b8151811015611775578373ffffffffffffffffffffffffffffffffffffffff16828281518110611703577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff161415611762576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611759906136d9565b60405180910390fd5b808061176d906139f7565b9150506116aa565b50600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020839080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546118669190613854565b925050819055506001600d60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546118bd9190613854565b9250508190555062278d00426118d39190613854565b601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600061192061084f565b905060158110801561197157506002600d60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054115b156119845761197f84611fbc565b611b72565b6033811080156119d357506003600d60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054115b156119e6576119e184611fbc565b611b71565b606581108015611a3557506004600d60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054115b15611a4857611a4384611fbc565b611b70565b6101f581108015611a9857506005600d60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054115b15611aab57611aa684611fbc565b611b6f565b6103e981108015611afb57506006600d60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054115b15611b0e57611b0984611fbc565b611b6e565b6103e881118015611b5e57506007600d60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054115b15611b6d57611b6c84611fbc565b5b5b5b5b5b5b50505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611c14611dea565b73ffffffffffffffffffffffffffffffffffffffff16611c3261106d565b73ffffffffffffffffffffffffffffffffffffffff1614611c88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7f90613639565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611cf8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cef906134d9565b60405180910390fd5b611d0181612021565b50565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611d775750611d76826120e7565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611e6583610cd8565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611eb682610cd8565b9050611ec4816000846121c9565b611ecf600083611df2565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f1f91906138aa565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6000611fc782610e60565b14612007576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ffe90613519565b60405180910390fd5b600061201161084f565b905061201d82826121d9565b5050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806121b257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806121c257506121c1826121f7565b5b9050919050565b6121d4838383612261565b505050565b6121f3828260405180602001604052806000815250612375565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61226c8383836123d0565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156122af576122aa816123d5565b6122ee565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146122ed576122ec838261241e565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156123315761232c8161258b565b612370565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461236f5761236e82826126ce565b5b5b505050565b61237f838361274d565b61238c600084848461291b565b6123cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123c2906134b9565b60405180910390fd5b505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161242b84610e60565b61243591906138aa565b905060006007600084815260200190815260200160002054905081811461251a576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160088054905061259f91906138aa565b90506000600960008481526020019081526020016000205490506000600883815481106125f5577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050806008838154811061263d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806126b2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006126d983610e60565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156127bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127b4906135f9565b60405180910390fd5b6127c681611d7e565b15612806576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127fd906134f9565b60405180910390fd5b612812600083836121c9565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128629190613854565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600061293c8473ffffffffffffffffffffffffffffffffffffffff16612ab2565b15612aa5578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612965611dea565b8786866040518563ffffffff1660e01b815260040161298794939291906133cc565b602060405180830381600087803b1580156129a157600080fd5b505af19250505080156129d257506040513d601f19601f820116820180604052508101906129cf9190612e96565b60015b612a55573d8060008114612a02576040519150601f19603f3d011682016040523d82523d6000602084013e612a07565b606091505b50600081511415612a4d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a44906134b9565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612aaa565b600190505b949350505050565b600080823b905060008111915050919050565b828054612ad190613994565b90600052602060002090601f016020900481019282612af35760008555612b3a565b82601f10612b0c57805160ff1916838001178555612b3a565b82800160010185558215612b3a579182015b82811115612b39578251825591602001919060010190612b1e565b5b509050612b479190612b4b565b5090565b5b80821115612b64576000816000905550600101612b4c565b5090565b6000612b7b612b7684613779565b613754565b905082815260208101848484011115612b9357600080fd5b612b9e848285613952565b509392505050565b600081359050612bb581614075565b92915050565b600081359050612bca8161408c565b92915050565b600081519050612bdf8161408c565b92915050565b600081359050612bf4816140a3565b92915050565b600081519050612c09816140a3565b92915050565b60008083601f840112612c2157600080fd5b8235905067ffffffffffffffff811115612c3a57600080fd5b602083019150836001820283011115612c5257600080fd5b9250929050565b600082601f830112612c6a57600080fd5b8135612c7a848260208601612b68565b91505092915050565b600081359050612c92816140ba565b92915050565b600060208284031215612caa57600080fd5b6000612cb884828501612ba6565b91505092915050565b60008060408385031215612cd457600080fd5b6000612ce285828601612ba6565b9250506020612cf385828601612ba6565b9150509250929050565b600080600060608486031215612d1257600080fd5b6000612d2086828701612ba6565b9350506020612d3186828701612ba6565b9250506040612d4286828701612c83565b9150509250925092565b600080600080600060808688031215612d6457600080fd5b6000612d7288828901612ba6565b9550506020612d8388828901612ba6565b9450506040612d9488828901612c83565b935050606086013567ffffffffffffffff811115612db157600080fd5b612dbd88828901612c0f565b92509250509295509295909350565b60008060408385031215612ddf57600080fd5b6000612ded85828601612ba6565b9250506020612dfe85828601612bbb565b9150509250929050565b60008060408385031215612e1b57600080fd5b6000612e2985828601612ba6565b9250506020612e3a85828601612c83565b9150509250929050565b600060208284031215612e5657600080fd5b6000612e6484828501612bd0565b91505092915050565b600060208284031215612e7f57600080fd5b6000612e8d84828501612be5565b91505092915050565b600060208284031215612ea857600080fd5b6000612eb684828501612bfa565b91505092915050565b600060208284031215612ed157600080fd5b600082013567ffffffffffffffff811115612eeb57600080fd5b612ef784828501612c59565b91505092915050565b600060208284031215612f1257600080fd5b6000612f2084828501612c83565b91505092915050565b6000612f358383612f59565b60208301905092915050565b6000612f4d8383613393565b60208301905092915050565b612f62816138de565b82525050565b612f71816138de565b82525050565b6000612f82826137ca565b612f8c8185613810565b9350612f97836137aa565b8060005b83811015612fc8578151612faf8882612f29565b9750612fba836137f6565b925050600181019050612f9b565b5085935050505092915050565b6000612fe0826137d5565b612fea8185613821565b9350612ff5836137ba565b8060005b8381101561302657815161300d8882612f41565b975061301883613803565b925050600181019050612ff9565b5085935050505092915050565b61303c816138f0565b82525050565b600061304d826137e0565b6130578185613832565b9350613067818560208601613961565b61307081613acd565b840191505092915050565b6000613086826137eb565b6130908185613843565b93506130a0818560208601613961565b6130a981613acd565b840191505092915050565b60006130c1602b83613843565b91506130cc82613ade565b604082019050919050565b60006130e4603283613843565b91506130ef82613b2d565b604082019050919050565b6000613107602683613843565b915061311282613b7c565b604082019050919050565b600061312a601c83613843565b915061313582613bcb565b602082019050919050565b600061314d603083613843565b915061315882613bf4565b604082019050919050565b6000613170601983613843565b915061317b82613c43565b602082019050919050565b6000613193602283613843565b915061319e82613c6c565b604082019050919050565b60006131b6603883613843565b91506131c182613cbb565b604082019050919050565b60006131d9602a83613843565b91506131e482613d0a565b604082019050919050565b60006131fc602983613843565b915061320782613d59565b604082019050919050565b600061321f601d83613843565b915061322a82613da8565b602082019050919050565b6000613242602083613843565b915061324d82613dd1565b602082019050919050565b6000613265602c83613843565b915061327082613dfa565b604082019050919050565b6000613288602083613843565b915061329382613e49565b602082019050919050565b60006132ab602f83613843565b91506132b682613e72565b604082019050919050565b60006132ce601883613843565b91506132d982613ec1565b602082019050919050565b60006132f1602183613843565b91506132fc82613eea565b604082019050919050565b6000613314602083613843565b915061331f82613f39565b602082019050919050565b6000613337603383613843565b915061334282613f62565b604082019050919050565b600061335a602c83613843565b915061336582613fb1565b604082019050919050565b600061337d605383613843565b915061338882614000565b606082019050919050565b61339c81613948565b82525050565b6133ab81613948565b82525050565b60006020820190506133c66000830184612f68565b92915050565b60006080820190506133e16000830187612f68565b6133ee6020830186612f68565b6133fb60408301856133a2565b818103606083015261340d8184613042565b905095945050505050565b600060208201905081810360008301526134328184612f77565b905092915050565b600060208201905081810360008301526134548184612fd5565b905092915050565b60006020820190506134716000830184613033565b92915050565b60006020820190508181036000830152613491818461307b565b905092915050565b600060208201905081810360008301526134b2816130b4565b9050919050565b600060208201905081810360008301526134d2816130d7565b9050919050565b600060208201905081810360008301526134f2816130fa565b9050919050565b600060208201905081810360008301526135128161311d565b9050919050565b6000602082019050818103600083015261353281613140565b9050919050565b6000602082019050818103600083015261355281613163565b9050919050565b6000602082019050818103600083015261357281613186565b9050919050565b60006020820190508181036000830152613592816131a9565b9050919050565b600060208201905081810360008301526135b2816131cc565b9050919050565b600060208201905081810360008301526135d2816131ef565b9050919050565b600060208201905081810360008301526135f281613212565b9050919050565b6000602082019050818103600083015261361281613235565b9050919050565b6000602082019050818103600083015261363281613258565b9050919050565b600060208201905081810360008301526136528161327b565b9050919050565b600060208201905081810360008301526136728161329e565b9050919050565b60006020820190508181036000830152613692816132c1565b9050919050565b600060208201905081810360008301526136b2816132e4565b9050919050565b600060208201905081810360008301526136d281613307565b9050919050565b600060208201905081810360008301526136f28161332a565b9050919050565b600060208201905081810360008301526137128161334d565b9050919050565b6000602082019050818103600083015261373281613370565b9050919050565b600060208201905061374e60008301846133a2565b92915050565b600061375e61376f565b905061376a82826139c6565b919050565b6000604051905090565b600067ffffffffffffffff82111561379457613793613a9e565b5b61379d82613acd565b9050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600061385f82613948565b915061386a83613948565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561389f5761389e613a40565b5b828201905092915050565b60006138b582613948565b91506138c083613948565b9250828210156138d3576138d2613a40565b5b828203905092915050565b60006138e982613928565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b8381101561397f578082015181840152602081019050613964565b8381111561398e576000848401525b50505050565b600060028204905060018216806139ac57607f821691505b602082108114156139c0576139bf613a6f565b5b50919050565b6139cf82613acd565b810181811067ffffffffffffffff821117156139ee576139ed613a9e565b5b80604052505050565b6000613a0282613948565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613a3557613a34613a40565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f526563697069656e742063616e206e6f7420616c72656164792068617665206160008201527f2050726f6f66206f66204b6e6967687400000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f43616e2774207472616e736665722050726f6f66206f66204b6e69676874204e60008201527f4654000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f526563697069656e7420697320616c72656164792061204b6e69676874000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f53656e646572206d7573742062652061204b6e696768742e0000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f546f6f20736f6f6e20666f7220746865204b6e6967687420746f20766f74652e600082015250565b7f4b6e696768742063616e6e6f7420766f7563682074776f2074696d657320746860008201527f652073616d6520537061636577616c6b65722e00000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f526563697069656e74206d757374206f776e206174206c65617374206f6e652060008201527f537061636577616c6b6572204e4654207468617420686173207365727665642060208201527f697473206c6f636b696e6720706572696f642e00000000000000000000000000604082015250565b61407e816138de565b811461408957600080fd5b50565b614095816138f0565b81146140a057600080fd5b50565b6140ac816138fc565b81146140b757600080fd5b50565b6140c381613948565b81146140ce57600080fd5b5056fea2646970667358221220875faee74fb447c03b4fc60617c172f30b676fe581192b4b046829dd53ba449c64736f6c634300080400330000000000000000000000005f75c107c55734ce70d2acd906868896a82834e8
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101cf5760003560e01c80636352211e1161010457806395d89b41116100a2578063c87b56dd11610071578063c87b56dd14610576578063dd66e16b146105a6578063e985e9c5146105c2578063f2fde38b146105f2576101cf565b806395d89b41146104f0578063a22cb4651461050e578063b4812ab91461052a578063b88d4fde1461055a576101cf565b806370a08231116100de57806370a0823114610468578063715018a61461049857806379d10486146104a25780638da5cb5b146104d2576101cf565b80636352211e146103ec5780636a6278421461041c5780636b90b98014610438576101cf565b80632f745c591161017157806342966c681161014b57806342966c6814610354578063438b6300146103705780634f6ccce7146103a057806355f804b3146103d0576101cf565b80632f745c59146102d8578063424342001461030857806342842e0e14610338576101cf565b8063095ea7b3116101ad578063095ea7b31461025257806318160ddd1461026e5780631ed566b61461028c57806323b872dd146102bc576101cf565b806301ffc9a7146101d457806306fdde0314610204578063081812fc14610222575b600080fd5b6101ee60048036038101906101e99190612e6d565b61060e565b6040516101fb919061345c565b60405180910390f35b61020c610620565b6040516102199190613477565b60405180910390f35b61023c60048036038101906102379190612f00565b6106b2565b60405161024991906133b1565b60405180910390f35b61026c60048036038101906102679190612e08565b610737565b005b61027661084f565b6040516102839190613739565b60405180910390f35b6102a660048036038101906102a19190612c98565b61085c565b6040516102b39190613739565b60405180910390f35b6102d660048036038101906102d19190612cfd565b610874565b005b6102f260048036038101906102ed9190612e08565b6108af565b6040516102ff9190613739565b60405180910390f35b610322600480360381019061031d9190612c98565b610954565b60405161032f9190613739565b60405180910390f35b610352600480360381019061034d9190612cfd565b61096c565b005b61036e60048036038101906103699190612f00565b6109a7565b005b61038a60048036038101906103859190612c98565b610a2f565b604051610397919061343a565b60405180910390f35b6103ba60048036038101906103b59190612f00565b610bab565b6040516103c79190613739565b60405180910390f35b6103ea60048036038101906103e59190612ebf565b610c42565b005b61040660048036038101906104019190612f00565b610cd8565b60405161041391906133b1565b60405180910390f35b61043660048036038101906104319190612c98565b610d8a565b005b610452600480360381019061044d9190612e08565b610e12565b60405161045f91906133b1565b60405180910390f35b610482600480360381019061047d9190612c98565b610e60565b60405161048f9190613739565b60405180910390f35b6104a0610f18565b005b6104bc60048036038101906104b79190612c98565b610fa0565b6040516104c99190613418565b60405180910390f35b6104da61106d565b6040516104e791906133b1565b60405180910390f35b6104f8611097565b6040516105059190613477565b60405180910390f35b61052860048036038101906105239190612dcc565b611129565b005b610544600480360381019061053f9190612c98565b6112aa565b6040516105519190613739565b60405180910390f35b610574600480360381019061056f9190612d4c565b6112c2565b005b610590600480360381019061058b9190612f00565b6112fd565b60405161059d9190613477565b60405180910390f35b6105c060048036038101906105bb9190612c98565b6113d9565b005b6105dc60048036038101906105d79190612cc1565b611b78565b6040516105e9919061345c565b60405180910390f35b61060c60048036038101906106079190612c98565b611c0c565b005b600061061982611d04565b9050919050565b60606000805461062f90613994565b80601f016020809104026020016040519081016040528092919081815260200182805461065b90613994565b80156106a85780601f1061067d576101008083540402835291602001916106a8565b820191906000526020600020905b81548152906001019060200180831161068b57829003601f168201915b5050505050905090565b60006106bd82611d7e565b6106fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106f390613619565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061074282610cd8565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156107b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107aa90613699565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166107d2611dea565b73ffffffffffffffffffffffffffffffffffffffff1614806108015750610800816107fb611dea565b611b78565b5b610840576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161083790613579565b60405180910390fd5b61084a8383611df2565b505050565b6000600880549050905090565b60106020528060005260406000206000915090505481565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108a690613559565b60405180910390fd5b60006108ba83610e60565b82106108fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f290613499565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b600f6020528060005260406000206000915090505481565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161099e90613559565b60405180910390fd5b6109af611dea565b73ffffffffffffffffffffffffffffffffffffffff166109cd61106d565b73ffffffffffffffffffffffffffffffffffffffff1614610a23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1a90613639565b60405180910390fd5b610a2c81611eab565b50565b60606000610a3c83610e60565b90506000811415610abf57600067ffffffffffffffff811115610a88577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610ab65781602001602082028036833780820191505090505b50915050610ba6565b60008167ffffffffffffffff811115610b01577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610b2f5781602001602082028036833780820191505090505b50905060005b82811015610b9f57610b4785826108af565b828281518110610b80577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508080610b97906139f7565b915050610b35565b5080925050505b919050565b6000610bb561084f565b8210610bf6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bed906136f9565b60405180910390fd5b60088281548110610c30577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b610c4a611dea565b73ffffffffffffffffffffffffffffffffffffffff16610c6861106d565b73ffffffffffffffffffffffffffffffffffffffff1614610cbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb590613639565b60405180910390fd5b80600b9080519060200190610cd4929190612ac5565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610d81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d78906135b9565b60405180910390fd5b80915050919050565b610d92611dea565b73ffffffffffffffffffffffffffffffffffffffff16610db061106d565b73ffffffffffffffffffffffffffffffffffffffff1614610e06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dfd90613639565b60405180910390fd5b610e0f81611fbc565b50565b600e6020528160005260406000208181548110610e2e57600080fd5b906000526020600020016000915091509054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610ed1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec890613599565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610f20611dea565b73ffffffffffffffffffffffffffffffffffffffff16610f3e61106d565b73ffffffffffffffffffffffffffffffffffffffff1614610f94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8b90613639565b60405180910390fd5b610f9e6000612021565b565b6060600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080548060200260200160405190810160405280929190818152602001828054801561106157602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311611017575b50505050509050919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600180546110a690613994565b80601f01602080910402602001604051908101604052809291908181526020018280546110d290613994565b801561111f5780601f106110f45761010080835404028352916020019161111f565b820191906000526020600020905b81548152906001019060200180831161110257829003601f168201915b5050505050905090565b611131611dea565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561119f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119690613539565b60405180910390fd5b80600560006111ac611dea565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611259611dea565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161129e919061345c565b60405180910390a35050565b600d6020528060005260406000206000915090505481565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f490613559565b60405180910390fd5b606061130882611d7e565b611347576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133e90613659565b60405180910390fd5b600b805461135490613994565b80601f016020809104026020016040519081016040528092919081815260200182805461138090613994565b80156113cd5780601f106113a2576101008083540402835291602001916113cd565b820191906000526020600020905b8154815290600101906020018083116113b057829003601f168201915b50505050509050919050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff166369bfc850836040518263ffffffff1660e01b815260040161143991906133b1565b60206040518083038186803b15801561145157600080fd5b505afa158015611465573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114899190612e44565b6114c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114bf90613719565b60405180910390fd5b60006114d333610e60565b11611513576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150a90613679565b60405180910390fd5b42601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410611594576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158b906136b9565b60405180910390fd5b600061159f83610e60565b146115df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d6906135d9565b60405180910390fd5b6000600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054806020026020016040519081016040528092919081815260200182805480156116a057602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311611656575b5050505050905060005b8151811015611775578373ffffffffffffffffffffffffffffffffffffffff16828281518110611703577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff161415611762576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611759906136d9565b60405180910390fd5b808061176d906139f7565b9150506116aa565b50600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020839080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546118669190613854565b925050819055506001600d60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546118bd9190613854565b9250508190555062278d00426118d39190613854565b601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600061192061084f565b905060158110801561197157506002600d60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054115b156119845761197f84611fbc565b611b72565b6033811080156119d357506003600d60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054115b156119e6576119e184611fbc565b611b71565b606581108015611a3557506004600d60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054115b15611a4857611a4384611fbc565b611b70565b6101f581108015611a9857506005600d60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054115b15611aab57611aa684611fbc565b611b6f565b6103e981108015611afb57506006600d60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054115b15611b0e57611b0984611fbc565b611b6e565b6103e881118015611b5e57506007600d60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054115b15611b6d57611b6c84611fbc565b5b5b5b5b5b5b50505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611c14611dea565b73ffffffffffffffffffffffffffffffffffffffff16611c3261106d565b73ffffffffffffffffffffffffffffffffffffffff1614611c88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7f90613639565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611cf8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cef906134d9565b60405180910390fd5b611d0181612021565b50565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611d775750611d76826120e7565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611e6583610cd8565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611eb682610cd8565b9050611ec4816000846121c9565b611ecf600083611df2565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f1f91906138aa565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6000611fc782610e60565b14612007576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ffe90613519565b60405180910390fd5b600061201161084f565b905061201d82826121d9565b5050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806121b257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806121c257506121c1826121f7565b5b9050919050565b6121d4838383612261565b505050565b6121f3828260405180602001604052806000815250612375565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61226c8383836123d0565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156122af576122aa816123d5565b6122ee565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146122ed576122ec838261241e565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156123315761232c8161258b565b612370565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461236f5761236e82826126ce565b5b5b505050565b61237f838361274d565b61238c600084848461291b565b6123cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123c2906134b9565b60405180910390fd5b505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161242b84610e60565b61243591906138aa565b905060006007600084815260200190815260200160002054905081811461251a576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160088054905061259f91906138aa565b90506000600960008481526020019081526020016000205490506000600883815481106125f5577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050806008838154811061263d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806126b2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006126d983610e60565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156127bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127b4906135f9565b60405180910390fd5b6127c681611d7e565b15612806576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127fd906134f9565b60405180910390fd5b612812600083836121c9565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128629190613854565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600061293c8473ffffffffffffffffffffffffffffffffffffffff16612ab2565b15612aa5578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612965611dea565b8786866040518563ffffffff1660e01b815260040161298794939291906133cc565b602060405180830381600087803b1580156129a157600080fd5b505af19250505080156129d257506040513d601f19601f820116820180604052508101906129cf9190612e96565b60015b612a55573d8060008114612a02576040519150601f19603f3d011682016040523d82523d6000602084013e612a07565b606091505b50600081511415612a4d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a44906134b9565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612aaa565b600190505b949350505050565b600080823b905060008111915050919050565b828054612ad190613994565b90600052602060002090601f016020900481019282612af35760008555612b3a565b82601f10612b0c57805160ff1916838001178555612b3a565b82800160010185558215612b3a579182015b82811115612b39578251825591602001919060010190612b1e565b5b509050612b479190612b4b565b5090565b5b80821115612b64576000816000905550600101612b4c565b5090565b6000612b7b612b7684613779565b613754565b905082815260208101848484011115612b9357600080fd5b612b9e848285613952565b509392505050565b600081359050612bb581614075565b92915050565b600081359050612bca8161408c565b92915050565b600081519050612bdf8161408c565b92915050565b600081359050612bf4816140a3565b92915050565b600081519050612c09816140a3565b92915050565b60008083601f840112612c2157600080fd5b8235905067ffffffffffffffff811115612c3a57600080fd5b602083019150836001820283011115612c5257600080fd5b9250929050565b600082601f830112612c6a57600080fd5b8135612c7a848260208601612b68565b91505092915050565b600081359050612c92816140ba565b92915050565b600060208284031215612caa57600080fd5b6000612cb884828501612ba6565b91505092915050565b60008060408385031215612cd457600080fd5b6000612ce285828601612ba6565b9250506020612cf385828601612ba6565b9150509250929050565b600080600060608486031215612d1257600080fd5b6000612d2086828701612ba6565b9350506020612d3186828701612ba6565b9250506040612d4286828701612c83565b9150509250925092565b600080600080600060808688031215612d6457600080fd5b6000612d7288828901612ba6565b9550506020612d8388828901612ba6565b9450506040612d9488828901612c83565b935050606086013567ffffffffffffffff811115612db157600080fd5b612dbd88828901612c0f565b92509250509295509295909350565b60008060408385031215612ddf57600080fd5b6000612ded85828601612ba6565b9250506020612dfe85828601612bbb565b9150509250929050565b60008060408385031215612e1b57600080fd5b6000612e2985828601612ba6565b9250506020612e3a85828601612c83565b9150509250929050565b600060208284031215612e5657600080fd5b6000612e6484828501612bd0565b91505092915050565b600060208284031215612e7f57600080fd5b6000612e8d84828501612be5565b91505092915050565b600060208284031215612ea857600080fd5b6000612eb684828501612bfa565b91505092915050565b600060208284031215612ed157600080fd5b600082013567ffffffffffffffff811115612eeb57600080fd5b612ef784828501612c59565b91505092915050565b600060208284031215612f1257600080fd5b6000612f2084828501612c83565b91505092915050565b6000612f358383612f59565b60208301905092915050565b6000612f4d8383613393565b60208301905092915050565b612f62816138de565b82525050565b612f71816138de565b82525050565b6000612f82826137ca565b612f8c8185613810565b9350612f97836137aa565b8060005b83811015612fc8578151612faf8882612f29565b9750612fba836137f6565b925050600181019050612f9b565b5085935050505092915050565b6000612fe0826137d5565b612fea8185613821565b9350612ff5836137ba565b8060005b8381101561302657815161300d8882612f41565b975061301883613803565b925050600181019050612ff9565b5085935050505092915050565b61303c816138f0565b82525050565b600061304d826137e0565b6130578185613832565b9350613067818560208601613961565b61307081613acd565b840191505092915050565b6000613086826137eb565b6130908185613843565b93506130a0818560208601613961565b6130a981613acd565b840191505092915050565b60006130c1602b83613843565b91506130cc82613ade565b604082019050919050565b60006130e4603283613843565b91506130ef82613b2d565b604082019050919050565b6000613107602683613843565b915061311282613b7c565b604082019050919050565b600061312a601c83613843565b915061313582613bcb565b602082019050919050565b600061314d603083613843565b915061315882613bf4565b604082019050919050565b6000613170601983613843565b915061317b82613c43565b602082019050919050565b6000613193602283613843565b915061319e82613c6c565b604082019050919050565b60006131b6603883613843565b91506131c182613cbb565b604082019050919050565b60006131d9602a83613843565b91506131e482613d0a565b604082019050919050565b60006131fc602983613843565b915061320782613d59565b604082019050919050565b600061321f601d83613843565b915061322a82613da8565b602082019050919050565b6000613242602083613843565b915061324d82613dd1565b602082019050919050565b6000613265602c83613843565b915061327082613dfa565b604082019050919050565b6000613288602083613843565b915061329382613e49565b602082019050919050565b60006132ab602f83613843565b91506132b682613e72565b604082019050919050565b60006132ce601883613843565b91506132d982613ec1565b602082019050919050565b60006132f1602183613843565b91506132fc82613eea565b604082019050919050565b6000613314602083613843565b915061331f82613f39565b602082019050919050565b6000613337603383613843565b915061334282613f62565b604082019050919050565b600061335a602c83613843565b915061336582613fb1565b604082019050919050565b600061337d605383613843565b915061338882614000565b606082019050919050565b61339c81613948565b82525050565b6133ab81613948565b82525050565b60006020820190506133c66000830184612f68565b92915050565b60006080820190506133e16000830187612f68565b6133ee6020830186612f68565b6133fb60408301856133a2565b818103606083015261340d8184613042565b905095945050505050565b600060208201905081810360008301526134328184612f77565b905092915050565b600060208201905081810360008301526134548184612fd5565b905092915050565b60006020820190506134716000830184613033565b92915050565b60006020820190508181036000830152613491818461307b565b905092915050565b600060208201905081810360008301526134b2816130b4565b9050919050565b600060208201905081810360008301526134d2816130d7565b9050919050565b600060208201905081810360008301526134f2816130fa565b9050919050565b600060208201905081810360008301526135128161311d565b9050919050565b6000602082019050818103600083015261353281613140565b9050919050565b6000602082019050818103600083015261355281613163565b9050919050565b6000602082019050818103600083015261357281613186565b9050919050565b60006020820190508181036000830152613592816131a9565b9050919050565b600060208201905081810360008301526135b2816131cc565b9050919050565b600060208201905081810360008301526135d2816131ef565b9050919050565b600060208201905081810360008301526135f281613212565b9050919050565b6000602082019050818103600083015261361281613235565b9050919050565b6000602082019050818103600083015261363281613258565b9050919050565b600060208201905081810360008301526136528161327b565b9050919050565b600060208201905081810360008301526136728161329e565b9050919050565b60006020820190508181036000830152613692816132c1565b9050919050565b600060208201905081810360008301526136b2816132e4565b9050919050565b600060208201905081810360008301526136d281613307565b9050919050565b600060208201905081810360008301526136f28161332a565b9050919050565b600060208201905081810360008301526137128161334d565b9050919050565b6000602082019050818103600083015261373281613370565b9050919050565b600060208201905061374e60008301846133a2565b92915050565b600061375e61376f565b905061376a82826139c6565b919050565b6000604051905090565b600067ffffffffffffffff82111561379457613793613a9e565b5b61379d82613acd565b9050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600061385f82613948565b915061386a83613948565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561389f5761389e613a40565b5b828201905092915050565b60006138b582613948565b91506138c083613948565b9250828210156138d3576138d2613a40565b5b828203905092915050565b60006138e982613928565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b8381101561397f578082015181840152602081019050613964565b8381111561398e576000848401525b50505050565b600060028204905060018216806139ac57607f821691505b602082108114156139c0576139bf613a6f565b5b50919050565b6139cf82613acd565b810181811067ffffffffffffffff821117156139ee576139ed613a9e565b5b80604052505050565b6000613a0282613948565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613a3557613a34613a40565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f526563697069656e742063616e206e6f7420616c72656164792068617665206160008201527f2050726f6f66206f66204b6e6967687400000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f43616e2774207472616e736665722050726f6f66206f66204b6e69676874204e60008201527f4654000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f526563697069656e7420697320616c72656164792061204b6e69676874000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f53656e646572206d7573742062652061204b6e696768742e0000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f546f6f20736f6f6e20666f7220746865204b6e6967687420746f20766f74652e600082015250565b7f4b6e696768742063616e6e6f7420766f7563682074776f2074696d657320746860008201527f652073616d6520537061636577616c6b65722e00000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f526563697069656e74206d757374206f776e206174206c65617374206f6e652060008201527f537061636577616c6b6572204e4654207468617420686173207365727665642060208201527f697473206c6f636b696e6720706572696f642e00000000000000000000000000604082015250565b61407e816138de565b811461408957600080fd5b50565b614095816138f0565b81146140a057600080fd5b50565b6140ac816138fc565b81146140b757600080fd5b50565b6140c381613948565b81146140ce57600080fd5b5056fea2646970667358221220875faee74fb447c03b4fc60617c172f30b676fe581192b4b046829dd53ba449c64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000005f75c107c55734ce70d2acd906868896a82834e8
-----Decoded View---------------
Arg [0] : _spacewalkerContract (address): 0x5F75c107c55734CE70d2Acd906868896a82834E8
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000005f75c107c55734ce70d2acd906868896a82834e8
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.