Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
5,347 FR
Holders
581
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
3 FRLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ForestRanger
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; /* ____ ___ _________ ____ __ / / / / / |/ / ___/ / / __/ / // / /_/ / / (_ / /__/ _/ \___/\____/_/|_/\___/____/___/ */ contract ForestRanger is ERC721Enumerable, Ownable { using Address for address payable; using Strings for uint256; using Counters for Counters.Counter; Counters.Counter private _tokenIdCounterOG; Counters.Counter private _tokenIdCounterNormal; IERC20 public immutable _tigerCoin; struct RangeSpec { uint256 preEthPrice; uint256 publicEthPrice; uint256 preTigerPrice; uint256 publicTigerPrice; uint256 maxSupply; uint256 startTokenId; } enum Size { OG, Normal } enum Stage { NotStarted, FreeMint, PreSale, PublicSale } mapping (Size => RangeSpec) rangerSpecs; mapping (address => uint256) freeList; mapping (address => uint256) OGWl; mapping (address => uint256) NormalWl; uint256 public maxMintPerTx = 10; uint256 public maxMintPerWl = 10; uint256 public maxFreeMint = 1; uint256 public maxSupply = 9990; bool public revealed; string public metadataURI; Stage public currentStage = Stage.NotStarted; address public _signer; constructor(address signer, address tigerCoin) ERC721("ForestRanger", "FR") { rangerSpecs[Size.OG] = RangeSpec(0.05 ether, 0.06 ether, 4000000000 ether, 4800000000 ether, 4990, 1); rangerSpecs[Size.Normal] = RangeSpec(0.025 ether, 0.03 ether, 2000000000 ether, 2400000000 ether, 5000, 4991); _signer = signer; _tigerCoin = IERC20(tigerCoin); } function setMaxMintPerTx(uint256 _maxMintPerTx) external onlyOwner { maxMintPerTx = _maxMintPerTx; } function setMaxMintPerWl(uint256 _maxMintPerWl) external onlyOwner { maxMintPerWl = _maxMintPerWl; } function setRevealed(bool _revealed) external onlyOwner { revealed = _revealed; } function setMetadataURI(string memory uri) external onlyOwner { metadataURI = uri; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: Nonexistent token"); string memory baseURI = metadataURI; return revealed ? string(abi.encodePacked(baseURI, tokenId.toString(), ".json")): baseURI; } function setStage(Stage _stage) external onlyOwner { currentStage = _stage; } function getSpec(Size size) public view returns (RangeSpec memory) { return rangerSpecs[size]; } function setPrice( Size size, uint256 _preEthPrice, uint256 _publicEthPrice, uint256 _preTigerPrice, uint256 _publicTigerPrice ) external onlyOwner { rangerSpecs[size].preEthPrice = _preEthPrice; rangerSpecs[size].publicEthPrice = _publicEthPrice; rangerSpecs[size].preTigerPrice = _preTigerPrice; rangerSpecs[size].publicTigerPrice = _publicTigerPrice; } function setEthPrice( Size size, uint256 _preEthPrice, uint256 _publicEthPrice ) external onlyOwner { rangerSpecs[size].preEthPrice = _preEthPrice; rangerSpecs[size].publicEthPrice = _publicEthPrice; } function setTigerPrice( Size size, uint256 _preTigerPrice, uint256 _publicTigerPrice ) external onlyOwner { rangerSpecs[size].preTigerPrice = _preTigerPrice; rangerSpecs[size].publicTigerPrice = _publicTigerPrice; } modifier onlyEOA() { require(msg.sender == tx.origin, "no contracts please"); _; } function freeMint(bytes memory signature) external payable { require(msg.sender == tx.origin, "no contracts please"); require(currentStage == Stage.FreeMint, "free mint not start"); require(_signer == signatureWallet(msg.sender, signature), "not in white list"); require(freeList[msg.sender] == 0, "just once"); RangeSpec memory s = rangerSpecs[Size.Normal]; require( totalSupplyBySize(Size.Normal) + maxFreeMint <= s.maxSupply, "over size limit" ); freeList[msg.sender] = 1; _safeMintLoop(Size.Normal, maxFreeMint, msg.sender); } function preMintOG(uint256 amount,bool useEth,bytes memory signature) external payable { _preMint(Size.OG, amount, useEth, signature); _safeMintLoop(Size.OG, amount, msg.sender); } function publicMintOG(uint256 amount, bool useEth) external payable { _publicMint(Size.OG, amount, useEth); _safeMintLoop(Size.OG, amount, msg.sender); } function devOG(uint256 amount, address to) external onlyOwner { devMint(Size.OG, amount, to); } function preMintNormal(uint256 amount,bool useEth,bytes memory signature) external payable { _preMint(Size.Normal, amount, useEth, signature); _safeMintLoop(Size.Normal, amount, msg.sender); } function publicMintNormal(uint256 amount, bool useEth) external payable { _publicMint(Size.Normal, amount, useEth); _safeMintLoop(Size.Normal, amount, msg.sender); } function devNormal(uint256 amount, address to) external onlyOwner { devMint(Size.Normal, amount, to); } function devMint(Size size, uint256 amount, address to) internal onlyOwner { RangeSpec memory s = rangerSpecs[size]; require( totalSupplyBySize(size) + amount <= s.maxSupply, "over max supply" ); _safeMintLoop(size, amount, to); } function _preMint(Size size,uint256 amount,bool useEth, bytes memory signature) internal onlyEOA { require(currentStage == Stage.PreSale, "pre sale not start"); require(_signer == signatureWallet(msg.sender, signature), "not in white list"); require(amount <= maxMintPerTx, "over per tx limit"); RangeSpec memory s = rangerSpecs[size]; require(totalSupplyBySize(size) + amount <= s.maxSupply, "over size limit"); if (size == Size.OG) { require(amount + OGWl[msg.sender] <= maxMintPerWl, "over per wl limit"); OGWl[msg.sender] += amount; } else { require(amount + NormalWl[msg.sender] <= maxMintPerWl, "over per wl limit"); NormalWl[msg.sender] += amount; } if (useEth) { require(msg.value == s.preEthPrice * amount, "insufficient fund"); } else { require( _tigerCoin.transferFrom( msg.sender, address(this), s.preTigerPrice * amount ), "insufficient fund" ); } } function _publicMint(Size size, uint256 amount, bool useEth) internal onlyEOA { require(currentStage == Stage.PublicSale, "public sale not start"); require(amount <= maxMintPerTx, "over per tx limit"); RangeSpec memory s = rangerSpecs[size]; require( totalSupplyBySize(size) + amount <= s.maxSupply, "over size limit" ); if (useEth) { require( msg.value == s.publicEthPrice * amount, "insufficient fund" ); } else { require( _tigerCoin.transferFrom( msg.sender, address(this), s.publicTigerPrice * amount ), "insufficient fund" ); } } function signatureWallet(address sender, bytes memory signature) private pure returns (address){ bytes32 hash = keccak256( abi.encodePacked( "\x19Ethereum Signed Message:\n32", keccak256(abi.encodePacked(sender)) ) ); return ECDSA.recover(hash, signature); } function _safeMintLoop(Size size, uint256 amount, address to) internal { for (uint256 i = 0; i < amount; i++) { uint256 tokenId = totalSupplyBySize(size) + getSpec(size).startTokenId; increaseSupplyBySize(size); _safeMint(to, tokenId); } } function getCounter(Size size) private view returns (Counters.Counter storage) { if (size == Size.OG) { return _tokenIdCounterOG; } if (size == Size.Normal) { return _tokenIdCounterNormal; } revert("invalid size"); } function totalSupplyBySize(Size size) public view returns (uint256) { return getCounter(size).current(); } function increaseSupplyBySize(Size size) internal { getCounter(size).increment(); } function withdraw() external onlyOwner { payable(msg.sender).sendValue(address(this).balance); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) 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 // OpenZeppelin Contracts (last updated v4.7.3) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) 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); /** * @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 // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"address","name":"tigerCoin","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"_signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_tigerCoin","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentStage","outputs":[{"internalType":"enum ForestRanger.Stage","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"devNormal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"devOG","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"freeMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum ForestRanger.Size","name":"size","type":"uint8"}],"name":"getSpec","outputs":[{"components":[{"internalType":"uint256","name":"preEthPrice","type":"uint256"},{"internalType":"uint256","name":"publicEthPrice","type":"uint256"},{"internalType":"uint256","name":"preTigerPrice","type":"uint256"},{"internalType":"uint256","name":"publicTigerPrice","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"startTokenId","type":"uint256"}],"internalType":"struct ForestRanger.RangeSpec","name":"","type":"tuple"}],"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":[],"name":"maxFreeMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintPerWl","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","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":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"useEth","type":"bool"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"preMintNormal","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"useEth","type":"bool"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"preMintOG","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"useEth","type":"bool"}],"name":"publicMintNormal","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"useEth","type":"bool"}],"name":"publicMintOG","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum ForestRanger.Size","name":"size","type":"uint8"},{"internalType":"uint256","name":"_preEthPrice","type":"uint256"},{"internalType":"uint256","name":"_publicEthPrice","type":"uint256"}],"name":"setEthPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMintPerTx","type":"uint256"}],"name":"setMaxMintPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMintPerWl","type":"uint256"}],"name":"setMaxMintPerWl","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setMetadataURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum ForestRanger.Size","name":"size","type":"uint8"},{"internalType":"uint256","name":"_preEthPrice","type":"uint256"},{"internalType":"uint256","name":"_publicEthPrice","type":"uint256"},{"internalType":"uint256","name":"_preTigerPrice","type":"uint256"},{"internalType":"uint256","name":"_publicTigerPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_revealed","type":"bool"}],"name":"setRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum ForestRanger.Stage","name":"_stage","type":"uint8"}],"name":"setStage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum ForestRanger.Size","name":"size","type":"uint8"},{"internalType":"uint256","name":"_preTigerPrice","type":"uint256"},{"internalType":"uint256","name":"_publicTigerPrice","type":"uint256"}],"name":"setTigerPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum ForestRanger.Size","name":"size","type":"uint8"}],"name":"totalSupplyBySize","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
60a0604052600a601181905560125560016013556127066014556017805460ff191690553480156200003057600080fd5b50604051620040a1380380620040a1833981016040819052620000539162000492565b604080518082018252600c81526b2337b932b9ba2930b733b2b960a11b602080830191825283518085019094526002845261232960f11b908401528151919291620000a191600091620003cf565b508051620000b7906001906020840190620003cf565b505050620000d4620000ce6200037960201b60201c565b6200037d565b6040805160c0808201835266b1a2bc2ec50000825266d529ae9e86000060208084019182526b0cecb8f27f4200f3a00000008486019081526b0f8277896582678ac0000000606080870191825261137e6080808901918252600160a0808b018281526000808052600d808b529c517f81955a0a11e65eac625c29e8882660bae4e165a75d72780094acae8ece9a29ee5599517f81955a0a11e65eac625c29e8882660bae4e165a75d72780094acae8ece9a29ef5596517f81955a0a11e65eac625c29e8882660bae4e165a75d72780094acae8ece9a29f05594517f81955a0a11e65eac625c29e8882660bae4e165a75d72780094acae8ece9a29f15591517f81955a0a11e65eac625c29e8882660bae4e165a75d72780094acae8ece9a29f25593517f81955a0a11e65eac625c29e8882660bae4e165a75d72780094acae8ece9a29f355885196870189526658d15e176280008752666a94d74f4300008786019081526b06765c793fa10079d0000000998801998a526b07c13bc4b2c133c56000000092880192835261138888860190815261137f948901948552919096529690935293517ffd54ff1ed53f34a900b24c5ba64f85761163b5d82d98a47b9bd80e45466993c55591517ffd54ff1ed53f34a900b24c5ba64f85761163b5d82d98a47b9bd80e45466993c65593517ffd54ff1ed53f34a900b24c5ba64f85761163b5d82d98a47b9bd80e45466993c75592517ffd54ff1ed53f34a900b24c5ba64f85761163b5d82d98a47b9bd80e45466993c85590517ffd54ff1ed53f34a900b24c5ba64f85761163b5d82d98a47b9bd80e45466993c955517ffd54ff1ed53f34a900b24c5ba64f85761163b5d82d98a47b9bd80e45466993ca5560178054610100600160a81b0319166101006001600160a01b03958616021790559116905262000506565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620003dd90620004ca565b90600052602060002090601f0160209004810192826200040157600085556200044c565b82601f106200041c57805160ff19168380011785556200044c565b828001600101855582156200044c579182015b828111156200044c5782518255916020019190600101906200042f565b506200045a9291506200045e565b5090565b5b808211156200045a57600081556001016200045f565b80516001600160a01b03811681146200048d57600080fd5b919050565b60008060408385031215620004a657600080fd5b620004b18362000475565b9150620004c16020840162000475565b90509250929050565b600181811c90821680620004df57607f821691505b6020821081036200050057634e487b7160e01b600052602260045260246000fd5b50919050565b608051613b71620005306000396000818161056701528181611eb5015261258b0152613b716000f3fe6080604052600436106102fd5760003560e01c806370a082311161018f578063b88d4fde116100e1578063de7fcb1d1161008a578063e985e9c511610064578063e985e9c514610861578063f2fde38b146108aa578063f8bc47f7146108ca57600080fd5b8063de7fcb1d1461080b578063deab767a14610821578063e0a808531461084157600080fd5b8063cc621ca3116100bb578063cc621ca3146107bf578063ce3cd997146107d5578063d5abeb01146107f557600080fd5b8063b88d4fde1461075a578063c87b56dd1461077a578063ca29e8c81461079a57600080fd5b80638da5cb5b11610143578063a4513e921161011d578063a4513e9214610711578063a591252d14610724578063aa6d652d1461073a57600080fd5b80638da5cb5b146106be57806395d89b41146106dc578063a22cb465146106f157600080fd5b8063750521f511610174578063750521f51461066b5780637be9ebcd1461068b5780637ed2a151146106ab57600080fd5b806370a0823114610636578063715018a61461065657600080fd5b80633ccfd60b1161025357806353a631c1116101fc578063616cdb1e116101d6578063616cdb1e146105e35780636352211e146106035780636dcd51491461062357600080fd5b806353a631c1146105895780635b7b27a0146105a95780635bf5d54c146105bc57600080fd5b8063518302271161022d578063518302271461051b578063521403ed1461053557806352e75b3b1461055557600080fd5b80633ccfd60b146104c657806342842e0e146104db5780634f6ccce7146104fb57600080fd5b806318160ddd116102b557806326af58921161028f57806326af5892146104275780632f745c591461043a57806336795ebb1461045a57600080fd5b806318160ddd146103c8578063182c8d0e146103e757806323b872dd1461040757600080fd5b806306fdde03116102e657806306fdde0314610359578063081812fc1461036e578063095ea7b3146103a657600080fd5b806301ffc9a71461030257806303ee438c14610337575b600080fd5b34801561030e57600080fd5b5061032261031d366004613449565b6108ea565b60405190151581526020015b60405180910390f35b34801561034357600080fd5b5061034c61092e565b60405161032e91906134be565b34801561036557600080fd5b5061034c6109bc565b34801561037a57600080fd5b5061038e6103893660046134d1565b610a4e565b6040516001600160a01b03909116815260200161032e565b3480156103b257600080fd5b506103c66103c1366004613506565b610a75565b005b3480156103d457600080fd5b506008545b60405190815260200161032e565b3480156103f357600080fd5b506103c66104023660046134d1565b610bab565b34801561041357600080fd5b506103c6610422366004613530565b610bb8565b6103c661043536600461357a565b610c3f565b34801561044657600080fd5b506103d9610455366004613506565b610c5b565b34801561046657600080fd5b5061047a6104753660046135b9565b610d03565b60405161032e9190600060c082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015292915050565b3480156104d257600080fd5b506103c6610dbf565b3480156104e757600080fd5b506103c66104f6366004613530565b610dd3565b34801561050757600080fd5b506103d96105163660046134d1565b610dee565b34801561052757600080fd5b506015546103229060ff1681565b34801561054157600080fd5b506103c66105503660046135d4565b610e92565b34801561056157600080fd5b5061038e7f000000000000000000000000000000000000000000000000000000000000000081565b34801561059557600080fd5b506103d96105a43660046135b9565b610f94565b6103c66105b736600461357a565b610fa6565b3480156105c857600080fd5b506017546105d69060ff1681565b60405161032e919061362c565b3480156105ef57600080fd5b506103c66105fe3660046134d1565b610fbe565b34801561060f57600080fd5b5061038e61061e3660046134d1565b610fcb565b6103c6610631366004613700565b611030565b34801561064257600080fd5b506103d9610651366004613759565b611049565b34801561066257600080fd5b506103c66110e3565b34801561067757600080fd5b506103c6610686366004613774565b6110f5565b34801561069757600080fd5b506103c66106a63660046137bd565b611110565b6103c66106b9366004613700565b611124565b3480156106ca57600080fd5b50600a546001600160a01b031661038e565b3480156106e857600080fd5b5061034c61113d565b3480156106fd57600080fd5b506103c661070c3660046137e9565b61114c565b6103c661071f366004613815565b611157565b34801561073057600080fd5b506103d960135481565b34801561074657600080fd5b506103c661075536600461384a565b611453565b34801561076657600080fd5b506103c661077536600461387d565b6114d9565b34801561078657600080fd5b5061034c6107953660046134d1565b611567565b3480156107a657600080fd5b5060175461038e9061010090046001600160a01b031681565b3480156107cb57600080fd5b506103d960125481565b3480156107e157600080fd5b506103c66107f03660046138e5565b6116ca565b34801561080157600080fd5b506103d960145481565b34801561081757600080fd5b506103d960115481565b34801561082d57600080fd5b506103c661083c3660046137bd565b6116f9565b34801561084d57600080fd5b506103c661085c366004613906565b61170d565b34801561086d57600080fd5b5061032261087c366004613923565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156108b657600080fd5b506103c66108c5366004613759565b611728565b3480156108d657600080fd5b506103c66108e536600461384a565b6117b8565b60006001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000148061092857506109288261183e565b92915050565b6016805461093b9061394d565b80601f01602080910402602001604051908101604052809291908181526020018280546109679061394d565b80156109b45780601f10610989576101008083540402835291602001916109b4565b820191906000526020600020905b81548152906001019060200180831161099757829003601f168201915b505050505081565b6060600080546109cb9061394d565b80601f01602080910402602001604051908101604052809291908181526020018280546109f79061394d565b8015610a445780601f10610a1957610100808354040283529160200191610a44565b820191906000526020600020905b815481529060010190602001808311610a2757829003601f168201915b5050505050905090565b6000610a59826118d9565b506000908152600460205260409020546001600160a01b031690565b6000610a8082610fcb565b9050806001600160a01b0316836001600160a01b031603610b0e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b336001600160a01b0382161480610b2a5750610b2a813361087c565b610b9c5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610b05565b610ba6838361193d565b505050565b610bb36119b8565b601255565b610bc23382611a12565b610c345760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610b05565b610ba6838383611a91565b610c4b60018383611c76565b610c5760018333611fac565b5050565b6000610c6683611049565b8210610cda5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610b05565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b610d3c6040518060c001604052806000815260200160008152602001600081526020016000815260200160008152602001600081525090565b600d6000836001811115610d5257610d52613616565b6001811115610d6357610d63613616565b81526020019081526020016000206040518060c001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820154815250509050919050565b610dc76119b8565b610dd13347612001565b565b610ba6838383604051806020016040528060008152506114d9565b6000610df960085490565b8210610e6d5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610b05565b60088281548110610e8057610e80613987565b90600052602060002001549050919050565b610e9a6119b8565b83600d6000876001811115610eb157610eb1613616565b6001811115610ec257610ec2613616565b81526020019081526020016000206000018190555082600d6000876001811115610eee57610eee613616565b6001811115610eff57610eff613616565b81526020019081526020016000206001018190555081600d6000876001811115610f2b57610f2b613616565b6001811115610f3c57610f3c613616565b81526020019081526020016000206002018190555080600d6000876001811115610f6857610f68613616565b6001811115610f7957610f79613616565b81526020810191909152604001600020600301555050505050565b6000610928610fa28361211a565b5490565b610fb260008383611c76565b610c5760008333611fac565b610fc66119b8565b601155565b6000818152600260205260408120546001600160a01b0316806109285760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610b05565b61103d60008484846121a5565b610ba660008433611fac565b60006001600160a01b0382166110c75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401610b05565b506001600160a01b031660009081526003602052604090205490565b6110eb6119b8565b610dd16000612689565b6110fd6119b8565b8051610c5790601690602084019061339a565b6111186119b8565b610c57600183836126e8565b61113160018484846121a5565b610ba660018433611fac565b6060600180546109cb9061394d565b610c573383836127e2565b3332146111a65760405162461bcd60e51b815260206004820152601360248201527f6e6f20636f6e74726163747320706c65617365000000000000000000000000006044820152606401610b05565b600160175460ff1660038111156111bf576111bf613616565b1461120c5760405162461bcd60e51b815260206004820152601360248201527f66726565206d696e74206e6f74207374617274000000000000000000000000006044820152606401610b05565b61121633826128b0565b60175461010090046001600160a01b039081169116146112785760405162461bcd60e51b815260206004820152601160248201527f6e6f7420696e207768697465206c6973740000000000000000000000000000006044820152606401610b05565b336000908152600e6020526040902054156112d55760405162461bcd60e51b815260206004820152600960248201527f6a757374206f6e636500000000000000000000000000000000000000000000006044820152606401610b05565b60016000819052600d60209081526040805160c0810182527ffd54ff1ed53f34a900b24c5ba64f85761163b5d82d98a47b9bd80e45466993c55481527ffd54ff1ed53f34a900b24c5ba64f85761163b5d82d98a47b9bd80e45466993c654928101929092527ffd54ff1ed53f34a900b24c5ba64f85761163b5d82d98a47b9bd80e45466993c754908201527ffd54ff1ed53f34a900b24c5ba64f85761163b5d82d98a47b9bd80e45466993c85460608201527ffd54ff1ed53f34a900b24c5ba64f85761163b5d82d98a47b9bd80e45466993c954608082018190527ffd54ff1ed53f34a900b24c5ba64f85761163b5d82d98a47b9bd80e45466993ca5460a083015260135491929091906113e890610f94565b6113f291906139b3565b11156114325760405162461bcd60e51b815260206004820152600f60248201526e1bdd995c881cda5e99481b1a5b5a5d608a1b6044820152606401610b05565b336000818152600e60205260409020600190819055601354610c5792611fac565b61145b6119b8565b81600d600085600181111561147257611472613616565b600181111561148357611483613616565b81526020019081526020016000206002018190555080600d60008560018111156114af576114af613616565b60018111156114c0576114c0613616565b8152602081019190915260400160002060030155505050565b6114e33383611a12565b6115555760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610b05565b6115618484848461293f565b50505050565b6000818152600260205260409020546060906001600160a01b03166115f45760405162461bcd60e51b815260206004820152602160248201527f4552433732314d657461646174613a204e6f6e6578697374656e7420746f6b6560448201527f6e000000000000000000000000000000000000000000000000000000000000006064820152608401610b05565b6000601680546116039061394d565b80601f016020809104026020016040519081016040528092919081815260200182805461162f9061394d565b801561167c5780601f106116515761010080835404028352916020019161167c565b820191906000526020600020905b81548152906001019060200180831161165f57829003601f168201915b50506015549394505060ff9092169150611698905057806116c3565b806116a2846129bd565b6040516020016116b39291906139cb565b6040516020818303038152906040525b9392505050565b6116d26119b8565b6017805482919060ff191660018360038111156116f1576116f1613616565b021790555050565b6117016119b8565b610c57600083836126e8565b6117156119b8565b6015805460ff1916911515919091179055565b6117306119b8565b6001600160a01b0381166117ac5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b05565b6117b581612689565b50565b6117c06119b8565b81600d60008560018111156117d7576117d7613616565b60018111156117e8576117e8613616565b81526020019081526020016000206000018190555080600d600085600181111561181457611814613616565b600181111561182557611825613616565b8152602081019190915260400160002060010155505050565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806118a157506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061092857507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610928565b6000818152600260205260409020546001600160a01b03166117b55760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610b05565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038416908117909155819061197f82610fcb565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600a546001600160a01b03163314610dd15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b05565b600080611a1e83610fcb565b9050806001600160a01b0316846001600160a01b03161480611a6557506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80611a895750836001600160a01b0316611a7e84610a4e565b6001600160a01b0316145b949350505050565b826001600160a01b0316611aa482610fcb565b6001600160a01b031614611b205760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610b05565b6001600160a01b038216611b9b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610b05565b611ba6838383612af2565b611bb160008261193d565b6001600160a01b0383166000908152600360205260408120805460019290611bda908490613a22565b90915550506001600160a01b0382166000908152600360205260408120805460019290611c089084906139b3565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b333214611cc55760405162461bcd60e51b815260206004820152601360248201527f6e6f20636f6e74726163747320706c65617365000000000000000000000000006044820152606401610b05565b600360175460ff166003811115611cde57611cde613616565b14611d2b5760405162461bcd60e51b815260206004820152601560248201527f7075626c69632073616c65206e6f7420737461727400000000000000000000006044820152606401610b05565b601154821115611d7d5760405162461bcd60e51b815260206004820152601160248201527f6f76657220706572207478206c696d69740000000000000000000000000000006044820152606401610b05565b6000600d6000856001811115611d9557611d95613616565b6001811115611da657611da6613616565b81526020019081526020016000206040518060c001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820154815250509050806080015183611e0c86610f94565b611e1691906139b3565b1115611e565760405162461bcd60e51b815260206004820152600f60248201526e1bdd995c881cda5e99481b1a5b5a5d608a1b6044820152606401610b05565b8115611eb357828160200151611e6c9190613a39565b3414611eae5760405162461bcd60e51b81526020600482015260116024820152701a5b9cdd59999a58da595b9d08199d5b99607a1b6044820152606401610b05565b611561565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166323b872dd3330868560600151611ef49190613a39565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af1158015611f48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f6c9190613a58565b6115615760405162461bcd60e51b81526020600482015260116024820152701a5b9cdd59999a58da595b9d08199d5b99607a1b6044820152606401610b05565b60005b82811015611561576000611fc285610d03565b60a00151611fcf86610f94565b611fd991906139b3565b9050611fe485612baa565b611fee8382612bbf565b5080611ff981613a75565b915050611faf565b804710156120515760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610b05565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461209e576040519150601f19603f3d011682016040523d82523d6000602084013e6120a3565b606091505b5050905080610ba65760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610b05565b60008082600181111561212f5761212f613616565b0361213c5750600b919050565b600182600181111561215057612150613616565b0361215d5750600c919050565b60405162461bcd60e51b815260206004820152600c60248201527f696e76616c69642073697a6500000000000000000000000000000000000000006044820152606401610b05565b3332146121f45760405162461bcd60e51b815260206004820152601360248201527f6e6f20636f6e74726163747320706c65617365000000000000000000000000006044820152606401610b05565b600260175460ff16600381111561220d5761220d613616565b1461225a5760405162461bcd60e51b815260206004820152601260248201527f7072652073616c65206e6f7420737461727400000000000000000000000000006044820152606401610b05565b61226433826128b0565b60175461010090046001600160a01b039081169116146122c65760405162461bcd60e51b815260206004820152601160248201527f6e6f7420696e207768697465206c6973740000000000000000000000000000006044820152606401610b05565b6011548311156123185760405162461bcd60e51b815260206004820152601160248201527f6f76657220706572207478206c696d69740000000000000000000000000000006044820152606401610b05565b6000600d600086600181111561233057612330613616565b600181111561234157612341613616565b81526020019081526020016000206040518060c0016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820154815260200160058201548152505090508060800151846123a787610f94565b6123b191906139b3565b11156123f15760405162461bcd60e51b815260206004820152600f60248201526e1bdd995c881cda5e99481b1a5b5a5d608a1b6044820152606401610b05565b600085600181111561240557612405613616565b0361249f57601254336000908152600f602052604090205461242790866139b3565b11156124755760405162461bcd60e51b815260206004820152601160248201527f6f7665722070657220776c206c696d69740000000000000000000000000000006044820152606401610b05565b336000908152600f6020526040812080548692906124949084906139b3565b9091555061252f9050565b601254336000908152601060205260409020546124bc90866139b3565b111561250a5760405162461bcd60e51b815260206004820152601160248201527f6f7665722070657220776c206c696d69740000000000000000000000000000006044820152606401610b05565b33600090815260106020526040812080548692906125299084906139b3565b90915550505b8215612589578051612542908590613a39565b34146125845760405162461bcd60e51b81526020600482015260116024820152701a5b9cdd59999a58da595b9d08199d5b99607a1b6044820152606401610b05565b612682565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166323b872dd33308785604001516125ca9190613a39565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af115801561261e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126429190613a58565b6126825760405162461bcd60e51b81526020600482015260116024820152701a5b9cdd59999a58da595b9d08199d5b99607a1b6044820152606401610b05565b5050505050565b600a80546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6126f06119b8565b6000600d600085600181111561270857612708613616565b600181111561271957612719613616565b81526020019081526020016000206040518060c00160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152602001600582015481525050905080608001518361277f86610f94565b61278991906139b3565b11156127d75760405162461bcd60e51b815260206004820152600f60248201527f6f766572206d617820737570706c7900000000000000000000000000000000006044820152606401610b05565b611561848484611fac565b816001600160a01b0316836001600160a01b0316036128435760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b05565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6040516bffffffffffffffffffffffff19606084901b166020820152600090819060340160408051601f198184030181529082905280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000091830191909152603c820152605c01604051602081830303815290604052805190602001209050611a898184612bd9565b61294a848484611a91565b61295684848484612bfd565b6115615760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b05565b606081600003612a0057505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612a2a5780612a1481613a75565b9150612a239050600a83613aa4565b9150612a04565b60008167ffffffffffffffff811115612a4557612a45613654565b6040519080825280601f01601f191660200182016040528015612a6f576020820181803683370190505b5090505b8415611a8957612a84600183613a22565b9150612a91600a86613ab8565b612a9c9060306139b3565b60f81b818381518110612ab157612ab1613987565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612aeb600a86613aa4565b9450612a73565b6001600160a01b038316612b4d57612b4881600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612b70565b816001600160a01b0316836001600160a01b031614612b7057612b708382612d49565b6001600160a01b038216612b8757610ba681612de6565b826001600160a01b0316826001600160a01b031614610ba657610ba68282612e95565b6117b5612bb68261211a565b80546001019055565b610c57828260405180602001604052806000815250612ed9565b6000806000612be88585612f57565b91509150612bf581612f9c565b509392505050565b60006001600160a01b0384163b15612d3e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612c41903390899088908890600401613acc565b6020604051808303816000875af1925050508015612c7c575060408051601f3d908101601f19168201909252612c7991810190613b08565b60015b612d24573d808015612caa576040519150601f19603f3d011682016040523d82523d6000602084013e612caf565b606091505b508051600003612d1c5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b05565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a89565b506001949350505050565b60006001612d5684611049565b612d609190613a22565b600083815260076020526040902054909150808214612db3576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612df890600190613a22565b60008381526009602052604081205460088054939450909284908110612e2057612e20613987565b906000526020600020015490508060088381548110612e4157612e41613987565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612e7957612e79613b25565b6001900381819060005260206000200160009055905550505050565b6000612ea083611049565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b612ee38383613152565b612ef06000848484612bfd565b610ba65760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b05565b6000808251604103612f8d5760208301516040840151606085015160001a612f81878285856132ad565b94509450505050612f95565b506000905060025b9250929050565b6000816004811115612fb057612fb0613616565b03612fb85750565b6001816004811115612fcc57612fcc613616565b036130195760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610b05565b600281600481111561302d5761302d613616565b0361307a5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610b05565b600381600481111561308e5761308e613616565b036130e65760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610b05565b60048160048111156130fa576130fa613616565b036117b55760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610b05565b6001600160a01b0382166131a85760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b05565b6000818152600260205260409020546001600160a01b03161561320d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b05565b61321960008383612af2565b6001600160a01b03821660009081526003602052604081208054600192906132429084906139b3565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156132e45750600090506003613391565b8460ff16601b141580156132fc57508460ff16601c14155b1561330d5750600090506004613391565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613361573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661338a57600060019250925050613391565b9150600090505b94509492505050565b8280546133a69061394d565b90600052602060002090601f0160209004810192826133c8576000855561340e565b82601f106133e157805160ff191683800117855561340e565b8280016001018555821561340e579182015b8281111561340e5782518255916020019190600101906133f3565b5061341a92915061341e565b5090565b5b8082111561341a576000815560010161341f565b6001600160e01b0319811681146117b557600080fd5b60006020828403121561345b57600080fd5b81356116c381613433565b60005b83811015613481578181015183820152602001613469565b838111156115615750506000910152565b600081518084526134aa816020860160208601613466565b601f01601f19169290920160200192915050565b6020815260006116c36020830184613492565b6000602082840312156134e357600080fd5b5035919050565b80356001600160a01b038116811461350157600080fd5b919050565b6000806040838503121561351957600080fd5b613522836134ea565b946020939093013593505050565b60008060006060848603121561354557600080fd5b61354e846134ea565b925061355c602085016134ea565b9150604084013590509250925092565b80151581146117b557600080fd5b6000806040838503121561358d57600080fd5b82359150602083013561359f8161356c565b809150509250929050565b80356002811061350157600080fd5b6000602082840312156135cb57600080fd5b6116c3826135aa565b600080600080600060a086880312156135ec57600080fd5b6135f5866135aa565b97602087013597506040870135966060810135965060800135945092505050565b634e487b7160e01b600052602160045260246000fd5b602081016004831061364e57634e487b7160e01b600052602160045260246000fd5b91905290565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561368557613685613654565b604051601f8501601f19908116603f011681019082821181831017156136ad576136ad613654565b816040528093508581528686860111156136c657600080fd5b858560208301376000602087830101525050509392505050565b600082601f8301126136f157600080fd5b6116c38383356020850161366a565b60008060006060848603121561371557600080fd5b8335925060208401356137278161356c565b9150604084013567ffffffffffffffff81111561374357600080fd5b61374f868287016136e0565b9150509250925092565b60006020828403121561376b57600080fd5b6116c3826134ea565b60006020828403121561378657600080fd5b813567ffffffffffffffff81111561379d57600080fd5b8201601f810184136137ae57600080fd5b611a898482356020840161366a565b600080604083850312156137d057600080fd5b823591506137e0602084016134ea565b90509250929050565b600080604083850312156137fc57600080fd5b613805836134ea565b9150602083013561359f8161356c565b60006020828403121561382757600080fd5b813567ffffffffffffffff81111561383e57600080fd5b611a89848285016136e0565b60008060006060848603121561385f57600080fd5b613868846135aa565b95602085013595506040909401359392505050565b6000806000806080858703121561389357600080fd5b61389c856134ea565b93506138aa602086016134ea565b925060408501359150606085013567ffffffffffffffff8111156138cd57600080fd5b6138d9878288016136e0565b91505092959194509250565b6000602082840312156138f757600080fd5b8135600481106116c357600080fd5b60006020828403121561391857600080fd5b81356116c38161356c565b6000806040838503121561393657600080fd5b61393f836134ea565b91506137e0602084016134ea565b600181811c9082168061396157607f821691505b60208210810361398157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082198211156139c6576139c661399d565b500190565b600083516139dd818460208801613466565b8351908301906139f1818360208801613466565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b600082821015613a3457613a3461399d565b500390565b6000816000190483118215151615613a5357613a5361399d565b500290565b600060208284031215613a6a57600080fd5b81516116c38161356c565b600060018201613a8757613a8761399d565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082613ab357613ab3613a8e565b500490565b600082613ac757613ac7613a8e565b500690565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613afe6080830184613492565b9695505050505050565b600060208284031215613b1a57600080fd5b81516116c381613433565b634e487b7160e01b600052603160045260246000fdfea26469706673582212208e25721d3d3ffcd7e6c322476abce529b55993b60db07af7c0b3b6c7cde92ad964736f6c634300080d0033000000000000000000000000eafb2019a8e7ddfb52763d6b0d49f53983bc0764000000000000000000000000b83c27805aaca5c7082eb45c868d955cf04c337f
Deployed Bytecode
0x6080604052600436106102fd5760003560e01c806370a082311161018f578063b88d4fde116100e1578063de7fcb1d1161008a578063e985e9c511610064578063e985e9c514610861578063f2fde38b146108aa578063f8bc47f7146108ca57600080fd5b8063de7fcb1d1461080b578063deab767a14610821578063e0a808531461084157600080fd5b8063cc621ca3116100bb578063cc621ca3146107bf578063ce3cd997146107d5578063d5abeb01146107f557600080fd5b8063b88d4fde1461075a578063c87b56dd1461077a578063ca29e8c81461079a57600080fd5b80638da5cb5b11610143578063a4513e921161011d578063a4513e9214610711578063a591252d14610724578063aa6d652d1461073a57600080fd5b80638da5cb5b146106be57806395d89b41146106dc578063a22cb465146106f157600080fd5b8063750521f511610174578063750521f51461066b5780637be9ebcd1461068b5780637ed2a151146106ab57600080fd5b806370a0823114610636578063715018a61461065657600080fd5b80633ccfd60b1161025357806353a631c1116101fc578063616cdb1e116101d6578063616cdb1e146105e35780636352211e146106035780636dcd51491461062357600080fd5b806353a631c1146105895780635b7b27a0146105a95780635bf5d54c146105bc57600080fd5b8063518302271161022d578063518302271461051b578063521403ed1461053557806352e75b3b1461055557600080fd5b80633ccfd60b146104c657806342842e0e146104db5780634f6ccce7146104fb57600080fd5b806318160ddd116102b557806326af58921161028f57806326af5892146104275780632f745c591461043a57806336795ebb1461045a57600080fd5b806318160ddd146103c8578063182c8d0e146103e757806323b872dd1461040757600080fd5b806306fdde03116102e657806306fdde0314610359578063081812fc1461036e578063095ea7b3146103a657600080fd5b806301ffc9a71461030257806303ee438c14610337575b600080fd5b34801561030e57600080fd5b5061032261031d366004613449565b6108ea565b60405190151581526020015b60405180910390f35b34801561034357600080fd5b5061034c61092e565b60405161032e91906134be565b34801561036557600080fd5b5061034c6109bc565b34801561037a57600080fd5b5061038e6103893660046134d1565b610a4e565b6040516001600160a01b03909116815260200161032e565b3480156103b257600080fd5b506103c66103c1366004613506565b610a75565b005b3480156103d457600080fd5b506008545b60405190815260200161032e565b3480156103f357600080fd5b506103c66104023660046134d1565b610bab565b34801561041357600080fd5b506103c6610422366004613530565b610bb8565b6103c661043536600461357a565b610c3f565b34801561044657600080fd5b506103d9610455366004613506565b610c5b565b34801561046657600080fd5b5061047a6104753660046135b9565b610d03565b60405161032e9190600060c082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015292915050565b3480156104d257600080fd5b506103c6610dbf565b3480156104e757600080fd5b506103c66104f6366004613530565b610dd3565b34801561050757600080fd5b506103d96105163660046134d1565b610dee565b34801561052757600080fd5b506015546103229060ff1681565b34801561054157600080fd5b506103c66105503660046135d4565b610e92565b34801561056157600080fd5b5061038e7f000000000000000000000000b83c27805aaca5c7082eb45c868d955cf04c337f81565b34801561059557600080fd5b506103d96105a43660046135b9565b610f94565b6103c66105b736600461357a565b610fa6565b3480156105c857600080fd5b506017546105d69060ff1681565b60405161032e919061362c565b3480156105ef57600080fd5b506103c66105fe3660046134d1565b610fbe565b34801561060f57600080fd5b5061038e61061e3660046134d1565b610fcb565b6103c6610631366004613700565b611030565b34801561064257600080fd5b506103d9610651366004613759565b611049565b34801561066257600080fd5b506103c66110e3565b34801561067757600080fd5b506103c6610686366004613774565b6110f5565b34801561069757600080fd5b506103c66106a63660046137bd565b611110565b6103c66106b9366004613700565b611124565b3480156106ca57600080fd5b50600a546001600160a01b031661038e565b3480156106e857600080fd5b5061034c61113d565b3480156106fd57600080fd5b506103c661070c3660046137e9565b61114c565b6103c661071f366004613815565b611157565b34801561073057600080fd5b506103d960135481565b34801561074657600080fd5b506103c661075536600461384a565b611453565b34801561076657600080fd5b506103c661077536600461387d565b6114d9565b34801561078657600080fd5b5061034c6107953660046134d1565b611567565b3480156107a657600080fd5b5060175461038e9061010090046001600160a01b031681565b3480156107cb57600080fd5b506103d960125481565b3480156107e157600080fd5b506103c66107f03660046138e5565b6116ca565b34801561080157600080fd5b506103d960145481565b34801561081757600080fd5b506103d960115481565b34801561082d57600080fd5b506103c661083c3660046137bd565b6116f9565b34801561084d57600080fd5b506103c661085c366004613906565b61170d565b34801561086d57600080fd5b5061032261087c366004613923565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156108b657600080fd5b506103c66108c5366004613759565b611728565b3480156108d657600080fd5b506103c66108e536600461384a565b6117b8565b60006001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000148061092857506109288261183e565b92915050565b6016805461093b9061394d565b80601f01602080910402602001604051908101604052809291908181526020018280546109679061394d565b80156109b45780601f10610989576101008083540402835291602001916109b4565b820191906000526020600020905b81548152906001019060200180831161099757829003601f168201915b505050505081565b6060600080546109cb9061394d565b80601f01602080910402602001604051908101604052809291908181526020018280546109f79061394d565b8015610a445780601f10610a1957610100808354040283529160200191610a44565b820191906000526020600020905b815481529060010190602001808311610a2757829003601f168201915b5050505050905090565b6000610a59826118d9565b506000908152600460205260409020546001600160a01b031690565b6000610a8082610fcb565b9050806001600160a01b0316836001600160a01b031603610b0e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b336001600160a01b0382161480610b2a5750610b2a813361087c565b610b9c5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610b05565b610ba6838361193d565b505050565b610bb36119b8565b601255565b610bc23382611a12565b610c345760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610b05565b610ba6838383611a91565b610c4b60018383611c76565b610c5760018333611fac565b5050565b6000610c6683611049565b8210610cda5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610b05565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b610d3c6040518060c001604052806000815260200160008152602001600081526020016000815260200160008152602001600081525090565b600d6000836001811115610d5257610d52613616565b6001811115610d6357610d63613616565b81526020019081526020016000206040518060c001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820154815250509050919050565b610dc76119b8565b610dd13347612001565b565b610ba6838383604051806020016040528060008152506114d9565b6000610df960085490565b8210610e6d5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610b05565b60088281548110610e8057610e80613987565b90600052602060002001549050919050565b610e9a6119b8565b83600d6000876001811115610eb157610eb1613616565b6001811115610ec257610ec2613616565b81526020019081526020016000206000018190555082600d6000876001811115610eee57610eee613616565b6001811115610eff57610eff613616565b81526020019081526020016000206001018190555081600d6000876001811115610f2b57610f2b613616565b6001811115610f3c57610f3c613616565b81526020019081526020016000206002018190555080600d6000876001811115610f6857610f68613616565b6001811115610f7957610f79613616565b81526020810191909152604001600020600301555050505050565b6000610928610fa28361211a565b5490565b610fb260008383611c76565b610c5760008333611fac565b610fc66119b8565b601155565b6000818152600260205260408120546001600160a01b0316806109285760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610b05565b61103d60008484846121a5565b610ba660008433611fac565b60006001600160a01b0382166110c75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401610b05565b506001600160a01b031660009081526003602052604090205490565b6110eb6119b8565b610dd16000612689565b6110fd6119b8565b8051610c5790601690602084019061339a565b6111186119b8565b610c57600183836126e8565b61113160018484846121a5565b610ba660018433611fac565b6060600180546109cb9061394d565b610c573383836127e2565b3332146111a65760405162461bcd60e51b815260206004820152601360248201527f6e6f20636f6e74726163747320706c65617365000000000000000000000000006044820152606401610b05565b600160175460ff1660038111156111bf576111bf613616565b1461120c5760405162461bcd60e51b815260206004820152601360248201527f66726565206d696e74206e6f74207374617274000000000000000000000000006044820152606401610b05565b61121633826128b0565b60175461010090046001600160a01b039081169116146112785760405162461bcd60e51b815260206004820152601160248201527f6e6f7420696e207768697465206c6973740000000000000000000000000000006044820152606401610b05565b336000908152600e6020526040902054156112d55760405162461bcd60e51b815260206004820152600960248201527f6a757374206f6e636500000000000000000000000000000000000000000000006044820152606401610b05565b60016000819052600d60209081526040805160c0810182527ffd54ff1ed53f34a900b24c5ba64f85761163b5d82d98a47b9bd80e45466993c55481527ffd54ff1ed53f34a900b24c5ba64f85761163b5d82d98a47b9bd80e45466993c654928101929092527ffd54ff1ed53f34a900b24c5ba64f85761163b5d82d98a47b9bd80e45466993c754908201527ffd54ff1ed53f34a900b24c5ba64f85761163b5d82d98a47b9bd80e45466993c85460608201527ffd54ff1ed53f34a900b24c5ba64f85761163b5d82d98a47b9bd80e45466993c954608082018190527ffd54ff1ed53f34a900b24c5ba64f85761163b5d82d98a47b9bd80e45466993ca5460a083015260135491929091906113e890610f94565b6113f291906139b3565b11156114325760405162461bcd60e51b815260206004820152600f60248201526e1bdd995c881cda5e99481b1a5b5a5d608a1b6044820152606401610b05565b336000818152600e60205260409020600190819055601354610c5792611fac565b61145b6119b8565b81600d600085600181111561147257611472613616565b600181111561148357611483613616565b81526020019081526020016000206002018190555080600d60008560018111156114af576114af613616565b60018111156114c0576114c0613616565b8152602081019190915260400160002060030155505050565b6114e33383611a12565b6115555760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610b05565b6115618484848461293f565b50505050565b6000818152600260205260409020546060906001600160a01b03166115f45760405162461bcd60e51b815260206004820152602160248201527f4552433732314d657461646174613a204e6f6e6578697374656e7420746f6b6560448201527f6e000000000000000000000000000000000000000000000000000000000000006064820152608401610b05565b6000601680546116039061394d565b80601f016020809104026020016040519081016040528092919081815260200182805461162f9061394d565b801561167c5780601f106116515761010080835404028352916020019161167c565b820191906000526020600020905b81548152906001019060200180831161165f57829003601f168201915b50506015549394505060ff9092169150611698905057806116c3565b806116a2846129bd565b6040516020016116b39291906139cb565b6040516020818303038152906040525b9392505050565b6116d26119b8565b6017805482919060ff191660018360038111156116f1576116f1613616565b021790555050565b6117016119b8565b610c57600083836126e8565b6117156119b8565b6015805460ff1916911515919091179055565b6117306119b8565b6001600160a01b0381166117ac5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b05565b6117b581612689565b50565b6117c06119b8565b81600d60008560018111156117d7576117d7613616565b60018111156117e8576117e8613616565b81526020019081526020016000206000018190555080600d600085600181111561181457611814613616565b600181111561182557611825613616565b8152602081019190915260400160002060010155505050565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806118a157506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061092857507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610928565b6000818152600260205260409020546001600160a01b03166117b55760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610b05565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038416908117909155819061197f82610fcb565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600a546001600160a01b03163314610dd15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b05565b600080611a1e83610fcb565b9050806001600160a01b0316846001600160a01b03161480611a6557506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80611a895750836001600160a01b0316611a7e84610a4e565b6001600160a01b0316145b949350505050565b826001600160a01b0316611aa482610fcb565b6001600160a01b031614611b205760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610b05565b6001600160a01b038216611b9b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610b05565b611ba6838383612af2565b611bb160008261193d565b6001600160a01b0383166000908152600360205260408120805460019290611bda908490613a22565b90915550506001600160a01b0382166000908152600360205260408120805460019290611c089084906139b3565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b333214611cc55760405162461bcd60e51b815260206004820152601360248201527f6e6f20636f6e74726163747320706c65617365000000000000000000000000006044820152606401610b05565b600360175460ff166003811115611cde57611cde613616565b14611d2b5760405162461bcd60e51b815260206004820152601560248201527f7075626c69632073616c65206e6f7420737461727400000000000000000000006044820152606401610b05565b601154821115611d7d5760405162461bcd60e51b815260206004820152601160248201527f6f76657220706572207478206c696d69740000000000000000000000000000006044820152606401610b05565b6000600d6000856001811115611d9557611d95613616565b6001811115611da657611da6613616565b81526020019081526020016000206040518060c001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820154815250509050806080015183611e0c86610f94565b611e1691906139b3565b1115611e565760405162461bcd60e51b815260206004820152600f60248201526e1bdd995c881cda5e99481b1a5b5a5d608a1b6044820152606401610b05565b8115611eb357828160200151611e6c9190613a39565b3414611eae5760405162461bcd60e51b81526020600482015260116024820152701a5b9cdd59999a58da595b9d08199d5b99607a1b6044820152606401610b05565b611561565b7f000000000000000000000000b83c27805aaca5c7082eb45c868d955cf04c337f6001600160a01b03166323b872dd3330868560600151611ef49190613a39565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af1158015611f48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f6c9190613a58565b6115615760405162461bcd60e51b81526020600482015260116024820152701a5b9cdd59999a58da595b9d08199d5b99607a1b6044820152606401610b05565b60005b82811015611561576000611fc285610d03565b60a00151611fcf86610f94565b611fd991906139b3565b9050611fe485612baa565b611fee8382612bbf565b5080611ff981613a75565b915050611faf565b804710156120515760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610b05565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461209e576040519150601f19603f3d011682016040523d82523d6000602084013e6120a3565b606091505b5050905080610ba65760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610b05565b60008082600181111561212f5761212f613616565b0361213c5750600b919050565b600182600181111561215057612150613616565b0361215d5750600c919050565b60405162461bcd60e51b815260206004820152600c60248201527f696e76616c69642073697a6500000000000000000000000000000000000000006044820152606401610b05565b3332146121f45760405162461bcd60e51b815260206004820152601360248201527f6e6f20636f6e74726163747320706c65617365000000000000000000000000006044820152606401610b05565b600260175460ff16600381111561220d5761220d613616565b1461225a5760405162461bcd60e51b815260206004820152601260248201527f7072652073616c65206e6f7420737461727400000000000000000000000000006044820152606401610b05565b61226433826128b0565b60175461010090046001600160a01b039081169116146122c65760405162461bcd60e51b815260206004820152601160248201527f6e6f7420696e207768697465206c6973740000000000000000000000000000006044820152606401610b05565b6011548311156123185760405162461bcd60e51b815260206004820152601160248201527f6f76657220706572207478206c696d69740000000000000000000000000000006044820152606401610b05565b6000600d600086600181111561233057612330613616565b600181111561234157612341613616565b81526020019081526020016000206040518060c0016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820154815260200160058201548152505090508060800151846123a787610f94565b6123b191906139b3565b11156123f15760405162461bcd60e51b815260206004820152600f60248201526e1bdd995c881cda5e99481b1a5b5a5d608a1b6044820152606401610b05565b600085600181111561240557612405613616565b0361249f57601254336000908152600f602052604090205461242790866139b3565b11156124755760405162461bcd60e51b815260206004820152601160248201527f6f7665722070657220776c206c696d69740000000000000000000000000000006044820152606401610b05565b336000908152600f6020526040812080548692906124949084906139b3565b9091555061252f9050565b601254336000908152601060205260409020546124bc90866139b3565b111561250a5760405162461bcd60e51b815260206004820152601160248201527f6f7665722070657220776c206c696d69740000000000000000000000000000006044820152606401610b05565b33600090815260106020526040812080548692906125299084906139b3565b90915550505b8215612589578051612542908590613a39565b34146125845760405162461bcd60e51b81526020600482015260116024820152701a5b9cdd59999a58da595b9d08199d5b99607a1b6044820152606401610b05565b612682565b7f000000000000000000000000b83c27805aaca5c7082eb45c868d955cf04c337f6001600160a01b03166323b872dd33308785604001516125ca9190613a39565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af115801561261e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126429190613a58565b6126825760405162461bcd60e51b81526020600482015260116024820152701a5b9cdd59999a58da595b9d08199d5b99607a1b6044820152606401610b05565b5050505050565b600a80546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6126f06119b8565b6000600d600085600181111561270857612708613616565b600181111561271957612719613616565b81526020019081526020016000206040518060c00160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152602001600582015481525050905080608001518361277f86610f94565b61278991906139b3565b11156127d75760405162461bcd60e51b815260206004820152600f60248201527f6f766572206d617820737570706c7900000000000000000000000000000000006044820152606401610b05565b611561848484611fac565b816001600160a01b0316836001600160a01b0316036128435760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b05565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6040516bffffffffffffffffffffffff19606084901b166020820152600090819060340160408051601f198184030181529082905280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000091830191909152603c820152605c01604051602081830303815290604052805190602001209050611a898184612bd9565b61294a848484611a91565b61295684848484612bfd565b6115615760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b05565b606081600003612a0057505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612a2a5780612a1481613a75565b9150612a239050600a83613aa4565b9150612a04565b60008167ffffffffffffffff811115612a4557612a45613654565b6040519080825280601f01601f191660200182016040528015612a6f576020820181803683370190505b5090505b8415611a8957612a84600183613a22565b9150612a91600a86613ab8565b612a9c9060306139b3565b60f81b818381518110612ab157612ab1613987565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612aeb600a86613aa4565b9450612a73565b6001600160a01b038316612b4d57612b4881600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612b70565b816001600160a01b0316836001600160a01b031614612b7057612b708382612d49565b6001600160a01b038216612b8757610ba681612de6565b826001600160a01b0316826001600160a01b031614610ba657610ba68282612e95565b6117b5612bb68261211a565b80546001019055565b610c57828260405180602001604052806000815250612ed9565b6000806000612be88585612f57565b91509150612bf581612f9c565b509392505050565b60006001600160a01b0384163b15612d3e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612c41903390899088908890600401613acc565b6020604051808303816000875af1925050508015612c7c575060408051601f3d908101601f19168201909252612c7991810190613b08565b60015b612d24573d808015612caa576040519150601f19603f3d011682016040523d82523d6000602084013e612caf565b606091505b508051600003612d1c5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b05565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a89565b506001949350505050565b60006001612d5684611049565b612d609190613a22565b600083815260076020526040902054909150808214612db3576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612df890600190613a22565b60008381526009602052604081205460088054939450909284908110612e2057612e20613987565b906000526020600020015490508060088381548110612e4157612e41613987565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612e7957612e79613b25565b6001900381819060005260206000200160009055905550505050565b6000612ea083611049565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b612ee38383613152565b612ef06000848484612bfd565b610ba65760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b05565b6000808251604103612f8d5760208301516040840151606085015160001a612f81878285856132ad565b94509450505050612f95565b506000905060025b9250929050565b6000816004811115612fb057612fb0613616565b03612fb85750565b6001816004811115612fcc57612fcc613616565b036130195760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610b05565b600281600481111561302d5761302d613616565b0361307a5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610b05565b600381600481111561308e5761308e613616565b036130e65760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610b05565b60048160048111156130fa576130fa613616565b036117b55760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610b05565b6001600160a01b0382166131a85760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b05565b6000818152600260205260409020546001600160a01b03161561320d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b05565b61321960008383612af2565b6001600160a01b03821660009081526003602052604081208054600192906132429084906139b3565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156132e45750600090506003613391565b8460ff16601b141580156132fc57508460ff16601c14155b1561330d5750600090506004613391565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613361573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661338a57600060019250925050613391565b9150600090505b94509492505050565b8280546133a69061394d565b90600052602060002090601f0160209004810192826133c8576000855561340e565b82601f106133e157805160ff191683800117855561340e565b8280016001018555821561340e579182015b8281111561340e5782518255916020019190600101906133f3565b5061341a92915061341e565b5090565b5b8082111561341a576000815560010161341f565b6001600160e01b0319811681146117b557600080fd5b60006020828403121561345b57600080fd5b81356116c381613433565b60005b83811015613481578181015183820152602001613469565b838111156115615750506000910152565b600081518084526134aa816020860160208601613466565b601f01601f19169290920160200192915050565b6020815260006116c36020830184613492565b6000602082840312156134e357600080fd5b5035919050565b80356001600160a01b038116811461350157600080fd5b919050565b6000806040838503121561351957600080fd5b613522836134ea565b946020939093013593505050565b60008060006060848603121561354557600080fd5b61354e846134ea565b925061355c602085016134ea565b9150604084013590509250925092565b80151581146117b557600080fd5b6000806040838503121561358d57600080fd5b82359150602083013561359f8161356c565b809150509250929050565b80356002811061350157600080fd5b6000602082840312156135cb57600080fd5b6116c3826135aa565b600080600080600060a086880312156135ec57600080fd5b6135f5866135aa565b97602087013597506040870135966060810135965060800135945092505050565b634e487b7160e01b600052602160045260246000fd5b602081016004831061364e57634e487b7160e01b600052602160045260246000fd5b91905290565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561368557613685613654565b604051601f8501601f19908116603f011681019082821181831017156136ad576136ad613654565b816040528093508581528686860111156136c657600080fd5b858560208301376000602087830101525050509392505050565b600082601f8301126136f157600080fd5b6116c38383356020850161366a565b60008060006060848603121561371557600080fd5b8335925060208401356137278161356c565b9150604084013567ffffffffffffffff81111561374357600080fd5b61374f868287016136e0565b9150509250925092565b60006020828403121561376b57600080fd5b6116c3826134ea565b60006020828403121561378657600080fd5b813567ffffffffffffffff81111561379d57600080fd5b8201601f810184136137ae57600080fd5b611a898482356020840161366a565b600080604083850312156137d057600080fd5b823591506137e0602084016134ea565b90509250929050565b600080604083850312156137fc57600080fd5b613805836134ea565b9150602083013561359f8161356c565b60006020828403121561382757600080fd5b813567ffffffffffffffff81111561383e57600080fd5b611a89848285016136e0565b60008060006060848603121561385f57600080fd5b613868846135aa565b95602085013595506040909401359392505050565b6000806000806080858703121561389357600080fd5b61389c856134ea565b93506138aa602086016134ea565b925060408501359150606085013567ffffffffffffffff8111156138cd57600080fd5b6138d9878288016136e0565b91505092959194509250565b6000602082840312156138f757600080fd5b8135600481106116c357600080fd5b60006020828403121561391857600080fd5b81356116c38161356c565b6000806040838503121561393657600080fd5b61393f836134ea565b91506137e0602084016134ea565b600181811c9082168061396157607f821691505b60208210810361398157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082198211156139c6576139c661399d565b500190565b600083516139dd818460208801613466565b8351908301906139f1818360208801613466565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b600082821015613a3457613a3461399d565b500390565b6000816000190483118215151615613a5357613a5361399d565b500290565b600060208284031215613a6a57600080fd5b81516116c38161356c565b600060018201613a8757613a8761399d565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082613ab357613ab3613a8e565b500490565b600082613ac757613ac7613a8e565b500690565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613afe6080830184613492565b9695505050505050565b600060208284031215613b1a57600080fd5b81516116c381613433565b634e487b7160e01b600052603160045260246000fdfea26469706673582212208e25721d3d3ffcd7e6c322476abce529b55993b60db07af7c0b3b6c7cde92ad964736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000eafb2019a8e7ddfb52763d6b0d49f53983bc0764000000000000000000000000b83c27805aaca5c7082eb45c868d955cf04c337f
-----Decoded View---------------
Arg [0] : signer (address): 0xeAFB2019a8E7ddFB52763D6B0D49f53983Bc0764
Arg [1] : tigerCoin (address): 0xB83c27805aAcA5C7082eB45C868d955Cf04C337F
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000eafb2019a8e7ddfb52763d6b0d49f53983bc0764
Arg [1] : 000000000000000000000000b83c27805aaca5c7082eb45c868d955cf04c337f
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.