ERC-721
Overview
Max Total Supply
73 PIGS
Holders
37
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 PIGSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
LittlePigs
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/GSN/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; } } /** * @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); } // File: @openzeppelin/contracts/token/ERC721/IERC721.sol /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer( address indexed from, address indexed to, uint256 indexed tokenId ); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval( address indexed owner, address indexed approved, uint256 indexed tokenId ); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll( address indexed owner, address indexed operator, bool approved ); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; } // File: @openzeppelin/contracts/token/ERC721/IERC721Metadata.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); } // File: @openzeppelin/contracts/introspection/ERC165.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; } } // File: @openzeppelin/contracts/utils/Address.sol /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, 'Address: insufficient balance'); (bool success, ) = recipient.call{ value: amount }(''); require( success, 'Address: unable to send value, recipient may have reverted' ); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, 'Address: low-level call failed'); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue( target, data, value, 'Address: low-level call with value failed' ); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require( address(this).balance >= value, 'Address: insufficient balance for call' ); require(isContract(target), 'Address: call to non-contract'); (bool success, bytes memory returndata) = target.call{ value: value }(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, 'Address: low-level static call failed'); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), 'Address: static call to non-contract'); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall( target, data, 'Address: low-level delegate call failed' ); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), 'Address: delegate call to non-contract'); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // File: @openzeppelin/contracts/utils/Strings.sol /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = '0123456789abcdef'; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return '0'; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return '0x00'; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = '0'; buffer[1] = 'x'; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, 'Strings: hex length insufficient'); return string(buffer); } } /** * @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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), 'Ownable: caller is not the owner'); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _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); } } // File: @openzeppelin/contracts/token/ERC721/ERC721.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, Ownable, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Base URI string private _baseURI; // Mint pause control uint256 public mintPaused = 1; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), 'ERC721: balance query for the zero address'); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), 'ERC721: owner query for nonexistent token'); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), 'ERC721Metadata: Nonexistent token'); bytes memory bytesURI = bytes(_baseURI); if (bytesURI.length == 0 || bytesURI[bytesURI.length - 1] == '/') return string(abi.encodePacked(_baseURI, tokenId.toString())); else return _baseURI; } function setBaseURI(string memory newBaseURI) external onlyOwner { _baseURI = newBaseURI; } /** * @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: Not owner nor approved for all' ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), 'ERC721: approved query for nonexistent token'); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _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: transfer caller is not owner nor approved' ); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require( _isApprovedOrOwner(_msgSender(), tokenId), 'ERC721: Not owner nor approved' ); _safeTransfer(from, to, tokenId, _data); } /** * @dev Admin pause / unpause minting */ function setMintPaused(uint256 paused) external onlyOwner { mintPaused = paused; } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), 'ERC721: transfer to non ERC721Receiver implementer' ); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), 'ERC721: operator query for nonexistent token'); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ''); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), 'ERC721: transfer to non ERC721Receiver implementer' ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), 'ERC721: mint to the zero address'); require(!_exists(tokenId), 'ERC721: token already minted'); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require( ERC721.ownerOf(tokenId) == from, 'ERC721: transfer of token that is not own' ); require(to != address(0), 'ERC721: transfer to the zero address'); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {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 Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert('ERC721: transfer to non ERC721Receiver implementer'); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } } /** * @dev OpenSea proxy registry to prevent gas spend for approvals */ contract ProxyRegistry { mapping(address => address) public proxies; } /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, 'ReentrancyGuard: reentrant call'); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } /** * @dev Implementation of LittlePigs ERC721 contract */ contract LittlePigs is ERC721, ReentrancyGuard { // OpenSea proxy registry address private immutable _osProxyRegistryAddress; // Whitelist signer address private immutable _whitelistSigner; // Max mints per transaction uint256 private constant _maxTxMint = 10; // The CAP of whitelist claimable tokenIds uint256 private constant _whitelistCap = 888; // The CAP of mintable tokenIds uint256 private constant _cap = 9800; // The CAP of shill tokenIds uint256 private constant _shillCap = 9850; // The CAP of team tokenIds uint256 private constant _teamCap = 10000; // ETH price of one tokenIds uint256 private constant _tokenPrice = 50000000000000000; // TokenId counter, 1 minted in ctor uint256 private _currentTokenId = 1; // ShillTokenId counter uint256 private _currentShillTokenId = _cap; // TeamTokenId counter uint256 private _currentTeamTokenId = _shillCap; // Whitelist address check modifier onlyValidAddress( uint256 _salt, bytes32 _r, bytes32 _s, uint8 _v ) { bytes32 hash = keccak256(abi.encode(address(this), _salt, _msgSender())); bytes32 message = keccak256( abi.encodePacked('\x19Ethereum Signed Message:\n32', hash) ); address sig = ecrecover(message, _v, _r, _s); require(_whitelistSigner == sig, 'Signature does not match'); _; } // Fired when funds are distributed event Distributed(address indexed receiver, uint256 amount); /** * @dev Initialization. */ constructor(address osProxyRegistry_) ERC721('LittlePigs', 'PIGS') { _osProxyRegistryAddress = osProxyRegistry_; _whitelistSigner = _msgSender(); _mint(_msgSender(), 0); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { // Whitelist OpenSea proxy contract for easy trading. ProxyRegistry proxyRegistry = ProxyRegistry(_osProxyRegistryAddress); if (address(proxyRegistry.proxies(owner)) == operator) { return true; } return super.isApprovedForAll(owner, operator); } /** * @dev Whitelist mint a set of tokenIds for caller * @notice only for signed whitelisters */ function whitelistMint( uint256 numMint, bytes32 r, bytes32 s, uint8 v ) external payable nonReentrant onlyValidAddress(0, r, s, v) { require(msg.value >= numMint * _tokenPrice, 'Insufficient value'); _mintPayable(numMint); } /** * @dev Shill mint one tokenId for caller * @notice only for signed shillers */ function shillMint( uint256 tokenId, bytes32 r, bytes32 s, uint8 v ) external onlyValidAddress(tokenId, r, s, v) { require(_currentShillTokenId < _shillCap, 'ShillCap reached'); require(tokenId >= _cap && tokenId < _shillCap, 'Invalid tokenId'); _mint(_msgSender(), tokenId); _currentShillTokenId += 1; } /** * @dev Team mint a set of tokenIds for given accounts */ function teamMint(address[] memory to) external onlyOwner { require(_currentTeamTokenId + to.length <= _teamCap, 'TeamCap reached'); for (uint256 i = 0; i < to.length; ++i) _mint(to[i], _currentTeamTokenId + i); _currentTeamTokenId += to.length; } /** * @dev Distribute rewards */ function distribute( address[] calldata accounts, uint256[] calldata refunds, uint256[] calldata percents ) external onlyOwner { require( (refunds.length == 0 || refunds.length == accounts.length) && (percents.length == 0 || percents.length == accounts.length), 'Length mismatch' ); uint256 availableAmount = address(this).balance; uint256[] memory amounts = new uint256[](accounts.length); for (uint256 i = 0; i < refunds.length; ++i) { require(refunds[i] <= availableAmount, 'Insufficent balance'); amounts[i] = refunds[i]; availableAmount -= refunds[i]; } uint256 amountToShare = availableAmount; for (uint256 i = 0; i < percents.length; ++i) { uint256 amount = (amountToShare * percents[i]) / 100; amounts[i] += (amount <= availableAmount) ? amount : availableAmount; availableAmount -= amount; } for (uint256 i = 0; i < accounts.length; ++i) { if (amounts[i] > 0) { payable(accounts[i]).transfer(amounts[i]); emit Distributed(accounts[i], amounts[i]); } } } /** * @dev return number of minted token */ function totalSupply() external view returns (uint256) { return _currentTokenId < 2500 ? _currentTokenId : _currentTokenId + _teamCap - _cap; } /** * @dev mint as much tokens as possible, return dust * and burning. */ receive() external payable nonReentrant { require(mintPaused == 0, 'Paused'); uint256 numMint = msg.value / _tokenPrice; _mintPayable(numMint); } /** * @dev internal mint multiple which has to be payed */ function _mintPayable(uint256 numMint) internal { require(numMint > 0 && numMint <= _maxTxMint, 'Invalid numMint'); require(_currentTokenId + numMint <= _cap, 'Cap reached'); for (uint256 i = 0; i < numMint; ++i) _mint(msg.sender, _currentTokenId + i); _currentTokenId += numMint; uint256 dust = msg.value - (numMint * _tokenPrice); if (dust > 0) payable(msg.sender).transfer(dust); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"osProxyRegistry_","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":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Distributed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"refunds","type":"uint256[]"},{"internalType":"uint256[]","name":"percents","type":"uint256[]"}],"name":"distribute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"mintPaused","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"paused","type":"uint256"}],"name":"setMintPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"}],"name":"shillMint","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":"address[]","name":"to","type":"address[]"}],"name":"teamMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numMint","type":"uint256"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60c060405260016004556001600a55612648600b5561267a600c553480156200002757600080fd5b5060405162002ea938038062002ea98339810160408190526200004a916200031d565b6040518060400160405280600a8152602001694c6974746c655069677360b01b815250604051806040016040528060048152602001635049475360e01b815250620000a46200009e6200012060201b60201c565b62000124565b8151620000b990600190602085019062000277565b508051620000cf90600290602084019062000277565b50506001600955506001600160601b0319606082901b16608052620000f362000120565b60601b6001600160601b03191660a052620001196200011162000120565b600062000174565b506200041b565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216620001a65760405162461bcd60e51b81526004016200019d9062000384565b60405180910390fd5b620001b1816200025a565b15620001d15760405162461bcd60e51b81526004016200019d906200034d565b6001600160a01b0382166000908152600660205260408120805460019290620001fc908490620003b9565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000908152600560205260409020546001600160a01b0316151590565b8280546200028590620003de565b90600052602060002090601f016020900481019282620002a95760008555620002f4565b82601f10620002c457805160ff1916838001178555620002f4565b82800160010185558215620002f4579182015b82811115620002f4578251825591602001919060010190620002d7565b506200030292915062000306565b5090565b5b8082111562000302576000815560010162000307565b6000602082840312156200032f578081fd5b81516001600160a01b038116811462000346578182fd5b9392505050565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b60008219821115620003d957634e487b7160e01b81526011600452602481fd5b500190565b600281046001821680620003f357607f821691505b602082108114156200041557634e487b7160e01b600052602260045260246000fd5b50919050565b60805160601c60a05160601c612a5b6200044e600039600081816108e60152610a3a015260006112b40152612a5b6000f3fe60806040526004361061014f5760003560e01c8063715018a6116100b6578063c87b56dd1161006f578063c87b56dd14610400578063ce976c3914610420578063dccc679414610440578063e985e9c514610460578063f002858514610480578063f2fde38b146104a0576101cb565b8063715018a61461036c5780637e4831d3146103815780638da5cb5b1461039657806395d89b41146103ab578063a22cb465146103c0578063b88d4fde146103e0576101cb565b806342842e0e1161010857806342842e0e146102b9578063434234f7146102d957806347c80b5e146102ec57806355f804b31461030c5780636352211e1461032c57806370a082311461034c576101cb565b806301ffc9a7146101d057806306fdde0314610206578063081812fc14610228578063095ea7b31461025557806318160ddd1461027757806323b872dd14610299576101cb565b366101cb57600260095414156101805760405162461bcd60e51b815260040161017790612850565b60405180910390fd5b6002600955600454156101a55760405162461bcd60e51b815260040161017790612235565b60006101b866b1a2bc2ec50000346128de565b90506101c3816104c0565b506001600955005b600080fd5b3480156101dc57600080fd5b506101f06101eb366004611f8b565b6105bf565b6040516101fd91906121f9565b60405180910390f35b34801561021257600080fd5b5061021b610607565b6040516101fd9190612222565b34801561023457600080fd5b50610248610243366004612009565b610699565b6040516101fd9190612185565b34801561026157600080fd5b50610275610270366004611e17565b6106dc565b005b34801561028357600080fd5b5061028c61076f565b6040516101fd9190612887565b3480156102a557600080fd5b506102756102b4366004611d29565b6107a7565b3480156102c557600080fd5b506102756102d4366004611d29565b6107df565b6102756102e7366004612021565b6107fa565b3480156102f857600080fd5b50610275610307366004612021565b610976565b34801561031857600080fd5b50610275610327366004611fc3565b610b07565b34801561033857600080fd5b50610248610347366004612009565b610b59565b34801561035857600080fd5b5061028c610367366004611cb2565b610b8e565b34801561037857600080fd5b50610275610bd2565b34801561038d57600080fd5b5061028c610c1d565b3480156103a257600080fd5b50610248610c23565b3480156103b757600080fd5b5061021b610c32565b3480156103cc57600080fd5b506102756103db366004611de6565b610c41565b3480156103ec57600080fd5b506102756103fb366004611d69565b610c53565b34801561040c57600080fd5b5061021b61041b366004612009565b610c92565b34801561042c57600080fd5b5061027561043b366004612009565b610e68565b34801561044c57600080fd5b5061027561045b366004611e42565b610eac565b34801561046c57600080fd5b506101f061047b366004611cf1565b6112a2565b34801561048c57600080fd5b5061027561049b366004611ed8565b611375565b3480156104ac57600080fd5b506102756104bb366004611cb2565b611455565b6000811180156104d15750600a8111155b6104ed5760405162461bcd60e51b8152600401610177906125b6565b61264881600a546104fe91906128c6565b111561051c5760405162461bcd60e51b81526004016101779061282b565b60005b8181101561054e5761053e3382600a5461053991906128c6565b6114c6565b61054781612989565b905061051f565b5080600a600082825461056191906128c6565b909155506000905061057a66b1a2bc2ec50000836128f2565b6105849034612911565b905080156105bb57604051339082156108fc029083906000818181858888f193505050501580156105b9573d6000803e3d6000fd5b505b5050565b60006001600160e01b031982166380ac58cd60e01b14806105f057506001600160e01b03198216635b5e139f60e01b145b806105ff57506105ff82611599565b90505b919050565b60606001805461061690612954565b80601f016020809104026020016040519081016040528092919081815260200182805461064290612954565b801561068f5780601f106106645761010080835404028352916020019161068f565b820191906000526020600020905b81548152906001019060200180831161067257829003601f168201915b5050505050905090565b60006106a4826115b2565b6106c05760405162461bcd60e51b8152600401610177906125df565b506000908152600760205260409020546001600160a01b031690565b60006106e782610b59565b9050806001600160a01b0316836001600160a01b0316141561071b5760405162461bcd60e51b815260040161017790612739565b806001600160a01b031661072d6115cf565b6001600160a01b0316148061074957506107498161047b6115cf565b6107655760405162461bcd60e51b815260040161017790612255565b6105b983836115d3565b60006109c4600a541061079e57612648612710600a5461078f91906128c6565b6107999190612911565b6107a2565b600a545b905090565b6107b86107b26115cf565b82611641565b6107d45760405162461bcd60e51b8152600401610177906127a3565b6105b98383836116be565b6105b983838360405180602001604052806000815250610c53565b6002600954141561081d5760405162461bcd60e51b815260040161017790612850565b600260095560008383838330816108326115cf565b604051602001610844939291906121d6565b60405160208183030381529060405280519060200120905060008160405160200161086f9190612154565b6040516020818303038152906040528051906020012090506000600182858888604051600081526020016040526040516108ac9493929190612204565b6020604051602081039080840390855afa1580156108ce573d6000803e3d6000fd5b505050602060405103519050806001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03161461092b5760405162461bcd60e51b8152600401610177906126d6565b61093c66b1a2bc2ec500008c6128f2565b34101561095b5760405162461bcd60e51b81526004016101779061270d565b6109648b6104c0565b50506001600955505050505050505050565b83838383600030856109866115cf565b604051602001610998939291906121d6565b6040516020818303038152906040528051906020012090506000816040516020016109c39190612154565b604051602081830303815290604052805190602001209050600060018285888860405160008152602001604052604051610a009493929190612204565b6020604051602081039080840390855afa158015610a22573d6000803e3d6000fd5b505050602060405103519050806001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031614610a7f5760405162461bcd60e51b8152600401610177906126d6565b61267a600b5410610aa25760405162461bcd60e51b8152600401610177906124c4565b6126488b10158015610ab5575061267a8b105b610ad15760405162461bcd60e51b81526004016101779061244f565b610ae2610adc6115cf565b8c6114c6565b6001600b6000828254610af591906128c6565b90915550505050505050505050505050565b610b0f6115cf565b6001600160a01b0316610b20610c23565b6001600160a01b031614610b465760405162461bcd60e51b815260040161017790612658565b80516105bb906003906020840190611b78565b6000818152600560205260408120546001600160a01b0316806105ff5760405162461bcd60e51b815260040161017790612538565b60006001600160a01b038216610bb65760405162461bcd60e51b8152600401610177906124ee565b506001600160a01b031660009081526006602052604090205490565b610bda6115cf565b6001600160a01b0316610beb610c23565b6001600160a01b031614610c115760405162461bcd60e51b815260040161017790612658565b610c1b60006117e0565b565b60045481565b6000546001600160a01b031690565b60606002805461061690612954565b6105bb610c4c6115cf565b8383611830565b610c64610c5e6115cf565b83611641565b610c805760405162461bcd60e51b8152600401610177906127f4565b610c8c848484846118d3565b50505050565b6060610c9d826115b2565b610cb95760405162461bcd60e51b81526004016101779061229b565b600060038054610cc890612954565b80601f0160208091040260200160405190810160405280929190818152602001828054610cf490612954565b8015610d415780601f10610d1657610100808354040283529160200191610d41565b820191906000526020600020905b815481529060010190602001808311610d2457829003601f168201915b50505050509050805160001480610d9757508060018251610d629190612911565b81518110610d8057634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916602f60f81b145b15610dcf576003610da784611906565b604051602001610db89291906120ae565b604051602081830303815290604052915050610602565b60038054610ddc90612954565b80601f0160208091040260200160405190810160405280929190818152602001828054610e0890612954565b8015610e555780601f10610e2a57610100808354040283529160200191610e55565b820191906000526020600020905b815481529060010190602001808311610e3857829003601f168201915b5050505050915050610602565b50919050565b610e706115cf565b6001600160a01b0316610e81610c23565b6001600160a01b031614610ea75760405162461bcd60e51b815260040161017790612658565b600455565b610eb46115cf565b6001600160a01b0316610ec5610c23565b6001600160a01b031614610eeb5760405162461bcd60e51b815260040161017790612658565b821580610ef757508285145b8015610f0a5750801580610f0a57508085145b610f265760405162461bcd60e51b81526004016101779061277a565b4760008667ffffffffffffffff811115610f5057634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610f79578160200160208202803683370190505b50905060005b858110156110645782878783818110610fa857634e487b7160e01b600052603260045260246000fd5b905060200201351115610fcd5760405162461bcd60e51b81526004016101779061262b565b868682818110610fed57634e487b7160e01b600052603260045260246000fd5b9050602002013582828151811061101457634e487b7160e01b600052603260045260246000fd5b60200260200101818152505086868281811061104057634e487b7160e01b600052603260045260246000fd5b90506020020135836110529190612911565b925061105d81612989565b9050610f7f565b508160005b84811015611118576000606487878481811061109557634e487b7160e01b600052603260045260246000fd5b90506020020135846110a791906128f2565b6110b191906128de565b9050848111156110c157846110c3565b805b8483815181106110e357634e487b7160e01b600052603260045260246000fd5b602002602001018181516110f791906128c6565b9052506111048186612911565b9450508061111190612989565b9050611069565b5060005b8881101561129657600083828151811061114657634e487b7160e01b600052603260045260246000fd5b602002602001015111156112865789898281811061117457634e487b7160e01b600052603260045260246000fd5b90506020020160208101906111899190611cb2565b6001600160a01b03166108fc8483815181106111b557634e487b7160e01b600052603260045260246000fd5b60200260200101519081150290604051600060405180830381858888f193505050501580156111e8573d6000803e3d6000fd5b5089898281811061120957634e487b7160e01b600052603260045260246000fd5b905060200201602081019061121e9190611cb2565b6001600160a01b03167fb649c98f58055c520df0dcb5709eff2e931217ff2fb1e21376130d31bbb1c0af84838151811061126857634e487b7160e01b600052603260045260246000fd5b602002602001015160405161127d9190612887565b60405180910390a25b61128f81612989565b905061111c565b50505050505050505050565b60405163c455279160e01b81526000907f0000000000000000000000000000000000000000000000000000000000000000906001600160a01b03808516919083169063c4552791906112f8908890600401612185565b60206040518083038186803b15801561131057600080fd5b505afa158015611324573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113489190611cd5565b6001600160a01b0316141561136157600191505061136f565b61136b8484611a29565b9150505b92915050565b61137d6115cf565b6001600160a01b031661138e610c23565b6001600160a01b0316146113b45760405162461bcd60e51b815260040161017790612658565b6127108151600c546113c691906128c6565b11156113e45760405162461bcd60e51b815260040161017790612374565b60005b81518110156114395761142982828151811061141357634e487b7160e01b600052603260045260246000fd5b602002602001015182600c5461053991906128c6565b61143281612989565b90506113e7565b508051600c600082825461144d91906128c6565b909155505050565b61145d6115cf565b6001600160a01b031661146e610c23565b6001600160a01b0316146114945760405162461bcd60e51b815260040161017790612658565b6001600160a01b0381166114ba5760405162461bcd60e51b81526004016101779061232e565b6114c3816117e0565b50565b6001600160a01b0382166114ec5760405162461bcd60e51b815260040161017790612581565b6114f5816115b2565b156115125760405162461bcd60e51b81526004016101779061239d565b6001600160a01b038216600090815260066020526040812080546001929061153b9084906128c6565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b031981166301ffc9a760e01b14919050565b6000908152600560205260409020546001600160a01b0316151590565b3390565b600081815260076020526040902080546001600160a01b0319166001600160a01b038416908117909155819061160882610b59565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061164c826115b2565b6116685760405162461bcd60e51b815260040161017790612478565b600061167383610b59565b9050806001600160a01b0316846001600160a01b031614806116ae5750836001600160a01b03166116a384610699565b6001600160a01b0316145b8061136b575061136b81856112a2565b826001600160a01b03166116d182610b59565b6001600160a01b0316146116f75760405162461bcd60e51b81526004016101779061268d565b6001600160a01b03821661171d5760405162461bcd60e51b8152600401610177906123d4565b6117286000826115d3565b6001600160a01b0383166000908152600660205260408120805460019290611751908490612911565b90915550506001600160a01b038216600090815260066020526040812080546001929061177f9084906128c6565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b031614156118625760405162461bcd60e51b815260040161017790612418565b6001600160a01b0383811660008181526008602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31906118c69085906121f9565b60405180910390a3505050565b6118de8484846116be565b6118ea84848484611a57565b610c8c5760405162461bcd60e51b8152600401610177906122dc565b60608161192b57506040805180820190915260018152600360fc1b6020820152610602565b8160005b8115611955578061193f81612989565b915061194e9050600a836128de565b915061192f565b60008167ffffffffffffffff81111561197e57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156119a8576020820181803683370190505b5090505b8415611a21576119bd600183612911565b91506119ca600a866129a4565b6119d59060306128c6565b60f81b8183815181106119f857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611a1a600a866128de565b94506119ac565b949350505050565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b6000611a6b846001600160a01b0316611b72565b15611b6757836001600160a01b031663150b7a02611a876115cf565b8786866040518563ffffffff1660e01b8152600401611aa99493929190612199565b602060405180830381600087803b158015611ac357600080fd5b505af1925050508015611af3575060408051601f3d908101601f19168201909252611af091810190611fa7565b60015b611b4d573d808015611b21576040519150601f19603f3d011682016040523d82523d6000602084013e611b26565b606091505b508051611b455760405162461bcd60e51b8152600401610177906122dc565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a21565b506001949350505050565b3b151590565b828054611b8490612954565b90600052602060002090601f016020900481019282611ba65760008555611bec565b82601f10611bbf57805160ff1916838001178555611bec565b82800160010185558215611bec579182015b82811115611bec578251825591602001919060010190611bd1565b50611bf8929150611bfc565b5090565b5b80821115611bf85760008155600101611bfd565b600067ffffffffffffffff831115611c2b57611c2b6129e4565b611c3e601f8401601f1916602001612890565b9050828152838383011115611c5257600080fd5b828260208301376000602084830101529392505050565b60008083601f840112611c7a578182fd5b50813567ffffffffffffffff811115611c91578182fd5b6020830191508360208083028501011115611cab57600080fd5b9250929050565b600060208284031215611cc3578081fd5b8135611cce816129fa565b9392505050565b600060208284031215611ce6578081fd5b8151611cce816129fa565b60008060408385031215611d03578081fd5b8235611d0e816129fa565b91506020830135611d1e816129fa565b809150509250929050565b600080600060608486031215611d3d578081fd5b8335611d48816129fa565b92506020840135611d58816129fa565b929592945050506040919091013590565b60008060008060808587031215611d7e578081fd5b8435611d89816129fa565b93506020850135611d99816129fa565b925060408501359150606085013567ffffffffffffffff811115611dbb578182fd5b8501601f81018713611dcb578182fd5b611dda87823560208401611c11565b91505092959194509250565b60008060408385031215611df8578182fd5b8235611e03816129fa565b915060208301358015158114611d1e578182fd5b60008060408385031215611e29578182fd5b8235611e34816129fa565b946020939093013593505050565b60008060008060008060608789031215611e5a578182fd5b863567ffffffffffffffff80821115611e71578384fd5b611e7d8a838b01611c69565b90985096506020890135915080821115611e95578384fd5b611ea18a838b01611c69565b90965094506040890135915080821115611eb9578384fd5b50611ec689828a01611c69565b979a9699509497509295939492505050565b60006020808385031215611eea578182fd5b823567ffffffffffffffff80821115611f01578384fd5b818501915085601f830112611f14578384fd5b813581811115611f2657611f266129e4565b8381029150611f36848301612890565b8181528481019084860184860187018a1015611f50578788fd5b8795505b83861015611f7e5780359450611f69856129fa565b84835260019590950194918601918601611f54565b5098975050505050505050565b600060208284031215611f9c578081fd5b8135611cce81612a0f565b600060208284031215611fb8578081fd5b8151611cce81612a0f565b600060208284031215611fd4578081fd5b813567ffffffffffffffff811115611fea578182fd5b8201601f81018413611ffa578182fd5b61136b84823560208401611c11565b60006020828403121561201a578081fd5b5035919050565b60008060008060808587031215612036578182fd5b843593506020850135925060408501359150606085013560ff8116811461205b578182fd5b939692955090935050565b6000815180845261207e816020860160208601612928565b601f01601f19169290920160200192915050565b600081516120a4818560208601612928565b9290920192915050565b82546000908190600281046001808316806120ca57607f831692505b60208084108214156120ea57634e487b7160e01b87526022600452602487fd5b8180156120fe576001811461210f5761213b565b60ff1986168952848901965061213b565b6121188b6128ba565b885b868110156121335781548b82015290850190830161211a565b505084890196505b50505050505061214b8185612092565b95945050505050565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b6001600160a01b0391909116815260200190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906121cc90830184612066565b9695505050505050565b6001600160a01b0393841681526020810192909252909116604082015260600190565b901515815260200190565b93845260ff9290921660208401526040830152606082015260800190565b600060208252611cce6020830184612066565b60208082526006908201526514185d5cd95960d21b604082015260600190565b60208082526026908201527f4552433732313a204e6f74206f776e6572206e6f7220617070726f76656420666040820152651bdc88185b1b60d21b606082015260800190565b60208082526021908201527f4552433732314d657461646174613a204e6f6e6578697374656e7420746f6b656040820152603760f91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252600f908201526e1519585b50d85c081c995858da1959608a1b604082015260600190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252600f908201526e125b9d985b1a59081d1bdad95b9259608a1b604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526010908201526f14da1a5b1b10d85c081c995858da195960821b604082015260600190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252600f908201526e125b9d985b1a59081b9d5b535a5b9d608a1b604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b602080825260139082015272496e737566666963656e742062616c616e636560681b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b60208082526018908201527f5369676e617475726520646f6573206e6f74206d617463680000000000000000604082015260600190565b602080825260129082015271496e73756666696369656e742076616c756560701b604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b6020808252600f908201526e098cadccee8d040dad2e6dac2e8c6d608b1b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601e908201527f4552433732313a204e6f74206f776e6572206e6f7220617070726f7665640000604082015260600190565b6020808252600b908201526a10d85c081c995858da195960aa1b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b90815260200190565b60405181810167ffffffffffffffff811182821017156128b2576128b26129e4565b604052919050565b60009081526020902090565b600082198211156128d9576128d96129b8565b500190565b6000826128ed576128ed6129ce565b500490565b600081600019048311821515161561290c5761290c6129b8565b500290565b600082821015612923576129236129b8565b500390565b60005b8381101561294357818101518382015260200161292b565b83811115610c8c5750506000910152565b60028104600182168061296857607f821691505b60208210811415610e6257634e487b7160e01b600052602260045260246000fd5b600060001982141561299d5761299d6129b8565b5060010190565b6000826129b3576129b36129ce565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146114c357600080fd5b6001600160e01b0319811681146114c357600080fdfea26469706673582212201719a873edcb3f7bd69326dd66532804f1bd4d5536095489387e70fb424cd2e064736f6c63430008000033000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Deployed Bytecode
0x60806040526004361061014f5760003560e01c8063715018a6116100b6578063c87b56dd1161006f578063c87b56dd14610400578063ce976c3914610420578063dccc679414610440578063e985e9c514610460578063f002858514610480578063f2fde38b146104a0576101cb565b8063715018a61461036c5780637e4831d3146103815780638da5cb5b1461039657806395d89b41146103ab578063a22cb465146103c0578063b88d4fde146103e0576101cb565b806342842e0e1161010857806342842e0e146102b9578063434234f7146102d957806347c80b5e146102ec57806355f804b31461030c5780636352211e1461032c57806370a082311461034c576101cb565b806301ffc9a7146101d057806306fdde0314610206578063081812fc14610228578063095ea7b31461025557806318160ddd1461027757806323b872dd14610299576101cb565b366101cb57600260095414156101805760405162461bcd60e51b815260040161017790612850565b60405180910390fd5b6002600955600454156101a55760405162461bcd60e51b815260040161017790612235565b60006101b866b1a2bc2ec50000346128de565b90506101c3816104c0565b506001600955005b600080fd5b3480156101dc57600080fd5b506101f06101eb366004611f8b565b6105bf565b6040516101fd91906121f9565b60405180910390f35b34801561021257600080fd5b5061021b610607565b6040516101fd9190612222565b34801561023457600080fd5b50610248610243366004612009565b610699565b6040516101fd9190612185565b34801561026157600080fd5b50610275610270366004611e17565b6106dc565b005b34801561028357600080fd5b5061028c61076f565b6040516101fd9190612887565b3480156102a557600080fd5b506102756102b4366004611d29565b6107a7565b3480156102c557600080fd5b506102756102d4366004611d29565b6107df565b6102756102e7366004612021565b6107fa565b3480156102f857600080fd5b50610275610307366004612021565b610976565b34801561031857600080fd5b50610275610327366004611fc3565b610b07565b34801561033857600080fd5b50610248610347366004612009565b610b59565b34801561035857600080fd5b5061028c610367366004611cb2565b610b8e565b34801561037857600080fd5b50610275610bd2565b34801561038d57600080fd5b5061028c610c1d565b3480156103a257600080fd5b50610248610c23565b3480156103b757600080fd5b5061021b610c32565b3480156103cc57600080fd5b506102756103db366004611de6565b610c41565b3480156103ec57600080fd5b506102756103fb366004611d69565b610c53565b34801561040c57600080fd5b5061021b61041b366004612009565b610c92565b34801561042c57600080fd5b5061027561043b366004612009565b610e68565b34801561044c57600080fd5b5061027561045b366004611e42565b610eac565b34801561046c57600080fd5b506101f061047b366004611cf1565b6112a2565b34801561048c57600080fd5b5061027561049b366004611ed8565b611375565b3480156104ac57600080fd5b506102756104bb366004611cb2565b611455565b6000811180156104d15750600a8111155b6104ed5760405162461bcd60e51b8152600401610177906125b6565b61264881600a546104fe91906128c6565b111561051c5760405162461bcd60e51b81526004016101779061282b565b60005b8181101561054e5761053e3382600a5461053991906128c6565b6114c6565b61054781612989565b905061051f565b5080600a600082825461056191906128c6565b909155506000905061057a66b1a2bc2ec50000836128f2565b6105849034612911565b905080156105bb57604051339082156108fc029083906000818181858888f193505050501580156105b9573d6000803e3d6000fd5b505b5050565b60006001600160e01b031982166380ac58cd60e01b14806105f057506001600160e01b03198216635b5e139f60e01b145b806105ff57506105ff82611599565b90505b919050565b60606001805461061690612954565b80601f016020809104026020016040519081016040528092919081815260200182805461064290612954565b801561068f5780601f106106645761010080835404028352916020019161068f565b820191906000526020600020905b81548152906001019060200180831161067257829003601f168201915b5050505050905090565b60006106a4826115b2565b6106c05760405162461bcd60e51b8152600401610177906125df565b506000908152600760205260409020546001600160a01b031690565b60006106e782610b59565b9050806001600160a01b0316836001600160a01b0316141561071b5760405162461bcd60e51b815260040161017790612739565b806001600160a01b031661072d6115cf565b6001600160a01b0316148061074957506107498161047b6115cf565b6107655760405162461bcd60e51b815260040161017790612255565b6105b983836115d3565b60006109c4600a541061079e57612648612710600a5461078f91906128c6565b6107999190612911565b6107a2565b600a545b905090565b6107b86107b26115cf565b82611641565b6107d45760405162461bcd60e51b8152600401610177906127a3565b6105b98383836116be565b6105b983838360405180602001604052806000815250610c53565b6002600954141561081d5760405162461bcd60e51b815260040161017790612850565b600260095560008383838330816108326115cf565b604051602001610844939291906121d6565b60405160208183030381529060405280519060200120905060008160405160200161086f9190612154565b6040516020818303038152906040528051906020012090506000600182858888604051600081526020016040526040516108ac9493929190612204565b6020604051602081039080840390855afa1580156108ce573d6000803e3d6000fd5b505050602060405103519050806001600160a01b03167f00000000000000000000000003ee11bc42e2b86a23e668476aaa3dec6aa7969e6001600160a01b03161461092b5760405162461bcd60e51b8152600401610177906126d6565b61093c66b1a2bc2ec500008c6128f2565b34101561095b5760405162461bcd60e51b81526004016101779061270d565b6109648b6104c0565b50506001600955505050505050505050565b83838383600030856109866115cf565b604051602001610998939291906121d6565b6040516020818303038152906040528051906020012090506000816040516020016109c39190612154565b604051602081830303815290604052805190602001209050600060018285888860405160008152602001604052604051610a009493929190612204565b6020604051602081039080840390855afa158015610a22573d6000803e3d6000fd5b505050602060405103519050806001600160a01b03167f00000000000000000000000003ee11bc42e2b86a23e668476aaa3dec6aa7969e6001600160a01b031614610a7f5760405162461bcd60e51b8152600401610177906126d6565b61267a600b5410610aa25760405162461bcd60e51b8152600401610177906124c4565b6126488b10158015610ab5575061267a8b105b610ad15760405162461bcd60e51b81526004016101779061244f565b610ae2610adc6115cf565b8c6114c6565b6001600b6000828254610af591906128c6565b90915550505050505050505050505050565b610b0f6115cf565b6001600160a01b0316610b20610c23565b6001600160a01b031614610b465760405162461bcd60e51b815260040161017790612658565b80516105bb906003906020840190611b78565b6000818152600560205260408120546001600160a01b0316806105ff5760405162461bcd60e51b815260040161017790612538565b60006001600160a01b038216610bb65760405162461bcd60e51b8152600401610177906124ee565b506001600160a01b031660009081526006602052604090205490565b610bda6115cf565b6001600160a01b0316610beb610c23565b6001600160a01b031614610c115760405162461bcd60e51b815260040161017790612658565b610c1b60006117e0565b565b60045481565b6000546001600160a01b031690565b60606002805461061690612954565b6105bb610c4c6115cf565b8383611830565b610c64610c5e6115cf565b83611641565b610c805760405162461bcd60e51b8152600401610177906127f4565b610c8c848484846118d3565b50505050565b6060610c9d826115b2565b610cb95760405162461bcd60e51b81526004016101779061229b565b600060038054610cc890612954565b80601f0160208091040260200160405190810160405280929190818152602001828054610cf490612954565b8015610d415780601f10610d1657610100808354040283529160200191610d41565b820191906000526020600020905b815481529060010190602001808311610d2457829003601f168201915b50505050509050805160001480610d9757508060018251610d629190612911565b81518110610d8057634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916602f60f81b145b15610dcf576003610da784611906565b604051602001610db89291906120ae565b604051602081830303815290604052915050610602565b60038054610ddc90612954565b80601f0160208091040260200160405190810160405280929190818152602001828054610e0890612954565b8015610e555780601f10610e2a57610100808354040283529160200191610e55565b820191906000526020600020905b815481529060010190602001808311610e3857829003601f168201915b5050505050915050610602565b50919050565b610e706115cf565b6001600160a01b0316610e81610c23565b6001600160a01b031614610ea75760405162461bcd60e51b815260040161017790612658565b600455565b610eb46115cf565b6001600160a01b0316610ec5610c23565b6001600160a01b031614610eeb5760405162461bcd60e51b815260040161017790612658565b821580610ef757508285145b8015610f0a5750801580610f0a57508085145b610f265760405162461bcd60e51b81526004016101779061277a565b4760008667ffffffffffffffff811115610f5057634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610f79578160200160208202803683370190505b50905060005b858110156110645782878783818110610fa857634e487b7160e01b600052603260045260246000fd5b905060200201351115610fcd5760405162461bcd60e51b81526004016101779061262b565b868682818110610fed57634e487b7160e01b600052603260045260246000fd5b9050602002013582828151811061101457634e487b7160e01b600052603260045260246000fd5b60200260200101818152505086868281811061104057634e487b7160e01b600052603260045260246000fd5b90506020020135836110529190612911565b925061105d81612989565b9050610f7f565b508160005b84811015611118576000606487878481811061109557634e487b7160e01b600052603260045260246000fd5b90506020020135846110a791906128f2565b6110b191906128de565b9050848111156110c157846110c3565b805b8483815181106110e357634e487b7160e01b600052603260045260246000fd5b602002602001018181516110f791906128c6565b9052506111048186612911565b9450508061111190612989565b9050611069565b5060005b8881101561129657600083828151811061114657634e487b7160e01b600052603260045260246000fd5b602002602001015111156112865789898281811061117457634e487b7160e01b600052603260045260246000fd5b90506020020160208101906111899190611cb2565b6001600160a01b03166108fc8483815181106111b557634e487b7160e01b600052603260045260246000fd5b60200260200101519081150290604051600060405180830381858888f193505050501580156111e8573d6000803e3d6000fd5b5089898281811061120957634e487b7160e01b600052603260045260246000fd5b905060200201602081019061121e9190611cb2565b6001600160a01b03167fb649c98f58055c520df0dcb5709eff2e931217ff2fb1e21376130d31bbb1c0af84838151811061126857634e487b7160e01b600052603260045260246000fd5b602002602001015160405161127d9190612887565b60405180910390a25b61128f81612989565b905061111c565b50505050505050505050565b60405163c455279160e01b81526000907f000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1906001600160a01b03808516919083169063c4552791906112f8908890600401612185565b60206040518083038186803b15801561131057600080fd5b505afa158015611324573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113489190611cd5565b6001600160a01b0316141561136157600191505061136f565b61136b8484611a29565b9150505b92915050565b61137d6115cf565b6001600160a01b031661138e610c23565b6001600160a01b0316146113b45760405162461bcd60e51b815260040161017790612658565b6127108151600c546113c691906128c6565b11156113e45760405162461bcd60e51b815260040161017790612374565b60005b81518110156114395761142982828151811061141357634e487b7160e01b600052603260045260246000fd5b602002602001015182600c5461053991906128c6565b61143281612989565b90506113e7565b508051600c600082825461144d91906128c6565b909155505050565b61145d6115cf565b6001600160a01b031661146e610c23565b6001600160a01b0316146114945760405162461bcd60e51b815260040161017790612658565b6001600160a01b0381166114ba5760405162461bcd60e51b81526004016101779061232e565b6114c3816117e0565b50565b6001600160a01b0382166114ec5760405162461bcd60e51b815260040161017790612581565b6114f5816115b2565b156115125760405162461bcd60e51b81526004016101779061239d565b6001600160a01b038216600090815260066020526040812080546001929061153b9084906128c6565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b031981166301ffc9a760e01b14919050565b6000908152600560205260409020546001600160a01b0316151590565b3390565b600081815260076020526040902080546001600160a01b0319166001600160a01b038416908117909155819061160882610b59565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061164c826115b2565b6116685760405162461bcd60e51b815260040161017790612478565b600061167383610b59565b9050806001600160a01b0316846001600160a01b031614806116ae5750836001600160a01b03166116a384610699565b6001600160a01b0316145b8061136b575061136b81856112a2565b826001600160a01b03166116d182610b59565b6001600160a01b0316146116f75760405162461bcd60e51b81526004016101779061268d565b6001600160a01b03821661171d5760405162461bcd60e51b8152600401610177906123d4565b6117286000826115d3565b6001600160a01b0383166000908152600660205260408120805460019290611751908490612911565b90915550506001600160a01b038216600090815260066020526040812080546001929061177f9084906128c6565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b031614156118625760405162461bcd60e51b815260040161017790612418565b6001600160a01b0383811660008181526008602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31906118c69085906121f9565b60405180910390a3505050565b6118de8484846116be565b6118ea84848484611a57565b610c8c5760405162461bcd60e51b8152600401610177906122dc565b60608161192b57506040805180820190915260018152600360fc1b6020820152610602565b8160005b8115611955578061193f81612989565b915061194e9050600a836128de565b915061192f565b60008167ffffffffffffffff81111561197e57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156119a8576020820181803683370190505b5090505b8415611a21576119bd600183612911565b91506119ca600a866129a4565b6119d59060306128c6565b60f81b8183815181106119f857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611a1a600a866128de565b94506119ac565b949350505050565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b6000611a6b846001600160a01b0316611b72565b15611b6757836001600160a01b031663150b7a02611a876115cf565b8786866040518563ffffffff1660e01b8152600401611aa99493929190612199565b602060405180830381600087803b158015611ac357600080fd5b505af1925050508015611af3575060408051601f3d908101601f19168201909252611af091810190611fa7565b60015b611b4d573d808015611b21576040519150601f19603f3d011682016040523d82523d6000602084013e611b26565b606091505b508051611b455760405162461bcd60e51b8152600401610177906122dc565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a21565b506001949350505050565b3b151590565b828054611b8490612954565b90600052602060002090601f016020900481019282611ba65760008555611bec565b82601f10611bbf57805160ff1916838001178555611bec565b82800160010185558215611bec579182015b82811115611bec578251825591602001919060010190611bd1565b50611bf8929150611bfc565b5090565b5b80821115611bf85760008155600101611bfd565b600067ffffffffffffffff831115611c2b57611c2b6129e4565b611c3e601f8401601f1916602001612890565b9050828152838383011115611c5257600080fd5b828260208301376000602084830101529392505050565b60008083601f840112611c7a578182fd5b50813567ffffffffffffffff811115611c91578182fd5b6020830191508360208083028501011115611cab57600080fd5b9250929050565b600060208284031215611cc3578081fd5b8135611cce816129fa565b9392505050565b600060208284031215611ce6578081fd5b8151611cce816129fa565b60008060408385031215611d03578081fd5b8235611d0e816129fa565b91506020830135611d1e816129fa565b809150509250929050565b600080600060608486031215611d3d578081fd5b8335611d48816129fa565b92506020840135611d58816129fa565b929592945050506040919091013590565b60008060008060808587031215611d7e578081fd5b8435611d89816129fa565b93506020850135611d99816129fa565b925060408501359150606085013567ffffffffffffffff811115611dbb578182fd5b8501601f81018713611dcb578182fd5b611dda87823560208401611c11565b91505092959194509250565b60008060408385031215611df8578182fd5b8235611e03816129fa565b915060208301358015158114611d1e578182fd5b60008060408385031215611e29578182fd5b8235611e34816129fa565b946020939093013593505050565b60008060008060008060608789031215611e5a578182fd5b863567ffffffffffffffff80821115611e71578384fd5b611e7d8a838b01611c69565b90985096506020890135915080821115611e95578384fd5b611ea18a838b01611c69565b90965094506040890135915080821115611eb9578384fd5b50611ec689828a01611c69565b979a9699509497509295939492505050565b60006020808385031215611eea578182fd5b823567ffffffffffffffff80821115611f01578384fd5b818501915085601f830112611f14578384fd5b813581811115611f2657611f266129e4565b8381029150611f36848301612890565b8181528481019084860184860187018a1015611f50578788fd5b8795505b83861015611f7e5780359450611f69856129fa565b84835260019590950194918601918601611f54565b5098975050505050505050565b600060208284031215611f9c578081fd5b8135611cce81612a0f565b600060208284031215611fb8578081fd5b8151611cce81612a0f565b600060208284031215611fd4578081fd5b813567ffffffffffffffff811115611fea578182fd5b8201601f81018413611ffa578182fd5b61136b84823560208401611c11565b60006020828403121561201a578081fd5b5035919050565b60008060008060808587031215612036578182fd5b843593506020850135925060408501359150606085013560ff8116811461205b578182fd5b939692955090935050565b6000815180845261207e816020860160208601612928565b601f01601f19169290920160200192915050565b600081516120a4818560208601612928565b9290920192915050565b82546000908190600281046001808316806120ca57607f831692505b60208084108214156120ea57634e487b7160e01b87526022600452602487fd5b8180156120fe576001811461210f5761213b565b60ff1986168952848901965061213b565b6121188b6128ba565b885b868110156121335781548b82015290850190830161211a565b505084890196505b50505050505061214b8185612092565b95945050505050565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b6001600160a01b0391909116815260200190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906121cc90830184612066565b9695505050505050565b6001600160a01b0393841681526020810192909252909116604082015260600190565b901515815260200190565b93845260ff9290921660208401526040830152606082015260800190565b600060208252611cce6020830184612066565b60208082526006908201526514185d5cd95960d21b604082015260600190565b60208082526026908201527f4552433732313a204e6f74206f776e6572206e6f7220617070726f76656420666040820152651bdc88185b1b60d21b606082015260800190565b60208082526021908201527f4552433732314d657461646174613a204e6f6e6578697374656e7420746f6b656040820152603760f91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252600f908201526e1519585b50d85c081c995858da1959608a1b604082015260600190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252600f908201526e125b9d985b1a59081d1bdad95b9259608a1b604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526010908201526f14da1a5b1b10d85c081c995858da195960821b604082015260600190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252600f908201526e125b9d985b1a59081b9d5b535a5b9d608a1b604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b602080825260139082015272496e737566666963656e742062616c616e636560681b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b60208082526018908201527f5369676e617475726520646f6573206e6f74206d617463680000000000000000604082015260600190565b602080825260129082015271496e73756666696369656e742076616c756560701b604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b6020808252600f908201526e098cadccee8d040dad2e6dac2e8c6d608b1b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601e908201527f4552433732313a204e6f74206f776e6572206e6f7220617070726f7665640000604082015260600190565b6020808252600b908201526a10d85c081c995858da195960aa1b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b90815260200190565b60405181810167ffffffffffffffff811182821017156128b2576128b26129e4565b604052919050565b60009081526020902090565b600082198211156128d9576128d96129b8565b500190565b6000826128ed576128ed6129ce565b500490565b600081600019048311821515161561290c5761290c6129b8565b500290565b600082821015612923576129236129b8565b500390565b60005b8381101561294357818101518382015260200161292b565b83811115610c8c5750506000910152565b60028104600182168061296857607f821691505b60208210811415610e6257634e487b7160e01b600052602260045260246000fd5b600060001982141561299d5761299d6129b8565b5060010190565b6000826129b3576129b36129ce565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146114c357600080fd5b6001600160e01b0319811681146114c357600080fdfea26469706673582212201719a873edcb3f7bd69326dd66532804f1bd4d5536095489387e70fb424cd2e064736f6c63430008000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
-----Decoded View---------------
Arg [0] : osProxyRegistry_ (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
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.