Source Code
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 12 from a total of 12 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Withdraw ETH | 14531159 | 1400 days ago | IN | 0 ETH | 0.00147141 | ||||
| Give Generously | 14518887 | 1402 days ago | IN | 0.11 ETH | 0.01023809 | ||||
| Give Generously | 14517331 | 1402 days ago | IN | 0.1 ETH | 0.01217229 | ||||
| Withdraw ETH | 14517274 | 1402 days ago | IN | 0 ETH | 0.00165278 | ||||
| Give Generously | 14517270 | 1402 days ago | IN | 0.1331 ETH | 0.01063761 | ||||
| Give Generously | 14517257 | 1402 days ago | IN | 0.121 ETH | 0.01164992 | ||||
| Give Generously | 14517246 | 1402 days ago | IN | 0.11 ETH | 0.01132165 | ||||
| Withdraw ETH | 14517241 | 1402 days ago | IN | 0 ETH | 0.00193005 | ||||
| Give Generously | 14517232 | 1402 days ago | IN | 0.11 ETH | 0.01268971 | ||||
| Give Generously | 14517090 | 1402 days ago | IN | 0.1 ETH | 0.01007029 | ||||
| Give Generously | 14517050 | 1402 days ago | IN | 0.1 ETH | 0.0110111 | ||||
| Give Generously | 14516926 | 1402 days ago | IN | 0.1 ETH | 0.01776974 |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
LeaderboardDAO
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2022-04-04
*/
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.10;
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
/**
* @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);
}
/**
* @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 be have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev 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);
}
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)
/**
* @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);
}
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
}
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [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
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
/**
* @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;
}
}
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}
/**
* @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: owner query for nonexistent token");
return owner;
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
}
/**
* @dev Base URI for computing {tokenURI}. 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 owner nor approved for all"
);
_approve(to, tokenId);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
require(_exists(tokenId), "ERC721: approved query for nonexistent token");
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
_setApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_transfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_safeTransfer(from, to, tokenId, _data);
}
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* `_data` is additional data, it has no specified format and it is sent in call to `to`.
*
* This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
* implement alternative mechanisms to perform token transfer, such as signature-based.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeTransfer(
address from,
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_transfer(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
* and stop existing when they are burned (`_burn`).
*/
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _owners[tokenId] != address(0);
}
/**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
require(_exists(tokenId), "ERC721: operator query for nonexistent token");
address owner = ERC721.ownerOf(tokenId);
return (spender == owner || 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 a {Approval} event.
*/
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
/**
* @dev Approve `operator` to operate on all of `owner` tokens
*
* Emits a {ApprovalForAll} event.
*/
function _setApprovalForAll(
address owner,
address operator,
bool approved
) internal virtual {
require(owner != operator, "ERC721: approve to caller");
_operatorApprovals[owner][operator] = approved;
emit ApprovalForAll(owner, operator, approved);
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param tokenId uint256 ID of the token to be transferred
* @param _data bytes optional data to send along with the call
* @return bool whether the call correctly returned the expected magic value
*/
function _checkOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
if (to.isContract()) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
return retval == IERC721Receiver.onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert("ERC721: transfer to non ERC721Receiver implementer");
} else {
assembly {
revert(add(32, reason), mload(reason))
}
}
}
} else {
return true;
}
}
/**
* @dev 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 {}
}
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.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);
}
/**
* @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();
}
}
// OpenZeppelin Contracts v4.4.1 (access/Ownable.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 Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
contract LeaderboardDAO is ERC721Enumerable, Ownable {
struct LeaderboardState {
uint256 tokenId;
uint256 ethPaid;
string message;
}
struct TokenState {
bool isOnLeaderboard;
uint32 position;
uint32 fromBlock;
uint32 toBlock;
uint256 ethPaid;
}
// Leaderboard position [1...100]=> State
mapping(uint256 => LeaderboardState) public leaderboardOf;
// TokenID => State
mapping(uint256 => TokenState) public tokenStateOf;
// Yahoo
receive() external payable {}
// Constructoooooor
constructor()
ERC721("The Leaderboard DAO", "THE LEADERBOARD DAO")
Ownable()
{}
// Welcome! Patreon
function giveGenerously(uint32 _position, string memory _text) public payable {
LeaderboardState memory prevLeader = leaderboardOf[_position];
// Checks
require(_position >= 1 && _position <= 100, "top 100 only");
require(bytes(_text).length <= 16, "smaller msg plz");
require(msg.value > 1e17, "too low");
require(msg.value > prevLeader.ethPaid, "too low");
// Don't want whales to buy them up immediately
// Must be least 10% more
if (prevLeader.ethPaid > 0) {
require(msg.value >= (prevLeader.ethPaid * 110) / 100, "too low");
require(msg.value <= prevLeader.ethPaid * 2, "too high");
}
// Gets prev leaderboard tokenId and set the params
uint256 prevTokenId = prevLeader.tokenId;
if (prevTokenId > 0) {
TokenState memory prevTokenState = tokenStateOf[prevTokenId];
tokenStateOf[prevTokenId] = TokenState({
isOnLeaderboard: false,
position: _position,
fromBlock: prevTokenState.fromBlock,
toBlock: uint32(block.number),
ethPaid: prevTokenState.ethPaid
});
}
// Writes new token state
uint256 newTokenId = totalSupply() + 1;
_mint(msg.sender, newTokenId);
TokenState memory newTokenState = TokenState({
isOnLeaderboard: true,
position: _position,
fromBlock: uint32(block.number),
toBlock: 0,
ethPaid: msg.value
});
tokenStateOf[newTokenId] = newTokenState;
// Sets current leaderboard
leaderboardOf[_position] = LeaderboardState({
tokenId: newTokenId,
ethPaid: msg.value,
message: _text
});
}
// Token URI woot
function tokenURI(uint256 tokenId)
public
view
override
returns (string memory)
{
TokenState memory tokenState = tokenStateOf[tokenId];
uint256 ethPaidPt1 = tokenState.ethPaid / 1e18;
uint256 ethPaidPt2 = (tokenState.ethPaid / 1e15) % 1000; // 3 decimal places
string memory outlineText = string(
abi.encodePacked(
"PAID ",
Utils.toString(ethPaidPt1),
".",
Utils.toString(ethPaidPt2),
" ETH | BLOCK ",
Utils.toString(tokenState.fromBlock),
" - ",
tokenState.isOnLeaderboard
? "NOW"
: Utils.toString(tokenState.toBlock)
)
);
string[17] memory parts;
parts[
0
] = '<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="512px" height="512px" viewBox="0 0 512 512"> <style>@import url(https://fonts.googleapis.com/css?family=Open+Sans:800); .text{fill: none; stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 70 305; stroke-dashoffset: 0; -webkit-animation: stroke 6s infinite linear; animation: stroke 6s infinite linear;}.text:nth-child(5n+1){stroke: #DD517F; -webkit-animation-delay: -1.2s; animation-delay: -1.2s;}.text:nth-child(5n+2){stroke: #E68E36; -webkit-animation-delay: -2.4s; animation-delay: -2.4s;}.text:nth-child(5n+3){stroke: #556DC8; -webkit-animation-delay: -3.6s; animation-delay: -3.6s;}.text:nth-child(5n+4){stroke: #7998EE; -webkit-animation-delay: -4.8s; animation-delay: -4.8s;}.text:nth-child(5n+5){stroke: #FFB845; -webkit-animation-delay: -6s; animation-delay: -6s;}@-webkit-keyframes stroke{100%{stroke-dashoffset: -375;}}@keyframes stroke{100%{stroke-dashoffset: -375;}}.main-text{font: 3em/1 Open Sans, Impact;}.dao-text{font: 9em/1 Open Sans, Impact;}.subtitle-text{font: 1em/1 Open Sans, Impact;}svg{background-size: 0.2em 100%; font-family: Open Sans, Impact; text-transform: uppercase; margin: 0;}</style> <clipPath id="corners"> <rect width="512" height="512" rx="42" ry="42"/> </clipPath> <path id="text-path-a" fill="#461E52" d="M40 12 H472 A28 28 0 0 1 500 40 V472 A28 28 0 0 1 472 500 H40 A28 28 0 0 1 12 472 V40 A28 28 0 0 1 40 12 z"/> <symbol id="s-text"> <text class="main-text" text-anchor="middle" x="50%" y="20%" dy=".35em">Leaderboard</text> <text class="dao-text" text-anchor="middle" x="50%" y="40%" dy=".35em">DAO</text> </symbol> <use class="text" xlink:href="#s-text"></use> <use class="text" xlink:href="#s-text"></use> <use class="text" xlink:href="#s-text"></use> <use class="text" xlink:href="#s-text"></use> <use class="text" xlink:href="#s-text"></use> ';
parts[1] = string(
abi.encodePacked(
'<text fill="#',
tokenState.isOnLeaderboard
? '05FFA1" '
: 'E93479" text-decoration="line-through" ',
'text-anchor="middle" x="50%" y="74%">#',
Utils.toString(tokenState.position),
"</text>"
)
);
parts[
2
] = '<defs><path d="M50,250c0-110.5,89.5-200,200-200s200,89.5,200,200s-89.5,200-200,200S50,360.5,50,250" id="textcircle"> <animateTransform attributeName="transform" begin="0s" dur="10s" type="rotate" from="0 250 250" to="360 250 250" repeatCount="indefinite" /></path></defs><g transform="translate(6, 125)"><text dy="150" textLength="1180"><textPath ';
if (tokenState.isOnLeaderboard) {
parts[3] = 'fill="#05FFA1" ';
parts[5] = "Many generous. Much wow. ";
} else {
parts[3] = 'fill="#E93479" ';
parts[5] = "Thank you for your service. ";
}
parts[4] = 'xlink:href="#textcircle">';
parts[6] = "</textPath></text></g>";
parts[
7
] = '<text text-rendering="optimizeSpeed" stroke="black"> <textPath startOffset="-100%" fill="white" font-family="\'Courier New\', monospace" font-size="12px" xlink:href="#text-path-a">';
parts[8] = outlineText;
parts[
9
] = '<animate additive="sum" attributeName="startOffset" from="0%" to="100%" begin="0s" dur="30s" repeatCount="indefinite" /> </textPath> <textPath startOffset="0%" fill="white" font-family="\'Courier New\', monospace" font-size="12px" xlink:href="#text-path-a">';
parts[10] = outlineText;
parts[
11
] = '<animate additive="sum" attributeName="startOffset" from="0%" to="100%" begin="0s" dur="30s" repeatCount="indefinite" /> </textPath> <textPath startOffset="50%" fill="white" font-family="\'Courier New\', monospace" font-size="12px" xlink:href="#text-path-a">';
parts[12] = outlineText;
parts[
13
] = '<animate additive="sum" attributeName="startOffset" from="0%" to="100%" begin="0s" dur="30s" repeatCount="indefinite" /> </textPath> <textPath startOffset="-50%" fill="white" font-family="\'Courier New\', monospace" font-size="12px" xlink:href="#text-path-a">';
parts[14] = outlineText;
parts[
15
] = '<animate additive="sum" attributeName="startOffset" from="0%" to="100%" begin="0s" dur="30s" repeatCount="indefinite" /> </textPath>';
parts[16] = "</text></svg>";
string memory output = string(
abi.encodePacked(
parts[0],
parts[1],
parts[2],
parts[3],
parts[4],
parts[5],
parts[6],
parts[7],
parts[8]
)
);
output = string(
abi.encodePacked(
output,
parts[9],
parts[10],
parts[11],
parts[12],
parts[13],
parts[14],
parts[15],
parts[16]
)
);
string memory json = Base64.encode(
bytes(
string(
abi.encodePacked(
'{"name": "LeaderboardDAO NFT #',
Utils.toString(tokenId),
'", "description": "LeaderboardDAO is a community of the top 100 Generous Givers. Each Generous Giver will be entitled a position, and a message on leaderboarddao.com - until an even more Generous Giver comes along. The goal of LeaderboardDAO is to acknowledge, uplift, and empower those Generous Givers in the community with a custom NFT to prove their generosity.", "image": "data:image/svg+xml;base64,',
Base64.encode(bytes(output)),
'"}'
)
)
)
);
output = string(
abi.encodePacked("data:application/json;base64,", json)
);
return output;
}
// Brrrr
function withdrawETH() public onlyOwner {
owner().call{value: address(this).balance}("");
}
}
library Utils {
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT license
// 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);
}
}
library Base64 {
bytes internal constant TABLE =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
/// @notice Encodes some bytes to the base64 representation
function encode(bytes memory data) internal pure returns (string memory) {
uint256 len = data.length;
if (len == 0) return "";
// multiply by 4/3 rounded up
uint256 encodedLen = 4 * ((len + 2) / 3);
// Add some extra buffer at the end
bytes memory result = new bytes(encodedLen + 32);
bytes memory table = TABLE;
assembly {
let tablePtr := add(table, 1)
let resultPtr := add(result, 32)
for {
let i := 0
} lt(i, len) {
} {
i := add(i, 3)
let input := and(mload(add(data, i)), 0xffffff)
let out := mload(add(tablePtr, and(shr(18, input), 0x3F)))
out := shl(8, out)
out := add(
out,
and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF)
)
out := shl(8, out)
out := add(
out,
and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF)
)
out := shl(8, out)
out := add(
out,
and(mload(add(tablePtr, and(input, 0x3F))), 0xFF)
)
out := shl(224, out)
mstore(resultPtr, out)
resultPtr := add(resultPtr, 4)
}
switch mod(len, 3)
case 1 {
mstore(sub(resultPtr, 2), shl(240, 0x3d3d))
}
case 2 {
mstore(sub(resultPtr, 1), shl(248, 0x3d))
}
mstore(result, encodedLen)
}
return string(result);
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"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":[{"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":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"_position","type":"uint32"},{"internalType":"string","name":"_text","type":"string"}],"name":"giveGenerously","outputs":[],"stateMutability":"payable","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":"","type":"uint256"}],"name":"leaderboardOf","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"ethPaid","type":"uint256"},{"internalType":"string","name":"message","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenStateOf","outputs":[{"internalType":"bool","name":"isOnLeaderboard","type":"bool"},{"internalType":"uint32","name":"position","type":"uint32"},{"internalType":"uint32","name":"fromBlock","type":"uint32"},{"internalType":"uint32","name":"toBlock","type":"uint32"},{"internalType":"uint256","name":"ethPaid","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
60806040523480156200001157600080fd5b506040518060400160405280601381526020017f546865204c6561646572626f6172642044414f000000000000000000000000008152506040518060400160405280601381526020017f544845204c4541444552424f4152442044414f0000000000000000000000000081525081600090805190602001906200009692919062000125565b508051620000ac90600190602084019062000125565b505050620000c9620000c3620000cf60201b60201c565b620000d3565b62000208565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200013390620001cb565b90600052602060002090601f016020900481019282620001575760008555620001a2565b82601f106200017257805160ff1916838001178555620001a2565b82800160010185558215620001a2579182015b82811115620001a257825182559160200191906001019062000185565b50620001b0929150620001b4565b5090565b5b80821115620001b05760008155600101620001b5565b600181811c90821680620001e057607f821691505b602082108114156200020257634e487b7160e01b600052602260045260246000fd5b50919050565b613af180620002186000396000f3fe6080604052600436106101445760003560e01c806370a08231116100b6578063c87b56dd1161006f578063c87b56dd1461037b578063d385db841461039b578063e086e5ec146103ca578063e985e9c5146103df578063f2fde38b14610428578063ff4e3ae51461044857600080fd5b806370a08231146102d3578063715018a6146102f35780638da5cb5b1461030857806395d89b4114610326578063a22cb4651461033b578063b88d4fde1461035b57600080fd5b806323b872dd1161010857806323b872dd146102205780632f745c591461024057806342842e0e146102605780634f6ccce7146102805780636352211e146102a05780636e5af61b146102c057600080fd5b806301ffc9a71461015057806306fdde0314610185578063081812fc146101a7578063095ea7b3146101df57806318160ddd1461020157600080fd5b3661014b57005b600080fd5b34801561015c57600080fd5b5061017061016b3660046122ec565b6104da565b60405190151581526020015b60405180910390f35b34801561019157600080fd5b5061019a610505565b60405161017c9190612368565b3480156101b357600080fd5b506101c76101c236600461237b565b610597565b6040516001600160a01b03909116815260200161017c565b3480156101eb57600080fd5b506101ff6101fa3660046123b0565b610631565b005b34801561020d57600080fd5b506008545b60405190815260200161017c565b34801561022c57600080fd5b506101ff61023b3660046123da565b610747565b34801561024c57600080fd5b5061021261025b3660046123b0565b610778565b34801561026c57600080fd5b506101ff61027b3660046123da565b61080e565b34801561028c57600080fd5b5061021261029b36600461237b565b610829565b3480156102ac57600080fd5b506101c76102bb36600461237b565b6108bc565b6101ff6102ce3660046124a2565b610933565b3480156102df57600080fd5b506102126102ee36600461250f565b610e67565b3480156102ff57600080fd5b506101ff610eed565b34801561031457600080fd5b50600a546001600160a01b03166101c7565b34801561033257600080fd5b5061019a610f23565b34801561034757600080fd5b506101ff61035636600461252a565b610f32565b34801561036757600080fd5b506101ff610376366004612566565b610f41565b34801561038757600080fd5b5061019a61039636600461237b565b610f79565b3480156103a757600080fd5b506103bb6103b636600461237b565b6114b0565b60405161017c939291906125e2565b3480156103d657600080fd5b506101ff61155b565b3480156103eb57600080fd5b506101706103fa36600461260a565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561043457600080fd5b506101ff61044336600461250f565b6115d2565b34801561045457600080fd5b506104a561046336600461237b565b600c602052600090815260409020805460019091015460ff82169163ffffffff6101008204811692650100000000008304821692600160481b90049091169085565b60408051951515865263ffffffff9485166020870152928416928501929092529091166060830152608082015260a00161017c565b60006001600160e01b0319821663780e9d6360e01b14806104ff57506104ff8261166d565b92915050565b6060600080546105149061263d565b80601f01602080910402602001604051908101604052809291908181526020018280546105409061263d565b801561058d5780601f106105625761010080835404028352916020019161058d565b820191906000526020600020905b81548152906001019060200180831161057057829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166106155760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061063c826108bc565b9050806001600160a01b0316836001600160a01b031614156106aa5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161060c565b336001600160a01b03821614806106c657506106c681336103fa565b6107385760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161060c565b61074283836116bd565b505050565b610751338261172b565b61076d5760405162461bcd60e51b815260040161060c90612678565b610742838383611822565b600061078383610e67565b82106107e55760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161060c565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61074283838360405180602001604052806000815250610f41565b600061083460085490565b82106108975760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161060c565b600882815481106108aa576108aa6126c9565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806104ff5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161060c565b6000600b60008463ffffffff168152602001908152602001600020604051806060016040529081600082015481526020016001820154815260200160028201805461097d9061263d565b80601f01602080910402602001604051908101604052809291908181526020018280546109a99061263d565b80156109f65780601f106109cb576101008083540402835291602001916109f6565b820191906000526020600020905b8154815290600101906020018083116109d957829003601f168201915b505050505081525050905060018363ffffffff1610158015610a1f575060648363ffffffff1611155b610a5a5760405162461bcd60e51b815260206004820152600c60248201526b746f7020313030206f6e6c7960a01b604482015260640161060c565b601082511115610a9e5760405162461bcd60e51b815260206004820152600f60248201526e39b6b0b63632b91036b9b39038363d60891b604482015260640161060c565b67016345785d8a00003411610ac55760405162461bcd60e51b815260040161060c906126df565b80602001513411610ae85760405162461bcd60e51b815260040161060c906126df565b602081015115610b785760648160200151606e610b059190612716565b610b0f919061274b565b341015610b2e5760405162461bcd60e51b815260040161060c906126df565b6020810151610b3e906002612716565b341115610b785760405162461bcd60e51b81526020600482015260086024820152670e8dede40d0d2ced60c31b604482015260640161060c565b80518015610d34576000600c60008381526020019081526020016000206040518060a00160405290816000820160009054906101000a900460ff161515151581526020016000820160019054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016000820160059054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016000820160099054906101000a900463ffffffff1663ffffffff1663ffffffff16815260200160018201548152505090506040518060a001604052806000151581526020018663ffffffff168152602001826040015163ffffffff1681526020014363ffffffff1681526020018260800151815250600c600084815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548163ffffffff021916908363ffffffff16021790555060408201518160000160056101000a81548163ffffffff021916908363ffffffff16021790555060608201518160000160096101000a81548163ffffffff021916908363ffffffff16021790555060808201518160010155905050505b6000610d3f60085490565b610d4a90600161275f565b9050610d5633826119c9565b6040805160a081018252600180825263ffffffff8089166020808501828152438416868801908152600060608089018281523460808b018181528d8552600c88528c85208c5181549851975194518c16600160481b026cffffffff00000000000000000019958d166501000000000002959095166cffffffffffffffff00000000001998909c166101000264ffffffff00199115159190911664ffffffffff1990991698909817979097179590951698909817178455915192870192909255875190810188528881528083019485528088018c8152938252600b8352969020865181559251938301939093555180519394939192610e5c92600285019290910190612215565b505050505050505050565b60006001600160a01b038216610ed15760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b606482015260840161060c565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314610f175760405162461bcd60e51b815260040161060c90612777565b610f216000611b17565b565b6060600180546105149061263d565b610f3d338383611b69565b5050565b610f4b338361172b565b610f675760405162461bcd60e51b815260040161060c90612678565b610f7384848484611c38565b50505050565b6000818152600c60209081526040808320815160a081018352815460ff81161515825263ffffffff6101008204811695830195909552650100000000008104851693820193909352600160481b9092049092166060828101919091526001909201546080820181905291929091610ff990670de0b6b3a76400009061274b565b905060006103e866038d7ea4c680008460800151611017919061274b565b61102191906127ac565b9050600061102e83611c6b565b61103783611c6b565b61104a866040015163ffffffff16611c6b565b865161106857611063876060015163ffffffff16611c6b565b611085565b604051806040016040528060038152602001624e4f5760e81b8152505b60405160200161109894939291906127dc565b60405160208183030381529060405290506110b1612299565b604051806107a0016040528061076f815260200161301961076f9139815284516110f35760405180606001604052806027815260200161383a60279139611115565b604051806040016040528060088152602001670181aa323209891160c51b8152505b611128866020015163ffffffff16611c6b565b604051602001611139929190612881565b60408051601f19818403018152919052816001602002018190525060405180610180016040528061015b815260200161396161015b913960408201528451156111e857604080518082018252600f81526e03334b6361e9111981aa3232098911608d1b60208083019190915260608401919091528151808301909252601982527f4d616e792067656e65726f75732e204d75636820776f772e20000000000000009082015260a0820152611250565b604080518082018252600f81526e03334b6361e9111a29c999a1b9c911608d1b60208083019190915260608401919091528151808301909252601c82527f5468616e6b20796f7520666f7220796f757220736572766963652e20000000009082015260a08201525b604080518082018252601981527f786c696e6b3a687265663d222374657874636972636c65223e0000000000000060208083019190915260808401919091528151808301835260168152751e17ba32bc3a2830ba341f1e17ba32bc3a1f1e17b39f60511b8183015260c0840152815160e0810190925260b2808352906137889083013960e0820152610100810182905260408051610120810190915260ff808252612eda602083013961012080830191909152610140820183905260408051918201905261010080825261386160208301396101608201526101808101829052604080516101408101909152610101808252612dd960208301396101a08201526101c081018290526040805160c081019091526084808252612d5560208301396101e0820152604080518082018252600d81526c1e17ba32bc3a1f1e17b9bb339f60991b602080830191909152610200840191909152825181840151838501516060860151608087015160a088015160c089015160e08a01516101008b0151995160009a6113e09a909101612916565b60408051808303601f19018152908290526101208401516101408501516101608601516101808701516101a08801516101c08901516101e08a01516102008b0151979950611433988a9890602001612916565b604051602081830303815290604052905060006114806114528a611c6b565b61145b84611d69565b60405160200161146c9291906129d7565b604051602081830303815290604052611d69565b9050806040516020016114939190612c1b565b60408051601f198184030181529190529998505050505050505050565b600b60205260009081526040902080546001820154600283018054929391926114d89061263d565b80601f01602080910402602001604051908101604052809291908181526020018280546115049061263d565b80156115515780601f1061152657610100808354040283529160200191611551565b820191906000526020600020905b81548152906001019060200180831161153457829003601f168201915b5050505050905083565b600a546001600160a01b031633146115855760405162461bcd60e51b815260040161060c90612777565b600a546040516001600160a01b03909116904790600081818185875af1925050503d8060008114610742576040519150601f19603f3d011682016040523d82523d6000602084013e505050565b600a546001600160a01b031633146115fc5760405162461bcd60e51b815260040161060c90612777565b6001600160a01b0381166116615760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161060c565b61166a81611b17565b50565b60006001600160e01b031982166380ac58cd60e01b148061169e57506001600160e01b03198216635b5e139f60e01b145b806104ff57506301ffc9a760e01b6001600160e01b03198316146104ff565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906116f2826108bc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166117a45760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161060c565b60006117af836108bc565b9050806001600160a01b0316846001600160a01b031614806117f657506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b8061181a5750836001600160a01b031661180f84610597565b6001600160a01b0316145b949350505050565b826001600160a01b0316611835826108bc565b6001600160a01b0316146118995760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161060c565b6001600160a01b0382166118fb5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161060c565b611906838383611ecf565b6119116000826116bd565b6001600160a01b038316600090815260036020526040812080546001929061193a908490612c60565b90915550506001600160a01b038216600090815260036020526040812080546001929061196890849061275f565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b038216611a1f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161060c565b6000818152600260205260409020546001600160a01b031615611a845760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161060c565b611a9060008383611ecf565b6001600160a01b0382166000908152600360205260408120805460019290611ab990849061275f565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415611bcb5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161060c565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611c43848484611822565b611c4f84848484611f87565b610f735760405162461bcd60e51b815260040161060c90612c77565b606081611c8f5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611cb95780611ca381612cc9565b9150611cb29050600a8361274b565b9150611c93565b60008167ffffffffffffffff811115611cd457611cd4612416565b6040519080825280601f01601f191660200182016040528015611cfe576020820181803683370190505b5090505b841561181a57611d13600183612c60565b9150611d20600a866127ac565b611d2b90603061275f565b60f81b818381518110611d4057611d406126c9565b60200101906001600160f81b031916908160001a905350611d62600a8661274b565b9450611d02565b805160609080611d89575050604080516020810190915260008152919050565b60006003611d9883600261275f565b611da2919061274b565b611dad906004612716565b90506000611dbc82602061275f565b67ffffffffffffffff811115611dd457611dd4612416565b6040519080825280601f01601f191660200182016040528015611dfe576020820181803683370190505b5090506000604051806060016040528060408152602001612fd9604091399050600181016020830160005b86811015611e8a576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101611e29565b506003860660018114611ea45760028114611eb557611ec1565b613d3d60f01b600119830152611ec1565b603d60f81b6000198301525b505050918152949350505050565b6001600160a01b038316611f2a57611f2581600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611f4d565b816001600160a01b0316836001600160a01b031614611f4d57611f4d8382612085565b6001600160a01b038216611f645761074281612122565b826001600160a01b0316826001600160a01b0316146107425761074282826121d1565b60006001600160a01b0384163b1561207a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611fcb903390899088908890600401612ce4565b6020604051808303816000875af1925050508015612006575060408051601f3d908101601f1916820190925261200391810190612d21565b60015b612060573d808015612034576040519150601f19603f3d011682016040523d82523d6000602084013e612039565b606091505b5080516120585760405162461bcd60e51b815260040161060c90612c77565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061181a565b506001949350505050565b6000600161209284610e67565b61209c9190612c60565b6000838152600760205260409020549091508082146120ef576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061213490600190612c60565b6000838152600960205260408120546008805493945090928490811061215c5761215c6126c9565b90600052602060002001549050806008838154811061217d5761217d6126c9565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806121b5576121b5612d3e565b6001900381819060005260206000200160009055905550505050565b60006121dc83610e67565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b8280546122219061263d565b90600052602060002090601f0160209004810192826122435760008555612289565b82601f1061225c57805160ff1916838001178555612289565b82800160010185558215612289579182015b8281111561228957825182559160200191906001019061226e565b506122959291506122c1565b5090565b6040518061022001604052806011905b60608152602001906001900390816122a95790505090565b5b8082111561229557600081556001016122c2565b6001600160e01b03198116811461166a57600080fd5b6000602082840312156122fe57600080fd5b8135612309816122d6565b9392505050565b60005b8381101561232b578181015183820152602001612313565b83811115610f735750506000910152565b60008151808452612354816020860160208601612310565b601f01601f19169290920160200192915050565b602081526000612309602083018461233c565b60006020828403121561238d57600080fd5b5035919050565b80356001600160a01b03811681146123ab57600080fd5b919050565b600080604083850312156123c357600080fd5b6123cc83612394565b946020939093013593505050565b6000806000606084860312156123ef57600080fd5b6123f884612394565b925061240660208501612394565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561244757612447612416565b604051601f8501601f19908116603f0116810190828211818310171561246f5761246f612416565b8160405280935085815286868601111561248857600080fd5b858560208301376000602087830101525050509392505050565b600080604083850312156124b557600080fd5b823563ffffffff811681146124c957600080fd5b9150602083013567ffffffffffffffff8111156124e557600080fd5b8301601f810185136124f657600080fd5b6125058582356020840161242c565b9150509250929050565b60006020828403121561252157600080fd5b61230982612394565b6000806040838503121561253d57600080fd5b61254683612394565b91506020830135801515811461255b57600080fd5b809150509250929050565b6000806000806080858703121561257c57600080fd5b61258585612394565b935061259360208601612394565b925060408501359150606085013567ffffffffffffffff8111156125b657600080fd5b8501601f810187136125c757600080fd5b6125d68782356020840161242c565b91505092959194509250565b838152826020820152606060408201526000612601606083018461233c565b95945050505050565b6000806040838503121561261d57600080fd5b61262683612394565b915061263460208401612394565b90509250929050565b600181811c9082168061265157607f821691505b6020821081141561267257634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b602080825260079082015266746f6f206c6f7760c81b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561273057612730612700565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261275a5761275a612735565b500490565b6000821982111561277257612772612700565b500190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000826127bb576127bb612735565b500690565b600081516127d2818560208601612310565b9290920192915050565b6402820a4a2160dd1b8152600085516127fc816005850160208a01612310565b601760f91b600591840191820152855161281d816006840160208a01612310565b6c01022aa24103e10212627a1a59609d1b60069290910191820152845161284b816013840160208901612310565b6005818301019150506201016960ed1b600e8201528351612873816011840160208801612310565b016011019695505050505050565b6c3c746578742066696c6c3d222360981b815282516000906128aa81600d850160208801612310565b7f746578742d616e63686f723d226d6964646c652220783d223530252220793d22600d9184019182015265373425223e2360d01b602d82015283516128f6816033840160208801612310565b661e17ba32bc3a1f60c91b60339290910191820152603a01949350505050565b60008a51612928818460208f01612310565b8a5161293a8183860160208f01612310565b8a51918401019061294f818360208e01612310565b89516129618183850160208e01612310565b8951929091010190612977818360208c01612310565b87516129898183850160208c01612310565b875192909101019061299f818360208a01612310565b85516129b18183850160208a01612310565b85519290910101906129c7818360208801612310565b019b9a5050505050505050505050565b7f7b226e616d65223a20224c6561646572626f61726444414f204e465420230000815260008351612a0f81601e850160208801612310565b7f222c20226465736372697074696f6e223a20224c6561646572626f6172644441601e918401918201527f4f206973206120636f6d6d756e697479206f662074686520746f702031303020603e8201527f47656e65726f7573204769766572732e20456163682047656e65726f75732047605e8201527f697665722077696c6c20626520656e7469746c6564206120706f736974696f6e607e8201527f2c20616e642061206d657373616765206f6e206c6561646572626f6172646461609e8201527f6f2e636f6d202d20756e74696c20616e206576656e206d6f72652047656e657260be8201527f6f757320476976657220636f6d657320616c6f6e672e2054686520676f616c2060de8201527f6f66204c6561646572626f61726444414f20697320746f2061636b6e6f776c6560fe8201527f6467652c2075706c6966742c20616e6420656d706f7765722074686f7365204761011e8201527f656e65726f75732047697665727320696e2074686520636f6d6d756e6974792061013e8201527f77697468206120637573746f6d204e465420746f2070726f766520746865697261015e8201527f2067656e65726f736974792e222c2022696d616765223a2022646174613a696d61017e820152721859d94bdcdd99cade1b5b0ed8985cd94d8d0b606a1b61019e820152612601612c0d6101b18301866127c0565b61227d60f01b815260020190565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251612c5381601d850160208701612310565b91909101601d0192915050565b600082821015612c7257612c72612700565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000600019821415612cdd57612cdd612700565b5060010190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612d179083018461233c565b9695505050505050565b600060208284031215612d3357600080fd5b8151612309816122d6565b634e487b7160e01b600052603160045260246000fdfe3c616e696d6174652061646469746976653d2273756d22206174747269627574654e616d653d2273746172744f6666736574222066726f6d3d2230252220746f3d22313030252220626567696e3d22307322206475723d223330732220726570656174436f756e743d22696e646566696e69746522202f3e203c2f74657874506174683e3c616e696d6174652061646469746976653d2273756d22206174747269627574654e616d653d2273746172744f6666736574222066726f6d3d2230252220746f3d22313030252220626567696e3d22307322206475723d223330732220726570656174436f756e743d22696e646566696e69746522202f3e203c2f74657874506174683e203c74657874506174682073746172744f66667365743d222d353025222066696c6c3d2277686974652220666f6e742d66616d696c793d2227436f7572696572204e6577272c206d6f6e6f73706163652220666f6e742d73697a653d22313270782220786c696e6b3a687265663d2223746578742d706174682d61223e3c616e696d6174652061646469746976653d2273756d22206174747269627574654e616d653d2273746172744f6666736574222066726f6d3d2230252220746f3d22313030252220626567696e3d22307322206475723d223330732220726570656174436f756e743d22696e646566696e69746522202f3e203c2f74657874506174683e203c74657874506174682073746172744f66667365743d223025222066696c6c3d2277686974652220666f6e742d66616d696c793d2227436f7572696572204e6577272c206d6f6e6f73706163652220666f6e742d73697a653d22313270782220786c696e6b3a687265663d2223746578742d706174682d61223e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c7376672076657273696f6e3d22312e312220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f7376672220786d6c6e733a786c696e6b3d22687474703a2f2f7777772e77332e6f72672f313939392f786c696e6b222077696474683d22353132707822206865696768743d223531327078222076696577426f783d223020302035313220353132223e203c7374796c653e40696d706f72742075726c2868747470733a2f2f666f6e74732e676f6f676c65617069732e636f6d2f6373733f66616d696c793d4f70656e2b53616e733a383030293b202e746578747b66696c6c3a206e6f6e653b207374726f6b652d77696474683a20333b207374726f6b652d6c696e656a6f696e3a20726f756e643b207374726f6b652d6461736861727261793a203730203330353b207374726f6b652d646173686f66667365743a20303b202d7765626b69742d616e696d6174696f6e3a207374726f6b6520367320696e66696e697465206c696e6561723b20616e696d6174696f6e3a207374726f6b6520367320696e66696e697465206c696e6561723b7d2e746578743a6e74682d6368696c6428356e2b31297b7374726f6b653a20234444353137463b202d7765626b69742d616e696d6174696f6e2d64656c61793a202d312e32733b20616e696d6174696f6e2d64656c61793a202d312e32733b7d2e746578743a6e74682d6368696c6428356e2b32297b7374726f6b653a20234536384533363b202d7765626b69742d616e696d6174696f6e2d64656c61793a202d322e34733b20616e696d6174696f6e2d64656c61793a202d322e34733b7d2e746578743a6e74682d6368696c6428356e2b33297b7374726f6b653a20233535364443383b202d7765626b69742d616e696d6174696f6e2d64656c61793a202d332e36733b20616e696d6174696f6e2d64656c61793a202d332e36733b7d2e746578743a6e74682d6368696c6428356e2b34297b7374726f6b653a20233739393845453b202d7765626b69742d616e696d6174696f6e2d64656c61793a202d342e38733b20616e696d6174696f6e2d64656c61793a202d342e38733b7d2e746578743a6e74682d6368696c6428356e2b35297b7374726f6b653a20234646423834353b202d7765626b69742d616e696d6174696f6e2d64656c61793a202d36733b20616e696d6174696f6e2d64656c61793a202d36733b7d402d7765626b69742d6b65796672616d6573207374726f6b657b313030257b7374726f6b652d646173686f66667365743a202d3337353b7d7d406b65796672616d6573207374726f6b657b313030257b7374726f6b652d646173686f66667365743a202d3337353b7d7d2e6d61696e2d746578747b666f6e743a2033656d2f31204f70656e2053616e732c20496d706163743b7d2e64616f2d746578747b666f6e743a2039656d2f31204f70656e2053616e732c20496d706163743b7d2e7375627469746c652d746578747b666f6e743a2031656d2f31204f70656e2053616e732c20496d706163743b7d7376677b6261636b67726f756e642d73697a653a20302e32656d20313030253b20666f6e742d66616d696c793a204f70656e2053616e732c20496d706163743b20746578742d7472616e73666f726d3a207570706572636173653b206d617267696e3a20303b7d3c2f7374796c653e203c636c6970506174682069643d22636f726e657273223e203c726563742077696474683d2235313222206865696768743d22353132222072783d223432222072793d223432222f3e203c2f636c6970506174683e203c706174682069643d22746578742d706174682d61222066696c6c3d22233436314535322220643d224d34302031322048343732204132382032382030203020312035303020343020563437322041323820323820302030203120343732203530302048343020413238203238203020302031203132203437322056343020413238203238203020302031203430203132207a222f3e203c73796d626f6c2069643d22732d74657874223e203c7465787420636c6173733d226d61696e2d746578742220746578742d616e63686f723d226d6964646c652220783d223530252220793d22323025222064793d222e3335656d223e4c6561646572626f6172643c2f746578743e203c7465787420636c6173733d2264616f2d746578742220746578742d616e63686f723d226d6964646c652220783d223530252220793d22343025222064793d222e3335656d223e44414f3c2f746578743e203c2f73796d626f6c3e203c75736520636c6173733d22746578742220786c696e6b3a687265663d2223732d74657874223e3c2f7573653e203c75736520636c6173733d22746578742220786c696e6b3a687265663d2223732d74657874223e3c2f7573653e203c75736520636c6173733d22746578742220786c696e6b3a687265663d2223732d74657874223e3c2f7573653e203c75736520636c6173733d22746578742220786c696e6b3a687265663d2223732d74657874223e3c2f7573653e203c75736520636c6173733d22746578742220786c696e6b3a687265663d2223732d74657874223e3c2f7573653e203c7465787420746578742d72656e646572696e673d226f7074696d697a65537065656422207374726f6b653d22626c61636b223e203c74657874506174682073746172744f66667365743d222d31303025222066696c6c3d2277686974652220666f6e742d66616d696c793d2227436f7572696572204e6577272c206d6f6e6f73706163652220666f6e742d73697a653d22313270782220786c696e6b3a687265663d2223746578742d706174682d61223e4539333437392220746578742d6465636f726174696f6e3d226c696e652d7468726f75676822203c616e696d6174652061646469746976653d2273756d22206174747269627574654e616d653d2273746172744f6666736574222066726f6d3d2230252220746f3d22313030252220626567696e3d22307322206475723d223330732220726570656174436f756e743d22696e646566696e69746522202f3e203c2f74657874506174683e203c74657874506174682073746172744f66667365743d22353025222066696c6c3d2277686974652220666f6e742d66616d696c793d2227436f7572696572204e6577272c206d6f6e6f73706163652220666f6e742d73697a653d22313270782220786c696e6b3a687265663d2223746578742d706174682d61223e3c646566733e3c7061746820643d224d35302c32353063302d3131302e352c38392e352d3230302c3230302d323030733230302c38392e352c3230302c323030732d38392e352c3230302d3230302c3230305335302c3336302e352c35302c323530222069643d2274657874636972636c65223e203c616e696d6174655472616e73666f726d206174747269627574654e616d653d227472616e73666f726d2220626567696e3d22307322206475723d223130732220747970653d22726f74617465222066726f6d3d223020323530203235302220746f3d2233363020323530203235302220726570656174436f756e743d22696e646566696e69746522202f3e3c2f706174683e3c2f646566733e3c67207472616e73666f726d3d227472616e736c61746528362c2031323529223e3c746578742064793d223135302220746578744c656e6774683d2231313830223e3c746578745061746820a2646970667358221220c4428a9c3a88dc342f5849f8b224460f24a3a517ad5630c84a8c2bfc764767cf64736f6c634300080a0033
Deployed Bytecode
0x6080604052600436106101445760003560e01c806370a08231116100b6578063c87b56dd1161006f578063c87b56dd1461037b578063d385db841461039b578063e086e5ec146103ca578063e985e9c5146103df578063f2fde38b14610428578063ff4e3ae51461044857600080fd5b806370a08231146102d3578063715018a6146102f35780638da5cb5b1461030857806395d89b4114610326578063a22cb4651461033b578063b88d4fde1461035b57600080fd5b806323b872dd1161010857806323b872dd146102205780632f745c591461024057806342842e0e146102605780634f6ccce7146102805780636352211e146102a05780636e5af61b146102c057600080fd5b806301ffc9a71461015057806306fdde0314610185578063081812fc146101a7578063095ea7b3146101df57806318160ddd1461020157600080fd5b3661014b57005b600080fd5b34801561015c57600080fd5b5061017061016b3660046122ec565b6104da565b60405190151581526020015b60405180910390f35b34801561019157600080fd5b5061019a610505565b60405161017c9190612368565b3480156101b357600080fd5b506101c76101c236600461237b565b610597565b6040516001600160a01b03909116815260200161017c565b3480156101eb57600080fd5b506101ff6101fa3660046123b0565b610631565b005b34801561020d57600080fd5b506008545b60405190815260200161017c565b34801561022c57600080fd5b506101ff61023b3660046123da565b610747565b34801561024c57600080fd5b5061021261025b3660046123b0565b610778565b34801561026c57600080fd5b506101ff61027b3660046123da565b61080e565b34801561028c57600080fd5b5061021261029b36600461237b565b610829565b3480156102ac57600080fd5b506101c76102bb36600461237b565b6108bc565b6101ff6102ce3660046124a2565b610933565b3480156102df57600080fd5b506102126102ee36600461250f565b610e67565b3480156102ff57600080fd5b506101ff610eed565b34801561031457600080fd5b50600a546001600160a01b03166101c7565b34801561033257600080fd5b5061019a610f23565b34801561034757600080fd5b506101ff61035636600461252a565b610f32565b34801561036757600080fd5b506101ff610376366004612566565b610f41565b34801561038757600080fd5b5061019a61039636600461237b565b610f79565b3480156103a757600080fd5b506103bb6103b636600461237b565b6114b0565b60405161017c939291906125e2565b3480156103d657600080fd5b506101ff61155b565b3480156103eb57600080fd5b506101706103fa36600461260a565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561043457600080fd5b506101ff61044336600461250f565b6115d2565b34801561045457600080fd5b506104a561046336600461237b565b600c602052600090815260409020805460019091015460ff82169163ffffffff6101008204811692650100000000008304821692600160481b90049091169085565b60408051951515865263ffffffff9485166020870152928416928501929092529091166060830152608082015260a00161017c565b60006001600160e01b0319821663780e9d6360e01b14806104ff57506104ff8261166d565b92915050565b6060600080546105149061263d565b80601f01602080910402602001604051908101604052809291908181526020018280546105409061263d565b801561058d5780601f106105625761010080835404028352916020019161058d565b820191906000526020600020905b81548152906001019060200180831161057057829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166106155760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061063c826108bc565b9050806001600160a01b0316836001600160a01b031614156106aa5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161060c565b336001600160a01b03821614806106c657506106c681336103fa565b6107385760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161060c565b61074283836116bd565b505050565b610751338261172b565b61076d5760405162461bcd60e51b815260040161060c90612678565b610742838383611822565b600061078383610e67565b82106107e55760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161060c565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61074283838360405180602001604052806000815250610f41565b600061083460085490565b82106108975760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161060c565b600882815481106108aa576108aa6126c9565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806104ff5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161060c565b6000600b60008463ffffffff168152602001908152602001600020604051806060016040529081600082015481526020016001820154815260200160028201805461097d9061263d565b80601f01602080910402602001604051908101604052809291908181526020018280546109a99061263d565b80156109f65780601f106109cb576101008083540402835291602001916109f6565b820191906000526020600020905b8154815290600101906020018083116109d957829003601f168201915b505050505081525050905060018363ffffffff1610158015610a1f575060648363ffffffff1611155b610a5a5760405162461bcd60e51b815260206004820152600c60248201526b746f7020313030206f6e6c7960a01b604482015260640161060c565b601082511115610a9e5760405162461bcd60e51b815260206004820152600f60248201526e39b6b0b63632b91036b9b39038363d60891b604482015260640161060c565b67016345785d8a00003411610ac55760405162461bcd60e51b815260040161060c906126df565b80602001513411610ae85760405162461bcd60e51b815260040161060c906126df565b602081015115610b785760648160200151606e610b059190612716565b610b0f919061274b565b341015610b2e5760405162461bcd60e51b815260040161060c906126df565b6020810151610b3e906002612716565b341115610b785760405162461bcd60e51b81526020600482015260086024820152670e8dede40d0d2ced60c31b604482015260640161060c565b80518015610d34576000600c60008381526020019081526020016000206040518060a00160405290816000820160009054906101000a900460ff161515151581526020016000820160019054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016000820160059054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016000820160099054906101000a900463ffffffff1663ffffffff1663ffffffff16815260200160018201548152505090506040518060a001604052806000151581526020018663ffffffff168152602001826040015163ffffffff1681526020014363ffffffff1681526020018260800151815250600c600084815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548163ffffffff021916908363ffffffff16021790555060408201518160000160056101000a81548163ffffffff021916908363ffffffff16021790555060608201518160000160096101000a81548163ffffffff021916908363ffffffff16021790555060808201518160010155905050505b6000610d3f60085490565b610d4a90600161275f565b9050610d5633826119c9565b6040805160a081018252600180825263ffffffff8089166020808501828152438416868801908152600060608089018281523460808b018181528d8552600c88528c85208c5181549851975194518c16600160481b026cffffffff00000000000000000019958d166501000000000002959095166cffffffffffffffff00000000001998909c166101000264ffffffff00199115159190911664ffffffffff1990991698909817979097179590951698909817178455915192870192909255875190810188528881528083019485528088018c8152938252600b8352969020865181559251938301939093555180519394939192610e5c92600285019290910190612215565b505050505050505050565b60006001600160a01b038216610ed15760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b606482015260840161060c565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314610f175760405162461bcd60e51b815260040161060c90612777565b610f216000611b17565b565b6060600180546105149061263d565b610f3d338383611b69565b5050565b610f4b338361172b565b610f675760405162461bcd60e51b815260040161060c90612678565b610f7384848484611c38565b50505050565b6000818152600c60209081526040808320815160a081018352815460ff81161515825263ffffffff6101008204811695830195909552650100000000008104851693820193909352600160481b9092049092166060828101919091526001909201546080820181905291929091610ff990670de0b6b3a76400009061274b565b905060006103e866038d7ea4c680008460800151611017919061274b565b61102191906127ac565b9050600061102e83611c6b565b61103783611c6b565b61104a866040015163ffffffff16611c6b565b865161106857611063876060015163ffffffff16611c6b565b611085565b604051806040016040528060038152602001624e4f5760e81b8152505b60405160200161109894939291906127dc565b60405160208183030381529060405290506110b1612299565b604051806107a0016040528061076f815260200161301961076f9139815284516110f35760405180606001604052806027815260200161383a60279139611115565b604051806040016040528060088152602001670181aa323209891160c51b8152505b611128866020015163ffffffff16611c6b565b604051602001611139929190612881565b60408051601f19818403018152919052816001602002018190525060405180610180016040528061015b815260200161396161015b913960408201528451156111e857604080518082018252600f81526e03334b6361e9111981aa3232098911608d1b60208083019190915260608401919091528151808301909252601982527f4d616e792067656e65726f75732e204d75636820776f772e20000000000000009082015260a0820152611250565b604080518082018252600f81526e03334b6361e9111a29c999a1b9c911608d1b60208083019190915260608401919091528151808301909252601c82527f5468616e6b20796f7520666f7220796f757220736572766963652e20000000009082015260a08201525b604080518082018252601981527f786c696e6b3a687265663d222374657874636972636c65223e0000000000000060208083019190915260808401919091528151808301835260168152751e17ba32bc3a2830ba341f1e17ba32bc3a1f1e17b39f60511b8183015260c0840152815160e0810190925260b2808352906137889083013960e0820152610100810182905260408051610120810190915260ff808252612eda602083013961012080830191909152610140820183905260408051918201905261010080825261386160208301396101608201526101808101829052604080516101408101909152610101808252612dd960208301396101a08201526101c081018290526040805160c081019091526084808252612d5560208301396101e0820152604080518082018252600d81526c1e17ba32bc3a1f1e17b9bb339f60991b602080830191909152610200840191909152825181840151838501516060860151608087015160a088015160c089015160e08a01516101008b0151995160009a6113e09a909101612916565b60408051808303601f19018152908290526101208401516101408501516101608601516101808701516101a08801516101c08901516101e08a01516102008b0151979950611433988a9890602001612916565b604051602081830303815290604052905060006114806114528a611c6b565b61145b84611d69565b60405160200161146c9291906129d7565b604051602081830303815290604052611d69565b9050806040516020016114939190612c1b565b60408051601f198184030181529190529998505050505050505050565b600b60205260009081526040902080546001820154600283018054929391926114d89061263d565b80601f01602080910402602001604051908101604052809291908181526020018280546115049061263d565b80156115515780601f1061152657610100808354040283529160200191611551565b820191906000526020600020905b81548152906001019060200180831161153457829003601f168201915b5050505050905083565b600a546001600160a01b031633146115855760405162461bcd60e51b815260040161060c90612777565b600a546040516001600160a01b03909116904790600081818185875af1925050503d8060008114610742576040519150601f19603f3d011682016040523d82523d6000602084013e505050565b600a546001600160a01b031633146115fc5760405162461bcd60e51b815260040161060c90612777565b6001600160a01b0381166116615760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161060c565b61166a81611b17565b50565b60006001600160e01b031982166380ac58cd60e01b148061169e57506001600160e01b03198216635b5e139f60e01b145b806104ff57506301ffc9a760e01b6001600160e01b03198316146104ff565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906116f2826108bc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166117a45760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161060c565b60006117af836108bc565b9050806001600160a01b0316846001600160a01b031614806117f657506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b8061181a5750836001600160a01b031661180f84610597565b6001600160a01b0316145b949350505050565b826001600160a01b0316611835826108bc565b6001600160a01b0316146118995760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161060c565b6001600160a01b0382166118fb5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161060c565b611906838383611ecf565b6119116000826116bd565b6001600160a01b038316600090815260036020526040812080546001929061193a908490612c60565b90915550506001600160a01b038216600090815260036020526040812080546001929061196890849061275f565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b038216611a1f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161060c565b6000818152600260205260409020546001600160a01b031615611a845760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161060c565b611a9060008383611ecf565b6001600160a01b0382166000908152600360205260408120805460019290611ab990849061275f565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415611bcb5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161060c565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611c43848484611822565b611c4f84848484611f87565b610f735760405162461bcd60e51b815260040161060c90612c77565b606081611c8f5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611cb95780611ca381612cc9565b9150611cb29050600a8361274b565b9150611c93565b60008167ffffffffffffffff811115611cd457611cd4612416565b6040519080825280601f01601f191660200182016040528015611cfe576020820181803683370190505b5090505b841561181a57611d13600183612c60565b9150611d20600a866127ac565b611d2b90603061275f565b60f81b818381518110611d4057611d406126c9565b60200101906001600160f81b031916908160001a905350611d62600a8661274b565b9450611d02565b805160609080611d89575050604080516020810190915260008152919050565b60006003611d9883600261275f565b611da2919061274b565b611dad906004612716565b90506000611dbc82602061275f565b67ffffffffffffffff811115611dd457611dd4612416565b6040519080825280601f01601f191660200182016040528015611dfe576020820181803683370190505b5090506000604051806060016040528060408152602001612fd9604091399050600181016020830160005b86811015611e8a576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101611e29565b506003860660018114611ea45760028114611eb557611ec1565b613d3d60f01b600119830152611ec1565b603d60f81b6000198301525b505050918152949350505050565b6001600160a01b038316611f2a57611f2581600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611f4d565b816001600160a01b0316836001600160a01b031614611f4d57611f4d8382612085565b6001600160a01b038216611f645761074281612122565b826001600160a01b0316826001600160a01b0316146107425761074282826121d1565b60006001600160a01b0384163b1561207a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611fcb903390899088908890600401612ce4565b6020604051808303816000875af1925050508015612006575060408051601f3d908101601f1916820190925261200391810190612d21565b60015b612060573d808015612034576040519150601f19603f3d011682016040523d82523d6000602084013e612039565b606091505b5080516120585760405162461bcd60e51b815260040161060c90612c77565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061181a565b506001949350505050565b6000600161209284610e67565b61209c9190612c60565b6000838152600760205260409020549091508082146120ef576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061213490600190612c60565b6000838152600960205260408120546008805493945090928490811061215c5761215c6126c9565b90600052602060002001549050806008838154811061217d5761217d6126c9565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806121b5576121b5612d3e565b6001900381819060005260206000200160009055905550505050565b60006121dc83610e67565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b8280546122219061263d565b90600052602060002090601f0160209004810192826122435760008555612289565b82601f1061225c57805160ff1916838001178555612289565b82800160010185558215612289579182015b8281111561228957825182559160200191906001019061226e565b506122959291506122c1565b5090565b6040518061022001604052806011905b60608152602001906001900390816122a95790505090565b5b8082111561229557600081556001016122c2565b6001600160e01b03198116811461166a57600080fd5b6000602082840312156122fe57600080fd5b8135612309816122d6565b9392505050565b60005b8381101561232b578181015183820152602001612313565b83811115610f735750506000910152565b60008151808452612354816020860160208601612310565b601f01601f19169290920160200192915050565b602081526000612309602083018461233c565b60006020828403121561238d57600080fd5b5035919050565b80356001600160a01b03811681146123ab57600080fd5b919050565b600080604083850312156123c357600080fd5b6123cc83612394565b946020939093013593505050565b6000806000606084860312156123ef57600080fd5b6123f884612394565b925061240660208501612394565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561244757612447612416565b604051601f8501601f19908116603f0116810190828211818310171561246f5761246f612416565b8160405280935085815286868601111561248857600080fd5b858560208301376000602087830101525050509392505050565b600080604083850312156124b557600080fd5b823563ffffffff811681146124c957600080fd5b9150602083013567ffffffffffffffff8111156124e557600080fd5b8301601f810185136124f657600080fd5b6125058582356020840161242c565b9150509250929050565b60006020828403121561252157600080fd5b61230982612394565b6000806040838503121561253d57600080fd5b61254683612394565b91506020830135801515811461255b57600080fd5b809150509250929050565b6000806000806080858703121561257c57600080fd5b61258585612394565b935061259360208601612394565b925060408501359150606085013567ffffffffffffffff8111156125b657600080fd5b8501601f810187136125c757600080fd5b6125d68782356020840161242c565b91505092959194509250565b838152826020820152606060408201526000612601606083018461233c565b95945050505050565b6000806040838503121561261d57600080fd5b61262683612394565b915061263460208401612394565b90509250929050565b600181811c9082168061265157607f821691505b6020821081141561267257634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b602080825260079082015266746f6f206c6f7760c81b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561273057612730612700565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261275a5761275a612735565b500490565b6000821982111561277257612772612700565b500190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000826127bb576127bb612735565b500690565b600081516127d2818560208601612310565b9290920192915050565b6402820a4a2160dd1b8152600085516127fc816005850160208a01612310565b601760f91b600591840191820152855161281d816006840160208a01612310565b6c01022aa24103e10212627a1a59609d1b60069290910191820152845161284b816013840160208901612310565b6005818301019150506201016960ed1b600e8201528351612873816011840160208801612310565b016011019695505050505050565b6c3c746578742066696c6c3d222360981b815282516000906128aa81600d850160208801612310565b7f746578742d616e63686f723d226d6964646c652220783d223530252220793d22600d9184019182015265373425223e2360d01b602d82015283516128f6816033840160208801612310565b661e17ba32bc3a1f60c91b60339290910191820152603a01949350505050565b60008a51612928818460208f01612310565b8a5161293a8183860160208f01612310565b8a51918401019061294f818360208e01612310565b89516129618183850160208e01612310565b8951929091010190612977818360208c01612310565b87516129898183850160208c01612310565b875192909101019061299f818360208a01612310565b85516129b18183850160208a01612310565b85519290910101906129c7818360208801612310565b019b9a5050505050505050505050565b7f7b226e616d65223a20224c6561646572626f61726444414f204e465420230000815260008351612a0f81601e850160208801612310565b7f222c20226465736372697074696f6e223a20224c6561646572626f6172644441601e918401918201527f4f206973206120636f6d6d756e697479206f662074686520746f702031303020603e8201527f47656e65726f7573204769766572732e20456163682047656e65726f75732047605e8201527f697665722077696c6c20626520656e7469746c6564206120706f736974696f6e607e8201527f2c20616e642061206d657373616765206f6e206c6561646572626f6172646461609e8201527f6f2e636f6d202d20756e74696c20616e206576656e206d6f72652047656e657260be8201527f6f757320476976657220636f6d657320616c6f6e672e2054686520676f616c2060de8201527f6f66204c6561646572626f61726444414f20697320746f2061636b6e6f776c6560fe8201527f6467652c2075706c6966742c20616e6420656d706f7765722074686f7365204761011e8201527f656e65726f75732047697665727320696e2074686520636f6d6d756e6974792061013e8201527f77697468206120637573746f6d204e465420746f2070726f766520746865697261015e8201527f2067656e65726f736974792e222c2022696d616765223a2022646174613a696d61017e820152721859d94bdcdd99cade1b5b0ed8985cd94d8d0b606a1b61019e820152612601612c0d6101b18301866127c0565b61227d60f01b815260020190565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251612c5381601d850160208701612310565b91909101601d0192915050565b600082821015612c7257612c72612700565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000600019821415612cdd57612cdd612700565b5060010190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612d179083018461233c565b9695505050505050565b600060208284031215612d3357600080fd5b8151612309816122d6565b634e487b7160e01b600052603160045260246000fdfe3c616e696d6174652061646469746976653d2273756d22206174747269627574654e616d653d2273746172744f6666736574222066726f6d3d2230252220746f3d22313030252220626567696e3d22307322206475723d223330732220726570656174436f756e743d22696e646566696e69746522202f3e203c2f74657874506174683e3c616e696d6174652061646469746976653d2273756d22206174747269627574654e616d653d2273746172744f6666736574222066726f6d3d2230252220746f3d22313030252220626567696e3d22307322206475723d223330732220726570656174436f756e743d22696e646566696e69746522202f3e203c2f74657874506174683e203c74657874506174682073746172744f66667365743d222d353025222066696c6c3d2277686974652220666f6e742d66616d696c793d2227436f7572696572204e6577272c206d6f6e6f73706163652220666f6e742d73697a653d22313270782220786c696e6b3a687265663d2223746578742d706174682d61223e3c616e696d6174652061646469746976653d2273756d22206174747269627574654e616d653d2273746172744f6666736574222066726f6d3d2230252220746f3d22313030252220626567696e3d22307322206475723d223330732220726570656174436f756e743d22696e646566696e69746522202f3e203c2f74657874506174683e203c74657874506174682073746172744f66667365743d223025222066696c6c3d2277686974652220666f6e742d66616d696c793d2227436f7572696572204e6577272c206d6f6e6f73706163652220666f6e742d73697a653d22313270782220786c696e6b3a687265663d2223746578742d706174682d61223e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c7376672076657273696f6e3d22312e312220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f7376672220786d6c6e733a786c696e6b3d22687474703a2f2f7777772e77332e6f72672f313939392f786c696e6b222077696474683d22353132707822206865696768743d223531327078222076696577426f783d223020302035313220353132223e203c7374796c653e40696d706f72742075726c2868747470733a2f2f666f6e74732e676f6f676c65617069732e636f6d2f6373733f66616d696c793d4f70656e2b53616e733a383030293b202e746578747b66696c6c3a206e6f6e653b207374726f6b652d77696474683a20333b207374726f6b652d6c696e656a6f696e3a20726f756e643b207374726f6b652d6461736861727261793a203730203330353b207374726f6b652d646173686f66667365743a20303b202d7765626b69742d616e696d6174696f6e3a207374726f6b6520367320696e66696e697465206c696e6561723b20616e696d6174696f6e3a207374726f6b6520367320696e66696e697465206c696e6561723b7d2e746578743a6e74682d6368696c6428356e2b31297b7374726f6b653a20234444353137463b202d7765626b69742d616e696d6174696f6e2d64656c61793a202d312e32733b20616e696d6174696f6e2d64656c61793a202d312e32733b7d2e746578743a6e74682d6368696c6428356e2b32297b7374726f6b653a20234536384533363b202d7765626b69742d616e696d6174696f6e2d64656c61793a202d322e34733b20616e696d6174696f6e2d64656c61793a202d322e34733b7d2e746578743a6e74682d6368696c6428356e2b33297b7374726f6b653a20233535364443383b202d7765626b69742d616e696d6174696f6e2d64656c61793a202d332e36733b20616e696d6174696f6e2d64656c61793a202d332e36733b7d2e746578743a6e74682d6368696c6428356e2b34297b7374726f6b653a20233739393845453b202d7765626b69742d616e696d6174696f6e2d64656c61793a202d342e38733b20616e696d6174696f6e2d64656c61793a202d342e38733b7d2e746578743a6e74682d6368696c6428356e2b35297b7374726f6b653a20234646423834353b202d7765626b69742d616e696d6174696f6e2d64656c61793a202d36733b20616e696d6174696f6e2d64656c61793a202d36733b7d402d7765626b69742d6b65796672616d6573207374726f6b657b313030257b7374726f6b652d646173686f66667365743a202d3337353b7d7d406b65796672616d6573207374726f6b657b313030257b7374726f6b652d646173686f66667365743a202d3337353b7d7d2e6d61696e2d746578747b666f6e743a2033656d2f31204f70656e2053616e732c20496d706163743b7d2e64616f2d746578747b666f6e743a2039656d2f31204f70656e2053616e732c20496d706163743b7d2e7375627469746c652d746578747b666f6e743a2031656d2f31204f70656e2053616e732c20496d706163743b7d7376677b6261636b67726f756e642d73697a653a20302e32656d20313030253b20666f6e742d66616d696c793a204f70656e2053616e732c20496d706163743b20746578742d7472616e73666f726d3a207570706572636173653b206d617267696e3a20303b7d3c2f7374796c653e203c636c6970506174682069643d22636f726e657273223e203c726563742077696474683d2235313222206865696768743d22353132222072783d223432222072793d223432222f3e203c2f636c6970506174683e203c706174682069643d22746578742d706174682d61222066696c6c3d22233436314535322220643d224d34302031322048343732204132382032382030203020312035303020343020563437322041323820323820302030203120343732203530302048343020413238203238203020302031203132203437322056343020413238203238203020302031203430203132207a222f3e203c73796d626f6c2069643d22732d74657874223e203c7465787420636c6173733d226d61696e2d746578742220746578742d616e63686f723d226d6964646c652220783d223530252220793d22323025222064793d222e3335656d223e4c6561646572626f6172643c2f746578743e203c7465787420636c6173733d2264616f2d746578742220746578742d616e63686f723d226d6964646c652220783d223530252220793d22343025222064793d222e3335656d223e44414f3c2f746578743e203c2f73796d626f6c3e203c75736520636c6173733d22746578742220786c696e6b3a687265663d2223732d74657874223e3c2f7573653e203c75736520636c6173733d22746578742220786c696e6b3a687265663d2223732d74657874223e3c2f7573653e203c75736520636c6173733d22746578742220786c696e6b3a687265663d2223732d74657874223e3c2f7573653e203c75736520636c6173733d22746578742220786c696e6b3a687265663d2223732d74657874223e3c2f7573653e203c75736520636c6173733d22746578742220786c696e6b3a687265663d2223732d74657874223e3c2f7573653e203c7465787420746578742d72656e646572696e673d226f7074696d697a65537065656422207374726f6b653d22626c61636b223e203c74657874506174682073746172744f66667365743d222d31303025222066696c6c3d2277686974652220666f6e742d66616d696c793d2227436f7572696572204e6577272c206d6f6e6f73706163652220666f6e742d73697a653d22313270782220786c696e6b3a687265663d2223746578742d706174682d61223e4539333437392220746578742d6465636f726174696f6e3d226c696e652d7468726f75676822203c616e696d6174652061646469746976653d2273756d22206174747269627574654e616d653d2273746172744f6666736574222066726f6d3d2230252220746f3d22313030252220626567696e3d22307322206475723d223330732220726570656174436f756e743d22696e646566696e69746522202f3e203c2f74657874506174683e203c74657874506174682073746172744f66667365743d22353025222066696c6c3d2277686974652220666f6e742d66616d696c793d2227436f7572696572204e6577272c206d6f6e6f73706163652220666f6e742d73697a653d22313270782220786c696e6b3a687265663d2223746578742d706174682d61223e3c646566733e3c7061746820643d224d35302c32353063302d3131302e352c38392e352d3230302c3230302d323030733230302c38392e352c3230302c323030732d38392e352c3230302d3230302c3230305335302c3336302e352c35302c323530222069643d2274657874636972636c65223e203c616e696d6174655472616e73666f726d206174747269627574654e616d653d227472616e73666f726d2220626567696e3d22307322206475723d223130732220747970653d22726f74617465222066726f6d3d223020323530203235302220746f3d2233363020323530203235302220726570656174436f756e743d22696e646566696e69746522202f3e3c2f706174683e3c2f646566733e3c67207472616e73666f726d3d227472616e736c61746528362c2031323529223e3c746578742064793d223135302220746578744c656e6774683d2231313830223e3c746578745061746820a2646970667358221220c4428a9c3a88dc342f5849f8b224460f24a3a517ad5630c84a8c2bfc764767cf64736f6c634300080a0033
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.