ERC-721
NFT
Overview
Max Total Supply
6,076 ANFT
Holders
2,826
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 ANFTLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ArcadeCollection
Compiler Version
v0.8.0+commit.c7dfd78e
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 "./ArcadeBaseCollection.sol"; import "./lib/String.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; contract ArcadeCollection is ArcadeBaseCollection { using SafeMath for uint256; mapping(bytes4 => bool) internal supportedInterfaces; /** * @dev Create the contract. * @param _name - name of the contract * @param _symbol - symbol of the contract * @param _operator - Address allowed to mint tokens * @param _baseURI - base URI for token URIs */ constructor( string memory _name, string memory _symbol, address _operator, string memory _baseURI ) ArcadeBaseCollection(_name, _symbol, _operator, _baseURI) {} /** * @dev Issue a new NFT of the specified kind. * @notice that will throw if kind has reached its maximum or is invalid * @param _beneficiary - owner of the token * @param _gameId - token game */ function issueToken(address _beneficiary, string calldata _gameId) external payable { _issueToken(_beneficiary, _gameId); } /** * @dev Issue a new NFT of the specified kind. * @notice that will throw if kind has reached its maximum or is invalid * @param _beneficiary - owner of the token * @param _gameId - token game * @param _nbrOfTokens - Number of tokens to mint */ function issueTokens(address _beneficiary, string calldata _gameId, uint256 _nbrOfTokens) external payable { bytes32 key = getGameKey(_gameId); require(collectionPrice[key].mul(_nbrOfTokens) <= msg.value, "Ether value sent is not correct"); for(uint i = 0; i < _nbrOfTokens; i++) { _issueToken(_beneficiary, _gameId); } } /** * @dev Issue a new NFT of the specified kind. * @notice that will throw if kind has reached its maximum or is invalid * @param _beneficiary - owner of the token * @param _gameId - token game */ function _issueToken(address _beneficiary, string memory _gameId) internal { bytes32 key = getGameKey(_gameId); uint256 issuedId = issued[key] + 1; uint256 tokenId = this.totalSupply(); _mint(_beneficiary, tokenId, key, _gameId, issuedId); _setTokenURI( tokenId, string( abi.encodePacked( gameURIs[key], "/", String.uint2str(issuedId), ".json" ) ) ); } /** * @dev Internal function to set the token URI for a given token. * Reverts if the token ID does not exist. * @param _tokenId - uint256 ID of the token to set as its URI * @param _uri - string URI to assign */ function _setTokenURI(uint256 _tokenId, string memory _uri) internal { _tokenPaths[_tokenId] = _uri; } /** * @dev Burns the speficied token. * @param tokenId - token id */ function burn(uint256 tokenId) external onlyAllowed { super._burn(tokenId); if (bytes(_tokenPaths[tokenId]).length != 0) { delete _tokenPaths[tokenId]; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "./lib/String.sol"; abstract contract ArcadeBaseCollection is Ownable, ERC721Enumerable { using String for bytes32; using String for uint256; mapping(bytes32 => uint256) internal maxIssuance; mapping(bytes32 => uint256) internal issued; mapping(uint256 => string) internal _tokenPaths; mapping(address => bool) internal allowed; mapping(uint256 => mapping(address => string)) internal _interactiveConfURIs; mapping(bytes32 => string) internal gameURIs; mapping(bytes32 => uint256) internal collectionPrice; string[] internal games; string internal baseURI; bool internal isComplete; event BaseURI(string _oldBaseURI, string _newBaseURI); event Allowed(address indexed _operator, bool _allowed); event AddGame( bytes32 indexed _gameIdKey, string _gameId, uint256 _maxIssuance ); event Issue( address indexed _beneficiary, uint256 indexed _tokenId, bytes32 indexed _gameIdKey, string _gameId, uint256 _issuedId ); event ConfigurationURI( uint256 indexed tokenId, address indexed owner, string configurationURI ); event Complete(); /** * @dev Create the contract. * @param _name - name of the contract * @param _symbol - symbol of the contract * @param _operator - Address allowed to mint tokens * @param _baseURI - base URI for token URIs */ constructor( string memory _name, string memory _symbol, address _operator, string memory _baseURI ) ERC721(_name, _symbol) { setAllowed(_operator, true); setBaseURI(_baseURI); } modifier onlyAllowed() { require( allowed[msg.sender], "Only an `allowed` address can call this method" ); _; } /** * @dev Set price for collection. * @param _gameKey - gameKey to set the price for * @param _price - price for the collection */ function setCollectionPrice(bytes32 _gameKey, uint256 _price) external onlyAllowed { collectionPrice[_gameKey] = _price; } /** * @dev Set price for collection. * @param _gameKey - gameKey to set the uri for * @param _uri - uri for the game collection */ function setGameURI(bytes32 _gameKey, string memory _uri) external onlyAllowed { gameURIs[_gameKey] = _uri; } /** * @dev Set Base URI. * @param _baseURI - base URI for token URIs */ function setBaseURI(string memory _baseURI) public onlyOwner { emit BaseURI(baseURI, _baseURI); baseURI = _baseURI; } /** * @dev Set allowed account to issue tokens. * @param _operator - Address allowed to issue tokens * @param _allowed - Whether is allowed or not */ function setAllowed(address _operator, bool _allowed) public onlyOwner { require(_operator != address(0), "Invalid address"); require( allowed[_operator] != _allowed, "You should set a different value" ); allowed[_operator] = _allowed; emit Allowed(_operator, _allowed); } /** * @dev Return url for contract metadata * @return contract URI */ function contractURI() public pure returns (string memory) { return "https://arcadenfts.com/c_metadata.json"; } /** * @dev Withdraw all ether from this contract */ function withdraw() onlyOwner public { uint256 amount = address(this).balance; payable(msg.sender).transfer(amount); } /** * @dev Returns an URI for a given token ID. * Throws if the token ID does not exist. May return an empty string. * @param _tokenId - uint256 ID of the token queried * @return token URI * This will point to specific issue of the game, e.g. #2 with some attributes if needed? */ function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { require( _exists(_tokenId), "ERC721Metadata: received a URI query for a nonexistent token" ); return string(abi.encodePacked(baseURI, _tokenPaths[_tokenId])); } /** * @dev Set configurationURI for the owner * @param tokenId - uint256 ID of the token queried * @param owner - Address of the owner * @param _interactiveConfURI - URI to the configuration */ function setInteractiveConfURI( uint256 tokenId, address owner, string calldata _interactiveConfURI ) external onlyAllowed { _setInteractiveConfURI(tokenId, owner, _interactiveConfURI); } /** * @dev Set configurationURI for the owner * @param tokenId - uint256 ID of the token queried * @param owner - Address of the owner * @param interactiveConfURI_ - URI to the configuration */ function _setInteractiveConfURI( uint256 tokenId, address owner, string calldata interactiveConfURI_ ) internal virtual { _interactiveConfURIs[tokenId][owner] = interactiveConfURI_; emit ConfigurationURI(tokenId, owner, interactiveConfURI_); } /** * Configuration uri for tokenId * @return configurationUri for the owner */ function interactiveConfURI(uint256 tokenId, address owner) external view virtual returns (string memory) { return _interactiveConfURIs[tokenId][owner]; } /** * @dev Returns the games length. * @return game length */ function gamesCount() external view returns (uint256) { return games.length; } /** * @dev Complete the collection. * @notice that it will only prevent for adding more games. * The issuance is still allowed. */ function completeCollection() external onlyOwner { require(!isComplete, "The collection is already completed"); isComplete = true; emit Complete(); } /** * @dev Add a new game to the collection. * @notice that this method allows gameIds of any size. It should be used * if a gameId is greater than 32 bytes * @param _gameId - game id * @param _maxIssuance - total supply for the game */ function addGame(string memory _gameId, uint256 _maxIssuance) external onlyOwner { require(!isComplete, "This game has sold out!"); bytes32 key = getGameKey(_gameId); require(maxIssuance[key] == 0, "Can not modify an existing game"); require(_maxIssuance > 0, "Max issuance should be greater than 0"); maxIssuance[key] = _maxIssuance; games.push(_gameId); emit AddGame(key, _gameId, _maxIssuance); } /** * @dev Get keccak256 of a gameId. * @param _gameId - token game * @return bytes32 keccak256 of the gameId */ function getGameKey(string memory _gameId) public pure returns (bytes32) { return keccak256(abi.encodePacked(_gameId)); } /** * @dev Get issued for certain gameId * @param _gameId - token game * @return uint256 of the issuance of that game */ function getIssued(string memory _gameId) external view returns (uint256) { bytes32 _gameIdKey = getGameKey(_gameId); return issued[_gameIdKey]; } /** * @dev Mint a new NFT of the specified kind. * @notice that will throw if kind has reached its maximum or is invalid * @param _beneficiary - owner of the token * @param _tokenId - token * @param _gameIdKey - game key * @param _gameId - token game * @param _issuedId - issued id */ function _mint( address _beneficiary, uint256 _tokenId, bytes32 _gameIdKey, string memory _gameId, uint256 _issuedId ) internal { require( _issuedId > 0 && _issuedId <= maxIssuance[_gameIdKey], "Invalid issued id" ); require( issued[_gameIdKey] < maxIssuance[_gameIdKey], "Game exhausted" ); require( allowed[_beneficiary] ? msg.value >= 0 : collectionPrice[_gameIdKey] <= msg.value, "Ether value sent is not correct" ); // Mint erc721 token super._mint(_beneficiary, _tokenId); // Increase issuance issued[_gameIdKey] = issued[_gameIdKey] + 1; // Log emit Issue(_beneficiary, _tokenId, _gameIdKey, _gameId, _issuedId); } /** @notice Enumerate NFTs assigned to an owner * @dev Throws if `_index` >= `balanceOf(_owner)` or if * `_owner` is the zero address, representing invalid NFTs. * @param _owner An address where we are interested in NFTs owned by them * @param _index A counter less than `balanceOf(_owner)` * @return The token identifier for the `_index`th NFT assigned to `_owner`, * (sort order not specified) */ function tokenOfOwner(address _owner, uint256 _index) external view returns (uint256) { return (ERC721Enumerable.tokenOfOwnerByIndex(_owner, _index)); } /** * @notice Count all NFTs assigned to an owner * @dev NFTs assigned to the zero address are considered invalid, and this * function throws for queries about the zero address. * @param _owner An address for whom to query the balance * @return The number of NFTs owned by `_owner`, possibly zero */ function balance(address _owner) external view returns (uint256) { return ERC721.balanceOf(_owner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; library String { /** * @dev Convert uint to string. * @param _i - uint256 to be converted to string. * @return _uintAsString */ function uint2str(uint256 _i) internal pure returns (string memory _uintAsString) { if (_i == 0) { return "0"; } uint256 j = _i; uint256 len; while (j != 0) { len++; j /= 10; } bytes memory bstr = new bytes(len); uint256 k = len; while (_i != 0) { k = k - 1; uint8 temp = (48 + uint8(_i - (_i / 10) * 10)); bytes1 b1 = bytes1(temp); bstr[k] = b1; _i /= 10; } return string(bstr); } }
// 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 () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; 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}. 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(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { // solhint-disable-next-line no-inline-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; 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 "./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; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant alphabet = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = alphabet[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// 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. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * 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; } } }
{ "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":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_operator","type":"address"},{"internalType":"string","name":"_baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"_gameIdKey","type":"bytes32"},{"indexed":false,"internalType":"string","name":"_gameId","type":"string"},{"indexed":false,"internalType":"uint256","name":"_maxIssuance","type":"uint256"}],"name":"AddGame","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_operator","type":"address"},{"indexed":false,"internalType":"bool","name":"_allowed","type":"bool"}],"name":"Allowed","type":"event"},{"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":false,"internalType":"string","name":"_oldBaseURI","type":"string"},{"indexed":false,"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"BaseURI","type":"event"},{"anonymous":false,"inputs":[],"name":"Complete","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"string","name":"configurationURI","type":"string"}],"name":"ConfigurationURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_beneficiary","type":"address"},{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":true,"internalType":"bytes32","name":"_gameIdKey","type":"bytes32"},{"indexed":false,"internalType":"string","name":"_gameId","type":"string"},{"indexed":false,"internalType":"uint256","name":"_issuedId","type":"uint256"}],"name":"Issue","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":"string","name":"_gameId","type":"string"},{"internalType":"uint256","name":"_maxIssuance","type":"uint256"}],"name":"addGame","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"balance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[],"name":"completeCollection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"gamesCount","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":"string","name":"_gameId","type":"string"}],"name":"getGameKey","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"string","name":"_gameId","type":"string"}],"name":"getIssued","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"name":"interactiveConfURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_beneficiary","type":"address"},{"internalType":"string","name":"_gameId","type":"string"}],"name":"issueToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_beneficiary","type":"address"},{"internalType":"string","name":"_gameId","type":"string"},{"internalType":"uint256","name":"_nbrOfTokens","type":"uint256"}],"name":"issueTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"},{"internalType":"bool","name":"_allowed","type":"bool"}],"name":"setAllowed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_gameKey","type":"bytes32"},{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setCollectionPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_gameKey","type":"bytes32"},{"internalType":"string","name":"_uri","type":"string"}],"name":"setGameURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"string","name":"_interactiveConfURI","type":"string"}],"name":"setInteractiveConfURI","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":"tokenOfOwner","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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162006079380380620060798339818101604052810190620000379190620005e7565b83838383838360006200004f6200015360201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a350816001908051906020019062000105929190620004ae565b5080600290805190602001906200011e929190620004ae565b505050620001348260016200015b60201b60201c565b62000145816200039e60201b60201c565b505050505050505062000acd565b600033905090565b6200016b6200015360201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620001916200048560201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1614620001ea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001e190620008bc565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156200025d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000254906200089a565b60405180910390fd5b801515600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615151415620002f3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002ea90620008de565b60405180910390fd5b80600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f64966f3fe2ac8cae5e6f7e4196d1315efafdb78a4377de3887c56fa3b9ac47cb8260405162000392919062000842565b60405180910390a25050565b620003ae6200015360201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620003d46200048560201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16146200042d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200042490620008bc565b60405180910390fd5b7fb8fdf10126d507f6daf46465ec25a2bbc08449cf6c944c98219264161391040a601382604051620004619291906200085f565b60405180910390a1806013908051906020019062000481929190620004ae565b5050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b828054620004bc9062000a0e565b90600052602060002090601f016020900481019282620004e057600085556200052c565b82601f10620004fb57805160ff19168380011785556200052c565b828001600101855582156200052c579182015b828111156200052b5782518255916020019190600101906200050e565b5b5090506200053b91906200053f565b5090565b5b808211156200055a57600081600090555060010162000540565b5090565b6000620005756200056f8462000934565b62000900565b9050828152602081018484840111156200058e57600080fd5b6200059b848285620009d8565b509392505050565b600081519050620005b48162000ab3565b92915050565b600082601f830112620005cc57600080fd5b8151620005de8482602086016200055e565b91505092915050565b60008060008060808587031215620005fe57600080fd5b600085015167ffffffffffffffff8111156200061957600080fd5b6200062787828801620005ba565b945050602085015167ffffffffffffffff8111156200064557600080fd5b6200065387828801620005ba565b93505060406200066687828801620005a3565b925050606085015167ffffffffffffffff8111156200068457600080fd5b6200069287828801620005ba565b91505092959194509250565b620006a981620009ac565b82525050565b6000620006bc826200097c565b620006c8818562000987565b9350620006da818560208601620009d8565b620006e58162000aa2565b840191505092915050565b60008154620006ff8162000a0e565b6200070b818662000987565b945060018216600081146200072957600181146200073c5762000773565b60ff198316865260208601935062000773565b620007478562000967565b60005b838110156200076b578154818901526001820191506020810190506200074a565b808801955050505b50505092915050565b60006200078b600f8362000987565b91507f496e76616c6964206164647265737300000000000000000000000000000000006000830152602082019050919050565b6000620007cd60208362000987565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b60006200080f60208362000987565b91507f596f752073686f756c6420736574206120646966666572656e742076616c75656000830152602082019050919050565b60006020820190506200085960008301846200069e565b92915050565b600060408201905081810360008301526200087b8185620006f0565b90508181036020830152620008918184620006af565b90509392505050565b60006020820190508181036000830152620008b5816200077c565b9050919050565b60006020820190508181036000830152620008d781620007be565b9050919050565b60006020820190508181036000830152620008f98162000800565b9050919050565b6000604051905081810181811067ffffffffffffffff821117156200092a576200092962000a73565b5b8060405250919050565b600067ffffffffffffffff82111562000952576200095162000a73565b5b601f19601f8301169050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600082825260208201905092915050565b6000620009a582620009b8565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60005b83811015620009f8578082015181840152602081019050620009db565b8381111562000a08576000848401525b50505050565b6000600282049050600182168062000a2757607f821691505b6020821081141562000a3e5762000a3d62000a44565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b62000abe8162000998565b811462000aca57600080fd5b50565b61559c8062000add6000396000f3fe60806040526004361061021a5760003560e01c80635669c94f11610123578063a22cb465116100ab578063e8a3d4851161006f578063e8a3d485146107f9578063e985e9c514610824578063f2fde38b14610861578063f59d9e3f1461088a578063fb632b7c146108a15761021a565b8063a22cb46514610704578063b3aa2fe11461072d578063b88d4fde14610756578063c87b56dd1461077f578063e3d670d7146107bc5761021a565b8063715018a6116100f2578063715018a61461061d5780638da5cb5b1461063457806395d89b411461065f578063995eedef1461068a5780639a004836146106c75761021a565b80635669c94f1461054a5780636352211e146105665780636dff7da0146105a357806370a08231146105e05761021a565b80632f745c59116101a65780634697f05d116101755780634697f05d146104555780634f6ccce71461047e57806353b0020a146104bb5780635509c83a146104f857806355f804b3146105215761021a565b80632f745c59146103af5780633ccfd60b146103ec57806342842e0e1461040357806342966c681461042c5761021a565b806318160ddd116101ed57806318160ddd146102ed578063227f56bd1461031857806323b872dd146103345780632632084f1461035d5780632b146fb3146103865761021a565b806301ffc9a71461021f57806306fdde031461025c578063081812fc14610287578063095ea7b3146102c4575b600080fd5b34801561022b57600080fd5b5061024660048036038101906102419190613d37565b6108cc565b6040516102539190614c05565b60405180910390f35b34801561026857600080fd5b50610271610946565b60405161027e9190614c5f565b60405180910390f35b34801561029357600080fd5b506102ae60048036038101906102a99190613e1e565b6109d8565b6040516102bb9190614b9e565b60405180910390f35b3480156102d057600080fd5b506102eb60048036038101906102e69190613c6b565b610a5d565b005b3480156102f957600080fd5b50610302610b75565b60405161030f9190615068565b60405180910390f35b610332600480360381019061032d9190613bff565b610b82565b005b34801561034057600080fd5b5061035b60048036038101906103569190613aa1565b610caf565b005b34801561036957600080fd5b50610384600480360381019061037f9190613ca7565b610d0f565b005b34801561039257600080fd5b506103ad60048036038101906103a89190613eac565b610dc7565b005b3480156103bb57600080fd5b506103d660048036038101906103d19190613c6b565b610e65565b6040516103e39190615068565b60405180910390f35b3480156103f857600080fd5b50610401610f0a565b005b34801561040f57600080fd5b5061042a60048036038101906104259190613aa1565b610fd5565b005b34801561043857600080fd5b50610453600480360381019061044e9190613e1e565b610ff5565b005b34801561046157600080fd5b5061047c60048036038101906104779190613b6b565b6110d4565b005b34801561048a57600080fd5b506104a560048036038101906104a09190613e1e565b6112fc565b6040516104b29190615068565b60405180910390f35b3480156104c757600080fd5b506104e260048036038101906104dd9190613d89565b611393565b6040516104ef9190614c20565b60405180910390f35b34801561050457600080fd5b5061051f600480360381019061051a9190613cfb565b6113c3565b005b34801561052d57600080fd5b5061054860048036038101906105439190613d89565b61146b565b005b610564600480360381019061055f9190613ba7565b61153b565b005b34801561057257600080fd5b5061058d60048036038101906105889190613e1e565b61158e565b60405161059a9190614b9e565b60405180910390f35b3480156105af57600080fd5b506105ca60048036038101906105c59190613d89565b611640565b6040516105d79190615068565b60405180910390f35b3480156105ec57600080fd5b5061060760048036038101906106029190613a3c565b61166a565b6040516106149190615068565b60405180910390f35b34801561062957600080fd5b50610632611722565b005b34801561064057600080fd5b5061064961185c565b6040516106569190614b9e565b60405180910390f35b34801561066b57600080fd5b50610674611885565b6040516106819190614c5f565b60405180910390f35b34801561069657600080fd5b506106b160048036038101906106ac9190613e70565b611917565b6040516106be9190614c5f565b60405180910390f35b3480156106d357600080fd5b506106ee60048036038101906106e99190613c6b565b6119fa565b6040516106fb9190615068565b60405180910390f35b34801561071057600080fd5b5061072b60048036038101906107269190613b6b565b611a0e565b005b34801561073957600080fd5b50610754600480360381019061074f9190613dca565b611b8f565b005b34801561076257600080fd5b5061077d60048036038101906107789190613af0565b611d94565b005b34801561078b57600080fd5b506107a660048036038101906107a19190613e1e565b611df6565b6040516107b39190614c5f565b60405180910390f35b3480156107c857600080fd5b506107e360048036038101906107de9190613a3c565b611e7c565b6040516107f09190615068565b60405180910390f35b34801561080557600080fd5b5061080e611e8e565b60405161081b9190614c5f565b60405180910390f35b34801561083057600080fd5b5061084b60048036038101906108469190613a65565b611eae565b6040516108589190614c05565b60405180910390f35b34801561086d57600080fd5b5061088860048036038101906108839190613a3c565b611f42565b005b34801561089657600080fd5b5061089f6120eb565b005b3480156108ad57600080fd5b506108b6612200565b6040516108c39190615068565b60405180910390f35b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061093f575061093e8261220d565b5b9050919050565b60606001805461095590615385565b80601f016020809104026020016040519081016040528092919081815260200182805461098190615385565b80156109ce5780601f106109a3576101008083540402835291602001916109ce565b820191906000526020600020905b8154815290600101906020018083116109b157829003601f168201915b5050505050905090565b60006109e3826122ef565b610a22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1990614f28565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a688261158e565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610ad9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad090614fa8565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610af861235b565b73ffffffffffffffffffffffffffffffffffffffff161480610b275750610b2681610b2161235b565b611eae565b5b610b66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5d90614e88565b60405180910390fd5b610b708383612363565b505050565b6000600980549050905090565b6000610bd184848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050611393565b905034610bfa83601160008581526020019081526020016000205461241c90919063ffffffff16565b1115610c3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3290614e28565b60405180910390fd5b60005b82811015610ca757610c948686868080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612432565b8080610c9f906153b7565b915050610c3e565b505050505050565b610cc0610cba61235b565b8261253e565b610cff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf690614fc8565b60405180910390fd5b610d0a83838361261c565b505050565b600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610d9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9290614dc8565b60405180910390fd5b80601060008481526020019081526020016000209080519060200190610dc2929190613726565b505050565b600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610e53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4a90614dc8565b60405180910390fd5b610e5f84848484612878565b50505050565b6000610e708361166a565b8210610eb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ea890614d28565b60405180910390fd5b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610f1261235b565b73ffffffffffffffffffffffffffffffffffffffff16610f3061185c565b73ffffffffffffffffffffffffffffffffffffffff1614610f86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7d90614f48565b60405180910390fd5b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610fd1573d6000803e3d6000fd5b5050565b610ff083838360405180602001604052806000815250611d94565b505050565b600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611081576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107890614dc8565b60405180910390fd5b61108a8161292f565b6000600d600083815260200190815260200160002080546110aa90615385565b9050146110d157600d600082815260200190815260200160002060006110d091906137ac565b5b50565b6110dc61235b565b73ffffffffffffffffffffffffffffffffffffffff166110fa61185c565b73ffffffffffffffffffffffffffffffffffffffff1614611150576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114790614f48565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156111c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b790614ce8565b60405180910390fd5b801515600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615151415611253576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124a90614fe8565b60405180910390fd5b80600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f64966f3fe2ac8cae5e6f7e4196d1315efafdb78a4377de3887c56fa3b9ac47cb826040516112f09190614c05565b60405180910390a25050565b6000611306610b75565b8210611347576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133e90615028565b60405180910390fd5b60098281548110611381577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6000816040516020016113a69190614b29565b604051602081830303815290604052805190602001209050919050565b600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661144f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144690614dc8565b60405180910390fd5b8060116000848152602001908152602001600020819055505050565b61147361235b565b73ffffffffffffffffffffffffffffffffffffffff1661149161185c565b73ffffffffffffffffffffffffffffffffffffffff16146114e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114de90614f48565b60405180910390fd5b7fb8fdf10126d507f6daf46465ec25a2bbc08449cf6c944c98219264161391040a601382604051611519929190614cb1565b60405180910390a18060139080519060200190611537929190613726565b5050565b6115898383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612432565b505050565b6000806003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611637576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162e90614ec8565b60405180910390fd5b80915050919050565b60008061164c83611393565b9050600c600082815260200190815260200160002054915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d290614ea8565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61172a61235b565b73ffffffffffffffffffffffffffffffffffffffff1661174861185c565b73ffffffffffffffffffffffffffffffffffffffff161461179e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179590614f48565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606002805461189490615385565b80601f01602080910402602001604051908101604052809291908181526020018280546118c090615385565b801561190d5780601f106118e25761010080835404028352916020019161190d565b820191906000526020600020905b8154815290600101906020018083116118f057829003601f168201915b5050505050905090565b6060600f600084815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805461197490615385565b80601f01602080910402602001604051908101604052809291908181526020018280546119a090615385565b80156119ed5780601f106119c2576101008083540402835291602001916119ed565b820191906000526020600020905b8154815290600101906020018083116119d057829003601f168201915b5050505050905092915050565b6000611a068383610e65565b905092915050565b611a1661235b565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7b90614e08565b60405180910390fd5b8060066000611a9161235b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611b3e61235b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b839190614c05565b60405180910390a35050565b611b9761235b565b73ffffffffffffffffffffffffffffffffffffffff16611bb561185c565b73ffffffffffffffffffffffffffffffffffffffff1614611c0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0290614f48565b60405180910390fd5b601460009054906101000a900460ff1615611c5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c5290614ee8565b60405180910390fd5b6000611c6683611393565b90506000600b60008381526020019081526020016000205414611cbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cb590615008565b60405180910390fd5b60008211611d01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf890615048565b60405180910390fd5b81600b600083815260200190815260200160002081905550601283908060018154018082558091505060019003906000526020600020016000909190919091509080519060200190611d54929190613726565b50807fd4afeef9dea6e21de35b1828219361a3572425f5510c97bc053157640eb3ba518484604051611d87929190614c81565b60405180910390a2505050565b611da5611d9f61235b565b8361253e565b611de4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ddb90614fc8565b60405180910390fd5b611df084848484612a40565b50505050565b6060611e01826122ef565b611e40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e3790614e48565b60405180910390fd5b6013600d6000848152602001908152602001600020604051602001611e66929190614b40565b6040516020818303038152906040529050919050565b6000611e878261166a565b9050919050565b606060405180606001604052806026815260200161554160269139905090565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611f4a61235b565b73ffffffffffffffffffffffffffffffffffffffff16611f6861185c565b73ffffffffffffffffffffffffffffffffffffffff1614611fbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fb590614f48565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561202e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202590614d68565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6120f361235b565b73ffffffffffffffffffffffffffffffffffffffff1661211161185c565b73ffffffffffffffffffffffffffffffffffffffff1614612167576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215e90614f48565b60405180910390fd5b601460009054906101000a900460ff16156121b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121ae90614d08565b60405180910390fd5b6001601460006101000a81548160ff0219169083151502179055507f01b7dcb42d49142a99e4c98da755263c600213a33b780986779405b9823501d360405160405180910390a1565b6000601280549050905090565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806122d857507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806122e857506122e782612a9c565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166123d68361158e565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818361242a919061522a565b905092915050565b600061243d82611393565b905060006001600c600084815260200190815260200160002054612461919061516c565b905060003073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156124ab57600080fd5b505afa1580156124bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124e39190613e47565b90506124f28582858786612b06565b612537816010600086815260200190815260200160002061251285612d1c565b604051602001612523929190614b64565b604051602081830303815290604052612ef1565b5050505050565b6000612549826122ef565b612588576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161257f90614e68565b60405180910390fd5b60006125938361158e565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061260257508373ffffffffffffffffffffffffffffffffffffffff166125ea846109d8565b73ffffffffffffffffffffffffffffffffffffffff16145b8061261357506126128185611eae565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661263c8261158e565b73ffffffffffffffffffffffffffffffffffffffff1614612692576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161268990614f88565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612702576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126f990614de8565b60405180910390fd5b61270d838383612f1d565b612718600082612363565b6001600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127689190615284565b925050819055506001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127bf919061516c565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b8181600f600087815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002091906128d79291906137ec565b508273ffffffffffffffffffffffffffffffffffffffff16847f9510e529f90f89b8e0d0478bc302a5469d8d14ffb7109ac85028e48f36c44bee8484604051612921929190614c3b565b60405180910390a350505050565b600061293a8261158e565b905061294881600084612f1d565b612953600083612363565b6001600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129a39190615284565b925050819055506003600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b612a4b84848461261c565b612a5784848484613031565b612a96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a8d90614d48565b60405180910390fd5b50505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600081118015612b295750600b6000848152602001908152602001600020548111155b612b68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b5f90614da8565b60405180910390fd5b600b600084815260200190815260200160002054600c60008581526020019081526020016000205410612bd0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bc790614f68565b60405180910390fd5b600e60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16612c3d573460116000858152602001908152602001600020541115612c43565b60003410155b612c82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c7990614e28565b60405180910390fd5b612c8c85856131c8565b6001600c600085815260200190815260200160002054612cac919061516c565b600c60008581526020019081526020016000208190555082848673ffffffffffffffffffffffffffffffffffffffff167fdb78fb3a605c85b40cf64f4ddff503d984ed442e5ae01282bd60137db494f80b8585604051612d0d929190614c81565b60405180910390a45050505050565b60606000821415612d64576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612eec565b600082905060005b60008214612d96578080612d7f906153b7565b915050600a82612d8f91906151f9565b9150612d6c565b60008167ffffffffffffffff811115612dd8577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612e0a5781602001600182028036833780820191505090505b50905060008290505b60008614612ee457600181612e289190615284565b90506000600a8088612e3a91906151f9565b612e44919061522a565b87612e4f9190615284565b6030612e5b91906151c2565b905060008160f81b905080848481518110612e9f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a88612edb91906151f9565b97505050612e13565b819450505050505b919050565b80600d60008481526020019081526020016000209080519060200190612f18929190613726565b505050565b612f28838383613396565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612f6b57612f668161339b565b612faa565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612fa957612fa883826133e4565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612fed57612fe881613551565b61302c565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461302b5761302a8282613694565b5b5b505050565b60006130528473ffffffffffffffffffffffffffffffffffffffff16613713565b156131bb578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261307b61235b565b8786866040518563ffffffff1660e01b815260040161309d9493929190614bb9565b602060405180830381600087803b1580156130b757600080fd5b505af19250505080156130e857506040513d601f19601f820116820180604052508101906130e59190613d60565b60015b61316b573d8060008114613118576040519150601f19603f3d011682016040523d82523d6000602084013e61311d565b606091505b50600081511415613163576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161315a90614d48565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506131c0565b600190505b949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613238576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161322f90614f08565b60405180910390fd5b613241816122ef565b15613281576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161327890614d88565b60405180910390fd5b61328d60008383612f1d565b6001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546132dd919061516c565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b505050565b600980549050600a600083815260200190815260200160002081905550600981908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016133f18461166a565b6133fb9190615284565b90506000600860008481526020019081526020016000205490508181146134e0576000600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816008600083815260200190815260200160002081905550505b6008600084815260200190815260200160002060009055600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016009805490506135659190615284565b90506000600a60008481526020019081526020016000205490506000600983815481106135bb577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508060098381548110613603577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600a600083815260200190815260200160002081905550600a6000858152602001908152602001600020600090556009805480613678577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061369f8361166a565b905081600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806008600084815260200190815260200160002081905550505050565b600080823b905060008111915050919050565b82805461373290615385565b90600052602060002090601f016020900481019282613754576000855561379b565b82601f1061376d57805160ff191683800117855561379b565b8280016001018555821561379b579182015b8281111561379a57825182559160200191906001019061377f565b5b5090506137a89190613872565b5090565b5080546137b890615385565b6000825580601f106137ca57506137e9565b601f0160209004906000526020600020908101906137e89190613872565b5b50565b8280546137f890615385565b90600052602060002090601f01602090048101928261381a5760008555613861565b82601f1061383357803560ff1916838001178555613861565b82800160010185558215613861579182015b82811115613860578235825591602001919060010190613845565b5b50905061386e9190613872565b5090565b5b8082111561388b576000816000905550600101613873565b5090565b60006138a261389d846150b4565b615083565b9050828152602081018484840111156138ba57600080fd5b6138c5848285615343565b509392505050565b60006138e06138db846150e4565b615083565b9050828152602081018484840111156138f857600080fd5b613903848285615343565b509392505050565b60008135905061391a816154cd565b92915050565b60008135905061392f816154e4565b92915050565b600081359050613944816154fb565b92915050565b60008135905061395981615512565b92915050565b60008151905061396e81615512565b92915050565b600082601f83011261398557600080fd5b813561399584826020860161388f565b91505092915050565b60008083601f8401126139b057600080fd5b8235905067ffffffffffffffff8111156139c957600080fd5b6020830191508360018202830111156139e157600080fd5b9250929050565b600082601f8301126139f957600080fd5b8135613a098482602086016138cd565b91505092915050565b600081359050613a2181615529565b92915050565b600081519050613a3681615529565b92915050565b600060208284031215613a4e57600080fd5b6000613a5c8482850161390b565b91505092915050565b60008060408385031215613a7857600080fd5b6000613a868582860161390b565b9250506020613a978582860161390b565b9150509250929050565b600080600060608486031215613ab657600080fd5b6000613ac48682870161390b565b9350506020613ad58682870161390b565b9250506040613ae686828701613a12565b9150509250925092565b60008060008060808587031215613b0657600080fd5b6000613b148782880161390b565b9450506020613b258782880161390b565b9350506040613b3687828801613a12565b925050606085013567ffffffffffffffff811115613b5357600080fd5b613b5f87828801613974565b91505092959194509250565b60008060408385031215613b7e57600080fd5b6000613b8c8582860161390b565b9250506020613b9d85828601613920565b9150509250929050565b600080600060408486031215613bbc57600080fd5b6000613bca8682870161390b565b935050602084013567ffffffffffffffff811115613be757600080fd5b613bf38682870161399e565b92509250509250925092565b60008060008060608587031215613c1557600080fd5b6000613c238782880161390b565b945050602085013567ffffffffffffffff811115613c4057600080fd5b613c4c8782880161399e565b93509350506040613c5f87828801613a12565b91505092959194509250565b60008060408385031215613c7e57600080fd5b6000613c8c8582860161390b565b9250506020613c9d85828601613a12565b9150509250929050565b60008060408385031215613cba57600080fd5b6000613cc885828601613935565b925050602083013567ffffffffffffffff811115613ce557600080fd5b613cf1858286016139e8565b9150509250929050565b60008060408385031215613d0e57600080fd5b6000613d1c85828601613935565b9250506020613d2d85828601613a12565b9150509250929050565b600060208284031215613d4957600080fd5b6000613d578482850161394a565b91505092915050565b600060208284031215613d7257600080fd5b6000613d808482850161395f565b91505092915050565b600060208284031215613d9b57600080fd5b600082013567ffffffffffffffff811115613db557600080fd5b613dc1848285016139e8565b91505092915050565b60008060408385031215613ddd57600080fd5b600083013567ffffffffffffffff811115613df757600080fd5b613e03858286016139e8565b9250506020613e1485828601613a12565b9150509250929050565b600060208284031215613e3057600080fd5b6000613e3e84828501613a12565b91505092915050565b600060208284031215613e5957600080fd5b6000613e6784828501613a27565b91505092915050565b60008060408385031215613e8357600080fd5b6000613e9185828601613a12565b9250506020613ea28582860161390b565b9150509250929050565b60008060008060608587031215613ec257600080fd5b6000613ed087828801613a12565b9450506020613ee18782880161390b565b935050604085013567ffffffffffffffff811115613efe57600080fd5b613f0a8782880161399e565b925092505092959194509250565b613f21816152b8565b82525050565b613f30816152ca565b82525050565b613f3f816152d6565b82525050565b6000613f5082615129565b613f5a818561513f565b9350613f6a818560208601615352565b613f73816154bc565b840191505092915050565b6000613f8a8385615150565b9350613f97838584615343565b613fa0836154bc565b840190509392505050565b6000613fb682615134565b613fc08185615150565b9350613fd0818560208601615352565b613fd9816154bc565b840191505092915050565b6000613fef82615134565b613ff98185615161565b9350614009818560208601615352565b80840191505092915050565b6000815461402281615385565b61402c8186615150565b9450600182166000811461404757600181146140595761408c565b60ff198316865260208601935061408c565b61406285615114565b60005b8381101561408457815481890152600182019150602081019050614065565b808801955050505b50505092915050565b600081546140a281615385565b6140ac8186615161565b945060018216600081146140c757600181146140d85761410b565b60ff1983168652818601935061410b565b6140e185615114565b60005b83811015614103578154818901526001820191506020810190506140e4565b838801955050505b50505092915050565b6000614121600f83615150565b91507f496e76616c6964206164647265737300000000000000000000000000000000006000830152602082019050919050565b6000614161602383615150565b91507f54686520636f6c6c656374696f6e20697320616c726561647920636f6d706c6560008301527f74656400000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006141c7602b83615150565b91507f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008301527f74206f6620626f756e64730000000000000000000000000000000000000000006020830152604082019050919050565b600061422d603283615150565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b6000614293602683615150565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006142f9601c83615150565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b6000614339601183615150565b91507f496e76616c6964206973737565642069640000000000000000000000000000006000830152602082019050919050565b6000614379602e83615150565b91507f4f6e6c7920616e2060616c6c6f7765646020616464726573732063616e20636160008301527f6c6c2074686973206d6574686f640000000000000000000000000000000000006020830152604082019050919050565b60006143df602483615150565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614445601983615150565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b6000614485601f83615150565b91507f45746865722076616c75652073656e74206973206e6f7420636f7272656374006000830152602082019050919050565b60006144c5603c83615150565b91507f4552433732314d657461646174613a207265636569766564206120555249207160008301527f7565727920666f722061206e6f6e6578697374656e7420746f6b656e000000006020830152604082019050919050565b600061452b602c83615150565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000614591603883615150565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b60006145f7602a83615150565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b600061465d602983615150565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b60006146c3601783615150565b91507f546869732067616d652068617320736f6c64206f7574210000000000000000006000830152602082019050919050565b6000614703602083615150565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b6000614743602c83615150565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b60006147a9600583615161565b91507f2e6a736f6e0000000000000000000000000000000000000000000000000000006000830152600582019050919050565b60006147e9602083615150565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000614829600e83615150565b91507f47616d65206578686175737465640000000000000000000000000000000000006000830152602082019050919050565b6000614869602983615150565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b60006148cf602183615150565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614935603183615150565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b600061499b602083615150565b91507f596f752073686f756c6420736574206120646966666572656e742076616c75656000830152602082019050919050565b60006149db601f83615150565b91507f43616e206e6f74206d6f6469667920616e206578697374696e672067616d65006000830152602082019050919050565b6000614a1b602c83615150565b91507f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008301527f7574206f6620626f756e647300000000000000000000000000000000000000006020830152604082019050919050565b6000614a81602583615150565b91507f4d61782069737375616e63652073686f756c642062652067726561746572207460008301527f68616e20300000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614ae7600183615161565b91507f2f000000000000000000000000000000000000000000000000000000000000006000830152600182019050919050565b614b238161532c565b82525050565b6000614b358284613fe4565b915081905092915050565b6000614b4c8285614095565b9150614b588284614095565b91508190509392505050565b6000614b708285614095565b9150614b7b82614ada565b9150614b878284613fe4565b9150614b928261479c565b91508190509392505050565b6000602082019050614bb36000830184613f18565b92915050565b6000608082019050614bce6000830187613f18565b614bdb6020830186613f18565b614be86040830185614b1a565b8181036060830152614bfa8184613f45565b905095945050505050565b6000602082019050614c1a6000830184613f27565b92915050565b6000602082019050614c356000830184613f36565b92915050565b60006020820190508181036000830152614c56818486613f7e565b90509392505050565b60006020820190508181036000830152614c798184613fab565b905092915050565b60006040820190508181036000830152614c9b8185613fab565b9050614caa6020830184614b1a565b9392505050565b60006040820190508181036000830152614ccb8185614015565b90508181036020830152614cdf8184613fab565b90509392505050565b60006020820190508181036000830152614d0181614114565b9050919050565b60006020820190508181036000830152614d2181614154565b9050919050565b60006020820190508181036000830152614d41816141ba565b9050919050565b60006020820190508181036000830152614d6181614220565b9050919050565b60006020820190508181036000830152614d8181614286565b9050919050565b60006020820190508181036000830152614da1816142ec565b9050919050565b60006020820190508181036000830152614dc18161432c565b9050919050565b60006020820190508181036000830152614de18161436c565b9050919050565b60006020820190508181036000830152614e01816143d2565b9050919050565b60006020820190508181036000830152614e2181614438565b9050919050565b60006020820190508181036000830152614e4181614478565b9050919050565b60006020820190508181036000830152614e61816144b8565b9050919050565b60006020820190508181036000830152614e818161451e565b9050919050565b60006020820190508181036000830152614ea181614584565b9050919050565b60006020820190508181036000830152614ec1816145ea565b9050919050565b60006020820190508181036000830152614ee181614650565b9050919050565b60006020820190508181036000830152614f01816146b6565b9050919050565b60006020820190508181036000830152614f21816146f6565b9050919050565b60006020820190508181036000830152614f4181614736565b9050919050565b60006020820190508181036000830152614f61816147dc565b9050919050565b60006020820190508181036000830152614f818161481c565b9050919050565b60006020820190508181036000830152614fa18161485c565b9050919050565b60006020820190508181036000830152614fc1816148c2565b9050919050565b60006020820190508181036000830152614fe181614928565b9050919050565b600060208201905081810360008301526150018161498e565b9050919050565b60006020820190508181036000830152615021816149ce565b9050919050565b6000602082019050818103600083015261504181614a0e565b9050919050565b6000602082019050818103600083015261506181614a74565b9050919050565b600060208201905061507d6000830184614b1a565b92915050565b6000604051905081810181811067ffffffffffffffff821117156150aa576150a961548d565b5b8060405250919050565b600067ffffffffffffffff8211156150cf576150ce61548d565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff8211156150ff576150fe61548d565b5b601f19601f8301169050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006151778261532c565b91506151828361532c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156151b7576151b6615400565b5b828201905092915050565b60006151cd82615336565b91506151d883615336565b92508260ff038211156151ee576151ed615400565b5b828201905092915050565b60006152048261532c565b915061520f8361532c565b92508261521f5761521e61542f565b5b828204905092915050565b60006152358261532c565b91506152408361532c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561527957615278615400565b5b828202905092915050565b600061528f8261532c565b915061529a8361532c565b9250828210156152ad576152ac615400565b5b828203905092915050565b60006152c38261530c565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015615370578082015181840152602081019050615355565b8381111561537f576000848401525b50505050565b6000600282049050600182168061539d57607f821691505b602082108114156153b1576153b061545e565b5b50919050565b60006153c28261532c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156153f5576153f4615400565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b6154d6816152b8565b81146154e157600080fd5b50565b6154ed816152ca565b81146154f857600080fd5b50565b615504816152d6565b811461550f57600080fd5b50565b61551b816152e0565b811461552657600080fd5b50565b6155328161532c565b811461553d57600080fd5b5056fe68747470733a2f2f6172636164656e6674732e636f6d2f635f6d657461646174612e6a736f6ea2646970667358221220554382261c1e7cc1f42a02c317f7968f17f7f03653926a81bf3c40d94c8f5a4364736f6c63430008000033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000b72bf6175ed6f8c0446a053bfaa4541474b69028000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000094172636164654e465400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004414e465400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001c68747470733a2f2f696e667572612d697066732e696f2f697066732f00000000
Deployed Bytecode
0x60806040526004361061021a5760003560e01c80635669c94f11610123578063a22cb465116100ab578063e8a3d4851161006f578063e8a3d485146107f9578063e985e9c514610824578063f2fde38b14610861578063f59d9e3f1461088a578063fb632b7c146108a15761021a565b8063a22cb46514610704578063b3aa2fe11461072d578063b88d4fde14610756578063c87b56dd1461077f578063e3d670d7146107bc5761021a565b8063715018a6116100f2578063715018a61461061d5780638da5cb5b1461063457806395d89b411461065f578063995eedef1461068a5780639a004836146106c75761021a565b80635669c94f1461054a5780636352211e146105665780636dff7da0146105a357806370a08231146105e05761021a565b80632f745c59116101a65780634697f05d116101755780634697f05d146104555780634f6ccce71461047e57806353b0020a146104bb5780635509c83a146104f857806355f804b3146105215761021a565b80632f745c59146103af5780633ccfd60b146103ec57806342842e0e1461040357806342966c681461042c5761021a565b806318160ddd116101ed57806318160ddd146102ed578063227f56bd1461031857806323b872dd146103345780632632084f1461035d5780632b146fb3146103865761021a565b806301ffc9a71461021f57806306fdde031461025c578063081812fc14610287578063095ea7b3146102c4575b600080fd5b34801561022b57600080fd5b5061024660048036038101906102419190613d37565b6108cc565b6040516102539190614c05565b60405180910390f35b34801561026857600080fd5b50610271610946565b60405161027e9190614c5f565b60405180910390f35b34801561029357600080fd5b506102ae60048036038101906102a99190613e1e565b6109d8565b6040516102bb9190614b9e565b60405180910390f35b3480156102d057600080fd5b506102eb60048036038101906102e69190613c6b565b610a5d565b005b3480156102f957600080fd5b50610302610b75565b60405161030f9190615068565b60405180910390f35b610332600480360381019061032d9190613bff565b610b82565b005b34801561034057600080fd5b5061035b60048036038101906103569190613aa1565b610caf565b005b34801561036957600080fd5b50610384600480360381019061037f9190613ca7565b610d0f565b005b34801561039257600080fd5b506103ad60048036038101906103a89190613eac565b610dc7565b005b3480156103bb57600080fd5b506103d660048036038101906103d19190613c6b565b610e65565b6040516103e39190615068565b60405180910390f35b3480156103f857600080fd5b50610401610f0a565b005b34801561040f57600080fd5b5061042a60048036038101906104259190613aa1565b610fd5565b005b34801561043857600080fd5b50610453600480360381019061044e9190613e1e565b610ff5565b005b34801561046157600080fd5b5061047c60048036038101906104779190613b6b565b6110d4565b005b34801561048a57600080fd5b506104a560048036038101906104a09190613e1e565b6112fc565b6040516104b29190615068565b60405180910390f35b3480156104c757600080fd5b506104e260048036038101906104dd9190613d89565b611393565b6040516104ef9190614c20565b60405180910390f35b34801561050457600080fd5b5061051f600480360381019061051a9190613cfb565b6113c3565b005b34801561052d57600080fd5b5061054860048036038101906105439190613d89565b61146b565b005b610564600480360381019061055f9190613ba7565b61153b565b005b34801561057257600080fd5b5061058d60048036038101906105889190613e1e565b61158e565b60405161059a9190614b9e565b60405180910390f35b3480156105af57600080fd5b506105ca60048036038101906105c59190613d89565b611640565b6040516105d79190615068565b60405180910390f35b3480156105ec57600080fd5b5061060760048036038101906106029190613a3c565b61166a565b6040516106149190615068565b60405180910390f35b34801561062957600080fd5b50610632611722565b005b34801561064057600080fd5b5061064961185c565b6040516106569190614b9e565b60405180910390f35b34801561066b57600080fd5b50610674611885565b6040516106819190614c5f565b60405180910390f35b34801561069657600080fd5b506106b160048036038101906106ac9190613e70565b611917565b6040516106be9190614c5f565b60405180910390f35b3480156106d357600080fd5b506106ee60048036038101906106e99190613c6b565b6119fa565b6040516106fb9190615068565b60405180910390f35b34801561071057600080fd5b5061072b60048036038101906107269190613b6b565b611a0e565b005b34801561073957600080fd5b50610754600480360381019061074f9190613dca565b611b8f565b005b34801561076257600080fd5b5061077d60048036038101906107789190613af0565b611d94565b005b34801561078b57600080fd5b506107a660048036038101906107a19190613e1e565b611df6565b6040516107b39190614c5f565b60405180910390f35b3480156107c857600080fd5b506107e360048036038101906107de9190613a3c565b611e7c565b6040516107f09190615068565b60405180910390f35b34801561080557600080fd5b5061080e611e8e565b60405161081b9190614c5f565b60405180910390f35b34801561083057600080fd5b5061084b60048036038101906108469190613a65565b611eae565b6040516108589190614c05565b60405180910390f35b34801561086d57600080fd5b5061088860048036038101906108839190613a3c565b611f42565b005b34801561089657600080fd5b5061089f6120eb565b005b3480156108ad57600080fd5b506108b6612200565b6040516108c39190615068565b60405180910390f35b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061093f575061093e8261220d565b5b9050919050565b60606001805461095590615385565b80601f016020809104026020016040519081016040528092919081815260200182805461098190615385565b80156109ce5780601f106109a3576101008083540402835291602001916109ce565b820191906000526020600020905b8154815290600101906020018083116109b157829003601f168201915b5050505050905090565b60006109e3826122ef565b610a22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1990614f28565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a688261158e565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610ad9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad090614fa8565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610af861235b565b73ffffffffffffffffffffffffffffffffffffffff161480610b275750610b2681610b2161235b565b611eae565b5b610b66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5d90614e88565b60405180910390fd5b610b708383612363565b505050565b6000600980549050905090565b6000610bd184848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050611393565b905034610bfa83601160008581526020019081526020016000205461241c90919063ffffffff16565b1115610c3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3290614e28565b60405180910390fd5b60005b82811015610ca757610c948686868080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612432565b8080610c9f906153b7565b915050610c3e565b505050505050565b610cc0610cba61235b565b8261253e565b610cff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf690614fc8565b60405180910390fd5b610d0a83838361261c565b505050565b600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610d9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9290614dc8565b60405180910390fd5b80601060008481526020019081526020016000209080519060200190610dc2929190613726565b505050565b600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610e53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4a90614dc8565b60405180910390fd5b610e5f84848484612878565b50505050565b6000610e708361166a565b8210610eb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ea890614d28565b60405180910390fd5b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610f1261235b565b73ffffffffffffffffffffffffffffffffffffffff16610f3061185c565b73ffffffffffffffffffffffffffffffffffffffff1614610f86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7d90614f48565b60405180910390fd5b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610fd1573d6000803e3d6000fd5b5050565b610ff083838360405180602001604052806000815250611d94565b505050565b600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611081576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107890614dc8565b60405180910390fd5b61108a8161292f565b6000600d600083815260200190815260200160002080546110aa90615385565b9050146110d157600d600082815260200190815260200160002060006110d091906137ac565b5b50565b6110dc61235b565b73ffffffffffffffffffffffffffffffffffffffff166110fa61185c565b73ffffffffffffffffffffffffffffffffffffffff1614611150576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114790614f48565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156111c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b790614ce8565b60405180910390fd5b801515600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615151415611253576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124a90614fe8565b60405180910390fd5b80600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f64966f3fe2ac8cae5e6f7e4196d1315efafdb78a4377de3887c56fa3b9ac47cb826040516112f09190614c05565b60405180910390a25050565b6000611306610b75565b8210611347576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133e90615028565b60405180910390fd5b60098281548110611381577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6000816040516020016113a69190614b29565b604051602081830303815290604052805190602001209050919050565b600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661144f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144690614dc8565b60405180910390fd5b8060116000848152602001908152602001600020819055505050565b61147361235b565b73ffffffffffffffffffffffffffffffffffffffff1661149161185c565b73ffffffffffffffffffffffffffffffffffffffff16146114e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114de90614f48565b60405180910390fd5b7fb8fdf10126d507f6daf46465ec25a2bbc08449cf6c944c98219264161391040a601382604051611519929190614cb1565b60405180910390a18060139080519060200190611537929190613726565b5050565b6115898383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612432565b505050565b6000806003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611637576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162e90614ec8565b60405180910390fd5b80915050919050565b60008061164c83611393565b9050600c600082815260200190815260200160002054915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d290614ea8565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61172a61235b565b73ffffffffffffffffffffffffffffffffffffffff1661174861185c565b73ffffffffffffffffffffffffffffffffffffffff161461179e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179590614f48565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606002805461189490615385565b80601f01602080910402602001604051908101604052809291908181526020018280546118c090615385565b801561190d5780601f106118e25761010080835404028352916020019161190d565b820191906000526020600020905b8154815290600101906020018083116118f057829003601f168201915b5050505050905090565b6060600f600084815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805461197490615385565b80601f01602080910402602001604051908101604052809291908181526020018280546119a090615385565b80156119ed5780601f106119c2576101008083540402835291602001916119ed565b820191906000526020600020905b8154815290600101906020018083116119d057829003601f168201915b5050505050905092915050565b6000611a068383610e65565b905092915050565b611a1661235b565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7b90614e08565b60405180910390fd5b8060066000611a9161235b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611b3e61235b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b839190614c05565b60405180910390a35050565b611b9761235b565b73ffffffffffffffffffffffffffffffffffffffff16611bb561185c565b73ffffffffffffffffffffffffffffffffffffffff1614611c0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0290614f48565b60405180910390fd5b601460009054906101000a900460ff1615611c5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c5290614ee8565b60405180910390fd5b6000611c6683611393565b90506000600b60008381526020019081526020016000205414611cbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cb590615008565b60405180910390fd5b60008211611d01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf890615048565b60405180910390fd5b81600b600083815260200190815260200160002081905550601283908060018154018082558091505060019003906000526020600020016000909190919091509080519060200190611d54929190613726565b50807fd4afeef9dea6e21de35b1828219361a3572425f5510c97bc053157640eb3ba518484604051611d87929190614c81565b60405180910390a2505050565b611da5611d9f61235b565b8361253e565b611de4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ddb90614fc8565b60405180910390fd5b611df084848484612a40565b50505050565b6060611e01826122ef565b611e40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e3790614e48565b60405180910390fd5b6013600d6000848152602001908152602001600020604051602001611e66929190614b40565b6040516020818303038152906040529050919050565b6000611e878261166a565b9050919050565b606060405180606001604052806026815260200161554160269139905090565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611f4a61235b565b73ffffffffffffffffffffffffffffffffffffffff16611f6861185c565b73ffffffffffffffffffffffffffffffffffffffff1614611fbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fb590614f48565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561202e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202590614d68565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6120f361235b565b73ffffffffffffffffffffffffffffffffffffffff1661211161185c565b73ffffffffffffffffffffffffffffffffffffffff1614612167576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215e90614f48565b60405180910390fd5b601460009054906101000a900460ff16156121b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121ae90614d08565b60405180910390fd5b6001601460006101000a81548160ff0219169083151502179055507f01b7dcb42d49142a99e4c98da755263c600213a33b780986779405b9823501d360405160405180910390a1565b6000601280549050905090565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806122d857507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806122e857506122e782612a9c565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166123d68361158e565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818361242a919061522a565b905092915050565b600061243d82611393565b905060006001600c600084815260200190815260200160002054612461919061516c565b905060003073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156124ab57600080fd5b505afa1580156124bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124e39190613e47565b90506124f28582858786612b06565b612537816010600086815260200190815260200160002061251285612d1c565b604051602001612523929190614b64565b604051602081830303815290604052612ef1565b5050505050565b6000612549826122ef565b612588576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161257f90614e68565b60405180910390fd5b60006125938361158e565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061260257508373ffffffffffffffffffffffffffffffffffffffff166125ea846109d8565b73ffffffffffffffffffffffffffffffffffffffff16145b8061261357506126128185611eae565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661263c8261158e565b73ffffffffffffffffffffffffffffffffffffffff1614612692576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161268990614f88565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612702576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126f990614de8565b60405180910390fd5b61270d838383612f1d565b612718600082612363565b6001600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127689190615284565b925050819055506001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127bf919061516c565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b8181600f600087815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002091906128d79291906137ec565b508273ffffffffffffffffffffffffffffffffffffffff16847f9510e529f90f89b8e0d0478bc302a5469d8d14ffb7109ac85028e48f36c44bee8484604051612921929190614c3b565b60405180910390a350505050565b600061293a8261158e565b905061294881600084612f1d565b612953600083612363565b6001600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129a39190615284565b925050819055506003600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b612a4b84848461261c565b612a5784848484613031565b612a96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a8d90614d48565b60405180910390fd5b50505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600081118015612b295750600b6000848152602001908152602001600020548111155b612b68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b5f90614da8565b60405180910390fd5b600b600084815260200190815260200160002054600c60008581526020019081526020016000205410612bd0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bc790614f68565b60405180910390fd5b600e60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16612c3d573460116000858152602001908152602001600020541115612c43565b60003410155b612c82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c7990614e28565b60405180910390fd5b612c8c85856131c8565b6001600c600085815260200190815260200160002054612cac919061516c565b600c60008581526020019081526020016000208190555082848673ffffffffffffffffffffffffffffffffffffffff167fdb78fb3a605c85b40cf64f4ddff503d984ed442e5ae01282bd60137db494f80b8585604051612d0d929190614c81565b60405180910390a45050505050565b60606000821415612d64576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612eec565b600082905060005b60008214612d96578080612d7f906153b7565b915050600a82612d8f91906151f9565b9150612d6c565b60008167ffffffffffffffff811115612dd8577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612e0a5781602001600182028036833780820191505090505b50905060008290505b60008614612ee457600181612e289190615284565b90506000600a8088612e3a91906151f9565b612e44919061522a565b87612e4f9190615284565b6030612e5b91906151c2565b905060008160f81b905080848481518110612e9f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a88612edb91906151f9565b97505050612e13565b819450505050505b919050565b80600d60008481526020019081526020016000209080519060200190612f18929190613726565b505050565b612f28838383613396565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612f6b57612f668161339b565b612faa565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612fa957612fa883826133e4565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612fed57612fe881613551565b61302c565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461302b5761302a8282613694565b5b5b505050565b60006130528473ffffffffffffffffffffffffffffffffffffffff16613713565b156131bb578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261307b61235b565b8786866040518563ffffffff1660e01b815260040161309d9493929190614bb9565b602060405180830381600087803b1580156130b757600080fd5b505af19250505080156130e857506040513d601f19601f820116820180604052508101906130e59190613d60565b60015b61316b573d8060008114613118576040519150601f19603f3d011682016040523d82523d6000602084013e61311d565b606091505b50600081511415613163576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161315a90614d48565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506131c0565b600190505b949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613238576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161322f90614f08565b60405180910390fd5b613241816122ef565b15613281576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161327890614d88565b60405180910390fd5b61328d60008383612f1d565b6001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546132dd919061516c565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b505050565b600980549050600a600083815260200190815260200160002081905550600981908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016133f18461166a565b6133fb9190615284565b90506000600860008481526020019081526020016000205490508181146134e0576000600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816008600083815260200190815260200160002081905550505b6008600084815260200190815260200160002060009055600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016009805490506135659190615284565b90506000600a60008481526020019081526020016000205490506000600983815481106135bb577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508060098381548110613603577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600a600083815260200190815260200160002081905550600a6000858152602001908152602001600020600090556009805480613678577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061369f8361166a565b905081600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806008600084815260200190815260200160002081905550505050565b600080823b905060008111915050919050565b82805461373290615385565b90600052602060002090601f016020900481019282613754576000855561379b565b82601f1061376d57805160ff191683800117855561379b565b8280016001018555821561379b579182015b8281111561379a57825182559160200191906001019061377f565b5b5090506137a89190613872565b5090565b5080546137b890615385565b6000825580601f106137ca57506137e9565b601f0160209004906000526020600020908101906137e89190613872565b5b50565b8280546137f890615385565b90600052602060002090601f01602090048101928261381a5760008555613861565b82601f1061383357803560ff1916838001178555613861565b82800160010185558215613861579182015b82811115613860578235825591602001919060010190613845565b5b50905061386e9190613872565b5090565b5b8082111561388b576000816000905550600101613873565b5090565b60006138a261389d846150b4565b615083565b9050828152602081018484840111156138ba57600080fd5b6138c5848285615343565b509392505050565b60006138e06138db846150e4565b615083565b9050828152602081018484840111156138f857600080fd5b613903848285615343565b509392505050565b60008135905061391a816154cd565b92915050565b60008135905061392f816154e4565b92915050565b600081359050613944816154fb565b92915050565b60008135905061395981615512565b92915050565b60008151905061396e81615512565b92915050565b600082601f83011261398557600080fd5b813561399584826020860161388f565b91505092915050565b60008083601f8401126139b057600080fd5b8235905067ffffffffffffffff8111156139c957600080fd5b6020830191508360018202830111156139e157600080fd5b9250929050565b600082601f8301126139f957600080fd5b8135613a098482602086016138cd565b91505092915050565b600081359050613a2181615529565b92915050565b600081519050613a3681615529565b92915050565b600060208284031215613a4e57600080fd5b6000613a5c8482850161390b565b91505092915050565b60008060408385031215613a7857600080fd5b6000613a868582860161390b565b9250506020613a978582860161390b565b9150509250929050565b600080600060608486031215613ab657600080fd5b6000613ac48682870161390b565b9350506020613ad58682870161390b565b9250506040613ae686828701613a12565b9150509250925092565b60008060008060808587031215613b0657600080fd5b6000613b148782880161390b565b9450506020613b258782880161390b565b9350506040613b3687828801613a12565b925050606085013567ffffffffffffffff811115613b5357600080fd5b613b5f87828801613974565b91505092959194509250565b60008060408385031215613b7e57600080fd5b6000613b8c8582860161390b565b9250506020613b9d85828601613920565b9150509250929050565b600080600060408486031215613bbc57600080fd5b6000613bca8682870161390b565b935050602084013567ffffffffffffffff811115613be757600080fd5b613bf38682870161399e565b92509250509250925092565b60008060008060608587031215613c1557600080fd5b6000613c238782880161390b565b945050602085013567ffffffffffffffff811115613c4057600080fd5b613c4c8782880161399e565b93509350506040613c5f87828801613a12565b91505092959194509250565b60008060408385031215613c7e57600080fd5b6000613c8c8582860161390b565b9250506020613c9d85828601613a12565b9150509250929050565b60008060408385031215613cba57600080fd5b6000613cc885828601613935565b925050602083013567ffffffffffffffff811115613ce557600080fd5b613cf1858286016139e8565b9150509250929050565b60008060408385031215613d0e57600080fd5b6000613d1c85828601613935565b9250506020613d2d85828601613a12565b9150509250929050565b600060208284031215613d4957600080fd5b6000613d578482850161394a565b91505092915050565b600060208284031215613d7257600080fd5b6000613d808482850161395f565b91505092915050565b600060208284031215613d9b57600080fd5b600082013567ffffffffffffffff811115613db557600080fd5b613dc1848285016139e8565b91505092915050565b60008060408385031215613ddd57600080fd5b600083013567ffffffffffffffff811115613df757600080fd5b613e03858286016139e8565b9250506020613e1485828601613a12565b9150509250929050565b600060208284031215613e3057600080fd5b6000613e3e84828501613a12565b91505092915050565b600060208284031215613e5957600080fd5b6000613e6784828501613a27565b91505092915050565b60008060408385031215613e8357600080fd5b6000613e9185828601613a12565b9250506020613ea28582860161390b565b9150509250929050565b60008060008060608587031215613ec257600080fd5b6000613ed087828801613a12565b9450506020613ee18782880161390b565b935050604085013567ffffffffffffffff811115613efe57600080fd5b613f0a8782880161399e565b925092505092959194509250565b613f21816152b8565b82525050565b613f30816152ca565b82525050565b613f3f816152d6565b82525050565b6000613f5082615129565b613f5a818561513f565b9350613f6a818560208601615352565b613f73816154bc565b840191505092915050565b6000613f8a8385615150565b9350613f97838584615343565b613fa0836154bc565b840190509392505050565b6000613fb682615134565b613fc08185615150565b9350613fd0818560208601615352565b613fd9816154bc565b840191505092915050565b6000613fef82615134565b613ff98185615161565b9350614009818560208601615352565b80840191505092915050565b6000815461402281615385565b61402c8186615150565b9450600182166000811461404757600181146140595761408c565b60ff198316865260208601935061408c565b61406285615114565b60005b8381101561408457815481890152600182019150602081019050614065565b808801955050505b50505092915050565b600081546140a281615385565b6140ac8186615161565b945060018216600081146140c757600181146140d85761410b565b60ff1983168652818601935061410b565b6140e185615114565b60005b83811015614103578154818901526001820191506020810190506140e4565b838801955050505b50505092915050565b6000614121600f83615150565b91507f496e76616c6964206164647265737300000000000000000000000000000000006000830152602082019050919050565b6000614161602383615150565b91507f54686520636f6c6c656374696f6e20697320616c726561647920636f6d706c6560008301527f74656400000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006141c7602b83615150565b91507f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008301527f74206f6620626f756e64730000000000000000000000000000000000000000006020830152604082019050919050565b600061422d603283615150565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b6000614293602683615150565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006142f9601c83615150565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b6000614339601183615150565b91507f496e76616c6964206973737565642069640000000000000000000000000000006000830152602082019050919050565b6000614379602e83615150565b91507f4f6e6c7920616e2060616c6c6f7765646020616464726573732063616e20636160008301527f6c6c2074686973206d6574686f640000000000000000000000000000000000006020830152604082019050919050565b60006143df602483615150565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614445601983615150565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b6000614485601f83615150565b91507f45746865722076616c75652073656e74206973206e6f7420636f7272656374006000830152602082019050919050565b60006144c5603c83615150565b91507f4552433732314d657461646174613a207265636569766564206120555249207160008301527f7565727920666f722061206e6f6e6578697374656e7420746f6b656e000000006020830152604082019050919050565b600061452b602c83615150565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000614591603883615150565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b60006145f7602a83615150565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b600061465d602983615150565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b60006146c3601783615150565b91507f546869732067616d652068617320736f6c64206f7574210000000000000000006000830152602082019050919050565b6000614703602083615150565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b6000614743602c83615150565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b60006147a9600583615161565b91507f2e6a736f6e0000000000000000000000000000000000000000000000000000006000830152600582019050919050565b60006147e9602083615150565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000614829600e83615150565b91507f47616d65206578686175737465640000000000000000000000000000000000006000830152602082019050919050565b6000614869602983615150565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b60006148cf602183615150565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614935603183615150565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b600061499b602083615150565b91507f596f752073686f756c6420736574206120646966666572656e742076616c75656000830152602082019050919050565b60006149db601f83615150565b91507f43616e206e6f74206d6f6469667920616e206578697374696e672067616d65006000830152602082019050919050565b6000614a1b602c83615150565b91507f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008301527f7574206f6620626f756e647300000000000000000000000000000000000000006020830152604082019050919050565b6000614a81602583615150565b91507f4d61782069737375616e63652073686f756c642062652067726561746572207460008301527f68616e20300000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614ae7600183615161565b91507f2f000000000000000000000000000000000000000000000000000000000000006000830152600182019050919050565b614b238161532c565b82525050565b6000614b358284613fe4565b915081905092915050565b6000614b4c8285614095565b9150614b588284614095565b91508190509392505050565b6000614b708285614095565b9150614b7b82614ada565b9150614b878284613fe4565b9150614b928261479c565b91508190509392505050565b6000602082019050614bb36000830184613f18565b92915050565b6000608082019050614bce6000830187613f18565b614bdb6020830186613f18565b614be86040830185614b1a565b8181036060830152614bfa8184613f45565b905095945050505050565b6000602082019050614c1a6000830184613f27565b92915050565b6000602082019050614c356000830184613f36565b92915050565b60006020820190508181036000830152614c56818486613f7e565b90509392505050565b60006020820190508181036000830152614c798184613fab565b905092915050565b60006040820190508181036000830152614c9b8185613fab565b9050614caa6020830184614b1a565b9392505050565b60006040820190508181036000830152614ccb8185614015565b90508181036020830152614cdf8184613fab565b90509392505050565b60006020820190508181036000830152614d0181614114565b9050919050565b60006020820190508181036000830152614d2181614154565b9050919050565b60006020820190508181036000830152614d41816141ba565b9050919050565b60006020820190508181036000830152614d6181614220565b9050919050565b60006020820190508181036000830152614d8181614286565b9050919050565b60006020820190508181036000830152614da1816142ec565b9050919050565b60006020820190508181036000830152614dc18161432c565b9050919050565b60006020820190508181036000830152614de18161436c565b9050919050565b60006020820190508181036000830152614e01816143d2565b9050919050565b60006020820190508181036000830152614e2181614438565b9050919050565b60006020820190508181036000830152614e4181614478565b9050919050565b60006020820190508181036000830152614e61816144b8565b9050919050565b60006020820190508181036000830152614e818161451e565b9050919050565b60006020820190508181036000830152614ea181614584565b9050919050565b60006020820190508181036000830152614ec1816145ea565b9050919050565b60006020820190508181036000830152614ee181614650565b9050919050565b60006020820190508181036000830152614f01816146b6565b9050919050565b60006020820190508181036000830152614f21816146f6565b9050919050565b60006020820190508181036000830152614f4181614736565b9050919050565b60006020820190508181036000830152614f61816147dc565b9050919050565b60006020820190508181036000830152614f818161481c565b9050919050565b60006020820190508181036000830152614fa18161485c565b9050919050565b60006020820190508181036000830152614fc1816148c2565b9050919050565b60006020820190508181036000830152614fe181614928565b9050919050565b600060208201905081810360008301526150018161498e565b9050919050565b60006020820190508181036000830152615021816149ce565b9050919050565b6000602082019050818103600083015261504181614a0e565b9050919050565b6000602082019050818103600083015261506181614a74565b9050919050565b600060208201905061507d6000830184614b1a565b92915050565b6000604051905081810181811067ffffffffffffffff821117156150aa576150a961548d565b5b8060405250919050565b600067ffffffffffffffff8211156150cf576150ce61548d565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff8211156150ff576150fe61548d565b5b601f19601f8301169050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006151778261532c565b91506151828361532c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156151b7576151b6615400565b5b828201905092915050565b60006151cd82615336565b91506151d883615336565b92508260ff038211156151ee576151ed615400565b5b828201905092915050565b60006152048261532c565b915061520f8361532c565b92508261521f5761521e61542f565b5b828204905092915050565b60006152358261532c565b91506152408361532c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561527957615278615400565b5b828202905092915050565b600061528f8261532c565b915061529a8361532c565b9250828210156152ad576152ac615400565b5b828203905092915050565b60006152c38261530c565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015615370578082015181840152602081019050615355565b8381111561537f576000848401525b50505050565b6000600282049050600182168061539d57607f821691505b602082108114156153b1576153b061545e565b5b50919050565b60006153c28261532c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156153f5576153f4615400565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b6154d6816152b8565b81146154e157600080fd5b50565b6154ed816152ca565b81146154f857600080fd5b50565b615504816152d6565b811461550f57600080fd5b50565b61551b816152e0565b811461552657600080fd5b50565b6155328161532c565b811461553d57600080fd5b5056fe68747470733a2f2f6172636164656e6674732e636f6d2f635f6d657461646174612e6a736f6ea2646970667358221220554382261c1e7cc1f42a02c317f7968f17f7f03653926a81bf3c40d94c8f5a4364736f6c63430008000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000b72bf6175ed6f8c0446a053bfaa4541474b69028000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000094172636164654e465400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004414e465400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001c68747470733a2f2f696e667572612d697066732e696f2f697066732f00000000
-----Decoded View---------------
Arg [0] : _name (string): ArcadeNFT
Arg [1] : _symbol (string): ANFT
Arg [2] : _operator (address): 0xB72BF6175eD6F8C0446a053BfaA4541474B69028
Arg [3] : _baseURI (string): https://infura-ipfs.io/ipfs/
-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 000000000000000000000000b72bf6175ed6f8c0446a053bfaa4541474b69028
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [5] : 4172636164654e46540000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [7] : 414e465400000000000000000000000000000000000000000000000000000000
Arg [8] : 000000000000000000000000000000000000000000000000000000000000001c
Arg [9] : 68747470733a2f2f696e667572612d697066732e696f2f697066732f00000000
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.