Contract Overview
Balance:
0.000000341143 CELO
CELO Value:
Less Than $0.01 (@ $0.48/CELO)
[ Download CSV Export ]
Contract Name:
RateLimitNFT
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: GPL-3.0-or-later pragma solidity ^0.8.3; import {ERC721} from "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {ERC721Burnable} from "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; import {ERC721Enumerable} from "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import {IERC721Enumerable} from "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import {IERC721Metadata} from "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import {Base64} from "@openzeppelin/contracts/utils/Base64.sol"; import {Strings} from "@openzeppelin/contracts/utils/Strings.sol"; // TODO: Set up free minting for us by letting the mint methods take a signature. We sign the tokenId and the contract checks it // TODO: tests for the mintGrantAndBurn function, withdraw function, some of the setters, transfer function, freeMint and freeMintGrantAndBurn /// @title Programmable Keypair NFT /// /// @dev This is the contract for the PKP NFTs /// /// Simply put, whomever owns a PKP NFT can ask that PKP to sign a message. /// The owner can also grant signing permissions to other eth addresses /// or lit actions contract RateLimitNFT is ERC721("Rate Limit Increases on Lit Protocol", "RLI"), Ownable, ERC721Burnable, ERC721Enumerable { using Strings for uint256; /* ========== STATE VARIABLES ========== */ uint256 public contractBalance; address public freeMintSigner; uint256 public additionalRequestsPerMillisecondCost; uint256 public tokenIdCounter; uint256 public defaultRateLimitWindowMilliseconds = 60 * 60 * 1000; // 60 mins uint256 public RLIHolderRateLimitWindowMilliseconds = 5 * 60 * 1000; // 5 mins uint256 public freeRequestsPerRateLimitWindow = 10; mapping(uint256 => RateLimit) public capacity; struct RateLimit { uint256 requestsPerMillisecond; uint256 expiresAt; } /* ========== CONSTRUCTOR ========== */ constructor() { additionalRequestsPerMillisecondCost = 1; // 1 wei } /* ========== VIEWS ========== */ /// throws if the sig is bad or msg doesn't match function freeMintSigTest( uint256 tokenId, bytes32 msgHash, uint8 v, bytes32 r, bytes32 s ) public view { // make sure the msgHash matches the tokenId // if these don't match, the user could use any old signature // to mint any number of PKPs // and this would be vulnerable to replay attacks // FIXME this needs the whole "ethereum signed message: \27" thingy prepended to actually work bytes32 expectedHash = keccak256(abi.encodePacked(tokenId)); require( expectedHash == msgHash, "The msgHash is not a hash of the tokenId. Explain yourself!" ); // make sure it was actually signed by freeMintSigner address recovered = ecrecover(msgHash, v, r, s); require( recovered == freeMintSigner, "This freeMint was not signed by freeMintSigner. How embarassing." ); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC721Enumerable) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || interfaceId == type(IERC721).interfaceId; } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override(ERC721, ERC721Enumerable) { ERC721Enumerable._beforeTokenTransfer(from, to, tokenId); } function calculateCost(uint256 requestsPerMillisecond, uint256 expiresAt) public view returns (uint256) { require( expiresAt > block.timestamp, "The expiresAt must be in the future" ); // calculate the duration uint256 durationInMilliseconds = (expiresAt - block.timestamp) * 1000; // calculate the cost uint256 cost = requestsPerMillisecond * durationInMilliseconds * additionalRequestsPerMillisecondCost; return cost; } function calculateRequestsPerSecond(uint256 payingAmount, uint256 expiresAt) public view returns (uint256) { require( expiresAt > block.timestamp, "The expiresAt must be in the future" ); // calculate the duration uint256 durationInMilliseconds = (expiresAt - block.timestamp) * 1000; // calculate the cost uint256 requestsPerSecond = payingAmount / (durationInMilliseconds * additionalRequestsPerMillisecondCost); return requestsPerSecond; } function tokenURI(uint256 tokenId) public view override returns (string memory) { string memory svgData = "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' xmlns:v='https://vecta.io/nano'><path d='M50.6 73.3c-17.7-.1-19-16.6-17.5-20.4 0 0 1.1 8.8 11.1 6.6 9.9-2.2 4.9-17.1 4.7-17.6.1.1 1.9 1.8 3.4 4.1 1.6 2.4 2 6.4 1.5 10-.5 3.5-.2 8.4 6.2 6.6 7.9-2.2 7.2-14.6 7.2-14.6 3.6 4.1 3.9 25.4-16.6 25.3z' fill='#fed428'/><path d='M64.1 38.6c-.4 2.9.6 8.5.2 12-.3 2.9-1.8 5.1-3.1 5.7-1.2.6-2 .2-2-.8-.1-1.1.7-3 .6-4.6-.1-2-1.3-4.3-1.3-4.3l.7-1.3.6.9a25.93 25.93 0 0 1 .8 1.3s1.2-7.4 3.3-11.6c1.5-3 5.2-4.2 5.4-4.3-2.9 1.7-4.7 3.4-5.2 7z' fill='#c60404'/><path d='M62 37.6l-1.3 4.2c-.6 1.8-1.5 3.6-1.5 3.6l-.7 1.3s-1-2-2.1-3.5l-2.3-3.1s.2-.6.4-1.6l.9.7s.6-2.1.7-5.2c.1-2.6-.7-5.6-.7-5.6 1 .8 2.6 2.3 3.7 3.8 1.4 1.7 2.9 5.4 2.9 5.4z' fill='#a70c0c'/><path d='M44.3 50c-.1.2-3 4.8-7.4 2.2-.8-.5-1.4-1-1.8-1.7-2.6-4 .7-10.8.8-11.2v.1.1.1c-.3 1.7-1.3 8.6 1.3 10.5.1.1.2.1.3.2.2.1.3.2.5.3 2.4 1.1 4.3.5 5.4 0 .1 0 .1-.1.2-.1.4-.3.6-.5.7-.5z' fill='#a40a0a'/><path d='M56.2 34c-.1 3.1-.7 5.2-.7 5.2l-.9-.7c.3-1.1.6-2.7.7-4.2.3-3.3-.7-6.5-.7-6.5s.3.3.8.7c.1 0 .9 2.9.8 5.5zM44.3 50c-.1 0-.3.2-.7.5-.1 0-.1.1-.2.1-1.1.5-3 1.1-5.4 0-.2-.1-.3-.2-.5-.3-.1-.1-.2-.1-.3-.2-2.6-1.9-1.6-8.9-1.3-10.5-.1 1.2-.5 5.5 1.3 8.3 2 3.2 7.1 2.1 7.1 2.1zm27-4.5c-2.4-4.9-2.4-8.7-2.4-10.5 0-1.9 1.3-3.4 1.3-3.4s-.4 0-.9.1c-1.1.3-3.3.8-4.3 1.7-2.3 2-2.9 4.2-2.9 4.2s-.7 2.4-1.3 4.2-1.5 3.6-1.5 3.6l.6.9a25.93 25.93 0 0 1 .8 1.3S61.9 40.2 64 36c1.5-3 5.2-4.2 5.4-4.3-3 1.5-4.8 3.2-5.2 6.9-.4 2.9.6 8.5.2 12-.3 2.9-1.8 5.1-3.1 5.7-1.2.6-2 .2-2-.8-.1-1.1.7-3 .6-4.6-.1-2-1.3-4.3-1.3-4.3s-1-2-2.1-3.5L54.2 40s-4-3.9-3.2-9.8c.6-5 4.8-8.1 5-8.3-.4.1-6 1.3-9.4 6.3-2.8 4.1-3.2 8.3-1.8 13.9 1.2 5-.4 7.8-.4 7.8-.1.2-3 4.8-7.4 2.2-.8-.5-1.4-1-1.8-1.7-2.6-4 .7-10.8.8-11.2 0 0-9.3 7.1-9.3 16.4 0 9.8 7.8 22.4 23.4 22.4 18 0 23.2-15.3 23.5-20 .3-4 .2-7.5-2.3-12.5zM50.6 73.3c-17.7-.1-19-16.6-17.5-20.4 0 0 1.1 8.8 11.1 6.6 9.9-2.2 4.9-17.1 4.7-17.6.1.1 1.9 1.8 3.4 4.1 1.6 2.4 2 6.4 1.5 10-.5 3.5-.2 8.4 6.2 6.6 7.9-2.2 7.2-14.6 7.2-14.6 3.6 4.1 3.9 25.4-16.6 25.3z' fill='#f12d2d'/></svg>"; string memory json = Base64.encode( bytes( string( abi.encodePacked( '{"name": "Lit Protocol Rate Limit Increase", "description": "This NFT entitles the holder to a rate limit increase on the Lit Protocol Network", "image_data": "', bytes(svgData), '","attributes": [{"display_type": "date", "trait_type": "Expiration Date", "value": ', capacity[tokenId].expiresAt.toString(), '}, {"display_type": "number", "trait_type": "Requests Per Millisecond", "value": ', capacity[tokenId].requestsPerMillisecond.toString(), "}]}" ) ) ) ); return string(abi.encodePacked("data:application/json;base64,", json)); } function isExpired(uint256 tokenId) public view returns (bool) { return capacity[tokenId].expiresAt <= block.timestamp; } /* ========== MUTATIVE FUNCTIONS ========== */ /// mint a token with a certain number of requests per millisecond and a certain expiration time. Requests per second is calculated from the msg.value amount. You can find out the cost for a certain requests per second value by using the calculateCost() function. function mint(uint256 expiresAt) public payable { tokenIdCounter++; uint256 tokenId = tokenIdCounter; uint256 requestsPerMillisecond = calculateRequestsPerSecond( msg.value, expiresAt ); // sanity check uint256 cost = calculateCost(requestsPerMillisecond, expiresAt); require( msg.value >= cost, "You must send the cost of this rate limit increase. To check the cost, use the calculateCost function." ); _mintWithoutValueCheck(tokenId, requestsPerMillisecond, expiresAt); contractBalance += msg.value; } // function freeMint( // uint256 tokenId, // bytes32 msgHash, // uint8 v, // bytes32 r, // bytes32 s // ) public { // // this will panic if the sig is bad // freeMintSigTest(tokenId, msgHash, v, r, s); // _mintWithoutValueCheck(tokenId); // } function _mintWithoutValueCheck( uint256 tokenId, uint256 requestsPerMillisecond, uint256 expiresAt ) internal { _safeMint(msg.sender, tokenId); capacity[tokenId] = RateLimit(requestsPerMillisecond, expiresAt); } function transfer( address from, address to, uint256 tokenId ) public { _safeTransfer(from, to, tokenId, ""); } function setAdditionalRequestsPerSecondCost( uint256 newAdditionalRequestsPerMillisecondCost ) public onlyOwner { additionalRequestsPerMillisecondCost = newAdditionalRequestsPerMillisecondCost; } function setFreeMintSigner(address newFreeMintSigner) public onlyOwner { freeMintSigner = newFreeMintSigner; } function withdraw() public onlyOwner { payable(msg.sender).transfer(contractBalance); contractBalance = 0; } function setRateLimitWindowMilliseconds( uint256 newRateLimitWindowMilliseconds ) public onlyOwner { defaultRateLimitWindowMilliseconds = newRateLimitWindowMilliseconds; } function setRLIHolderRateLimitWindowMilliseconds( uint256 newRLIHolderRateLimitWindowMilliseconds ) public onlyOwner { RLIHolderRateLimitWindowMilliseconds = newRLIHolderRateLimitWindowMilliseconds; } function setFreeRequestsPerRateLimitWindow( uint256 newFreeRequestsPerRateLimitWindow ) public onlyOwner { freeRequestsPerRateLimitWindow = newFreeRequestsPerRateLimitWindow; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/extensions/ERC721Burnable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../utils/Context.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _burn(tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol) pragma solidity ^0.8.0; /** * @dev Provides a set of functions to operate with Base64 strings. * * _Available since v4.5._ */ library Base64 { /** * @dev Base64 Encoding/Decoding Table */ string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /** * @dev Converts a `bytes` to its Bytes64 `string` representation. */ function encode(bytes memory data) internal pure returns (string memory) { /** * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol */ if (data.length == 0) return ""; // Loads the table into memory string memory table = _TABLE; // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter // and split into 4 numbers of 6 bits. // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up // - `data.length + 2` -> Round up // - `/ 3` -> Number of 3-bytes chunks // - `4 *` -> 4 characters for each chunk string memory result = new string(4 * ((data.length + 2) / 3)); /// @solidity memory-safe-assembly assembly { // Prepare the lookup table (skip the first "length" byte) let tablePtr := add(table, 1) // Prepare result pointer, jump over length let resultPtr := add(result, 32) // Run over the input, 3 bytes at a time for { let dataPtr := data let endPtr := add(data, mload(data)) } lt(dataPtr, endPtr) { } { // Advance 3 bytes dataPtr := add(dataPtr, 3) let input := mload(dataPtr) // To write each character, shift the 3 bytes (18 bits) chunk // 4 times in blocks of 6 bits for each character (18, 12, 6, 0) // and apply logical AND with 0x3F which is the number of // the previous character in the ASCII table prior to the Base64 Table // The result is then added to the table to get the character to write, // and finally write it in the result pointer but with a left shift // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F)))) resultPtr := add(resultPtr, 1) // Advance } // When data `bytes` is not exactly 3 bytes long // it is padded with `=` characters at the end switch mod(mload(data), 3) case 1 { mstore8(sub(resultPtr, 1), 0x3d) mstore8(sub(resultPtr, 2), 0x3d) } case 2 { mstore8(sub(resultPtr, 1), 0x3d) } } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "optimizer": { "enabled": false, "runs": 200 }, "libraries": {} }
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"RLIHolderRateLimitWindowMilliseconds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"additionalRequestsPerMillisecondCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"requestsPerMillisecond","type":"uint256"},{"internalType":"uint256","name":"expiresAt","type":"uint256"}],"name":"calculateCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"payingAmount","type":"uint256"},{"internalType":"uint256","name":"expiresAt","type":"uint256"}],"name":"calculateRequestsPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"capacity","outputs":[{"internalType":"uint256","name":"requestsPerMillisecond","type":"uint256"},{"internalType":"uint256","name":"expiresAt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultRateLimitWindowMilliseconds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes32","name":"msgHash","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"freeMintSigTest","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeMintSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeRequestsPerRateLimitWindow","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"uint256","name":"tokenId","type":"uint256"}],"name":"isExpired","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"expiresAt","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newAdditionalRequestsPerMillisecondCost","type":"uint256"}],"name":"setAdditionalRequestsPerSecondCost","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":"address","name":"newFreeMintSigner","type":"address"}],"name":"setFreeMintSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newFreeRequestsPerRateLimitWindow","type":"uint256"}],"name":"setFreeRequestsPerRateLimitWindow","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newRLIHolderRateLimitWindowMilliseconds","type":"uint256"}],"name":"setRLIHolderRateLimitWindowMilliseconds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newRateLimitWindowMilliseconds","type":"uint256"}],"name":"setRateLimitWindowMilliseconds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenIdCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transfer","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":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526236ee80600f55620493e0601055600a6011553480156200002457600080fd5b5060405180606001604052806024815260200162005081602491396040518060400160405280600381526020017f524c49000000000000000000000000000000000000000000000000000000000081525081600090805190602001906200008d929190620001a5565b508060019080519060200190620000a6929190620001a5565b505050620000c9620000bd620000d760201b60201c565b620000df60201b60201c565b6001600d81905550620002ba565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620001b39062000255565b90600052602060002090601f016020900481019282620001d7576000855562000223565b82601f10620001f257805160ff191683800117855562000223565b8280016001018555821562000223579182015b828111156200022257825182559160200191906001019062000205565b5b50905062000232919062000236565b5090565b5b808211156200025157600081600090555060010162000237565b5090565b600060028204905060018216806200026e57607f821691505b602082108114156200028557620002846200028b565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b614db780620002ca6000396000f3fe60806040526004361061023b5760003560e01c806370a082311161012e578063ab1bbeca116100ab578063ce3946961161006f578063ce39469614610873578063d9548e53146108b0578063e985e9c5146108ed578063f2fde38b1461092a578063faea717c146109535761023b565b8063ab1bbeca1461077b578063b88d4fde146107b9578063b94a2102146107e2578063beabacc81461080d578063c87b56dd146108365761023b565b806395d89b41116100f257806395d89b41146106b757806398bdf6f5146106e25780639fadb6431461070d578063a0712d6814610736578063a22cb465146107525761023b565b806370a08231146105e2578063715018a61461061f5780638b7afe2e146106365780638c8e3c84146106615780638da5cb5b1461068c5761023b565b80633b189852116101bc57806345ca8a7a1161018057806345ca8a7a146104eb5780634c19eae6146105165780634f6ccce71461053f5780636352211e1461057c5780636a8e29ed146105b95761023b565b80633b1898521461041c5780633ccfd60b146104455780634116b8931461045c57806342842e0e1461049957806342966c68146104c25761023b565b806320fef3df1161020357806320fef3df1461033957806323b872dd14610362578063268947641461038b57806328b9b37c146103b65780632f745c59146103df5761023b565b806301ffc9a71461024057806306fdde031461027d578063081812fc146102a8578063095ea7b3146102e557806318160ddd1461030e575b600080fd5b34801561024c57600080fd5b5061026760048036038101906102629190612e93565b61097e565b6040516102749190613554565b60405180910390f35b34801561028957600080fd5b50610292610ab8565b60405161029f91906135b4565b60405180910390f35b3480156102b457600080fd5b506102cf60048036038101906102ca9190612eed565b610b4a565b6040516102dc91906134ed565b60405180910390f35b3480156102f157600080fd5b5061030c60048036038101906103079190612e53565b610b90565b005b34801561031a57600080fd5b50610323610ca8565b6040516103309190613836565b60405180910390f35b34801561034557600080fd5b50610360600480360381019061035b9190612eed565b610cb5565b005b34801561036e57600080fd5b5061038960048036038101906103849190612d3d565b610cc7565b005b34801561039757600080fd5b506103a0610d27565b6040516103ad9190613836565b60405180910390f35b3480156103c257600080fd5b506103dd60048036038101906103d89190612eed565b610d2d565b005b3480156103eb57600080fd5b5061040660048036038101906104019190612e53565b610d3f565b6040516104139190613836565b60405180910390f35b34801561042857600080fd5b50610443600480360381019061043e9190612cd0565b610de4565b005b34801561045157600080fd5b5061045a610e30565b005b34801561046857600080fd5b50610483600480360381019061047e9190612f95565b610e8b565b6040516104909190613836565b60405180910390f35b3480156104a557600080fd5b506104c060048036038101906104bb9190612d3d565b610f14565b005b3480156104ce57600080fd5b506104e960048036038101906104e49190612eed565b610f34565b005b3480156104f757600080fd5b50610500610f90565b60405161050d9190613836565b60405180910390f35b34801561052257600080fd5b5061053d60048036038101906105389190612f1a565b610f96565b005b34801561054b57600080fd5b5061056660048036038101906105619190612eed565b6110ef565b6040516105739190613836565b60405180910390f35b34801561058857600080fd5b506105a3600480360381019061059e9190612eed565b611160565b6040516105b091906134ed565b60405180910390f35b3480156105c557600080fd5b506105e060048036038101906105db9190612eed565b611212565b005b3480156105ee57600080fd5b5061060960048036038101906106049190612cd0565b611224565b6040516106169190613836565b60405180910390f35b34801561062b57600080fd5b506106346112dc565b005b34801561064257600080fd5b5061064b6112f0565b6040516106589190613836565b60405180910390f35b34801561066d57600080fd5b506106766112f6565b6040516106839190613836565b60405180910390f35b34801561069857600080fd5b506106a16112fc565b6040516106ae91906134ed565b60405180910390f35b3480156106c357600080fd5b506106cc611326565b6040516106d991906135b4565b60405180910390f35b3480156106ee57600080fd5b506106f76113b8565b6040516107049190613836565b60405180910390f35b34801561071957600080fd5b50610734600480360381019061072f9190612eed565b6113be565b005b610750600480360381019061074b9190612eed565b6113d0565b005b34801561075e57600080fd5b5061077960048036038101906107749190612e13565b611478565b005b34801561078757600080fd5b506107a2600480360381019061079d9190612eed565b61148e565b6040516107b0929190613851565b60405180910390f35b3480156107c557600080fd5b506107e060048036038101906107db9190612d90565b6114b2565b005b3480156107ee57600080fd5b506107f7611514565b60405161080491906134ed565b60405180910390f35b34801561081957600080fd5b50610834600480360381019061082f9190612d3d565b61153a565b005b34801561084257600080fd5b5061085d60048036038101906108589190612eed565b61155a565b60405161086a91906135b4565b60405180910390f35b34801561087f57600080fd5b5061089a60048036038101906108959190612f95565b611611565b6040516108a79190613836565b60405180910390f35b3480156108bc57600080fd5b506108d760048036038101906108d29190612eed565b61169a565b6040516108e49190613554565b60405180910390f35b3480156108f957600080fd5b50610914600480360381019061090f9190612cfd565b6116bd565b6040516109219190613554565b60405180910390f35b34801561093657600080fd5b50610951600480360381019061094c9190612cd0565b611751565b005b34801561095f57600080fd5b506109686117d5565b6040516109759190613836565b60405180910390f35b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a4957507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610ab157507f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060008054610ac790613b00565b80601f0160208091040260200160405190810160405280929190818152602001828054610af390613b00565b8015610b405780601f10610b1557610100808354040283529160200191610b40565b820191906000526020600020905b815481529060010190602001808311610b2357829003601f168201915b5050505050905090565b6000610b55826117db565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b9b82611160565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0390613796565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c2b611826565b73ffffffffffffffffffffffffffffffffffffffff161480610c5a5750610c5981610c54611826565b6116bd565b5b610c99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9090613716565b60405180910390fd5b610ca3838361182e565b505050565b6000600980549050905090565b610cbd6118e7565b8060108190555050565b610cd8610cd2611826565b82611965565b610d17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0e90613816565b60405180910390fd5b610d228383836119fa565b505050565b60115481565b610d356118e7565b8060118190555050565b6000610d4a83611224565b8210610d8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d82906135d6565b60405180910390fd5b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610dec6118e7565b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610e386118e7565b3373ffffffffffffffffffffffffffffffffffffffff166108fc600b549081150290604051600060405180830381858888f19350505050158015610e80573d6000803e3d6000fd5b506000600b81905550565b6000428211610ecf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec6906136d6565b60405180910390fd5b60006103e84284610ee091906139ff565b610eea91906139a5565b90506000600d5482610efc91906139a5565b85610f079190613974565b9050809250505092915050565b610f2f838383604051806020016040528060008152506114b2565b505050565b610f45610f3f611826565b82611965565b610f84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7b90613816565b60405180910390fd5b610f8d81611c61565b50565b600f5481565b600085604051602001610fa991906134d2565b604051602081830303815290604052805190602001209050848114611003576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ffa906137f6565b60405180910390fd5b600060018686868660405160008152602001604052604051611028949392919061356f565b6020604051602081039080840390855afa15801561104a573d6000803e3d6000fd5b505050602060405103519050600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146110e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110dd906137b6565b60405180910390fd5b50505050505050565b60006110f9610ca8565b821061113a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611131906137d6565b60405180910390fd5b6009828154811061114e5761114d613ca3565b5b90600052602060002001549050919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611209576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120090613776565b60405180910390fd5b80915050919050565b61121a6118e7565b80600f8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611295576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128c906136f6565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6112e46118e7565b6112ee6000611d7e565b565b600b5481565b600d5481565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461133590613b00565b80601f016020809104026020016040519081016040528092919081815260200182805461136190613b00565b80156113ae5780601f10611383576101008083540402835291602001916113ae565b820191906000526020600020905b81548152906001019060200180831161139157829003601f168201915b5050505050905090565b600e5481565b6113c66118e7565b80600d8190555050565b600e60008154809291906113e390613b63565b91905055506000600e54905060006113fb3484610e8b565b905060006114098285611611565b90508034101561144e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144590613676565b60405180910390fd5b611459838386611e44565b34600b600082825461146b919061391e565b9250508190555050505050565b61148a611483611826565b8383611e92565b5050565b60126020528060005260406000206000915090508060000154908060010154905082565b6114c36114bd611826565b83611965565b611502576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f990613816565b60405180910390fd5b61150e84848484611fff565b50505050565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61155583838360405180602001604052806000815250611fff565b505050565b60606000604051806108400160405280610803815260200161453f6108039139905060006115e6826115a1601260008881526020019081526020016000206001015461205b565b6115c0601260008981526020019081526020016000206000015461205b565b6040516020016115d293929190613475565b6040516020818303038152906040526121bc565b9050806040516020016115f99190613453565b60405160208183030381529060405292505050919050565b6000428211611655576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164c906136d6565b60405180910390fd5b60006103e8428461166691906139ff565b61167091906139a5565b90506000600d54828661168391906139a5565b61168d91906139a5565b9050809250505092915050565b600042601260008481526020019081526020016000206001015411159050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6117596118e7565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156117c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c090613616565b60405180910390fd5b6117d281611d7e565b50565b60105481565b6117e481612320565b611823576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181a90613776565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166118a183611160565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6118ef611826565b73ffffffffffffffffffffffffffffffffffffffff1661190d6112fc565b73ffffffffffffffffffffffffffffffffffffffff1614611963576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195a90613756565b60405180910390fd5b565b60008061197183611160565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806119b357506119b281856116bd565b5b806119f157508373ffffffffffffffffffffffffffffffffffffffff166119d984610b4a565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611a1a82611160565b73ffffffffffffffffffffffffffffffffffffffff1614611a70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6790613636565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611ae0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad790613696565b60405180910390fd5b611aeb83838361238c565b611af660008261182e565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611b4691906139ff565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611b9d919061391e565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611c5c83838361239c565b505050565b6000611c6c82611160565b9050611c7a8160008461238c565b611c8560008361182e565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611cd591906139ff565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611d7a8160008461239c565b5050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611e4e33846123a1565b604051806040016040528083815260200182815250601260008581526020019081526020016000206000820151816000015560208201518160010155905050505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611f01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef8906136b6565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611ff29190613554565b60405180910390a3505050565b61200a8484846119fa565b612016848484846123bf565b612055576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204c906135f6565b60405180910390fd5b50505050565b606060008214156120a3576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506121b7565b600082905060005b600082146120d55780806120be90613b63565b915050600a826120ce9190613974565b91506120ab565b60008167ffffffffffffffff8111156120f1576120f0613cd2565b5b6040519080825280601f01601f1916602001820160405280156121235781602001600182028036833780820191505090505b5090505b600085146121b05760018261213c91906139ff565b9150600a8561214b9190613bb6565b6030612157919061391e565b60f81b81838151811061216d5761216c613ca3565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856121a99190613974565b9450612127565b8093505050505b919050565b60606000825114156121df5760405180602001604052806000815250905061231b565b6000604051806060016040528060408152602001614d42604091399050600060036002855161220e919061391e565b6122189190613974565b600461222491906139a5565b67ffffffffffffffff81111561223d5761223c613cd2565b5b6040519080825280601f01601f19166020018201604052801561226f5781602001600182028036833780820191505090505b509050600182016020820185865187015b808210156122db576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845360018401935050612280565b50506003865106600181146122f7576002811461230a57612312565b603d6001830353603d6002830353612312565b603d60018303535b50505080925050505b919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b612397838383612556565b505050565b505050565b6123bb82826040518060200160405280600081525061266a565b5050565b60006123e08473ffffffffffffffffffffffffffffffffffffffff166126c5565b15612549578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612409611826565b8786866040518563ffffffff1660e01b815260040161242b9493929190613508565b602060405180830381600087803b15801561244557600080fd5b505af192505050801561247657506040513d601f19601f820116820180604052508101906124739190612ec0565b60015b6124f9573d80600081146124a6576040519150601f19603f3d011682016040523d82523d6000602084013e6124ab565b606091505b506000815114156124f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124e8906135f6565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061254e565b600190505b949350505050565b6125618383836126e8565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156125a45761259f816126ed565b6125e3565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146125e2576125e18382612736565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561262657612621816128a3565b612665565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612664576126638282612974565b5b5b505050565b61267483836129f3565b61268160008484846123bf565b6126c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126b7906135f6565b60405180910390fd5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b505050565b600980549050600a600083815260200190815260200160002081905550600981908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161274384611224565b61274d91906139ff565b9050600060086000848152602001908152602001600020549050818114612832576000600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816008600083815260200190815260200160002081905550505b6008600084815260200190815260200160002060009055600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016009805490506128b791906139ff565b90506000600a60008481526020019081526020016000205490506000600983815481106128e7576128e6613ca3565b5b90600052602060002001549050806009838154811061290957612908613ca3565b5b906000526020600020018190555081600a600083815260200190815260200160002081905550600a600085815260200190815260200160002060009055600980548061295857612957613c74565b5b6001900381819060005260206000200160009055905550505050565b600061297f83611224565b905081600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806008600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612a63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a5a90613736565b60405180910390fd5b612a6c81612320565b15612aac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aa390613656565b60405180910390fd5b612ab86000838361238c565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612b08919061391e565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612bc96000838361239c565b5050565b6000612be0612bdb8461389f565b61387a565b905082815260208101848484011115612bfc57612bfb613d06565b5b612c07848285613abe565b509392505050565b600081359050612c1e816144b4565b92915050565b600081359050612c33816144cb565b92915050565b600081359050612c48816144e2565b92915050565b600081359050612c5d816144f9565b92915050565b600081519050612c72816144f9565b92915050565b600082601f830112612c8d57612c8c613d01565b5b8135612c9d848260208601612bcd565b91505092915050565b600081359050612cb581614510565b92915050565b600081359050612cca81614527565b92915050565b600060208284031215612ce657612ce5613d10565b5b6000612cf484828501612c0f565b91505092915050565b60008060408385031215612d1457612d13613d10565b5b6000612d2285828601612c0f565b9250506020612d3385828601612c0f565b9150509250929050565b600080600060608486031215612d5657612d55613d10565b5b6000612d6486828701612c0f565b9350506020612d7586828701612c0f565b9250506040612d8686828701612ca6565b9150509250925092565b60008060008060808587031215612daa57612da9613d10565b5b6000612db887828801612c0f565b9450506020612dc987828801612c0f565b9350506040612dda87828801612ca6565b925050606085013567ffffffffffffffff811115612dfb57612dfa613d0b565b5b612e0787828801612c78565b91505092959194509250565b60008060408385031215612e2a57612e29613d10565b5b6000612e3885828601612c0f565b9250506020612e4985828601612c24565b9150509250929050565b60008060408385031215612e6a57612e69613d10565b5b6000612e7885828601612c0f565b9250506020612e8985828601612ca6565b9150509250929050565b600060208284031215612ea957612ea8613d10565b5b6000612eb784828501612c4e565b91505092915050565b600060208284031215612ed657612ed5613d10565b5b6000612ee484828501612c63565b91505092915050565b600060208284031215612f0357612f02613d10565b5b6000612f1184828501612ca6565b91505092915050565b600080600080600060a08688031215612f3657612f35613d10565b5b6000612f4488828901612ca6565b9550506020612f5588828901612c39565b9450506040612f6688828901612cbb565b9350506060612f7788828901612c39565b9250506080612f8888828901612c39565b9150509295509295909350565b60008060408385031215612fac57612fab613d10565b5b6000612fba85828601612ca6565b9250506020612fcb85828601612ca6565b9150509250929050565b612fde81613a33565b82525050565b612fed81613a45565b82525050565b612ffc81613a51565b82525050565b600061300d826138d0565b61301781856138e6565b9350613027818560208601613acd565b61303081613d15565b840191505092915050565b6000613046826138d0565b61305081856138f7565b9350613060818560208601613acd565b80840191505092915050565b6000613077826138db565b6130818185613902565b9350613091818560208601613acd565b61309a81613d15565b840191505092915050565b60006130b0826138db565b6130ba8185613913565b93506130ca818560208601613acd565b80840191505092915050565b60006130e3602b83613902565b91506130ee82613d26565b604082019050919050565b6000613106603283613902565b915061311182613d75565b604082019050919050565b6000613129602683613902565b915061313482613dc4565b604082019050919050565b600061314c602583613902565b915061315782613e13565b604082019050919050565b600061316f601c83613902565b915061317a82613e62565b602082019050919050565b6000613192606783613902565b915061319d82613e8b565b608082019050919050565b60006131b5602483613902565b91506131c082613f26565b604082019050919050565b60006131d8601983613902565b91506131e382613f75565b602082019050919050565b60006131fb602383613902565b915061320682613f9e565b604082019050919050565b600061321e605183613913565b915061322982613fed565b605182019050919050565b6000613241602983613902565b915061324c82614062565b604082019050919050565b6000613264603e83613902565b915061326f826140b1565b604082019050919050565b6000613287602083613902565b915061329282614100565b602082019050919050565b60006132aa600383613913565b91506132b582614129565b600382019050919050565b60006132cd602083613902565b91506132d882614152565b602082019050919050565b60006132f0601883613902565b91506132fb8261417b565b602082019050919050565b6000613313602183613902565b915061331e826141a4565b604082019050919050565b6000613336604183613902565b9150613341826141f3565b606082019050919050565b6000613359601d83613913565b915061336482614268565b601d82019050919050565b600061337c602c83613902565b915061338782614291565b604082019050919050565b600061339f603c83613902565b91506133aa826142e0565b604082019050919050565b60006133c2602e83613902565b91506133cd8261432f565b604082019050919050565b60006133e5605483613913565b91506133f08261437e565b605482019050919050565b600061340860a083613913565b9150613413826143f3565b60a082019050919050565b61342781613aa7565b82525050565b61343e61343982613aa7565b613bac565b82525050565b61344d81613ab1565b82525050565b600061345e8261334c565b915061346a82846130a5565b915081905092915050565b6000613480826133fb565b915061348c828661303b565b9150613497826133d8565b91506134a382856130a5565b91506134ae82613211565b91506134ba82846130a5565b91506134c58261329d565b9150819050949350505050565b60006134de828461342d565b60208201915081905092915050565b60006020820190506135026000830184612fd5565b92915050565b600060808201905061351d6000830187612fd5565b61352a6020830186612fd5565b613537604083018561341e565b81810360608301526135498184613002565b905095945050505050565b60006020820190506135696000830184612fe4565b92915050565b60006080820190506135846000830187612ff3565b6135916020830186613444565b61359e6040830185612ff3565b6135ab6060830184612ff3565b95945050505050565b600060208201905081810360008301526135ce818461306c565b905092915050565b600060208201905081810360008301526135ef816130d6565b9050919050565b6000602082019050818103600083015261360f816130f9565b9050919050565b6000602082019050818103600083015261362f8161311c565b9050919050565b6000602082019050818103600083015261364f8161313f565b9050919050565b6000602082019050818103600083015261366f81613162565b9050919050565b6000602082019050818103600083015261368f81613185565b9050919050565b600060208201905081810360008301526136af816131a8565b9050919050565b600060208201905081810360008301526136cf816131cb565b9050919050565b600060208201905081810360008301526136ef816131ee565b9050919050565b6000602082019050818103600083015261370f81613234565b9050919050565b6000602082019050818103600083015261372f81613257565b9050919050565b6000602082019050818103600083015261374f8161327a565b9050919050565b6000602082019050818103600083015261376f816132c0565b9050919050565b6000602082019050818103600083015261378f816132e3565b9050919050565b600060208201905081810360008301526137af81613306565b9050919050565b600060208201905081810360008301526137cf81613329565b9050919050565b600060208201905081810360008301526137ef8161336f565b9050919050565b6000602082019050818103600083015261380f81613392565b9050919050565b6000602082019050818103600083015261382f816133b5565b9050919050565b600060208201905061384b600083018461341e565b92915050565b6000604082019050613866600083018561341e565b613873602083018461341e565b9392505050565b6000613884613895565b90506138908282613b32565b919050565b6000604051905090565b600067ffffffffffffffff8211156138ba576138b9613cd2565b5b6138c382613d15565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600061392982613aa7565b915061393483613aa7565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561396957613968613be7565b5b828201905092915050565b600061397f82613aa7565b915061398a83613aa7565b92508261399a57613999613c16565b5b828204905092915050565b60006139b082613aa7565b91506139bb83613aa7565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156139f4576139f3613be7565b5b828202905092915050565b6000613a0a82613aa7565b9150613a1583613aa7565b925082821015613a2857613a27613be7565b5b828203905092915050565b6000613a3e82613a87565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015613aeb578082015181840152602081019050613ad0565b83811115613afa576000848401525b50505050565b60006002820490506001821680613b1857607f821691505b60208210811415613b2c57613b2b613c45565b5b50919050565b613b3b82613d15565b810181811067ffffffffffffffff82111715613b5a57613b59613cd2565b5b80604052505050565b6000613b6e82613aa7565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613ba157613ba0613be7565b5b600182019050919050565b6000819050919050565b6000613bc182613aa7565b9150613bcc83613aa7565b925082613bdc57613bdb613c16565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f596f75206d7573742073656e642074686520636f7374206f662074686973207260008201527f617465206c696d697420696e6372656173652e2020546f20636865636b20746860208201527f6520636f73742c20757365207468652063616c63756c617465436f737420667560408201527f6e6374696f6e2e00000000000000000000000000000000000000000000000000606082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f54686520657870697265734174206d75737420626520696e207468652066757460008201527f7572650000000000000000000000000000000000000000000000000000000000602082015250565b7f7d2c207b22646973706c61795f74797065223a20226e756d626572222c20227460008201527f726169745f74797065223a2022526571756573747320506572204d696c6c697360208201527f65636f6e64222c202276616c7565223a20000000000000000000000000000000604082015250565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f7d5d7d0000000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f5468697320667265654d696e7420776173206e6f74207369676e65642062792060008201527f667265654d696e745369676e65722e2020486f7720656d626172617373696e6760208201527f2e00000000000000000000000000000000000000000000000000000000000000604082015250565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f546865206d736748617368206973206e6f7420612068617368206f662074686560008201527f20746f6b656e49642e20204578706c61696e20796f757273656c662100000000602082015250565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b7f222c2261747472696275746573223a205b7b22646973706c61795f747970652260008201527f3a202264617465222c202274726169745f74797065223a20224578706972617460208201527f696f6e2044617465222c202276616c7565223a20000000000000000000000000604082015250565b7f7b226e616d65223a20224c69742050726f746f636f6c2052617465204c696d6960008201527f7420496e637265617365222c20226465736372697074696f6e223a202254686960208201527f73204e465420656e7469746c65732074686520686f6c64657220746f2061207260408201527f617465206c696d697420696e637265617365206f6e20746865204c697420507260608201527f6f746f636f6c204e6574776f726b222c2022696d6167655f64617461223a2022608082015250565b6144bd81613a33565b81146144c857600080fd5b50565b6144d481613a45565b81146144df57600080fd5b50565b6144eb81613a51565b81146144f657600080fd5b50565b61450281613a5b565b811461450d57600080fd5b50565b61451981613aa7565b811461452457600080fd5b50565b61453081613ab1565b811461453b57600080fd5b5056fe3c73766720786d6c6e733d27687474703a2f2f7777772e77332e6f72672f323030302f737667272076696577426f783d2730203020313030203130302720786d6c6e733a763d2768747470733a2f2f76656374612e696f2f6e616e6f273e3c7061746820643d274d35302e362037332e33632d31372e372d2e312d31392d31362e362d31372e352d32302e342030203020312e3120382e382031312e3120362e3620392e392d322e3220342e392d31372e3120342e372d31372e362e312e3120312e3920312e3820332e3420342e3120312e3620322e34203220362e3420312e352031302d2e3520332e352d2e3220382e3420362e3220362e3620372e392d322e3220372e322d31342e3620372e322d31342e3620332e3620342e3120332e392032352e342d31362e362032352e337a272066696c6c3d2723666564343238272f3e3c7061746820643d274d36342e312033382e36632d2e3420322e392e3620382e352e322031322d2e3320322e392d312e3820352e312d332e3120352e372d312e322e362d32202e322d322d2e382d2e312d312e312e372d33202e362d342e362d2e312d322d312e332d342e332d312e332d342e336c2e372d312e332e362e396132352e39332032352e3933203020302031202e3820312e3373312e322d372e3420332e332d31312e3663312e352d3320352e322d342e3220352e342d342e332d322e3920312e372d342e3720332e342d352e3220377a272066696c6c3d2723633630343034272f3e3c7061746820643d274d36322033372e366c2d312e3320342e32632d2e3620312e382d312e3520332e362d312e3520332e366c2d2e3720312e33732d312d322d322e312d332e356c2d322e332d332e31732e322d2e362e342d312e366c2e392e37732e362d322e312e372d352e32632e312d322e362d2e372d352e362d2e372d352e362031202e3820322e3620322e3320332e3720332e3820312e3420312e3720322e3920352e3420322e3920352e347a272066696c6c3d2723613730633063272f3e3c7061746820643d274d34342e33203530632d2e312e322d3320342e382d372e3420322e322d2e382d2e352d312e342d312d312e382d312e372d322e362d34202e372d31302e382e382d31312e32762e312e312e31632d2e3320312e372d312e3320382e3620312e332031302e352e312e312e322e312e332e322e322e312e332e322e352e3320322e3420312e3120342e332e3520352e342030202e312030202e312d2e312e322d2e312e342d2e332e362d2e352e372d2e357a272066696c6c3d2723613430613061272f3e3c7061746820643d274d35362e32203334632d2e3120332e312d2e3720352e322d2e3720352e326c2d2e392d2e37632e332d312e312e362d322e372e372d342e322e332d332e332d2e372d362e352d2e372d362e35732e332e332e382e37632e312030202e3920322e392e3820352e357a4d34342e33203530632d2e3120302d2e332e322d2e372e352d2e3120302d2e312e312d2e322e312d312e312e352d3320312e312d352e3420302d2e322d2e312d2e332d2e322d2e352d2e332d2e312d2e312d2e322d2e312d2e332d2e322d322e362d312e392d312e362d382e392d312e332d31302e352d2e3120312e322d2e3520352e3520312e3320382e33203220332e3220372e3120322e3120372e3120322e317a6d32372d342e35632d322e342d342e392d322e342d382e372d322e342d31302e3520302d312e3920312e332d332e3420312e332d332e34732d2e3420302d2e392e31632d312e312e332d332e332e382d342e3320312e372d322e3320322d322e3920342e322d322e3920342e32732d2e3720322e342d312e3320342e322d312e3520332e362d312e3520332e366c2e362e396132352e39332032352e3933203020302031202e3820312e335336312e392034302e3220363420333663312e352d3320352e322d342e3220352e342d342e332d3320312e352d342e3820332e322d352e3220362e392d2e3420322e392e3620382e352e322031322d2e3320322e392d312e3820352e312d332e3120352e372d312e322e362d32202e322d322d2e382d2e312d312e312e372d33202e362d342e362d2e312d322d312e332d342e332d312e332d342e33732d312d322d322e312d332e354c35342e32203430732d342d332e392d332e322d392e38632e362d3520342e382d382e3120352d382e332d2e342e312d3620312e332d392e3420362e332d322e3820342e312d332e3220382e332d312e382031332e3920312e3220352d2e3420372e382d2e3420372e382d2e312e322d3320342e382d372e3420322e322d2e382d2e352d312e342d312d312e382d312e372d322e362d34202e372d31302e382e382d31312e32203020302d392e3320372e312d392e332031362e34203020392e3820372e382032322e342032332e342032322e3420313820302032332e322d31352e332032332e352d3230202e332d34202e322d372e352d322e332d31322e357a4d35302e362037332e33632d31372e372d2e312d31392d31362e362d31372e352d32302e342030203020312e3120382e382031312e3120362e3620392e392d322e3220342e392d31372e3120342e372d31372e362e312e3120312e3920312e3820332e3420342e3120312e3620322e34203220362e3420312e352031302d2e3520332e352d2e3220382e3420362e3220362e3620372e392d322e3220372e322d31342e3620372e322d31342e3620332e3620342e3120332e392032352e342d31362e362032352e337a272066696c6c3d2723663132643264272f3e3c2f7376673e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220b438a1bcd9b20b100b4a737c720ff3bb36c30e21205ec080a14ddedc57b4253964736f6c6343000807003352617465204c696d697420496e63726561736573206f6e204c69742050726f746f636f6c
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.