Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
NFT
Overview
Max Total Supply
4,777 TDRZ
Holders
2,713
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 TDRZLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ToadRunnerz
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 "./ToadRunnerzBase.sol"; import "./lib/String.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; contract ToadRunnerz is ToadRunnerzBase { 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, address _toadAddress, address _arcadeAddress ) ToadRunnerzBase(_name, _symbol, _operator, _baseURI, _toadAddress, _arcadeAddress) {} /** * @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 { require( allowed[msg.sender] || balanceOf(_beneficiary) + 1 <= MAX_ALLOWED, 'Beneficiary already owns max allowed mints' ); _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( allowed[msg.sender] ? msg.value >= 0 : _nbrOfTokens > 0 && collectionPrice[key].mul(_nbrOfTokens) <= msg.value, "Ether value sent is not correct" ); require( allowed[msg.sender] || balance(_beneficiary) + _nbrOfTokens <= MAX_ALLOWED, 'Beneficiary already owns max allowed mints' ); 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 = tokenTracker; _mint(_beneficiary, tokenId, key, _gameId, issuedId); _setTokenURI( tokenId, string( abi.encodePacked( gameURIs[key], "/", String.uint2str(tokenId), ".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"; interface ToadChecker { function balanceOf(address owner) external view returns(uint256); } interface ArcadeChecker { function balanceOf(address owner) external view returns(uint256); } abstract contract ToadRunnerzBase 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(bytes32 => string) internal gameURIs; mapping(bytes32 => uint256) internal collectionPrice; ToadChecker internal t; ArcadeChecker internal a; string[] internal games; string internal baseURI; bool internal isPremint = true; uint256 internal MAX_ALLOWED = 1; uint256 internal tokenTracker = 0; event BaseURI(string _oldBaseURI, string _newBaseURI); event Allowed(address indexed _operator, bool _allowed); event Premint(bool _isPremint); event AddGame( bytes32 indexed _gameIdKey, string _gameId, uint256 _maxIssuance, uint256 _price, string gameURI ); event Issue( address indexed _beneficiary, uint256 indexed _tokenId, bytes32 indexed _gameIdKey, string _gameId, uint256 _issuedId ); event CollectionIssuance( bytes32 _key, uint256 _issuance ); event CollectionPrice( bytes32 _gameKey, uint256 _price ); event GameURI( bytes32 _gameKey, string _uri ); event MaxAllowed(uint256 allowed); 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, address _toadAddress, address _arcadeAddress ) ERC721(_name, _symbol) { setAllowed(_operator, true); setBaseURI(_baseURI); t = ToadChecker(_toadAddress); a = ArcadeChecker(_arcadeAddress); } 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; emit 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; emit GameURI(_gameKey, _uri); } /** * @dev Set Base URI. * @param _baseURI - base URI for token URIs */ function setBaseURI(string memory _baseURI) public onlyOwner { baseURI = _baseURI; emit 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 Set collection issuance * @param _key - Game key for collection */ function setCollectionIssuance(bytes32 _key, uint256 _issuance) external onlyAllowed { maxIssuance[_key] = _issuance; emit CollectionIssuance(_key, _issuance); } /** * @dev Set max allowed mints * @param _allowed - Number of allowed mints */ function setMaxAllowed(uint256 _allowed) external onlyAllowed { MAX_ALLOWED = _allowed; emit MaxAllowed(_allowed); } /** * @dev Set premint * @param _isPremint - value to set */ function setPremint(bool _isPremint) external onlyAllowed { require( isPremint != _isPremint, "You should set a different value" ); isPremint = _isPremint; emit Premint(_isPremint); } /** * @dev Get collection issuance * @param _key - Game key for collection */ function getMaxIssuance(bytes32 _key) external view onlyAllowed returns(uint256) { return maxIssuance[_key]; } /** * @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 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 * @param _price - price for the game */ function addGame(string memory _gameId, uint256 _maxIssuance, uint256 _price, string memory _gameURI) external onlyOwner { 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; collectionPrice[key] = _price; gameURIs[key] = _gameURI; games.push(_gameId); emit AddGame(key, _gameId, _maxIssuance, _price, _gameURI); } /** * @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[msg.sender] ? msg.value >= 0 : collectionPrice[_gameIdKey] <= msg.value, "Ether value sent is not correct" ); require ( !isPremint ? true : allowed[msg.sender] ? true : (t.balanceOf(_beneficiary) > 0 || a.balanceOf(_beneficiary) > 0), "Beneficiary is not owner of a Cryptoadz or ArcadeNFT" ); // Mint erc721 token super._mint(_beneficiary, _tokenId); // Increase issuance issued[_gameIdKey] = issued[_gameIdKey] + 1; tokenTracker = tokenTracker + 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) public 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", "devdoc", "userdoc", "metadata", "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"},{"internalType":"address","name":"_toadAddress","type":"address"},{"internalType":"address","name":"_arcadeAddress","type":"address"}],"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"},{"indexed":false,"internalType":"uint256","name":"_price","type":"uint256"},{"indexed":false,"internalType":"string","name":"gameURI","type":"string"}],"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":[{"indexed":false,"internalType":"bytes32","name":"_key","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"_issuance","type":"uint256"}],"name":"CollectionIssuance","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"_gameKey","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"_price","type":"uint256"}],"name":"CollectionPrice","type":"event"},{"anonymous":false,"inputs":[],"name":"Complete","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"_gameKey","type":"bytes32"},{"indexed":false,"internalType":"string","name":"_uri","type":"string"}],"name":"GameURI","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":false,"internalType":"uint256","name":"allowed","type":"uint256"}],"name":"MaxAllowed","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":false,"internalType":"bool","name":"_isPremint","type":"bool"}],"name":"Premint","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"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"string","name":"_gameURI","type":"string"}],"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":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","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":"bytes32","name":"_key","type":"bytes32"}],"name":"getMaxIssuance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"_key","type":"bytes32"},{"internalType":"uint256","name":"_issuance","type":"uint256"}],"name":"setCollectionIssuance","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":"_allowed","type":"uint256"}],"name":"setMaxAllowed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isPremint","type":"bool"}],"name":"setPremint","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
60806040526001601560006101000a81548160ff021916908315150217905550600160165560006017553480156200003657600080fd5b50604051620065523803806200655283398181016040528101906200005c919062000694565b85858585858585856000620000766200020060201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35081600190805190602001906200012c9291906200055b565b508060029080519060200190620001459291906200055b565b5050506200015b8460016200020860201b60201c565b6200016c836200044b60201b60201c565b81601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050505050505050505062000ba4565b600033905090565b620002186200020060201b60201c565b73ffffffffffffffffffffffffffffffffffffffff166200023e6200053260201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161462000297576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200028e9062000993565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156200030a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003019062000971565b60405180910390fd5b801515600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615151415620003a0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200039790620009b5565b60405180910390fd5b80600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f64966f3fe2ac8cae5e6f7e4196d1315efafdb78a4377de3887c56fa3b9ac47cb826040516200043f919062000919565b60405180910390a25050565b6200045b6200020060201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620004816200053260201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1614620004da576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004d19062000993565b60405180910390fd5b8060149080519060200190620004f29291906200055b565b507fb8fdf10126d507f6daf46465ec25a2bbc08449cf6c944c98219264161391040a6014826040516200052792919062000936565b60405180910390a150565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b828054620005699062000ae5565b90600052602060002090601f0160209004810192826200058d5760008555620005d9565b82601f10620005a857805160ff1916838001178555620005d9565b82800160010185558215620005d9579182015b82811115620005d8578251825591602001919060010190620005bb565b5b509050620005e89190620005ec565b5090565b5b8082111562000607576000816000905550600101620005ed565b5090565b6000620006226200061c8462000a0b565b620009d7565b9050828152602081018484840111156200063b57600080fd5b6200064884828562000aaf565b509392505050565b600081519050620006618162000b8a565b92915050565b600082601f8301126200067957600080fd5b81516200068b8482602086016200060b565b91505092915050565b60008060008060008060c08789031215620006ae57600080fd5b600087015167ffffffffffffffff811115620006c957600080fd5b620006d789828a0162000667565b965050602087015167ffffffffffffffff811115620006f557600080fd5b6200070389828a0162000667565b95505060406200071689828a0162000650565b945050606087015167ffffffffffffffff8111156200073457600080fd5b6200074289828a0162000667565b93505060806200075589828a0162000650565b92505060a06200076889828a0162000650565b9150509295509295509295565b620007808162000a83565b82525050565b6000620007938262000a53565b6200079f818562000a5e565b9350620007b181856020860162000aaf565b620007bc8162000b79565b840191505092915050565b60008154620007d68162000ae5565b620007e2818662000a5e565b9450600182166000811462000800576001811462000813576200084a565b60ff19831686526020860193506200084a565b6200081e8562000a3e565b60005b83811015620008425781548189015260018201915060208101905062000821565b808801955050505b50505092915050565b600062000862600f8362000a5e565b91507f496e76616c6964206164647265737300000000000000000000000000000000006000830152602082019050919050565b6000620008a460208362000a5e565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000620008e660208362000a5e565b91507f596f752073686f756c6420736574206120646966666572656e742076616c75656000830152602082019050919050565b600060208201905062000930600083018462000775565b92915050565b60006040820190508181036000830152620009528185620007c7565b9050818103602083015262000968818462000786565b90509392505050565b600060208201905081810360008301526200098c8162000853565b9050919050565b60006020820190508181036000830152620009ae8162000895565b9050919050565b60006020820190508181036000830152620009d081620008d7565b9050919050565b6000604051905081810181811067ffffffffffffffff8211171562000a015762000a0062000b4a565b5b8060405250919050565b600067ffffffffffffffff82111562000a295762000a2862000b4a565b5b601f19601f8301169050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600082825260208201905092915050565b600062000a7c8262000a8f565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60005b8381101562000acf57808201518184015260208101905062000ab2565b8381111562000adf576000848401525b50505050565b6000600282049050600182168062000afe57607f821691505b6020821081141562000b155762000b1462000b1b565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b62000b958162000a6f565b811462000ba157600080fd5b50565b61599e8062000bb46000396000f3fe60806040526004361061021a5760003560e01c806355f804b31161012357806395d89b41116100ab578063e3d670d71161006f578063e3d670d7146107e5578063e8a3d48514610822578063e985e9c51461084d578063f2fde38b1461088a578063f46015ed146108b35761021a565b806395d89b41146106ee5780639a00483614610719578063a22cb46514610756578063b88d4fde1461077f578063c87b56dd146107a85761021a565b80636dff7da0116100f25780636dff7da01461060957806370a0823114610646578063715018a6146106835780637f5b00a51461069a5780638da5cb5b146106c35761021a565b806355f804b31461055e5780635669c94f146105875780635edd23c4146105a35780636352211e146105cc5761021a565b80632632084f116101a657806342966c681161017557806342966c68146104695780634697f05d146104925780634f6ccce7146104bb57806353b0020a146104f85780635509c83a146105355761021a565b80632632084f146103c35780632f745c59146103ec5780633ccfd60b1461042957806342842e0e146104405761021a565b8063081812fc116101ed578063081812fc146102ed578063095ea7b31461032a57806318160ddd14610353578063227f56bd1461037e57806323b872dd1461039a5761021a565b806301ffc9a71461021f578063023023901461025c57806306fdde0314610285578063073eb292146102b0575b600080fd5b34801561022b57600080fd5b5061024660048036038101906102419190614121565b6108dc565b6040516102539190614f7f565b60405180910390f35b34801561026857600080fd5b50610283600480360381019061027e91906140e5565b610956565b005b34801561029157600080fd5b5061029a610a37565b6040516102a7919061500e565b60405180910390f35b3480156102bc57600080fd5b506102d760048036038101906102d29190614068565b610ac9565b6040516102e4919061546a565b60405180910390f35b3480156102f957600080fd5b50610314600480360381019061030f9190614247565b610b72565b6040516103219190614f18565b60405180910390f35b34801561033657600080fd5b50610351600480360381019061034c9190614003565b610bf7565b005b34801561035f57600080fd5b50610368610d0f565b604051610375919061546a565b60405180910390f35b61039860048036038101906103939190613f97565b610d1c565b005b3480156103a657600080fd5b506103c160048036038101906103bc9190613e39565b610f5d565b005b3480156103cf57600080fd5b506103ea60048036038101906103e59190614091565b610fbd565b005b3480156103f857600080fd5b50610413600480360381019061040e9190614003565b6110ae565b604051610420919061546a565b60405180910390f35b34801561043557600080fd5b5061043e611153565b005b34801561044c57600080fd5b5061046760048036038101906104629190613e39565b61121e565b005b34801561047557600080fd5b50610490600480360381019061048b9190614247565b61123e565b005b34801561049e57600080fd5b506104b960048036038101906104b49190613f03565b61131d565b005b3480156104c757600080fd5b506104e260048036038101906104dd9190614247565b611545565b6040516104ef919061546a565b60405180910390f35b34801561050457600080fd5b5061051f600480360381019061051a9190614173565b6115dc565b60405161052c9190614f9a565b60405180910390f35b34801561054157600080fd5b5061055c600480360381019061055791906140e5565b61160c565b005b34801561056a57600080fd5b5061058560048036038101906105809190614173565b6116ed565b005b6105a1600480360381019061059c9190613f3f565b6117bd565b005b3480156105af57600080fd5b506105ca60048036038101906105c591906141b4565b6118bd565b005b3480156105d857600080fd5b506105f360048036038101906105ee9190614247565b611ab8565b6040516106009190614f18565b60405180910390f35b34801561061557600080fd5b50610630600480360381019061062b9190614173565b611b6a565b60405161063d919061546a565b60405180910390f35b34801561065257600080fd5b5061066d60048036038101906106689190613dd4565b611b94565b60405161067a919061546a565b60405180910390f35b34801561068f57600080fd5b50610698611c4c565b005b3480156106a657600080fd5b506106c160048036038101906106bc919061403f565b611d86565b005b3480156106cf57600080fd5b506106d8611ebc565b6040516106e59190614f18565b60405180910390f35b3480156106fa57600080fd5b50610703611ee5565b604051610710919061500e565b60405180910390f35b34801561072557600080fd5b50610740600480360381019061073b9190614003565b611f77565b60405161074d919061546a565b60405180910390f35b34801561076257600080fd5b5061077d60048036038101906107789190613f03565b611f8b565b005b34801561078b57600080fd5b506107a660048036038101906107a19190613e88565b61210c565b005b3480156107b457600080fd5b506107cf60048036038101906107ca9190614247565b61216e565b6040516107dc919061500e565b60405180910390f35b3480156107f157600080fd5b5061080c60048036038101906108079190613dd4565b6121f4565b604051610819919061546a565b60405180910390f35b34801561082e57600080fd5b50610837612206565b604051610844919061500e565b60405180910390f35b34801561085957600080fd5b50610874600480360381019061086f9190613dfd565b612226565b6040516108819190614f7f565b60405180910390f35b34801561089657600080fd5b506108b160048036038101906108ac9190613dd4565b6122ba565b005b3480156108bf57600080fd5b506108da60048036038101906108d59190614247565b612463565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061094f575061094e82612530565b5b9050919050565b600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166109e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d9906151aa565b60405180910390fd5b80600b6000848152602001908152602001600020819055507f137a09cb07a57c9e0de37d1ab794331b0ea408db52ec93651b91a78bdfa7699f8282604051610a2b929190614fe5565b60405180910390a15050565b606060018054610a4690615787565b80601f0160208091040260200160405190810160405280929190818152602001828054610a7290615787565b8015610abf5780601f10610a9457610100808354040283529160200191610abf565b820191906000526020600020905b815481529060010190602001808311610aa257829003601f168201915b5050505050905090565b6000600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610b57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4e906151aa565b60405180910390fd5b600b6000838152602001908152602001600020549050919050565b6000610b7d82612612565b610bbc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb39061530a565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c0282611ab8565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6a906153aa565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c9261267e565b73ffffffffffffffffffffffffffffffffffffffff161480610cc15750610cc081610cbb61267e565b612226565b5b610d00576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf79061526a565b60405180910390fd5b610d0a8383612686565b505050565b6000600980549050905090565b6000610d6b84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506115dc565b9050600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610df857600082118015610df3575034610df083601060008581526020019081526020016000205461273f90919063ffffffff16565b11155b610dfe565b60003410155b610e3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e349061520a565b60405180910390fd5b600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680610eaa575060165482610e9d876121f4565b610ea7919061556e565b11155b610ee9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee0906152ca565b60405180910390fd5b60005b82811015610f5557610f428686868080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612755565b8080610f4d906157b9565b915050610eec565b505050505050565b610f6e610f6861267e565b826127e6565b610fad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa4906153ca565b60405180910390fd5b610fb88383836128c4565b505050565b600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611049576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611040906151aa565b60405180910390fd5b80600f60008481526020019081526020016000209080519060200190611070929190613b44565b507f1f83e487415bdab5aaeefc8df40adb45d9b0c47c75133635675177cd5d6ed38f82826040516110a2929190614fb5565b60405180910390a15050565b60006110b983611b94565b82106110fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f19061510a565b60405180910390fd5b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b61115b61267e565b73ffffffffffffffffffffffffffffffffffffffff16611179611ebc565b73ffffffffffffffffffffffffffffffffffffffff16146111cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111c69061532a565b60405180910390fd5b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561121a573d6000803e3d6000fd5b5050565b6112398383836040518060200160405280600081525061210c565b505050565b600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166112ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c1906151aa565b60405180910390fd5b6112d381612b20565b6000600d600083815260200190815260200160002080546112f390615787565b90501461131a57600d600082815260200190815260200160002060006113199190613bca565b5b50565b61132561267e565b73ffffffffffffffffffffffffffffffffffffffff16611343611ebc565b73ffffffffffffffffffffffffffffffffffffffff1614611399576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113909061532a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611409576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611400906150ea565b60405180910390fd5b801515600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515141561149c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611493906153ea565b60405180910390fd5b80600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f64966f3fe2ac8cae5e6f7e4196d1315efafdb78a4377de3887c56fa3b9ac47cb826040516115399190614f7f565b60405180910390a25050565b600061154f610d0f565b8210611590576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115879061542a565b60405180910390fd5b600982815481106115ca577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6000816040516020016115ef9190614ea3565b604051602081830303815290604052805190602001209050919050565b600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611698576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168f906151aa565b60405180910390fd5b8060106000848152602001908152602001600020819055507fd72e2c410705aa4a166f3b004517d30187c83a5c37b60d8b783b04c043b7a2d482826040516116e1929190614fe5565b60405180910390a15050565b6116f561267e565b73ffffffffffffffffffffffffffffffffffffffff16611713611ebc565b73ffffffffffffffffffffffffffffffffffffffff1614611769576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117609061532a565b60405180910390fd5b806014908051906020019061177f929190613b44565b507fb8fdf10126d507f6daf46465ec25a2bbc08449cf6c944c98219264161391040a6014826040516117b29291906150b3565b60405180910390a150565b600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168061182b5750601654600161181e85611b94565b611828919061556e565b11155b61186a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611861906152ca565b60405180910390fd5b6118b88383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612755565b505050565b6118c561267e565b73ffffffffffffffffffffffffffffffffffffffff166118e3611ebc565b73ffffffffffffffffffffffffffffffffffffffff1614611939576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119309061532a565b60405180910390fd5b6000611944856115dc565b90506000600b6000838152602001908152602001600020541461199c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119939061540a565b60405180910390fd5b600084116119df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119d69061544a565b60405180910390fd5b83600b60008381526020019081526020016000208190555082601060008381526020019081526020016000208190555081600f60008381526020019081526020016000209080519060200190611a36929190613b44565b50601385908060018154018082558091505060019003906000526020600020016000909190919091509080519060200190611a72929190613b44565b50807fb137236e08849a345977cfb5d6be1646cb6bef90209e8efea06fee999fb4abe686868686604051611aa99493929190615060565b60405180910390a25050505050565b6000806003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611b61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b58906152aa565b60405180910390fd5b80915050919050565b600080611b76836115dc565b9050600c600082815260200190815260200160002054915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611c05576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bfc9061528a565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611c5461267e565b73ffffffffffffffffffffffffffffffffffffffff16611c72611ebc565b73ffffffffffffffffffffffffffffffffffffffff1614611cc8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cbf9061532a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611e12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e09906151aa565b60405180910390fd5b801515601560009054906101000a900460ff1615151415611e68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5f906153ea565b60405180910390fd5b80601560006101000a81548160ff0219169083151502179055507f9004fe5dfc9f0efd62fa48f2633e6c776068d71024ad2c07ab7c4bc2234a52e081604051611eb19190614f7f565b60405180910390a150565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060028054611ef490615787565b80601f0160208091040260200160405190810160405280929190818152602001828054611f2090615787565b8015611f6d5780601f10611f4257610100808354040283529160200191611f6d565b820191906000526020600020905b815481529060010190602001808311611f5057829003601f168201915b5050505050905090565b6000611f8383836110ae565b905092915050565b611f9361267e565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612001576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ff8906151ea565b60405180910390fd5b806006600061200e61267e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166120bb61267e565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516121009190614f7f565b60405180910390a35050565b61211d61211761267e565b836127e6565b61215c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612153906153ca565b60405180910390fd5b61216884848484612c31565b50505050565b606061217982612612565b6121b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121af9061522a565b60405180910390fd5b6014600d60008481526020019081526020016000206040516020016121de929190614eba565b6040516020818303038152906040529050919050565b60006121ff82611b94565b9050919050565b606060405180606001604052806026815260200161594360269139905090565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6122c261267e565b73ffffffffffffffffffffffffffffffffffffffff166122e0611ebc565b73ffffffffffffffffffffffffffffffffffffffff1614612336576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161232d9061532a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156123a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161239d9061514a565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166124ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124e6906151aa565b60405180910390fd5b806016819055507f6180dc96df211e2f21915c11a30b8b48740f9e3a0925b9720084304fab7c61cd81604051612525919061546a565b60405180910390a150565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806125fb57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061260b575061260a82612c8d565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166126f983611ab8565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818361274d919061562c565b905092915050565b6000612760826115dc565b905060006001600c600084815260200190815260200160002054612784919061556e565b90506000601754905061279a8582858786612cf7565b6127df81600f60008681526020019081526020016000206127ba8461313a565b6040516020016127cb929190614ede565b60405160208183030381529060405261330f565b5050505050565b60006127f182612612565b612830576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128279061524a565b60405180910390fd5b600061283b83611ab8565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806128aa57508373ffffffffffffffffffffffffffffffffffffffff1661289284610b72565b73ffffffffffffffffffffffffffffffffffffffff16145b806128bb57506128ba8185612226565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166128e482611ab8565b73ffffffffffffffffffffffffffffffffffffffff161461293a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129319061536a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156129aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129a1906151ca565b60405180910390fd5b6129b583838361333b565b6129c0600082612686565b6001600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612a109190615686565b925050819055506001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612a67919061556e565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000612b2b82611ab8565b9050612b398160008461333b565b612b44600083612686565b6001600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612b949190615686565b925050819055506003600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b612c3c8484846128c4565b612c488484848461344f565b612c87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c7e9061512a565b60405180910390fd5b50505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600081118015612d1a5750600b6000848152602001908152602001600020548111155b612d59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d509061518a565b60405180910390fd5b600b600084815260200190815260200160002054600c60008581526020019081526020016000205410612dc1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612db89061534a565b60405180910390fd5b600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16612e2e573460106000858152602001908152602001600020541115612e34565b60003410155b612e73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e6a9061520a565b60405180910390fd5b601560009054906101000a900460ff161561304957600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16613041576000601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231876040518263ffffffff1660e01b8152600401612f369190614f18565b60206040518083038186803b158015612f4e57600080fd5b505afa158015612f62573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f869190614270565b118061303c57506000601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231876040518263ffffffff1660e01b8152600401612fea9190614f18565b60206040518083038186803b15801561300257600080fd5b505afa158015613016573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061303a9190614270565b115b613044565b60015b61304c565b60015b61308b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130829061538a565b60405180910390fd5b61309585856135e6565b6001600c6000858152602001908152602001600020546130b5919061556e565b600c60008581526020019081526020016000208190555060016017546130db919061556e565b60178190555082848673ffffffffffffffffffffffffffffffffffffffff167fdb78fb3a605c85b40cf64f4ddff503d984ed442e5ae01282bd60137db494f80b858560405161312b929190615030565b60405180910390a45050505050565b60606000821415613182576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061330a565b600082905060005b600082146131b457808061319d906157b9565b915050600a826131ad91906155fb565b915061318a565b60008167ffffffffffffffff8111156131f6577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156132285781602001600182028036833780820191505090505b50905060008290505b60008614613302576001816132469190615686565b90506000600a808861325891906155fb565b613262919061562c565b8761326d9190615686565b603061327991906155c4565b905060008160f81b9050808484815181106132bd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a886132f991906155fb565b97505050613231565b819450505050505b919050565b80600d60008481526020019081526020016000209080519060200190613336929190613b44565b505050565b6133468383836137b4565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561338957613384816137b9565b6133c8565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146133c7576133c68382613802565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561340b576134068161396f565b61344a565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614613449576134488282613ab2565b5b5b505050565b60006134708473ffffffffffffffffffffffffffffffffffffffff16613b31565b156135d9578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261349961267e565b8786866040518563ffffffff1660e01b81526004016134bb9493929190614f33565b602060405180830381600087803b1580156134d557600080fd5b505af192505050801561350657506040513d601f19601f82011682018060405250810190613503919061414a565b60015b613589573d8060008114613536576040519150601f19603f3d011682016040523d82523d6000602084013e61353b565b606091505b50600081511415613581576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135789061512a565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506135de565b600190505b949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613656576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161364d906152ea565b60405180910390fd5b61365f81612612565b1561369f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136969061516a565b60405180910390fd5b6136ab6000838361333b565b6001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546136fb919061556e565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b505050565b600980549050600a600083815260200190815260200160002081905550600981908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161380f84611b94565b6138199190615686565b90506000600860008481526020019081526020016000205490508181146138fe576000600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816008600083815260200190815260200160002081905550505b6008600084815260200190815260200160002060009055600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016009805490506139839190615686565b90506000600a60008481526020019081526020016000205490506000600983815481106139d9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508060098381548110613a21577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600a600083815260200190815260200160002081905550600a6000858152602001908152602001600020600090556009805480613a96577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000613abd83611b94565b905081600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806008600084815260200190815260200160002081905550505050565b600080823b905060008111915050919050565b828054613b5090615787565b90600052602060002090601f016020900481019282613b725760008555613bb9565b82601f10613b8b57805160ff1916838001178555613bb9565b82800160010185558215613bb9579182015b82811115613bb8578251825591602001919060010190613b9d565b5b509050613bc69190613c0a565b5090565b508054613bd690615787565b6000825580601f10613be85750613c07565b601f016020900490600052602060002090810190613c069190613c0a565b5b50565b5b80821115613c23576000816000905550600101613c0b565b5090565b6000613c3a613c35846154b6565b615485565b905082815260208101848484011115613c5257600080fd5b613c5d848285615745565b509392505050565b6000613c78613c73846154e6565b615485565b905082815260208101848484011115613c9057600080fd5b613c9b848285615745565b509392505050565b600081359050613cb2816158cf565b92915050565b600081359050613cc7816158e6565b92915050565b600081359050613cdc816158fd565b92915050565b600081359050613cf181615914565b92915050565b600081519050613d0681615914565b92915050565b600082601f830112613d1d57600080fd5b8135613d2d848260208601613c27565b91505092915050565b60008083601f840112613d4857600080fd5b8235905067ffffffffffffffff811115613d6157600080fd5b602083019150836001820283011115613d7957600080fd5b9250929050565b600082601f830112613d9157600080fd5b8135613da1848260208601613c65565b91505092915050565b600081359050613db98161592b565b92915050565b600081519050613dce8161592b565b92915050565b600060208284031215613de657600080fd5b6000613df484828501613ca3565b91505092915050565b60008060408385031215613e1057600080fd5b6000613e1e85828601613ca3565b9250506020613e2f85828601613ca3565b9150509250929050565b600080600060608486031215613e4e57600080fd5b6000613e5c86828701613ca3565b9350506020613e6d86828701613ca3565b9250506040613e7e86828701613daa565b9150509250925092565b60008060008060808587031215613e9e57600080fd5b6000613eac87828801613ca3565b9450506020613ebd87828801613ca3565b9350506040613ece87828801613daa565b925050606085013567ffffffffffffffff811115613eeb57600080fd5b613ef787828801613d0c565b91505092959194509250565b60008060408385031215613f1657600080fd5b6000613f2485828601613ca3565b9250506020613f3585828601613cb8565b9150509250929050565b600080600060408486031215613f5457600080fd5b6000613f6286828701613ca3565b935050602084013567ffffffffffffffff811115613f7f57600080fd5b613f8b86828701613d36565b92509250509250925092565b60008060008060608587031215613fad57600080fd5b6000613fbb87828801613ca3565b945050602085013567ffffffffffffffff811115613fd857600080fd5b613fe487828801613d36565b93509350506040613ff787828801613daa565b91505092959194509250565b6000806040838503121561401657600080fd5b600061402485828601613ca3565b925050602061403585828601613daa565b9150509250929050565b60006020828403121561405157600080fd5b600061405f84828501613cb8565b91505092915050565b60006020828403121561407a57600080fd5b600061408884828501613ccd565b91505092915050565b600080604083850312156140a457600080fd5b60006140b285828601613ccd565b925050602083013567ffffffffffffffff8111156140cf57600080fd5b6140db85828601613d80565b9150509250929050565b600080604083850312156140f857600080fd5b600061410685828601613ccd565b925050602061411785828601613daa565b9150509250929050565b60006020828403121561413357600080fd5b600061414184828501613ce2565b91505092915050565b60006020828403121561415c57600080fd5b600061416a84828501613cf7565b91505092915050565b60006020828403121561418557600080fd5b600082013567ffffffffffffffff81111561419f57600080fd5b6141ab84828501613d80565b91505092915050565b600080600080608085870312156141ca57600080fd5b600085013567ffffffffffffffff8111156141e457600080fd5b6141f087828801613d80565b945050602061420187828801613daa565b935050604061421287828801613daa565b925050606085013567ffffffffffffffff81111561422f57600080fd5b61423b87828801613d80565b91505092959194509250565b60006020828403121561425957600080fd5b600061426784828501613daa565b91505092915050565b60006020828403121561428257600080fd5b600061429084828501613dbf565b91505092915050565b6142a2816156ba565b82525050565b6142b1816156cc565b82525050565b6142c0816156d8565b82525050565b60006142d18261552b565b6142db8185615541565b93506142eb818560208601615754565b6142f4816158be565b840191505092915050565b600061430a82615536565b6143148185615552565b9350614324818560208601615754565b61432d816158be565b840191505092915050565b600061434382615536565b61434d8185615563565b935061435d818560208601615754565b80840191505092915050565b6000815461437681615787565b6143808186615552565b9450600182166000811461439b57600181146143ad576143e0565b60ff19831686526020860193506143e0565b6143b685615516565b60005b838110156143d8578154818901526001820191506020810190506143b9565b808801955050505b50505092915050565b600081546143f681615787565b6144008186615563565b9450600182166000811461441b576001811461442c5761445f565b60ff1983168652818601935061445f565b61443585615516565b60005b8381101561445757815481890152600182019150602081019050614438565b838801955050505b50505092915050565b6000614475600f83615552565b91507f496e76616c6964206164647265737300000000000000000000000000000000006000830152602082019050919050565b60006144b5602b83615552565b91507f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008301527f74206f6620626f756e64730000000000000000000000000000000000000000006020830152604082019050919050565b600061451b603283615552565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b6000614581602683615552565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006145e7601c83615552565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b6000614627601183615552565b91507f496e76616c6964206973737565642069640000000000000000000000000000006000830152602082019050919050565b6000614667602e83615552565b91507f4f6e6c7920616e2060616c6c6f7765646020616464726573732063616e20636160008301527f6c6c2074686973206d6574686f640000000000000000000000000000000000006020830152604082019050919050565b60006146cd602483615552565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614733601983615552565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b6000614773601f83615552565b91507f45746865722076616c75652073656e74206973206e6f7420636f7272656374006000830152602082019050919050565b60006147b3603c83615552565b91507f4552433732314d657461646174613a207265636569766564206120555249207160008301527f7565727920666f722061206e6f6e6578697374656e7420746f6b656e000000006020830152604082019050919050565b6000614819602c83615552565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b600061487f603883615552565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b60006148e5602a83615552565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b600061494b602983615552565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b60006149b1602a83615552565b91507f42656e656669636961727920616c7265616479206f776e73206d617820616c6c60008301527f6f776564206d696e7473000000000000000000000000000000000000000000006020830152604082019050919050565b6000614a17602083615552565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b6000614a57602c83615552565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000614abd600583615563565b91507f2e6a736f6e0000000000000000000000000000000000000000000000000000006000830152600582019050919050565b6000614afd602083615552565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000614b3d600e83615552565b91507f47616d65206578686175737465640000000000000000000000000000000000006000830152602082019050919050565b6000614b7d602983615552565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000614be3603483615552565b91507f42656e6566696369617279206973206e6f74206f776e6572206f66206120437260008301527f7970746f61647a206f72204172636164654e46540000000000000000000000006020830152604082019050919050565b6000614c49602183615552565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614caf603183615552565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b6000614d15602083615552565b91507f596f752073686f756c6420736574206120646966666572656e742076616c75656000830152602082019050919050565b6000614d55601f83615552565b91507f43616e206e6f74206d6f6469667920616e206578697374696e672067616d65006000830152602082019050919050565b6000614d95602c83615552565b91507f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008301527f7574206f6620626f756e647300000000000000000000000000000000000000006020830152604082019050919050565b6000614dfb602583615552565b91507f4d61782069737375616e63652073686f756c642062652067726561746572207460008301527f68616e20300000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614e61600183615563565b91507f2f000000000000000000000000000000000000000000000000000000000000006000830152600182019050919050565b614e9d8161572e565b82525050565b6000614eaf8284614338565b915081905092915050565b6000614ec682856143e9565b9150614ed282846143e9565b91508190509392505050565b6000614eea82856143e9565b9150614ef582614e54565b9150614f018284614338565b9150614f0c82614ab0565b91508190509392505050565b6000602082019050614f2d6000830184614299565b92915050565b6000608082019050614f486000830187614299565b614f556020830186614299565b614f626040830185614e94565b8181036060830152614f7481846142c6565b905095945050505050565b6000602082019050614f9460008301846142a8565b92915050565b6000602082019050614faf60008301846142b7565b92915050565b6000604082019050614fca60008301856142b7565b8181036020830152614fdc81846142ff565b90509392505050565b6000604082019050614ffa60008301856142b7565b6150076020830184614e94565b9392505050565b6000602082019050818103600083015261502881846142ff565b905092915050565b6000604082019050818103600083015261504a81856142ff565b90506150596020830184614e94565b9392505050565b6000608082019050818103600083015261507a81876142ff565b90506150896020830186614e94565b6150966040830185614e94565b81810360608301526150a881846142ff565b905095945050505050565b600060408201905081810360008301526150cd8185614369565b905081810360208301526150e181846142ff565b90509392505050565b6000602082019050818103600083015261510381614468565b9050919050565b60006020820190508181036000830152615123816144a8565b9050919050565b600060208201905081810360008301526151438161450e565b9050919050565b6000602082019050818103600083015261516381614574565b9050919050565b60006020820190508181036000830152615183816145da565b9050919050565b600060208201905081810360008301526151a38161461a565b9050919050565b600060208201905081810360008301526151c38161465a565b9050919050565b600060208201905081810360008301526151e3816146c0565b9050919050565b6000602082019050818103600083015261520381614726565b9050919050565b6000602082019050818103600083015261522381614766565b9050919050565b60006020820190508181036000830152615243816147a6565b9050919050565b600060208201905081810360008301526152638161480c565b9050919050565b6000602082019050818103600083015261528381614872565b9050919050565b600060208201905081810360008301526152a3816148d8565b9050919050565b600060208201905081810360008301526152c38161493e565b9050919050565b600060208201905081810360008301526152e3816149a4565b9050919050565b6000602082019050818103600083015261530381614a0a565b9050919050565b6000602082019050818103600083015261532381614a4a565b9050919050565b6000602082019050818103600083015261534381614af0565b9050919050565b6000602082019050818103600083015261536381614b30565b9050919050565b6000602082019050818103600083015261538381614b70565b9050919050565b600060208201905081810360008301526153a381614bd6565b9050919050565b600060208201905081810360008301526153c381614c3c565b9050919050565b600060208201905081810360008301526153e381614ca2565b9050919050565b6000602082019050818103600083015261540381614d08565b9050919050565b6000602082019050818103600083015261542381614d48565b9050919050565b6000602082019050818103600083015261544381614d88565b9050919050565b6000602082019050818103600083015261546381614dee565b9050919050565b600060208201905061547f6000830184614e94565b92915050565b6000604051905081810181811067ffffffffffffffff821117156154ac576154ab61588f565b5b8060405250919050565b600067ffffffffffffffff8211156154d1576154d061588f565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff8211156155015761550061588f565b5b601f19601f8301169050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006155798261572e565b91506155848361572e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156155b9576155b8615802565b5b828201905092915050565b60006155cf82615738565b91506155da83615738565b92508260ff038211156155f0576155ef615802565b5b828201905092915050565b60006156068261572e565b91506156118361572e565b92508261562157615620615831565b5b828204905092915050565b60006156378261572e565b91506156428361572e565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561567b5761567a615802565b5b828202905092915050565b60006156918261572e565b915061569c8361572e565b9250828210156156af576156ae615802565b5b828203905092915050565b60006156c58261570e565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015615772578082015181840152602081019050615757565b83811115615781576000848401525b50505050565b6000600282049050600182168061579f57607f821691505b602082108114156157b3576157b2615860565b5b50919050565b60006157c48261572e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156157f7576157f6615802565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b6158d8816156ba565b81146158e357600080fd5b50565b6158ef816156cc565b81146158fa57600080fd5b50565b615906816156d8565b811461591157600080fd5b50565b61591d816156e2565b811461592857600080fd5b50565b6159348161572e565b811461593f57600080fd5b5056fe68747470733a2f2f6172636164656e6674732e636f6d2f635f6d657461646174612e6a736f6ea264697066735822122094a080023341a62bd9fb21c3e6065e6e7c284e1a755ce421e27f733ce46f92ca64736f6c6343000800003300000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000b72bf6175ed6f8c0446a053bfaa4541474b6902800000000000000000000000000000000000000000000000000000000000001400000000000000000000000001cb1a5e65610aeff2551a50f76a87a7d3fb649c6000000000000000000000000a0c38108bbb0f5f2fb46a2019d7314cce38f3f22000000000000000000000000000000000000000000000000000000000000000b546f616452756e6e65727a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045444525a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002368747470733a2f2f617263616465746f6164732e6d7970696e6174612e636c6f75642f0000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061021a5760003560e01c806355f804b31161012357806395d89b41116100ab578063e3d670d71161006f578063e3d670d7146107e5578063e8a3d48514610822578063e985e9c51461084d578063f2fde38b1461088a578063f46015ed146108b35761021a565b806395d89b41146106ee5780639a00483614610719578063a22cb46514610756578063b88d4fde1461077f578063c87b56dd146107a85761021a565b80636dff7da0116100f25780636dff7da01461060957806370a0823114610646578063715018a6146106835780637f5b00a51461069a5780638da5cb5b146106c35761021a565b806355f804b31461055e5780635669c94f146105875780635edd23c4146105a35780636352211e146105cc5761021a565b80632632084f116101a657806342966c681161017557806342966c68146104695780634697f05d146104925780634f6ccce7146104bb57806353b0020a146104f85780635509c83a146105355761021a565b80632632084f146103c35780632f745c59146103ec5780633ccfd60b1461042957806342842e0e146104405761021a565b8063081812fc116101ed578063081812fc146102ed578063095ea7b31461032a57806318160ddd14610353578063227f56bd1461037e57806323b872dd1461039a5761021a565b806301ffc9a71461021f578063023023901461025c57806306fdde0314610285578063073eb292146102b0575b600080fd5b34801561022b57600080fd5b5061024660048036038101906102419190614121565b6108dc565b6040516102539190614f7f565b60405180910390f35b34801561026857600080fd5b50610283600480360381019061027e91906140e5565b610956565b005b34801561029157600080fd5b5061029a610a37565b6040516102a7919061500e565b60405180910390f35b3480156102bc57600080fd5b506102d760048036038101906102d29190614068565b610ac9565b6040516102e4919061546a565b60405180910390f35b3480156102f957600080fd5b50610314600480360381019061030f9190614247565b610b72565b6040516103219190614f18565b60405180910390f35b34801561033657600080fd5b50610351600480360381019061034c9190614003565b610bf7565b005b34801561035f57600080fd5b50610368610d0f565b604051610375919061546a565b60405180910390f35b61039860048036038101906103939190613f97565b610d1c565b005b3480156103a657600080fd5b506103c160048036038101906103bc9190613e39565b610f5d565b005b3480156103cf57600080fd5b506103ea60048036038101906103e59190614091565b610fbd565b005b3480156103f857600080fd5b50610413600480360381019061040e9190614003565b6110ae565b604051610420919061546a565b60405180910390f35b34801561043557600080fd5b5061043e611153565b005b34801561044c57600080fd5b5061046760048036038101906104629190613e39565b61121e565b005b34801561047557600080fd5b50610490600480360381019061048b9190614247565b61123e565b005b34801561049e57600080fd5b506104b960048036038101906104b49190613f03565b61131d565b005b3480156104c757600080fd5b506104e260048036038101906104dd9190614247565b611545565b6040516104ef919061546a565b60405180910390f35b34801561050457600080fd5b5061051f600480360381019061051a9190614173565b6115dc565b60405161052c9190614f9a565b60405180910390f35b34801561054157600080fd5b5061055c600480360381019061055791906140e5565b61160c565b005b34801561056a57600080fd5b5061058560048036038101906105809190614173565b6116ed565b005b6105a1600480360381019061059c9190613f3f565b6117bd565b005b3480156105af57600080fd5b506105ca60048036038101906105c591906141b4565b6118bd565b005b3480156105d857600080fd5b506105f360048036038101906105ee9190614247565b611ab8565b6040516106009190614f18565b60405180910390f35b34801561061557600080fd5b50610630600480360381019061062b9190614173565b611b6a565b60405161063d919061546a565b60405180910390f35b34801561065257600080fd5b5061066d60048036038101906106689190613dd4565b611b94565b60405161067a919061546a565b60405180910390f35b34801561068f57600080fd5b50610698611c4c565b005b3480156106a657600080fd5b506106c160048036038101906106bc919061403f565b611d86565b005b3480156106cf57600080fd5b506106d8611ebc565b6040516106e59190614f18565b60405180910390f35b3480156106fa57600080fd5b50610703611ee5565b604051610710919061500e565b60405180910390f35b34801561072557600080fd5b50610740600480360381019061073b9190614003565b611f77565b60405161074d919061546a565b60405180910390f35b34801561076257600080fd5b5061077d60048036038101906107789190613f03565b611f8b565b005b34801561078b57600080fd5b506107a660048036038101906107a19190613e88565b61210c565b005b3480156107b457600080fd5b506107cf60048036038101906107ca9190614247565b61216e565b6040516107dc919061500e565b60405180910390f35b3480156107f157600080fd5b5061080c60048036038101906108079190613dd4565b6121f4565b604051610819919061546a565b60405180910390f35b34801561082e57600080fd5b50610837612206565b604051610844919061500e565b60405180910390f35b34801561085957600080fd5b50610874600480360381019061086f9190613dfd565b612226565b6040516108819190614f7f565b60405180910390f35b34801561089657600080fd5b506108b160048036038101906108ac9190613dd4565b6122ba565b005b3480156108bf57600080fd5b506108da60048036038101906108d59190614247565b612463565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061094f575061094e82612530565b5b9050919050565b600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166109e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d9906151aa565b60405180910390fd5b80600b6000848152602001908152602001600020819055507f137a09cb07a57c9e0de37d1ab794331b0ea408db52ec93651b91a78bdfa7699f8282604051610a2b929190614fe5565b60405180910390a15050565b606060018054610a4690615787565b80601f0160208091040260200160405190810160405280929190818152602001828054610a7290615787565b8015610abf5780601f10610a9457610100808354040283529160200191610abf565b820191906000526020600020905b815481529060010190602001808311610aa257829003601f168201915b5050505050905090565b6000600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610b57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4e906151aa565b60405180910390fd5b600b6000838152602001908152602001600020549050919050565b6000610b7d82612612565b610bbc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb39061530a565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c0282611ab8565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6a906153aa565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c9261267e565b73ffffffffffffffffffffffffffffffffffffffff161480610cc15750610cc081610cbb61267e565b612226565b5b610d00576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf79061526a565b60405180910390fd5b610d0a8383612686565b505050565b6000600980549050905090565b6000610d6b84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506115dc565b9050600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610df857600082118015610df3575034610df083601060008581526020019081526020016000205461273f90919063ffffffff16565b11155b610dfe565b60003410155b610e3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e349061520a565b60405180910390fd5b600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680610eaa575060165482610e9d876121f4565b610ea7919061556e565b11155b610ee9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee0906152ca565b60405180910390fd5b60005b82811015610f5557610f428686868080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612755565b8080610f4d906157b9565b915050610eec565b505050505050565b610f6e610f6861267e565b826127e6565b610fad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa4906153ca565b60405180910390fd5b610fb88383836128c4565b505050565b600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611049576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611040906151aa565b60405180910390fd5b80600f60008481526020019081526020016000209080519060200190611070929190613b44565b507f1f83e487415bdab5aaeefc8df40adb45d9b0c47c75133635675177cd5d6ed38f82826040516110a2929190614fb5565b60405180910390a15050565b60006110b983611b94565b82106110fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f19061510a565b60405180910390fd5b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b61115b61267e565b73ffffffffffffffffffffffffffffffffffffffff16611179611ebc565b73ffffffffffffffffffffffffffffffffffffffff16146111cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111c69061532a565b60405180910390fd5b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561121a573d6000803e3d6000fd5b5050565b6112398383836040518060200160405280600081525061210c565b505050565b600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166112ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c1906151aa565b60405180910390fd5b6112d381612b20565b6000600d600083815260200190815260200160002080546112f390615787565b90501461131a57600d600082815260200190815260200160002060006113199190613bca565b5b50565b61132561267e565b73ffffffffffffffffffffffffffffffffffffffff16611343611ebc565b73ffffffffffffffffffffffffffffffffffffffff1614611399576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113909061532a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611409576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611400906150ea565b60405180910390fd5b801515600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515141561149c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611493906153ea565b60405180910390fd5b80600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f64966f3fe2ac8cae5e6f7e4196d1315efafdb78a4377de3887c56fa3b9ac47cb826040516115399190614f7f565b60405180910390a25050565b600061154f610d0f565b8210611590576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115879061542a565b60405180910390fd5b600982815481106115ca577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6000816040516020016115ef9190614ea3565b604051602081830303815290604052805190602001209050919050565b600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611698576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168f906151aa565b60405180910390fd5b8060106000848152602001908152602001600020819055507fd72e2c410705aa4a166f3b004517d30187c83a5c37b60d8b783b04c043b7a2d482826040516116e1929190614fe5565b60405180910390a15050565b6116f561267e565b73ffffffffffffffffffffffffffffffffffffffff16611713611ebc565b73ffffffffffffffffffffffffffffffffffffffff1614611769576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117609061532a565b60405180910390fd5b806014908051906020019061177f929190613b44565b507fb8fdf10126d507f6daf46465ec25a2bbc08449cf6c944c98219264161391040a6014826040516117b29291906150b3565b60405180910390a150565b600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168061182b5750601654600161181e85611b94565b611828919061556e565b11155b61186a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611861906152ca565b60405180910390fd5b6118b88383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612755565b505050565b6118c561267e565b73ffffffffffffffffffffffffffffffffffffffff166118e3611ebc565b73ffffffffffffffffffffffffffffffffffffffff1614611939576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119309061532a565b60405180910390fd5b6000611944856115dc565b90506000600b6000838152602001908152602001600020541461199c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119939061540a565b60405180910390fd5b600084116119df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119d69061544a565b60405180910390fd5b83600b60008381526020019081526020016000208190555082601060008381526020019081526020016000208190555081600f60008381526020019081526020016000209080519060200190611a36929190613b44565b50601385908060018154018082558091505060019003906000526020600020016000909190919091509080519060200190611a72929190613b44565b50807fb137236e08849a345977cfb5d6be1646cb6bef90209e8efea06fee999fb4abe686868686604051611aa99493929190615060565b60405180910390a25050505050565b6000806003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611b61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b58906152aa565b60405180910390fd5b80915050919050565b600080611b76836115dc565b9050600c600082815260200190815260200160002054915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611c05576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bfc9061528a565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611c5461267e565b73ffffffffffffffffffffffffffffffffffffffff16611c72611ebc565b73ffffffffffffffffffffffffffffffffffffffff1614611cc8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cbf9061532a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611e12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e09906151aa565b60405180910390fd5b801515601560009054906101000a900460ff1615151415611e68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5f906153ea565b60405180910390fd5b80601560006101000a81548160ff0219169083151502179055507f9004fe5dfc9f0efd62fa48f2633e6c776068d71024ad2c07ab7c4bc2234a52e081604051611eb19190614f7f565b60405180910390a150565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060028054611ef490615787565b80601f0160208091040260200160405190810160405280929190818152602001828054611f2090615787565b8015611f6d5780601f10611f4257610100808354040283529160200191611f6d565b820191906000526020600020905b815481529060010190602001808311611f5057829003601f168201915b5050505050905090565b6000611f8383836110ae565b905092915050565b611f9361267e565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612001576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ff8906151ea565b60405180910390fd5b806006600061200e61267e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166120bb61267e565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516121009190614f7f565b60405180910390a35050565b61211d61211761267e565b836127e6565b61215c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612153906153ca565b60405180910390fd5b61216884848484612c31565b50505050565b606061217982612612565b6121b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121af9061522a565b60405180910390fd5b6014600d60008481526020019081526020016000206040516020016121de929190614eba565b6040516020818303038152906040529050919050565b60006121ff82611b94565b9050919050565b606060405180606001604052806026815260200161594360269139905090565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6122c261267e565b73ffffffffffffffffffffffffffffffffffffffff166122e0611ebc565b73ffffffffffffffffffffffffffffffffffffffff1614612336576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161232d9061532a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156123a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161239d9061514a565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166124ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124e6906151aa565b60405180910390fd5b806016819055507f6180dc96df211e2f21915c11a30b8b48740f9e3a0925b9720084304fab7c61cd81604051612525919061546a565b60405180910390a150565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806125fb57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061260b575061260a82612c8d565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166126f983611ab8565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818361274d919061562c565b905092915050565b6000612760826115dc565b905060006001600c600084815260200190815260200160002054612784919061556e565b90506000601754905061279a8582858786612cf7565b6127df81600f60008681526020019081526020016000206127ba8461313a565b6040516020016127cb929190614ede565b60405160208183030381529060405261330f565b5050505050565b60006127f182612612565b612830576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128279061524a565b60405180910390fd5b600061283b83611ab8565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806128aa57508373ffffffffffffffffffffffffffffffffffffffff1661289284610b72565b73ffffffffffffffffffffffffffffffffffffffff16145b806128bb57506128ba8185612226565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166128e482611ab8565b73ffffffffffffffffffffffffffffffffffffffff161461293a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129319061536a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156129aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129a1906151ca565b60405180910390fd5b6129b583838361333b565b6129c0600082612686565b6001600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612a109190615686565b925050819055506001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612a67919061556e565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000612b2b82611ab8565b9050612b398160008461333b565b612b44600083612686565b6001600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612b949190615686565b925050819055506003600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b612c3c8484846128c4565b612c488484848461344f565b612c87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c7e9061512a565b60405180910390fd5b50505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600081118015612d1a5750600b6000848152602001908152602001600020548111155b612d59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d509061518a565b60405180910390fd5b600b600084815260200190815260200160002054600c60008581526020019081526020016000205410612dc1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612db89061534a565b60405180910390fd5b600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16612e2e573460106000858152602001908152602001600020541115612e34565b60003410155b612e73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e6a9061520a565b60405180910390fd5b601560009054906101000a900460ff161561304957600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16613041576000601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231876040518263ffffffff1660e01b8152600401612f369190614f18565b60206040518083038186803b158015612f4e57600080fd5b505afa158015612f62573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f869190614270565b118061303c57506000601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231876040518263ffffffff1660e01b8152600401612fea9190614f18565b60206040518083038186803b15801561300257600080fd5b505afa158015613016573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061303a9190614270565b115b613044565b60015b61304c565b60015b61308b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130829061538a565b60405180910390fd5b61309585856135e6565b6001600c6000858152602001908152602001600020546130b5919061556e565b600c60008581526020019081526020016000208190555060016017546130db919061556e565b60178190555082848673ffffffffffffffffffffffffffffffffffffffff167fdb78fb3a605c85b40cf64f4ddff503d984ed442e5ae01282bd60137db494f80b858560405161312b929190615030565b60405180910390a45050505050565b60606000821415613182576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061330a565b600082905060005b600082146131b457808061319d906157b9565b915050600a826131ad91906155fb565b915061318a565b60008167ffffffffffffffff8111156131f6577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156132285781602001600182028036833780820191505090505b50905060008290505b60008614613302576001816132469190615686565b90506000600a808861325891906155fb565b613262919061562c565b8761326d9190615686565b603061327991906155c4565b905060008160f81b9050808484815181106132bd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a886132f991906155fb565b97505050613231565b819450505050505b919050565b80600d60008481526020019081526020016000209080519060200190613336929190613b44565b505050565b6133468383836137b4565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561338957613384816137b9565b6133c8565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146133c7576133c68382613802565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561340b576134068161396f565b61344a565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614613449576134488282613ab2565b5b5b505050565b60006134708473ffffffffffffffffffffffffffffffffffffffff16613b31565b156135d9578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261349961267e565b8786866040518563ffffffff1660e01b81526004016134bb9493929190614f33565b602060405180830381600087803b1580156134d557600080fd5b505af192505050801561350657506040513d601f19601f82011682018060405250810190613503919061414a565b60015b613589573d8060008114613536576040519150601f19603f3d011682016040523d82523d6000602084013e61353b565b606091505b50600081511415613581576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135789061512a565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506135de565b600190505b949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613656576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161364d906152ea565b60405180910390fd5b61365f81612612565b1561369f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136969061516a565b60405180910390fd5b6136ab6000838361333b565b6001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546136fb919061556e565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b505050565b600980549050600a600083815260200190815260200160002081905550600981908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161380f84611b94565b6138199190615686565b90506000600860008481526020019081526020016000205490508181146138fe576000600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816008600083815260200190815260200160002081905550505b6008600084815260200190815260200160002060009055600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016009805490506139839190615686565b90506000600a60008481526020019081526020016000205490506000600983815481106139d9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508060098381548110613a21577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600a600083815260200190815260200160002081905550600a6000858152602001908152602001600020600090556009805480613a96577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000613abd83611b94565b905081600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806008600084815260200190815260200160002081905550505050565b600080823b905060008111915050919050565b828054613b5090615787565b90600052602060002090601f016020900481019282613b725760008555613bb9565b82601f10613b8b57805160ff1916838001178555613bb9565b82800160010185558215613bb9579182015b82811115613bb8578251825591602001919060010190613b9d565b5b509050613bc69190613c0a565b5090565b508054613bd690615787565b6000825580601f10613be85750613c07565b601f016020900490600052602060002090810190613c069190613c0a565b5b50565b5b80821115613c23576000816000905550600101613c0b565b5090565b6000613c3a613c35846154b6565b615485565b905082815260208101848484011115613c5257600080fd5b613c5d848285615745565b509392505050565b6000613c78613c73846154e6565b615485565b905082815260208101848484011115613c9057600080fd5b613c9b848285615745565b509392505050565b600081359050613cb2816158cf565b92915050565b600081359050613cc7816158e6565b92915050565b600081359050613cdc816158fd565b92915050565b600081359050613cf181615914565b92915050565b600081519050613d0681615914565b92915050565b600082601f830112613d1d57600080fd5b8135613d2d848260208601613c27565b91505092915050565b60008083601f840112613d4857600080fd5b8235905067ffffffffffffffff811115613d6157600080fd5b602083019150836001820283011115613d7957600080fd5b9250929050565b600082601f830112613d9157600080fd5b8135613da1848260208601613c65565b91505092915050565b600081359050613db98161592b565b92915050565b600081519050613dce8161592b565b92915050565b600060208284031215613de657600080fd5b6000613df484828501613ca3565b91505092915050565b60008060408385031215613e1057600080fd5b6000613e1e85828601613ca3565b9250506020613e2f85828601613ca3565b9150509250929050565b600080600060608486031215613e4e57600080fd5b6000613e5c86828701613ca3565b9350506020613e6d86828701613ca3565b9250506040613e7e86828701613daa565b9150509250925092565b60008060008060808587031215613e9e57600080fd5b6000613eac87828801613ca3565b9450506020613ebd87828801613ca3565b9350506040613ece87828801613daa565b925050606085013567ffffffffffffffff811115613eeb57600080fd5b613ef787828801613d0c565b91505092959194509250565b60008060408385031215613f1657600080fd5b6000613f2485828601613ca3565b9250506020613f3585828601613cb8565b9150509250929050565b600080600060408486031215613f5457600080fd5b6000613f6286828701613ca3565b935050602084013567ffffffffffffffff811115613f7f57600080fd5b613f8b86828701613d36565b92509250509250925092565b60008060008060608587031215613fad57600080fd5b6000613fbb87828801613ca3565b945050602085013567ffffffffffffffff811115613fd857600080fd5b613fe487828801613d36565b93509350506040613ff787828801613daa565b91505092959194509250565b6000806040838503121561401657600080fd5b600061402485828601613ca3565b925050602061403585828601613daa565b9150509250929050565b60006020828403121561405157600080fd5b600061405f84828501613cb8565b91505092915050565b60006020828403121561407a57600080fd5b600061408884828501613ccd565b91505092915050565b600080604083850312156140a457600080fd5b60006140b285828601613ccd565b925050602083013567ffffffffffffffff8111156140cf57600080fd5b6140db85828601613d80565b9150509250929050565b600080604083850312156140f857600080fd5b600061410685828601613ccd565b925050602061411785828601613daa565b9150509250929050565b60006020828403121561413357600080fd5b600061414184828501613ce2565b91505092915050565b60006020828403121561415c57600080fd5b600061416a84828501613cf7565b91505092915050565b60006020828403121561418557600080fd5b600082013567ffffffffffffffff81111561419f57600080fd5b6141ab84828501613d80565b91505092915050565b600080600080608085870312156141ca57600080fd5b600085013567ffffffffffffffff8111156141e457600080fd5b6141f087828801613d80565b945050602061420187828801613daa565b935050604061421287828801613daa565b925050606085013567ffffffffffffffff81111561422f57600080fd5b61423b87828801613d80565b91505092959194509250565b60006020828403121561425957600080fd5b600061426784828501613daa565b91505092915050565b60006020828403121561428257600080fd5b600061429084828501613dbf565b91505092915050565b6142a2816156ba565b82525050565b6142b1816156cc565b82525050565b6142c0816156d8565b82525050565b60006142d18261552b565b6142db8185615541565b93506142eb818560208601615754565b6142f4816158be565b840191505092915050565b600061430a82615536565b6143148185615552565b9350614324818560208601615754565b61432d816158be565b840191505092915050565b600061434382615536565b61434d8185615563565b935061435d818560208601615754565b80840191505092915050565b6000815461437681615787565b6143808186615552565b9450600182166000811461439b57600181146143ad576143e0565b60ff19831686526020860193506143e0565b6143b685615516565b60005b838110156143d8578154818901526001820191506020810190506143b9565b808801955050505b50505092915050565b600081546143f681615787565b6144008186615563565b9450600182166000811461441b576001811461442c5761445f565b60ff1983168652818601935061445f565b61443585615516565b60005b8381101561445757815481890152600182019150602081019050614438565b838801955050505b50505092915050565b6000614475600f83615552565b91507f496e76616c6964206164647265737300000000000000000000000000000000006000830152602082019050919050565b60006144b5602b83615552565b91507f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008301527f74206f6620626f756e64730000000000000000000000000000000000000000006020830152604082019050919050565b600061451b603283615552565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b6000614581602683615552565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006145e7601c83615552565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b6000614627601183615552565b91507f496e76616c6964206973737565642069640000000000000000000000000000006000830152602082019050919050565b6000614667602e83615552565b91507f4f6e6c7920616e2060616c6c6f7765646020616464726573732063616e20636160008301527f6c6c2074686973206d6574686f640000000000000000000000000000000000006020830152604082019050919050565b60006146cd602483615552565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614733601983615552565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b6000614773601f83615552565b91507f45746865722076616c75652073656e74206973206e6f7420636f7272656374006000830152602082019050919050565b60006147b3603c83615552565b91507f4552433732314d657461646174613a207265636569766564206120555249207160008301527f7565727920666f722061206e6f6e6578697374656e7420746f6b656e000000006020830152604082019050919050565b6000614819602c83615552565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b600061487f603883615552565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b60006148e5602a83615552565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b600061494b602983615552565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b60006149b1602a83615552565b91507f42656e656669636961727920616c7265616479206f776e73206d617820616c6c60008301527f6f776564206d696e7473000000000000000000000000000000000000000000006020830152604082019050919050565b6000614a17602083615552565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b6000614a57602c83615552565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000614abd600583615563565b91507f2e6a736f6e0000000000000000000000000000000000000000000000000000006000830152600582019050919050565b6000614afd602083615552565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000614b3d600e83615552565b91507f47616d65206578686175737465640000000000000000000000000000000000006000830152602082019050919050565b6000614b7d602983615552565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000614be3603483615552565b91507f42656e6566696369617279206973206e6f74206f776e6572206f66206120437260008301527f7970746f61647a206f72204172636164654e46540000000000000000000000006020830152604082019050919050565b6000614c49602183615552565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614caf603183615552565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b6000614d15602083615552565b91507f596f752073686f756c6420736574206120646966666572656e742076616c75656000830152602082019050919050565b6000614d55601f83615552565b91507f43616e206e6f74206d6f6469667920616e206578697374696e672067616d65006000830152602082019050919050565b6000614d95602c83615552565b91507f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008301527f7574206f6620626f756e647300000000000000000000000000000000000000006020830152604082019050919050565b6000614dfb602583615552565b91507f4d61782069737375616e63652073686f756c642062652067726561746572207460008301527f68616e20300000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614e61600183615563565b91507f2f000000000000000000000000000000000000000000000000000000000000006000830152600182019050919050565b614e9d8161572e565b82525050565b6000614eaf8284614338565b915081905092915050565b6000614ec682856143e9565b9150614ed282846143e9565b91508190509392505050565b6000614eea82856143e9565b9150614ef582614e54565b9150614f018284614338565b9150614f0c82614ab0565b91508190509392505050565b6000602082019050614f2d6000830184614299565b92915050565b6000608082019050614f486000830187614299565b614f556020830186614299565b614f626040830185614e94565b8181036060830152614f7481846142c6565b905095945050505050565b6000602082019050614f9460008301846142a8565b92915050565b6000602082019050614faf60008301846142b7565b92915050565b6000604082019050614fca60008301856142b7565b8181036020830152614fdc81846142ff565b90509392505050565b6000604082019050614ffa60008301856142b7565b6150076020830184614e94565b9392505050565b6000602082019050818103600083015261502881846142ff565b905092915050565b6000604082019050818103600083015261504a81856142ff565b90506150596020830184614e94565b9392505050565b6000608082019050818103600083015261507a81876142ff565b90506150896020830186614e94565b6150966040830185614e94565b81810360608301526150a881846142ff565b905095945050505050565b600060408201905081810360008301526150cd8185614369565b905081810360208301526150e181846142ff565b90509392505050565b6000602082019050818103600083015261510381614468565b9050919050565b60006020820190508181036000830152615123816144a8565b9050919050565b600060208201905081810360008301526151438161450e565b9050919050565b6000602082019050818103600083015261516381614574565b9050919050565b60006020820190508181036000830152615183816145da565b9050919050565b600060208201905081810360008301526151a38161461a565b9050919050565b600060208201905081810360008301526151c38161465a565b9050919050565b600060208201905081810360008301526151e3816146c0565b9050919050565b6000602082019050818103600083015261520381614726565b9050919050565b6000602082019050818103600083015261522381614766565b9050919050565b60006020820190508181036000830152615243816147a6565b9050919050565b600060208201905081810360008301526152638161480c565b9050919050565b6000602082019050818103600083015261528381614872565b9050919050565b600060208201905081810360008301526152a3816148d8565b9050919050565b600060208201905081810360008301526152c38161493e565b9050919050565b600060208201905081810360008301526152e3816149a4565b9050919050565b6000602082019050818103600083015261530381614a0a565b9050919050565b6000602082019050818103600083015261532381614a4a565b9050919050565b6000602082019050818103600083015261534381614af0565b9050919050565b6000602082019050818103600083015261536381614b30565b9050919050565b6000602082019050818103600083015261538381614b70565b9050919050565b600060208201905081810360008301526153a381614bd6565b9050919050565b600060208201905081810360008301526153c381614c3c565b9050919050565b600060208201905081810360008301526153e381614ca2565b9050919050565b6000602082019050818103600083015261540381614d08565b9050919050565b6000602082019050818103600083015261542381614d48565b9050919050565b6000602082019050818103600083015261544381614d88565b9050919050565b6000602082019050818103600083015261546381614dee565b9050919050565b600060208201905061547f6000830184614e94565b92915050565b6000604051905081810181811067ffffffffffffffff821117156154ac576154ab61588f565b5b8060405250919050565b600067ffffffffffffffff8211156154d1576154d061588f565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff8211156155015761550061588f565b5b601f19601f8301169050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006155798261572e565b91506155848361572e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156155b9576155b8615802565b5b828201905092915050565b60006155cf82615738565b91506155da83615738565b92508260ff038211156155f0576155ef615802565b5b828201905092915050565b60006156068261572e565b91506156118361572e565b92508261562157615620615831565b5b828204905092915050565b60006156378261572e565b91506156428361572e565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561567b5761567a615802565b5b828202905092915050565b60006156918261572e565b915061569c8361572e565b9250828210156156af576156ae615802565b5b828203905092915050565b60006156c58261570e565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015615772578082015181840152602081019050615757565b83811115615781576000848401525b50505050565b6000600282049050600182168061579f57607f821691505b602082108114156157b3576157b2615860565b5b50919050565b60006157c48261572e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156157f7576157f6615802565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b6158d8816156ba565b81146158e357600080fd5b50565b6158ef816156cc565b81146158fa57600080fd5b50565b615906816156d8565b811461591157600080fd5b50565b61591d816156e2565b811461592857600080fd5b50565b6159348161572e565b811461593f57600080fd5b5056fe68747470733a2f2f6172636164656e6674732e636f6d2f635f6d657461646174612e6a736f6ea264697066735822122094a080023341a62bd9fb21c3e6065e6e7c284e1a755ce421e27f733ce46f92ca64736f6c63430008000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000b72bf6175ed6f8c0446a053bfaa4541474b6902800000000000000000000000000000000000000000000000000000000000001400000000000000000000000001cb1a5e65610aeff2551a50f76a87a7d3fb649c6000000000000000000000000a0c38108bbb0f5f2fb46a2019d7314cce38f3f22000000000000000000000000000000000000000000000000000000000000000b546f616452756e6e65727a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045444525a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002368747470733a2f2f617263616465746f6164732e6d7970696e6174612e636c6f75642f0000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): ToadRunnerz
Arg [1] : _symbol (string): TDRZ
Arg [2] : _operator (address): 0xB72BF6175eD6F8C0446a053BfaA4541474B69028
Arg [3] : _baseURI (string): https://arcadetoads.mypinata.cloud/
Arg [4] : _toadAddress (address): 0x1CB1A5e65610AEFF2551A50f76a87a7d3fB649C6
Arg [5] : _arcadeAddress (address): 0xA0c38108bBB0F5f2fB46a2019D7314Cce38f3f22
-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 000000000000000000000000b72bf6175ed6f8c0446a053bfaa4541474b69028
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [4] : 0000000000000000000000001cb1a5e65610aeff2551a50f76a87a7d3fb649c6
Arg [5] : 000000000000000000000000a0c38108bbb0f5f2fb46a2019d7314cce38f3f22
Arg [6] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [7] : 546f616452756e6e65727a000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [9] : 5444525a00000000000000000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000023
Arg [11] : 68747470733a2f2f617263616465746f6164732e6d7970696e6174612e636c6f
Arg [12] : 75642f0000000000000000000000000000000000000000000000000000000000
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.