Polygon Sponsored slots available. Book your slot here!
ERC-721
Overview
Max Total Supply
2,779 REMBDG
Holders
1,252
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
3 REMBDGLoading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
RemnantBadges
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.7; import "./ERC721A.sol"; // import "./SaleEvents.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "./extensions/ERC721AQueryable.sol"; contract RemnantBadges is Ownable, ERC721AQueryable { string public baseURI; // Metadata address public MINTER_ROLE; // The SaleEvents.sol contract event MintedBadge(address to, uint256 eventIndex, uint256 amount, uint256 currentIndex); // For backend hook to update dynamic metadata if needed event BatchMintEvent(uint256 currentIndex); // For upcoming airdrops/events (owner mint) constructor() ERC721A("Remnant Badges", "REMBDG") { setBaseURI("https://remnant.gg/nft/badges/"); } /** * Batch mint to potentially many different addresses, for owner only (used for events/contests/rewards/airdrops) */ function _batchMint(address[] memory to, uint256[] memory quantity, bytes memory _data) external onlyOwner { uint i; while (i < to.length) { _mint(to[i], quantity[i], _data, true); i++; } emit BatchMintEvent(currentIndex()); // For backend hook to update dynamic metadata } /** * Public mint badge function (can be free, paid in ETH, or REMN, includes normal and whitelist mints), calls internal mint */ function mintBadges(address _to, uint256 _saleEventIndex, uint256 _amount) external { // Only the minter from SaleEvents.sol can mint (user calls this function from SaleEvents contract) require (msg.sender == MINTER_ROLE, "No mint permission"); _safeMint(_to, _amount); // For backend to populate dynamic metadata emit MintedBadge(_to, _saleEventIndex, _amount, currentIndex()); } /** * Get the base URI */ function _baseURI() internal view virtual override returns (string memory) { return baseURI; } /** * Use to change the base URI */ function setBaseURI(string memory _newBaseURI) public onlyOwner { baseURI = _newBaseURI; } /** * Set the minter contract */ function setMinterRole(address _addr) public onlyOwner { MINTER_ROLE = _addr; } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity 0.8.7; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; import "@openzeppelin/contracts/access/Ownable.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, Ownable { using Address for address; using Strings for uint256; // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals // _operatorApprovals[_msgSender()][operator] = approved; mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Remnant - Added current index return */ function currentIndex() public view virtual returns (uint256) { return _currentIndex; } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @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 override returns (uint256) { if (owner == address(0)) revert(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr && curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @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) { if (!_exists(tokenId)) revert(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _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 { _transfer(from, to, tokenId); if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) { revert(); } } /** * @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`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity, _data, true); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert(); if (quantity == 0) revert(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (safe && to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert(); } } while (updatedIndex < end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) private { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert(); if (to == address(0)) revert(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev This is equivalent to _burn(tokenId, false) */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * 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, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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 `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, uint256 amount ) external returns (bool); /** * @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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity 0.8.7; import '../ERC721A.sol'; error InvalidQueryRange(); /** * @title ERC721A Queryable * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * - `addr` = `address(0)` * - `startTimestamp` = `0` * - `burned` = `false` * * If the `tokenId` is burned: * - `addr` = `<Address of owner before token was burned>` * - `startTimestamp` = `<Timestamp when token was burned>` * - `burned = `true` * * Otherwise: * - `addr` = `<Address of owner>` * - `startTimestamp` = `<Timestamp of start of ownership>` * - `burned = `false` */ function explicitOwnershipOf(uint256 tokenId) public view returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _currentIndex) { return ownership; } ownership = _ownerships[tokenId]; if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start` < `stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _currentIndex; // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, _currentIndex)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownerships[i]; if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(totalSupply) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K pfp collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownerships[i]; if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"currentIndex","type":"uint256"}],"name":"BatchMintEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"eventIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"currentIndex","type":"uint256"}],"name":"MintedBadge","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":"MINTER_ROLE","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"to","type":"address[]"},{"internalType":"uint256[]","name":"quantity","type":"uint256[]"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"_batchMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct ERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct ERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_saleEventIndex","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mintBadges","outputs":[],"stateMutability":"nonpayable","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":"address","name":"_addr","type":"address"}],"name":"setMinterRole","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":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040518060400160405280600e81526020017f52656d6e616e74204261646765730000000000000000000000000000000000008152506040518060400160405280600681526020017f52454d42444700000000000000000000000000000000000000000000000000008152506200009e620000926200013460201b60201c565b6200013c60201b60201c565b8160039080519060200190620000b6929190620002d9565b508060049080519060200190620000cf929190620002d9565b50620000e06200020060201b60201c565b60018190555050506200012e6040518060400160405280601e81526020017f68747470733a2f2f72656d6e616e742e67672f6e66742f6261646765732f00008152506200020560201b60201c565b62000471565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600090565b620002156200013460201b60201c565b73ffffffffffffffffffffffffffffffffffffffff166200023b620002b060201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161462000294576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200028b90620003b0565b60405180910390fd5b8060099080519060200190620002ac929190620002d9565b5050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b828054620002e790620003e3565b90600052602060002090601f0160209004810192826200030b576000855562000357565b82601f106200032657805160ff191683800117855562000357565b8280016001018555821562000357579182015b828111156200035657825182559160200191906001019062000339565b5b5090506200036691906200036a565b5090565b5b80821115620003855760008160009055506001016200036b565b5090565b600062000398602083620003d2565b9150620003a58262000448565b602082019050919050565b60006020820190508181036000830152620003cb8162000389565b9050919050565b600082825260208201905092915050565b60006002820490506001821680620003fc57607f821691505b6020821081141562000413576200041262000419565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b613a7c80620004816000396000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c80638462151c116100f9578063b93451bb11610097578063c87b56dd11610071578063c87b56dd14610503578063d539139314610533578063e985e9c514610551578063f2fde38b14610581576101c4565b8063b93451bb1461049b578063c23dc68f146104b7578063c5b10f94146104e7576101c4565b806395d89b41116100d357806395d89b411461041557806399a2557a14610433578063a22cb46514610463578063b88d4fde1461047f576101c4565b80638462151c146103ab5780638da5cb5b146103db578063945d1229146103f9576101c4565b806342842e0e116101665780636352211e116101405780636352211e146103235780636c0360eb1461035357806370a0823114610371578063715018a6146103a1576101c4565b806342842e0e146102bb57806355f804b3146102d75780635bbb2177146102f3576101c4565b8063095ea7b3116101a2578063095ea7b31461024757806318160ddd1461026357806323b872dd1461028157806326987b601461029d576101c4565b806301ffc9a7146101c957806306fdde03146101f9578063081812fc14610217575b600080fd5b6101e360048036038101906101de9190612ea2565b61059d565b6040516101f0919061336b565b60405180910390f35b61020161067f565b60405161020e9190613386565b60405180910390f35b610231600480360381019061022c9190612f45565b610711565b60405161023e919061327b565b60405180910390f35b610261600480360381019061025c9190612d1f565b610760565b005b61026b610811565b6040516102789190613423565b60405180910390f35b61029b60048036038101906102969190612c09565b610828565b005b6102a5610838565b6040516102b29190613423565b60405180910390f35b6102d560048036038101906102d09190612c09565b610842565b005b6102f160048036038101906102ec9190612efc565b610862565b005b61030d60048036038101906103089190612e59565b6108f8565b60405161031a9190613327565b60405180910390f35b61033d60048036038101906103389190612f45565b6109b9565b60405161034a919061327b565b60405180910390f35b61035b6109cf565b6040516103689190613386565b60405180910390f35b61038b60048036038101906103869190612b9c565b610a5d565b6040516103989190613423565b60405180910390f35b6103a9610b00565b005b6103c560048036038101906103c09190612b9c565b610b88565b6040516103d29190613349565b60405180910390f35b6103e3610d8a565b6040516103f0919061327b565b60405180910390f35b610413600480360381019061040e9190612b9c565b610db3565b005b61041d610e73565b60405161042a9190613386565b60405180910390f35b61044d60048036038101906104489190612d5f565b610f05565b60405161045a9190613349565b60405180910390f35b61047d60048036038101906104789190612cdf565b6111cc565b005b61049960048036038101906104949190612c5c565b611317565b005b6104b560048036038101906104b09190612db2565b611366565b005b6104d160048036038101906104cc9190612f45565b611486565b6040516104de9190613408565b60405180910390f35b61050160048036038101906104fc9190612d5f565b6115a3565b005b61051d60048036038101906105189190612f45565b611686565b60405161052a9190613386565b60405180910390f35b61053b6116f8565b604051610548919061327b565b60405180910390f35b61056b60048036038101906105669190612bc9565b61171e565b604051610578919061336b565b60405180910390f35b61059b60048036038101906105969190612b9c565b6117b2565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061066857507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806106785750610677826118aa565b5b9050919050565b60606003805461068e90613757565b80601f01602080910402602001604051908101604052809291908181526020018280546106ba90613757565b80156107075780601f106106dc57610100808354040283529160200191610707565b820191906000526020600020905b8154815290600101906020018083116106ea57829003601f168201915b5050505050905090565b600061071c82611914565b61072557600080fd5b6007600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061076b826109b9565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156107a657600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166107c5611962565b73ffffffffffffffffffffffffffffffffffffffff16141580156107f757506107f5816107f0611962565b61171e565b155b1561080157600080fd5b61080c83838361196a565b505050565b600061081b611a1c565b6002546001540303905090565b610833838383611a21565b505050565b6000600154905090565b61085d83838360405180602001604052806000815250611317565b505050565b61086a611962565b73ffffffffffffffffffffffffffffffffffffffff16610888610d8a565b73ffffffffffffffffffffffffffffffffffffffff16146108de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d5906133e8565b60405180910390fd5b80600990805190602001906108f4929190612831565b5050565b606060008251905060008167ffffffffffffffff81111561091c5761091b6138f0565b5b60405190808252806020026020018201604052801561095557816020015b6109426128b7565b81526020019060019003908161093a5790505b50905060005b8281146109ae57610985858281518110610978576109776138c1565b5b6020026020010151611486565b828281518110610998576109976138c1565b5b602002602001018190525080600101905061095b565b508092505050919050565b60006109c482611e50565b600001519050919050565b600980546109dc90613757565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0890613757565b8015610a555780601f10610a2a57610100808354040283529160200191610a55565b820191906000526020600020905b815481529060010190602001808311610a3857829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610a9857600080fd5b600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b610b08611962565b73ffffffffffffffffffffffffffffffffffffffff16610b26610d8a565b73ffffffffffffffffffffffffffffffffffffffff1614610b7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b73906133e8565b60405180910390fd5b610b8660006120b2565b565b60606000806000610b9885610a5d565b905060008167ffffffffffffffff811115610bb657610bb56138f0565b5b604051908082528060200260200182016040528015610be45781602001602082028036833780820191505090505b509050610bef6128b7565b6000610bf9611a1c565b90505b838614610d7c57600560008281526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509150816040015115610cd557610d71565b600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614610d1557816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610d705780838780600101985081518110610d6357610d626138c1565b5b6020026020010181815250505b5b806001019050610bfc565b508195505050505050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610dbb611962565b73ffffffffffffffffffffffffffffffffffffffff16610dd9610d8a565b73ffffffffffffffffffffffffffffffffffffffff1614610e2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e26906133e8565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606060048054610e8290613757565b80601f0160208091040260200160405190810160405280929190818152602001828054610eae90613757565b8015610efb5780601f10610ed057610100808354040283529160200191610efb565b820191906000526020600020905b815481529060010190602001808311610ede57829003601f168201915b5050505050905090565b6060818310610f40576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806001549050610f50611a1c565b851015610f6257610f5f611a1c565b94505b80841115610f6e578093505b6000610f7987610a5d565b905084861015610f9c576000868603905081811015610f96578091505b50610fa1565b600090505b60008167ffffffffffffffff811115610fbd57610fbc6138f0565b5b604051908082528060200260200182016040528015610feb5781602001602082028036833780820191505090505b509050600082141561100357809450505050506111c5565b600061100e88611486565b90506000816040015161102357816000015190505b60008990505b8881141580156110395750848714155b156111b757600560008281526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509250826040015115611110576111ac565b600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff161461115057826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156111ab578084888060010199508151811061119e5761119d6138c1565b5b6020026020010181815250505b5b806001019050611029565b508583528296505050505050505b9392505050565b6111d4611962565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561120c57600080fd5b8060086000611219611962565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166112c6611962565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161130b919061336b565b60405180910390a35050565b611322848484611a21565b6113418373ffffffffffffffffffffffffffffffffffffffff16612176565b8015611356575061135484848484612189565b155b1561136057600080fd5b50505050565b61136e611962565b73ffffffffffffffffffffffffffffffffffffffff1661138c610d8a565b73ffffffffffffffffffffffffffffffffffffffff16146113e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d9906133e8565b60405180910390fd5b60005b83518110156114425761142f848281518110611404576114036138c1565b5b602002602001015184838151811061141f5761141e6138c1565b5b60200260200101518460016122bc565b808061143a906137ba565b9150506113e5565b7f178cc1858f98fcfcff9b78780ba302a73769c4a8baffd13e3a09b56d0b53236261146b610838565b6040516114789190613423565b60405180910390a150505050565b61148e6128b7565b6114966128b7565b61149e611a1c565b8310806114ad57506001548310155b156114bb578091505061159e565b600560008481526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050806040015115611591578091505061159e565b61159a83611e50565b9150505b919050565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611633576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162a906133c8565b60405180910390fd5b61163d8382612602565b7fb542a57f9876a0d88da2889bd38c13898081ccc0962709dd2a38d30062eaf142838383611669610838565b60405161167994939291906132e2565b60405180910390a1505050565b606061169182611914565b61169a57600080fd5b60006116a4612620565b90506000815114156116c557604051806020016040528060008152506116f0565b806116cf846126b2565b6040516020016116e0929190613257565b6040516020818303038152906040525b915050919050565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6117ba611962565b73ffffffffffffffffffffffffffffffffffffffff166117d8610d8a565b73ffffffffffffffffffffffffffffffffffffffff161461182e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611825906133e8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561189e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611895906133a8565b60405180910390fd5b6118a7816120b2565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008161191f611a1c565b1115801561192e575060015482105b801561195b575060056000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826007600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600090565b6000611a2c82611e50565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614611a6a57600080fd5b60008473ffffffffffffffffffffffffffffffffffffffff16611a8b611962565b73ffffffffffffffffffffffffffffffffffffffff161480611aba5750611ab985611ab4611962565b61171e565b5b80611aff5750611ac8611962565b73ffffffffffffffffffffffffffffffffffffffff16611ae784610711565b73ffffffffffffffffffffffffffffffffffffffff16145b905080611b0b57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611b4557600080fd5b611b528585856001612813565b611b5e6000848761196a565b6001600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600560008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600560008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611dde576001548214611ddd57878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611e498585856001612819565b5050505050565b611e586128b7565b600082905080611e66611a1c565b11158015611e75575060015481105b156120a8576000600560008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff161515151581525050905080604001516120a657600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614611f8a5780925050506120ad565b5b6001156120a557818060019003925050600560008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146120a05780925050506120ad565b611f8b565b5b505b600080fd5b919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080823b905060008111915050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026121af611962565b8786866040518563ffffffff1660e01b81526004016121d19493929190613296565b602060405180830381600087803b1580156121eb57600080fd5b505af192505050801561221c57506040513d601f19601f820116820180604052508101906122199190612ecf565b60015b612269573d806000811461224c576040519150601f19603f3d011682016040523d82523d6000602084013e612251565b606091505b5060008151141561226157600080fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60006001549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156122fd57600080fd5b600084141561230b57600080fd5b6123186000868387612813565b83600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846005600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426005600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000819050600085820190508380156124e257506124e18773ffffffffffffffffffffffffffffffffffffffff16612176565b5b1561257a575b818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46125576000888480600101955088612189565b61256057600080fd5b8082106124e857826001541461257557600080fd5b6125e5565b5b818060010192508773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480821061257b575b8160018190555050506125fb6000868387612819565b5050505050565b61261c82826040518060200160405280600081525061281f565b5050565b60606009805461262f90613757565b80601f016020809104026020016040519081016040528092919081815260200182805461265b90613757565b80156126a85780601f1061267d576101008083540402835291602001916126a8565b820191906000526020600020905b81548152906001019060200180831161268b57829003601f168201915b5050505050905090565b606060008214156126fa576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061280e565b600082905060005b6000821461272c578080612715906137ba565b915050600a826127259190613628565b9150612702565b60008167ffffffffffffffff811115612748576127476138f0565b5b6040519080825280601f01601f19166020018201604052801561277a5781602001600182028036833780820191505090505b5090505b60008514612807576001826127939190613659565b9150600a856127a29190613803565b60306127ae91906135d2565b60f81b8183815181106127c4576127c36138c1565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856128009190613628565b945061277e565b8093505050505b919050565b50505050565b50505050565b61282c83838360016122bc565b505050565b82805461283d90613757565b90600052602060002090601f01602090048101928261285f57600085556128a6565b82601f1061287857805160ff19168380011785556128a6565b828001600101855582156128a6579182015b828111156128a557825182559160200191906001019061288a565b5b5090506128b391906128fa565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b808211156129135760008160009055506001016128fb565b5090565b600061292a61292584613463565b61343e565b9050808382526020820190508285602086028201111561294d5761294c613924565b5b60005b8581101561297d57816129638882612a7b565b845260208401935060208301925050600181019050612950565b5050509392505050565b600061299a6129958461348f565b61343e565b905080838252602082019050828560208602820111156129bd576129bc613924565b5b60005b858110156129ed57816129d38882612b87565b8452602084019350602083019250506001810190506129c0565b5050509392505050565b6000612a0a612a05846134bb565b61343e565b905082815260208101848484011115612a2657612a25613929565b5b612a31848285613715565b509392505050565b6000612a4c612a47846134ec565b61343e565b905082815260208101848484011115612a6857612a67613929565b5b612a73848285613715565b509392505050565b600081359050612a8a816139ea565b92915050565b600082601f830112612aa557612aa461391f565b5b8135612ab5848260208601612917565b91505092915050565b600082601f830112612ad357612ad261391f565b5b8135612ae3848260208601612987565b91505092915050565b600081359050612afb81613a01565b92915050565b600081359050612b1081613a18565b92915050565b600081519050612b2581613a18565b92915050565b600082601f830112612b4057612b3f61391f565b5b8135612b508482602086016129f7565b91505092915050565b600082601f830112612b6e57612b6d61391f565b5b8135612b7e848260208601612a39565b91505092915050565b600081359050612b9681613a2f565b92915050565b600060208284031215612bb257612bb1613933565b5b6000612bc084828501612a7b565b91505092915050565b60008060408385031215612be057612bdf613933565b5b6000612bee85828601612a7b565b9250506020612bff85828601612a7b565b9150509250929050565b600080600060608486031215612c2257612c21613933565b5b6000612c3086828701612a7b565b9350506020612c4186828701612a7b565b9250506040612c5286828701612b87565b9150509250925092565b60008060008060808587031215612c7657612c75613933565b5b6000612c8487828801612a7b565b9450506020612c9587828801612a7b565b9350506040612ca687828801612b87565b925050606085013567ffffffffffffffff811115612cc757612cc661392e565b5b612cd387828801612b2b565b91505092959194509250565b60008060408385031215612cf657612cf5613933565b5b6000612d0485828601612a7b565b9250506020612d1585828601612aec565b9150509250929050565b60008060408385031215612d3657612d35613933565b5b6000612d4485828601612a7b565b9250506020612d5585828601612b87565b9150509250929050565b600080600060608486031215612d7857612d77613933565b5b6000612d8686828701612a7b565b9350506020612d9786828701612b87565b9250506040612da886828701612b87565b9150509250925092565b600080600060608486031215612dcb57612dca613933565b5b600084013567ffffffffffffffff811115612de957612de861392e565b5b612df586828701612a90565b935050602084013567ffffffffffffffff811115612e1657612e1561392e565b5b612e2286828701612abe565b925050604084013567ffffffffffffffff811115612e4357612e4261392e565b5b612e4f86828701612b2b565b9150509250925092565b600060208284031215612e6f57612e6e613933565b5b600082013567ffffffffffffffff811115612e8d57612e8c61392e565b5b612e9984828501612abe565b91505092915050565b600060208284031215612eb857612eb7613933565b5b6000612ec684828501612b01565b91505092915050565b600060208284031215612ee557612ee4613933565b5b6000612ef384828501612b16565b91505092915050565b600060208284031215612f1257612f11613933565b5b600082013567ffffffffffffffff811115612f3057612f2f61392e565b5b612f3c84828501612b59565b91505092915050565b600060208284031215612f5b57612f5a613933565b5b6000612f6984828501612b87565b91505092915050565b6000612f7e83836131a6565b60608301905092915050565b6000612f96838361322a565b60208301905092915050565b612fab8161368d565b82525050565b612fba8161368d565b82525050565b6000612fcb8261353d565b612fd58185613583565b9350612fe08361351d565b8060005b83811015613011578151612ff88882612f72565b975061300383613569565b925050600181019050612fe4565b5085935050505092915050565b600061302982613548565b6130338185613594565b935061303e8361352d565b8060005b8381101561306f5781516130568882612f8a565b975061306183613576565b925050600181019050613042565b5085935050505092915050565b6130858161369f565b82525050565b6130948161369f565b82525050565b60006130a582613553565b6130af81856135a5565b93506130bf818560208601613724565b6130c881613938565b840191505092915050565b60006130de8261355e565b6130e881856135b6565b93506130f8818560208601613724565b61310181613938565b840191505092915050565b60006131178261355e565b61312181856135c7565b9350613131818560208601613724565b80840191505092915050565b600061314a6026836135b6565b915061315582613949565b604082019050919050565b600061316d6012836135b6565b915061317882613998565b602082019050919050565b60006131906020836135b6565b915061319b826139c1565b602082019050919050565b6060820160008201516131bc6000850182612fa2565b5060208201516131cf6020850182613248565b5060408201516131e2604085018261307c565b50505050565b6060820160008201516131fe6000850182612fa2565b5060208201516132116020850182613248565b506040820151613224604085018261307c565b50505050565b613233816136f7565b82525050565b613242816136f7565b82525050565b61325181613701565b82525050565b6000613263828561310c565b915061326f828461310c565b91508190509392505050565b60006020820190506132906000830184612fb1565b92915050565b60006080820190506132ab6000830187612fb1565b6132b86020830186612fb1565b6132c56040830185613239565b81810360608301526132d7818461309a565b905095945050505050565b60006080820190506132f76000830187612fb1565b6133046020830186613239565b6133116040830185613239565b61331e6060830184613239565b95945050505050565b600060208201905081810360008301526133418184612fc0565b905092915050565b60006020820190508181036000830152613363818461301e565b905092915050565b6000602082019050613380600083018461308b565b92915050565b600060208201905081810360008301526133a081846130d3565b905092915050565b600060208201905081810360008301526133c18161313d565b9050919050565b600060208201905081810360008301526133e181613160565b9050919050565b6000602082019050818103600083015261340181613183565b9050919050565b600060608201905061341d60008301846131e8565b92915050565b60006020820190506134386000830184613239565b92915050565b6000613448613459565b90506134548282613789565b919050565b6000604051905090565b600067ffffffffffffffff82111561347e5761347d6138f0565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156134aa576134a96138f0565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156134d6576134d56138f0565b5b6134df82613938565b9050602081019050919050565b600067ffffffffffffffff821115613507576135066138f0565b5b61351082613938565b9050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006135dd826136f7565b91506135e8836136f7565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561361d5761361c613834565b5b828201905092915050565b6000613633826136f7565b915061363e836136f7565b92508261364e5761364d613863565b5b828204905092915050565b6000613664826136f7565b915061366f836136f7565b92508282101561368257613681613834565b5b828203905092915050565b6000613698826136d7565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600067ffffffffffffffff82169050919050565b82818337600083830152505050565b60005b83811015613742578082015181840152602081019050613727565b83811115613751576000848401525b50505050565b6000600282049050600182168061376f57607f821691505b6020821081141561378357613782613892565b5b50919050565b61379282613938565b810181811067ffffffffffffffff821117156137b1576137b06138f0565b5b80604052505050565b60006137c5826136f7565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156137f8576137f7613834565b5b600182019050919050565b600061380e826136f7565b9150613819836136f7565b92508261382957613828613863565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4e6f206d696e74207065726d697373696f6e0000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6139f38161368d565b81146139fe57600080fd5b50565b613a0a8161369f565b8114613a1557600080fd5b50565b613a21816136ab565b8114613a2c57600080fd5b50565b613a38816136f7565b8114613a4357600080fd5b5056fea26469706673582212204da0af822c42251c7ededd0f4beae8a77670eabe78d0c93366de043a1af6352a64736f6c63430008070033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101c45760003560e01c80638462151c116100f9578063b93451bb11610097578063c87b56dd11610071578063c87b56dd14610503578063d539139314610533578063e985e9c514610551578063f2fde38b14610581576101c4565b8063b93451bb1461049b578063c23dc68f146104b7578063c5b10f94146104e7576101c4565b806395d89b41116100d357806395d89b411461041557806399a2557a14610433578063a22cb46514610463578063b88d4fde1461047f576101c4565b80638462151c146103ab5780638da5cb5b146103db578063945d1229146103f9576101c4565b806342842e0e116101665780636352211e116101405780636352211e146103235780636c0360eb1461035357806370a0823114610371578063715018a6146103a1576101c4565b806342842e0e146102bb57806355f804b3146102d75780635bbb2177146102f3576101c4565b8063095ea7b3116101a2578063095ea7b31461024757806318160ddd1461026357806323b872dd1461028157806326987b601461029d576101c4565b806301ffc9a7146101c957806306fdde03146101f9578063081812fc14610217575b600080fd5b6101e360048036038101906101de9190612ea2565b61059d565b6040516101f0919061336b565b60405180910390f35b61020161067f565b60405161020e9190613386565b60405180910390f35b610231600480360381019061022c9190612f45565b610711565b60405161023e919061327b565b60405180910390f35b610261600480360381019061025c9190612d1f565b610760565b005b61026b610811565b6040516102789190613423565b60405180910390f35b61029b60048036038101906102969190612c09565b610828565b005b6102a5610838565b6040516102b29190613423565b60405180910390f35b6102d560048036038101906102d09190612c09565b610842565b005b6102f160048036038101906102ec9190612efc565b610862565b005b61030d60048036038101906103089190612e59565b6108f8565b60405161031a9190613327565b60405180910390f35b61033d60048036038101906103389190612f45565b6109b9565b60405161034a919061327b565b60405180910390f35b61035b6109cf565b6040516103689190613386565b60405180910390f35b61038b60048036038101906103869190612b9c565b610a5d565b6040516103989190613423565b60405180910390f35b6103a9610b00565b005b6103c560048036038101906103c09190612b9c565b610b88565b6040516103d29190613349565b60405180910390f35b6103e3610d8a565b6040516103f0919061327b565b60405180910390f35b610413600480360381019061040e9190612b9c565b610db3565b005b61041d610e73565b60405161042a9190613386565b60405180910390f35b61044d60048036038101906104489190612d5f565b610f05565b60405161045a9190613349565b60405180910390f35b61047d60048036038101906104789190612cdf565b6111cc565b005b61049960048036038101906104949190612c5c565b611317565b005b6104b560048036038101906104b09190612db2565b611366565b005b6104d160048036038101906104cc9190612f45565b611486565b6040516104de9190613408565b60405180910390f35b61050160048036038101906104fc9190612d5f565b6115a3565b005b61051d60048036038101906105189190612f45565b611686565b60405161052a9190613386565b60405180910390f35b61053b6116f8565b604051610548919061327b565b60405180910390f35b61056b60048036038101906105669190612bc9565b61171e565b604051610578919061336b565b60405180910390f35b61059b60048036038101906105969190612b9c565b6117b2565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061066857507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806106785750610677826118aa565b5b9050919050565b60606003805461068e90613757565b80601f01602080910402602001604051908101604052809291908181526020018280546106ba90613757565b80156107075780601f106106dc57610100808354040283529160200191610707565b820191906000526020600020905b8154815290600101906020018083116106ea57829003601f168201915b5050505050905090565b600061071c82611914565b61072557600080fd5b6007600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061076b826109b9565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156107a657600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166107c5611962565b73ffffffffffffffffffffffffffffffffffffffff16141580156107f757506107f5816107f0611962565b61171e565b155b1561080157600080fd5b61080c83838361196a565b505050565b600061081b611a1c565b6002546001540303905090565b610833838383611a21565b505050565b6000600154905090565b61085d83838360405180602001604052806000815250611317565b505050565b61086a611962565b73ffffffffffffffffffffffffffffffffffffffff16610888610d8a565b73ffffffffffffffffffffffffffffffffffffffff16146108de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d5906133e8565b60405180910390fd5b80600990805190602001906108f4929190612831565b5050565b606060008251905060008167ffffffffffffffff81111561091c5761091b6138f0565b5b60405190808252806020026020018201604052801561095557816020015b6109426128b7565b81526020019060019003908161093a5790505b50905060005b8281146109ae57610985858281518110610978576109776138c1565b5b6020026020010151611486565b828281518110610998576109976138c1565b5b602002602001018190525080600101905061095b565b508092505050919050565b60006109c482611e50565b600001519050919050565b600980546109dc90613757565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0890613757565b8015610a555780601f10610a2a57610100808354040283529160200191610a55565b820191906000526020600020905b815481529060010190602001808311610a3857829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610a9857600080fd5b600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b610b08611962565b73ffffffffffffffffffffffffffffffffffffffff16610b26610d8a565b73ffffffffffffffffffffffffffffffffffffffff1614610b7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b73906133e8565b60405180910390fd5b610b8660006120b2565b565b60606000806000610b9885610a5d565b905060008167ffffffffffffffff811115610bb657610bb56138f0565b5b604051908082528060200260200182016040528015610be45781602001602082028036833780820191505090505b509050610bef6128b7565b6000610bf9611a1c565b90505b838614610d7c57600560008281526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509150816040015115610cd557610d71565b600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614610d1557816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610d705780838780600101985081518110610d6357610d626138c1565b5b6020026020010181815250505b5b806001019050610bfc565b508195505050505050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610dbb611962565b73ffffffffffffffffffffffffffffffffffffffff16610dd9610d8a565b73ffffffffffffffffffffffffffffffffffffffff1614610e2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e26906133e8565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606060048054610e8290613757565b80601f0160208091040260200160405190810160405280929190818152602001828054610eae90613757565b8015610efb5780601f10610ed057610100808354040283529160200191610efb565b820191906000526020600020905b815481529060010190602001808311610ede57829003601f168201915b5050505050905090565b6060818310610f40576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806001549050610f50611a1c565b851015610f6257610f5f611a1c565b94505b80841115610f6e578093505b6000610f7987610a5d565b905084861015610f9c576000868603905081811015610f96578091505b50610fa1565b600090505b60008167ffffffffffffffff811115610fbd57610fbc6138f0565b5b604051908082528060200260200182016040528015610feb5781602001602082028036833780820191505090505b509050600082141561100357809450505050506111c5565b600061100e88611486565b90506000816040015161102357816000015190505b60008990505b8881141580156110395750848714155b156111b757600560008281526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509250826040015115611110576111ac565b600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff161461115057826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156111ab578084888060010199508151811061119e5761119d6138c1565b5b6020026020010181815250505b5b806001019050611029565b508583528296505050505050505b9392505050565b6111d4611962565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561120c57600080fd5b8060086000611219611962565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166112c6611962565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161130b919061336b565b60405180910390a35050565b611322848484611a21565b6113418373ffffffffffffffffffffffffffffffffffffffff16612176565b8015611356575061135484848484612189565b155b1561136057600080fd5b50505050565b61136e611962565b73ffffffffffffffffffffffffffffffffffffffff1661138c610d8a565b73ffffffffffffffffffffffffffffffffffffffff16146113e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d9906133e8565b60405180910390fd5b60005b83518110156114425761142f848281518110611404576114036138c1565b5b602002602001015184838151811061141f5761141e6138c1565b5b60200260200101518460016122bc565b808061143a906137ba565b9150506113e5565b7f178cc1858f98fcfcff9b78780ba302a73769c4a8baffd13e3a09b56d0b53236261146b610838565b6040516114789190613423565b60405180910390a150505050565b61148e6128b7565b6114966128b7565b61149e611a1c565b8310806114ad57506001548310155b156114bb578091505061159e565b600560008481526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050806040015115611591578091505061159e565b61159a83611e50565b9150505b919050565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611633576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162a906133c8565b60405180910390fd5b61163d8382612602565b7fb542a57f9876a0d88da2889bd38c13898081ccc0962709dd2a38d30062eaf142838383611669610838565b60405161167994939291906132e2565b60405180910390a1505050565b606061169182611914565b61169a57600080fd5b60006116a4612620565b90506000815114156116c557604051806020016040528060008152506116f0565b806116cf846126b2565b6040516020016116e0929190613257565b6040516020818303038152906040525b915050919050565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6117ba611962565b73ffffffffffffffffffffffffffffffffffffffff166117d8610d8a565b73ffffffffffffffffffffffffffffffffffffffff161461182e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611825906133e8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561189e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611895906133a8565b60405180910390fd5b6118a7816120b2565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008161191f611a1c565b1115801561192e575060015482105b801561195b575060056000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826007600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600090565b6000611a2c82611e50565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614611a6a57600080fd5b60008473ffffffffffffffffffffffffffffffffffffffff16611a8b611962565b73ffffffffffffffffffffffffffffffffffffffff161480611aba5750611ab985611ab4611962565b61171e565b5b80611aff5750611ac8611962565b73ffffffffffffffffffffffffffffffffffffffff16611ae784610711565b73ffffffffffffffffffffffffffffffffffffffff16145b905080611b0b57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611b4557600080fd5b611b528585856001612813565b611b5e6000848761196a565b6001600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600560008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600560008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611dde576001548214611ddd57878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611e498585856001612819565b5050505050565b611e586128b7565b600082905080611e66611a1c565b11158015611e75575060015481105b156120a8576000600560008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff161515151581525050905080604001516120a657600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614611f8a5780925050506120ad565b5b6001156120a557818060019003925050600560008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146120a05780925050506120ad565b611f8b565b5b505b600080fd5b919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080823b905060008111915050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026121af611962565b8786866040518563ffffffff1660e01b81526004016121d19493929190613296565b602060405180830381600087803b1580156121eb57600080fd5b505af192505050801561221c57506040513d601f19601f820116820180604052508101906122199190612ecf565b60015b612269573d806000811461224c576040519150601f19603f3d011682016040523d82523d6000602084013e612251565b606091505b5060008151141561226157600080fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60006001549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156122fd57600080fd5b600084141561230b57600080fd5b6123186000868387612813565b83600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846005600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426005600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000819050600085820190508380156124e257506124e18773ffffffffffffffffffffffffffffffffffffffff16612176565b5b1561257a575b818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46125576000888480600101955088612189565b61256057600080fd5b8082106124e857826001541461257557600080fd5b6125e5565b5b818060010192508773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480821061257b575b8160018190555050506125fb6000868387612819565b5050505050565b61261c82826040518060200160405280600081525061281f565b5050565b60606009805461262f90613757565b80601f016020809104026020016040519081016040528092919081815260200182805461265b90613757565b80156126a85780601f1061267d576101008083540402835291602001916126a8565b820191906000526020600020905b81548152906001019060200180831161268b57829003601f168201915b5050505050905090565b606060008214156126fa576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061280e565b600082905060005b6000821461272c578080612715906137ba565b915050600a826127259190613628565b9150612702565b60008167ffffffffffffffff811115612748576127476138f0565b5b6040519080825280601f01601f19166020018201604052801561277a5781602001600182028036833780820191505090505b5090505b60008514612807576001826127939190613659565b9150600a856127a29190613803565b60306127ae91906135d2565b60f81b8183815181106127c4576127c36138c1565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856128009190613628565b945061277e565b8093505050505b919050565b50505050565b50505050565b61282c83838360016122bc565b505050565b82805461283d90613757565b90600052602060002090601f01602090048101928261285f57600085556128a6565b82601f1061287857805160ff19168380011785556128a6565b828001600101855582156128a6579182015b828111156128a557825182559160200191906001019061288a565b5b5090506128b391906128fa565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b808211156129135760008160009055506001016128fb565b5090565b600061292a61292584613463565b61343e565b9050808382526020820190508285602086028201111561294d5761294c613924565b5b60005b8581101561297d57816129638882612a7b565b845260208401935060208301925050600181019050612950565b5050509392505050565b600061299a6129958461348f565b61343e565b905080838252602082019050828560208602820111156129bd576129bc613924565b5b60005b858110156129ed57816129d38882612b87565b8452602084019350602083019250506001810190506129c0565b5050509392505050565b6000612a0a612a05846134bb565b61343e565b905082815260208101848484011115612a2657612a25613929565b5b612a31848285613715565b509392505050565b6000612a4c612a47846134ec565b61343e565b905082815260208101848484011115612a6857612a67613929565b5b612a73848285613715565b509392505050565b600081359050612a8a816139ea565b92915050565b600082601f830112612aa557612aa461391f565b5b8135612ab5848260208601612917565b91505092915050565b600082601f830112612ad357612ad261391f565b5b8135612ae3848260208601612987565b91505092915050565b600081359050612afb81613a01565b92915050565b600081359050612b1081613a18565b92915050565b600081519050612b2581613a18565b92915050565b600082601f830112612b4057612b3f61391f565b5b8135612b508482602086016129f7565b91505092915050565b600082601f830112612b6e57612b6d61391f565b5b8135612b7e848260208601612a39565b91505092915050565b600081359050612b9681613a2f565b92915050565b600060208284031215612bb257612bb1613933565b5b6000612bc084828501612a7b565b91505092915050565b60008060408385031215612be057612bdf613933565b5b6000612bee85828601612a7b565b9250506020612bff85828601612a7b565b9150509250929050565b600080600060608486031215612c2257612c21613933565b5b6000612c3086828701612a7b565b9350506020612c4186828701612a7b565b9250506040612c5286828701612b87565b9150509250925092565b60008060008060808587031215612c7657612c75613933565b5b6000612c8487828801612a7b565b9450506020612c9587828801612a7b565b9350506040612ca687828801612b87565b925050606085013567ffffffffffffffff811115612cc757612cc661392e565b5b612cd387828801612b2b565b91505092959194509250565b60008060408385031215612cf657612cf5613933565b5b6000612d0485828601612a7b565b9250506020612d1585828601612aec565b9150509250929050565b60008060408385031215612d3657612d35613933565b5b6000612d4485828601612a7b565b9250506020612d5585828601612b87565b9150509250929050565b600080600060608486031215612d7857612d77613933565b5b6000612d8686828701612a7b565b9350506020612d9786828701612b87565b9250506040612da886828701612b87565b9150509250925092565b600080600060608486031215612dcb57612dca613933565b5b600084013567ffffffffffffffff811115612de957612de861392e565b5b612df586828701612a90565b935050602084013567ffffffffffffffff811115612e1657612e1561392e565b5b612e2286828701612abe565b925050604084013567ffffffffffffffff811115612e4357612e4261392e565b5b612e4f86828701612b2b565b9150509250925092565b600060208284031215612e6f57612e6e613933565b5b600082013567ffffffffffffffff811115612e8d57612e8c61392e565b5b612e9984828501612abe565b91505092915050565b600060208284031215612eb857612eb7613933565b5b6000612ec684828501612b01565b91505092915050565b600060208284031215612ee557612ee4613933565b5b6000612ef384828501612b16565b91505092915050565b600060208284031215612f1257612f11613933565b5b600082013567ffffffffffffffff811115612f3057612f2f61392e565b5b612f3c84828501612b59565b91505092915050565b600060208284031215612f5b57612f5a613933565b5b6000612f6984828501612b87565b91505092915050565b6000612f7e83836131a6565b60608301905092915050565b6000612f96838361322a565b60208301905092915050565b612fab8161368d565b82525050565b612fba8161368d565b82525050565b6000612fcb8261353d565b612fd58185613583565b9350612fe08361351d565b8060005b83811015613011578151612ff88882612f72565b975061300383613569565b925050600181019050612fe4565b5085935050505092915050565b600061302982613548565b6130338185613594565b935061303e8361352d565b8060005b8381101561306f5781516130568882612f8a565b975061306183613576565b925050600181019050613042565b5085935050505092915050565b6130858161369f565b82525050565b6130948161369f565b82525050565b60006130a582613553565b6130af81856135a5565b93506130bf818560208601613724565b6130c881613938565b840191505092915050565b60006130de8261355e565b6130e881856135b6565b93506130f8818560208601613724565b61310181613938565b840191505092915050565b60006131178261355e565b61312181856135c7565b9350613131818560208601613724565b80840191505092915050565b600061314a6026836135b6565b915061315582613949565b604082019050919050565b600061316d6012836135b6565b915061317882613998565b602082019050919050565b60006131906020836135b6565b915061319b826139c1565b602082019050919050565b6060820160008201516131bc6000850182612fa2565b5060208201516131cf6020850182613248565b5060408201516131e2604085018261307c565b50505050565b6060820160008201516131fe6000850182612fa2565b5060208201516132116020850182613248565b506040820151613224604085018261307c565b50505050565b613233816136f7565b82525050565b613242816136f7565b82525050565b61325181613701565b82525050565b6000613263828561310c565b915061326f828461310c565b91508190509392505050565b60006020820190506132906000830184612fb1565b92915050565b60006080820190506132ab6000830187612fb1565b6132b86020830186612fb1565b6132c56040830185613239565b81810360608301526132d7818461309a565b905095945050505050565b60006080820190506132f76000830187612fb1565b6133046020830186613239565b6133116040830185613239565b61331e6060830184613239565b95945050505050565b600060208201905081810360008301526133418184612fc0565b905092915050565b60006020820190508181036000830152613363818461301e565b905092915050565b6000602082019050613380600083018461308b565b92915050565b600060208201905081810360008301526133a081846130d3565b905092915050565b600060208201905081810360008301526133c18161313d565b9050919050565b600060208201905081810360008301526133e181613160565b9050919050565b6000602082019050818103600083015261340181613183565b9050919050565b600060608201905061341d60008301846131e8565b92915050565b60006020820190506134386000830184613239565b92915050565b6000613448613459565b90506134548282613789565b919050565b6000604051905090565b600067ffffffffffffffff82111561347e5761347d6138f0565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156134aa576134a96138f0565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156134d6576134d56138f0565b5b6134df82613938565b9050602081019050919050565b600067ffffffffffffffff821115613507576135066138f0565b5b61351082613938565b9050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006135dd826136f7565b91506135e8836136f7565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561361d5761361c613834565b5b828201905092915050565b6000613633826136f7565b915061363e836136f7565b92508261364e5761364d613863565b5b828204905092915050565b6000613664826136f7565b915061366f836136f7565b92508282101561368257613681613834565b5b828203905092915050565b6000613698826136d7565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600067ffffffffffffffff82169050919050565b82818337600083830152505050565b60005b83811015613742578082015181840152602081019050613727565b83811115613751576000848401525b50505050565b6000600282049050600182168061376f57607f821691505b6020821081141561378357613782613892565b5b50919050565b61379282613938565b810181811067ffffffffffffffff821117156137b1576137b06138f0565b5b80604052505050565b60006137c5826136f7565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156137f8576137f7613834565b5b600182019050919050565b600061380e826136f7565b9150613819836136f7565b92508261382957613828613863565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4e6f206d696e74207065726d697373696f6e0000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6139f38161368d565b81146139fe57600080fd5b50565b613a0a8161369f565b8114613a1557600080fd5b50565b613a21816136ab565b8114613a2c57600080fd5b50565b613a38816136f7565b8114613a4357600080fd5b5056fea26469706673582212204da0af822c42251c7ededd0f4beae8a77670eabe78d0c93366de043a1af6352a64736f6c63430008070033
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.