ETH Price: $1,584.34 (-1.09%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Safe Transfer Fr...175017352023-06-17 19:53:11670 days ago1687031591IN
0x06a13a0f...aDDee0424
0 ETH0.000993915.5904154
Set Approval For...174996832023-06-17 12:59:35670 days ago1687006775IN
0x06a13a0f...aDDee0424
0 ETH0.0020636944.43406846
Mint Item173276842023-05-24 7:52:11694 days ago1684914731IN
0x06a13a0f...aDDee0424
0 ETH0.0031542432.72883082
Mint Item170954232023-04-21 14:41:59727 days ago1682088119IN
0x06a13a0f...aDDee0424
0 ETH0.0037555438.96804227
Set Approval For...158851632022-11-02 21:57:47897 days ago1667426267IN
0x06a13a0f...aDDee0424
0 ETH0.0009233319.91664885
Mint Item147613912022-05-12 13:39:101071 days ago1652362750IN
0x06a13a0f...aDDee0424
0 ETH0.01410996146.40690492
Mint Item143270042022-03-05 13:00:481139 days ago1646485248IN
0x06a13a0f...aDDee0424
0 ETH0.0019468120.20045216
Mint Item143219632022-03-04 17:48:001140 days ago1646416080IN
0x06a13a0f...aDDee0424
0 ETH0.0049114150.96146217
Mint Item143215862022-03-04 16:25:191140 days ago1646411119IN
0x06a13a0f...aDDee0424
0 ETH0.0060823663.11148475
Mint Item143210652022-03-04 14:40:121140 days ago1646404812IN
0x06a13a0f...aDDee0424
0 ETH0.0043538845.17653696
Mint Item143210572022-03-04 14:38:161140 days ago1646404696IN
0x06a13a0f...aDDee0424
0 ETH0.0031678147.72604791
Mint Item143208422022-03-04 13:52:541140 days ago1646401974IN
0x06a13a0f...aDDee0424
0 ETH0.0028798529.881768
Mint Item143208182022-03-04 13:47:431140 days ago1646401663IN
0x06a13a0f...aDDee0424
0 ETH0.002593426.90948434
Mint Item143189412022-03-04 6:57:381141 days ago1646377058IN
0x06a13a0f...aDDee0424
0 ETH0.0025170826.1176546
Mint Item143161652022-03-03 20:22:431141 days ago1646338963IN
0x06a13a0f...aDDee0424
0 ETH0.0044235745.89962371
Mint Item143160652022-03-03 19:59:301141 days ago1646337570IN
0x06a13a0f...aDDee0424
0 ETH0.0048936350.77705256
Mint Item143153712022-03-03 17:25:421141 days ago1646328342IN
0x06a13a0f...aDDee0424
0 ETH0.004802849.83452266
Mint Item143153652022-03-03 17:23:331141 days ago1646328213IN
0x06a13a0f...aDDee0424
0 ETH0.0039966541.46980578
Mint Item143153512022-03-03 17:21:261141 days ago1646328086IN
0x06a13a0f...aDDee0424
0 ETH0.0038420639.86583438
Mint Item143153322022-03-03 17:17:271141 days ago1646327847IN
0x06a13a0f...aDDee0424
0 ETH0.0036211537.57360144
Mint Item143132272022-03-03 9:31:001141 days ago1646299860IN
0x06a13a0f...aDDee0424
0 ETH0.0044132545.79255172

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BuidlGuidlTabard

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 11 : BuidlGuidlTabard.sol
//SPDX-License-Identifier: MIT
pragma solidity >=0.8.0 <0.9.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/Base64.sol";

/**
 * @title BuidlGuidl Tabard
 * @author Daniel Khoo
 * @notice A dynamic NFT for BuidlGuidl members. Image is a fully-onchain SVG with tied to the bound address i.e. the minter.
 * Dynamic elements are: ENS reverse resolution, stream and wallet balance updates.
 * @dev Mintable if wallet is toAddress of a BuidlGuidl stream.
 */
contract BuidlGuidlTabard is ERC721 {
    // ENS Reverse Record Contract for address => ENS resolution
    // NOTE: Address of ENS Reverse Record Contract differs across testnets/mainnet
    IReverseRecords ensReverseRecords =
        IReverseRecords(0x3671aE578E63FdF66ad4F3E12CC0c0d71Ac7510C);
    mapping(address => address) public streams; // Store individual stream addresses so they can be referenced post-mint

    constructor() ERC721("BuidlGuidl Tabard", "BGT") {}

    function mintItem(address streamAddress) public {
        // Minimal check that wallet is the recipient of a Stream
        // Someone could deploy a decoy stream to bypass this, but it's easier to just join the BuidlGuidl :)
        ISimpleStream stream = ISimpleStream(streamAddress);
        require(
            msg.sender == stream.toAddress(),
            "You are not the recipient of the stream"
        );

        streams[msg.sender] = streamAddress;

        // Set the token id to the address of minter.
        // Inspired by https://gist.github.com/z0r0z/6ca37df326302b0ec8635b8796a4fdbb
        _mint(msg.sender, uint256(uint160(msg.sender)));
    }

    function tokenURI(uint256 id) public view override returns (string memory) {
        return _buildTokenURI(id);
    }

    // Constructs the encoded svg string to be returned by tokenURI()
    function _buildTokenURI(uint256 id) internal view returns (string memory) {
        bool minted = _exists(id);

        // Bound address from tokenId
        address boundAddress = address(uint160(id));

        string memory streamBalance = "";
        // Don't include stream in URI until token is minted
        if (minted) {
            // Get stream address, to check it's current balance
            address streamAddress = streams[boundAddress];
            ISimpleStream stream = ISimpleStream(streamAddress);
            streamBalance = string(
                abi.encodePacked(
                    unicode'<text x="20" y="305">Stream Ξ',
                    weiToEtherString(stream.streamBalance()),
                    "</text>"
                )
            );
        }

        bytes memory image = abi.encodePacked(
            "data:image/svg+xml;base64,",
            Base64.encode(
                bytes(
                    abi.encodePacked(
                        '<?xml version="1.0" encoding="UTF-8"?>',
                        '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 400 400" preserveAspectRatio="xMidYMid meet">',
                        '<style type="text/css"><![CDATA[text { font-family: monospace; font-size: 21px;} .h1 {font-size: 40px; font-weight: 600;}]]></style>',
                        '<rect width="400" height="400" fill="#ffffff" />',
                        '<text class="h1" x="50" y="70">Knight of the</text>',
                        '<text class="h1" x="80" y="120" >BuidlGuidl</text>',
                        unicode'<text x="70" y="240" style="font-size:100px;">🏗️ 🏰</text>',
                        streamBalance,
                        unicode'<text x="210" y="305">Wallet Ξ',
                        weiToEtherString(boundAddress.balance),
                        "</text>",
                        '<text x="20" y="350" style="font-size:28px;"> ',
                        lookupENSName(boundAddress),
                        "</text>",
                        '<text x="20" y="380" style="font-size:14px;">0x',
                        addressToString(boundAddress),
                        "</text>",
                        "</svg>"
                    )
                )
            )
        );
        return
            string(
                abi.encodePacked(
                    "data:application/json;base64,",
                    Base64.encode(
                        bytes(
                            abi.encodePacked(
                                '{"name":"BuidlGuidl Tabard", "image":"',
                                image,
                                unicode'", "description": "This NFT marks the bound address as a member of the BuidlGuidl. The image is a fully-onchain dynamic SVG reflecting current balances of the bound wallet and builder work stream."}'
                            )
                        )
                    )
                )
            );
    }

    /* ========== HELPER FUNCTIONS ========== */

    /// @notice Checks ENS reverse records if address has an ens name, else returns blank string
    function lookupENSName(address addr) public view returns (string memory) {
        address[] memory t = new address[](1);
        t[0] = addr;
        string[] memory results = ensReverseRecords.getNames(t);
        return results[0];
    }

    /// @notice  Converts wei to ether string with 2 decimal places
    function weiToEtherString(uint256 amountInWei)
        public
        pure
        returns (string memory)
    {
        uint256 amountInFinney = amountInWei / 1e15; // 1 finney == 1e15
        return
            string(
                abi.encodePacked(
                    Strings.toString(amountInFinney / 1000), //left of decimal
                    ".",
                    Strings.toString((amountInFinney % 1000) / 100), //first decimal
                    Strings.toString(((amountInFinney % 1000) % 100) / 10) // first decimal
                )
            );
    }

    function addressToString(address x) internal pure returns (string memory) {
        bytes memory s = new bytes(40);
        for (uint256 i = 0; i < 20; i++) {
            bytes1 b = bytes1(uint8(uint256(uint160(x)) / (2**(8 * (19 - i)))));
            bytes1 hi = bytes1(uint8(b) / 16);
            bytes1 lo = bytes1(uint8(b) - 16 * uint8(hi));
            s[2 * i] = char(hi);
            s[2 * i + 1] = char(lo);
        }
        return string(s);
    }

    function char(bytes1 b) internal pure returns (bytes1 c) {
        if (uint8(b) < 10) return bytes1(uint8(b) + 0x30);
        else return bytes1(uint8(b) + 0x57);
    }
}

/* ========== EXTERNAL CONTRACT INTERFACES ========== */
/// @notice Minimal contract interfaces for dynamic reading of data for SVG

/// @notice SimpleStream that each buidlguidl member has
/// https://github.com/scaffold-eth/scaffold-eth/blob/simple-stream/packages/hardhat/contracts/SimpleStream.sol
interface ISimpleStream {
    function toAddress() external view returns (address);

    function streamBalance() external view returns (uint256);
}

/// @notice ENS reverse record contract for resolving address to ENS name
/// https://github.com/ensdomains/reverse-records/blob/master/contracts/ReverseRecords.sol
interface IReverseRecords {
    function getNames(address[] calldata addresses)
        external
        view
        returns (string[] memory r);
}

File 2 of 11 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: 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 overriden 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 || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _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 {}
}

File 3 of 11 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 4 of 11 : Base64.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Base64.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides a set of functions to operate with Base64 strings.
 *
 * _Available since v4.5._
 */
library Base64 {
    /**
     * @dev Base64 Encoding/Decoding Table
     */
    string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /**
     * @dev Converts a `bytes` to its Bytes64 `string` representation.
     */
    function encode(bytes memory data) internal pure returns (string memory) {
        /**
         * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence
         * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol
         */
        if (data.length == 0) return "";

        // Loads the table into memory
        string memory table = _TABLE;

        // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter
        // and split into 4 numbers of 6 bits.
        // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up
        // - `data.length + 2`  -> Round up
        // - `/ 3`              -> Number of 3-bytes chunks
        // - `4 *`              -> 4 characters for each chunk
        string memory result = new string(4 * ((data.length + 2) / 3));

        assembly {
            // Prepare the lookup table (skip the first "length" byte)
            let tablePtr := add(table, 1)

            // Prepare result pointer, jump over length
            let resultPtr := add(result, 32)

            // Run over the input, 3 bytes at a time
            for {
                let dataPtr := data
                let endPtr := add(data, mload(data))
            } lt(dataPtr, endPtr) {

            } {
                // Advance 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // To write each character, shift the 3 bytes (18 bits) chunk
                // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)
                // and apply logical AND with 0x3F which is the number of
                // the previous character in the ASCII table prior to the Base64 Table
                // The result is then added to the table to get the character to write,
                // and finally write it in the result pointer but with a left shift
                // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits

                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance
            }

            // When data `bytes` is not exactly 3 bytes long
            // it is padded with `=` characters at the end
            switch mod(mload(data), 3)
            case 1 {
                mstore8(sub(resultPtr, 1), 0x3d)
                mstore8(sub(resultPtr, 2), 0x3d)
            }
            case 2 {
                mstore8(sub(resultPtr, 1), 0x3d)
            }
        }

        return result;
    }
}

File 5 of 11 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

File 6 of 11 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 7 of 11 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 8 of 11 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 9 of 11 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 10 of 11 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 11 of 11 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200,
    "details": {
      "yul": false
    }
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  }
}

Contract Security Audit

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":"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":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"lookupENSName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"streamAddress","type":"address"}],"name":"mintItem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"address","name":"","type":"address"}],"name":"streams","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"uint256","name":"amountInWei","type":"uint256"}],"name":"weiToEtherString","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"}]

6080604052600680546001600160a01b031916733671ae578e63fdf66ad4f3e12cc0c0d71ac7510c1790553480156200003757600080fd5b506040805180820182526011815270109d5a591b11dd5a591b08151858985c99607a1b6020808301918252835180850190945260038452621091d560ea1b9084015281519192916200008c91600091620000ab565b508051620000a2906001906020840190620000ab565b50505062000198565b828054620000b99062000151565b90600052602060002090601f016020900481019282620000dd576000855562000128565b82601f10620000f857805160ff191683800117855562000128565b8280016001018555821562000128579182015b82811115620001285782518255916020019190600101906200010b565b50620001369291506200013a565b5090565b5b808211156200013657600081556001016200013b565b6002810460018216806200016657607f821691505b602082108114156200017c576200017c62000182565b50919050565b634e487b7160e01b600052602260045260246000fd5b6126dc80620001a86000396000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c806370a08231116100a2578063a22cb46511610071578063a22cb46514610233578063b88d4fde14610246578063c87b56dd14610259578063e985e9c51461026c578063f25e99911461027f57600080fd5b806370a08231146101cf5780637d38f23b146101ef578063836992751461020257806395d89b411461022b57600080fd5b806323b872dd116100de57806323b872dd1461018357806342842e0e146101965780636352211e146101a9578063691c65d4146101bc57600080fd5b806301ffc9a71461011057806306fdde0314610139578063081812fc1461014e578063095ea7b31461016e575b600080fd5b61012361011e366004611626565b610292565b60405161013091906121b1565b60405180910390f35b6101416102e4565b60405161013091906121bf565b61016161015c366004611662565b610376565b6040516101309190612158565b61018161017c3660046115c1565b6103cf565b005b6101816101913660046114cb565b610455565b6101816101a43660046114cb565b610486565b6101616101b7366004611662565b6104a1565b6101816101ca366004611455565b6104d6565b6101e26101dd366004611455565b6105b2565b60405161013091906122b0565b6101416101fd366004611455565b6105f6565b610161610210366004611455565b6007602052600090815260409020546001600160a01b031681565b610141610708565b610181610241366004611591565b610717565b610181610254366004611518565b610722565b610141610267366004611662565b61075a565b61012361027a366004611491565b610765565b61014161028d366004611662565b610793565b60006001600160e01b031982166380ac58cd60e01b14806102c357506001600160e01b03198216635b5e139f60e01b145b806102de57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546102f390612557565b80601f016020809104026020016040519081016040528092919081815260200182805461031f90612557565b801561036c5780601f106103415761010080835404028352916020019161036c565b820191906000526020600020905b81548152906001019060200180831161034f57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166103b35760405162461bcd60e51b81526004016103aa90612270565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006103da826104a1565b9050806001600160a01b0316836001600160a01b0316141561040e5760405162461bcd60e51b81526004016103aa90612280565b336001600160a01b038216148061042a575061042a8133610765565b6104465760405162461bcd60e51b81526004016103aa90612230565b610450838361081f565b505050565b61045f338261088d565b61047b5760405162461bcd60e51b81526004016103aa90612290565b61045083838361091f565b61045083838360405180602001604052806000815250610722565b6000818152600260205260408120546001600160a01b0316806102de5760405162461bcd60e51b81526004016103aa90612250565b6000819050806001600160a01b03166319c87f1f6040518163ffffffff1660e01b815260040160206040518083038186803b15801561051457600080fd5b505afa158015610528573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061054c9190611473565b6001600160a01b0316336001600160a01b03161461057c5760405162461bcd60e51b81526004016103aa906122a0565b33600081815260076020526040902080546001600160a01b0319166001600160a01b0385161790556105ae9080610a41565b5050565b60006001600160a01b0382166105da5760405162461bcd60e51b81526004016103aa90612240565b506001600160a01b031660009081526003602052604090205490565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061063e57634e487b7160e01b600052603260045260246000fd5b6001600160a01b0392831660209182029290920101526006546040516332fe2d9b60e21b8152600092919091169063cbf8b66c906106809085906004016121a0565b60006040518083038186803b15801561069857600080fd5b505afa1580156106ac573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526106d491908101906115f1565b9050806000815181106106f757634e487b7160e01b600052603260045260246000fd5b602002602001015192505050919050565b6060600180546102f390612557565b6105ae338383610b23565b61072c338361088d565b6107485760405162461bcd60e51b81526004016103aa90612290565b61075484848484610bc6565b50505050565b60606102de82610bf9565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b606060006107a866038d7ea4c680008461235d565b90506107be6107b96103e88361235d565b610d92565b6107d960646107cf6103e8856125c5565b6107b9919061235d565b6107f6600a60646107ec6103e8876125c5565b6107cf91906125c5565b60405160200161080893929190611bad565b604051602081830303815290604052915050919050565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610854826104a1565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166108c15760405162461bcd60e51b81526004016103aa90612220565b60006108cc836104a1565b9050806001600160a01b0316846001600160a01b031614806109075750836001600160a01b03166108fc84610376565b6001600160a01b0316145b8061091757506109178185610765565b949350505050565b826001600160a01b0316610932826104a1565b6001600160a01b0316146109585760405162461bcd60e51b81526004016103aa906121e0565b6001600160a01b03821661097e5760405162461bcd60e51b81526004016103aa90612200565b61098960008261081f565b6001600160a01b03831660009081526003602052604081208054600192906109b29084906124e2565b90915550506001600160a01b03821660009081526003602052604081208054600192906109e0908490612324565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b038216610a675760405162461bcd60e51b81526004016103aa90612260565b6000818152600260205260409020546001600160a01b031615610a9c5760405162461bcd60e51b81526004016103aa906121f0565b6001600160a01b0382166000908152600360205260408120805460019290610ac5908490612324565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b816001600160a01b0316836001600160a01b03161415610b555760405162461bcd60e51b81526004016103aa90612210565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190610bb99085906121b1565b60405180910390a3505050565b610bd184848461091f565b610bdd84848484610eac565b6107545760405162461bcd60e51b81526004016103aa906121d0565b60008181526002602090815260408083205481519283019091529181526060916001600160a01b0316158015918491610ce1576001600160a01b0380831660009081526007602090815260409182902054825163c3ae1e5960e01b815292519316928392610cbd92849263c3ae1e59926004808201939291829003018186803b158015610c8557600080fd5b505afa158015610c99573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061028d9190611680565b604051602001610ccd91906120aa565b604051602081830303815290604052925050505b6000610d3382610cfa856001600160a01b031631610793565b610d03866105f6565b610d0c87610fb9565b604051602001610d1f9493929190611cfa565b60405160208183030381529060405261111c565b604051602001610d43919061212a565b6040516020818303038152906040529050610d6881604051602001610d1f9190611be5565b604051602001610d7891906120f4565b604051602081830303815290604052945050505050919050565b606081610db65750506040805180820190915260018152600360fc1b602082015290565b8160005b8115610de05780610dca816125b1565b9150610dd99050600a8361235d565b9150610dba565b60008167ffffffffffffffff811115610e0957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015610e33576020820181803683370190505b5090505b841561091757610e486001836124e2565b9150610e55600a866125c5565b610e60906030612324565b60f81b818381518110610e8357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350610ea5600a8661235d565b9450610e37565b60006001600160a01b0384163b15610fae57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290610ef0903390899088908890600401612166565b602060405180830381600087803b158015610f0a57600080fd5b505af1925050508015610f3a575060408051601f3d908101601f19168201909252610f3791810190611644565b60015b610f94573d808015610f68576040519150601f19603f3d011682016040523d82523d6000602084013e610f6d565b606091505b508051610f8c5760405162461bcd60e51b81526004016103aa906121d0565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610917565b506001949350505050565b60408051602880825260608281019093526000919060208201818036833701905050905060005b6014811015611115576000610ff68260136124e2565b61100190600861249e565b61100c9060026123ce565b61101f906001600160a01b03871661235d565b60f81b9050600060108260f81c6110369190612375565b60f81b905060008160f81c601061104d91906124bd565b8360f81c61105b91906124fd565b60f81b90506110698261127e565b8561107586600261249e565b8151811061109357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506110b38161127e565b856110bf86600261249e565b6110ca906001612324565b815181106110e857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350505050808061110d906125b1565b915050610fe0565b5092915050565b606081516000141561113c57505060408051602081019091526000815290565b6000604051806060016040528060408152602001612667604091399050600060038451600261116b9190612324565b611175919061235d565b61118090600461249e565b67ffffffffffffffff8111156111a657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156111d0576020820181803683370190505b509050600182016020820185865187015b8082101561123c576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f81168501518453600184019350506111e1565b5050600386510660018114611258576002811461126b57611273565b603d6001830353603d6002830353611273565b603d60018303535b509195945050505050565b6000600a60f883901c10156112a55761129c60f883901c603061233c565b60f81b92915050565b61129c60f883901c605761233c565b919050565b60006112cc6112c7846122d5565b6122be565b905080838252602082019050828560208602820111156112eb57600080fd5b60005b8581101561133157815167ffffffffffffffff81111561130d57600080fd5b80860161131a898261141e565b8552505060209283019291909101906001016112ee565b5050509392505050565b60006113496112c7846122f9565b90508281526020810184848401111561136157600080fd5b61136c84828561251f565b509392505050565b60006113826112c7846122f9565b90508281526020810184848401111561139a57600080fd5b61136c84828561252b565b80356102de81612631565b80516102de81612631565b600082601f8301126113cc57600080fd5b81516109178482602086016112b9565b80356102de81612648565b80356102de81612650565b80516102de81612650565b600082601f83011261140e57600080fd5b813561091784826020860161133b565b600082601f83011261142f57600080fd5b8151610917848260208601611374565b80356102de81612660565b80516102de81612660565b60006020828403121561146757600080fd5b600061091784846113a5565b60006020828403121561148557600080fd5b600061091784846113b0565b600080604083850312156114a457600080fd5b60006114b085856113a5565b92505060206114c1858286016113a5565b9150509250929050565b6000806000606084860312156114e057600080fd5b60006114ec86866113a5565b93505060206114fd868287016113a5565b925050604061150e8682870161143f565b9150509250925092565b6000806000806080858703121561152e57600080fd5b600061153a87876113a5565b945050602061154b878288016113a5565b935050604061155c8782880161143f565b925050606085013567ffffffffffffffff81111561157957600080fd5b611585878288016113fd565b91505092959194509250565b600080604083850312156115a457600080fd5b60006115b085856113a5565b92505060206114c1858286016113dc565b600080604083850312156115d457600080fd5b60006115e085856113a5565b92505060206114c18582860161143f565b60006020828403121561160357600080fd5b815167ffffffffffffffff81111561161a57600080fd5b610917848285016113bb565b60006020828403121561163857600080fd5b600061091784846113e7565b60006020828403121561165657600080fd5b600061091784846113f2565b60006020828403121561167457600080fd5b6000610917848461143f565b60006020828403121561169257600080fd5b6000610917848461144a565b60006116aa83836116b2565b505060200190565b6116bb8161250e565b82525050565b60006116cb825190565b80845260209384019383018060005b838110156116ff5781516116ee888261169e565b9750602083019250506001016116da565b509495945050505050565b8015156116bb565b600061171c825190565b80845260208401935061173381856020860161252b565b601f01601f19169290920192915050565b600061174e825190565b61175c81856020860161252b565b9290920192915050565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b602082015291505b5060400190565b602581526000602082017f4552433732313a207472616e736665722066726f6d20696e636f72726563742081526437bbb732b960d91b602082015291506117b1565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000815291505b5060200190565b7f7b226e616d65223a22427569646c477569646c20546162617264222c2022696d81526530b3b2911d1160d11b602082015260005b5060260190565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b602082015291506117b1565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c6572000000000000008152915061182a565b7f3c3f786d6c2076657273696f6e3d22312e302220656e636f64696e673d22555481526523169c111f9f60d11b60208201526000611866565b602c81526000602082017f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015291506117b1565b603881526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015291506117b1565b601760f91b815260005b5060010190565b602a81526000602082017f4552433732313a2062616c616e636520717565727920666f7220746865207a65815269726f206164647265737360b01b602082015291506117b1565b602981526000602082017f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481526832b73a103a37b5b2b760b91b602082015291506117b1565b60208082527f4552433732313a206d696e7420746f20746865207a65726f20616464726573739101908152600061182a565b602c81526000602082017f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015291506117b1565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b602082015291506117b1565b603181526000602082017f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f8152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b602082015291506117b1565b602781526000602082017f596f7520617265206e6f742074686520726563697069656e74206f66207468658152662073747265616d60c81b602082015291506117b1565b806116bb565b6000611bb98286611744565b9150611bc4826119be565b9150611bd08285611744565b9150611bdc8284611744565b95945050505050565b6000611bf082611831565b9150611bfc8284611744565b7f222c20226465736372697074696f6e223a202254686973204e4654206d61726b81527f732074686520626f756e6420616464726573732061732061206d656d6265722060208201527f6f662074686520427569646c477569646c2e2054686520696d6167652069732060408201527f612066756c6c792d6f6e636861696e2064796e616d696320535647207265666c60608201527f656374696e672063757272656e742062616c616e636573206f6620746865206260808201527f6f756e642077616c6c657420616e64206275696c64657220776f726b2073747260a08201526565616d2e227d60d01b60c0820152915060c682015b9392505050565b6000611d05826118e2565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f7376672220786d6c6e733a786c696e6b3d22687474703a2f2f7777772e60208201527f77332e6f72672f313939392f786c696e6b222076657273696f6e3d22312e312260408201527f2076696577426f783d223020302034303020343030222070726573657276654160608201527f7370656374526174696f3d22784d6964594d6964206d656574223e000000000060808201527f3c7374796c6520747970653d22746578742f637373223e3c215b43444154415b609b8201527f74657874207b20666f6e742d66616d696c793a206d6f6e6f73706163653b206660bb8201527f6f6e742d73697a653a20323170783b7d202e6831207b666f6e742d73697a653a60db8201527f20343070783b20666f6e742d7765696768743a203630303b7d5d5d3e3c2f737460fb820152633cb6329f60e11b61011b8201527f3c726563742077696474683d2234303022206865696768743d2234303022206661011f8201526f34b6361e9111b333333333331110179f60811b61013f8201527f3c7465787420636c6173733d2268312220783d2235302220793d223730223e4b61014f820152723734b3b43a1037b3103a34329e17ba32bc3a1f60691b61016f8201527f3c7465787420636c6173733d2268312220783d2238302220793d223132302220610182820152711f213ab4b23623bab4b2361e17ba32bc3a1f60711b6101a28201527f3c7465787420783d2237302220793d2232343022207374796c653d22666f6e746101b48201527f2d73697a653a31303070783b223ef09f8f97efb88f20f09f8fb03c2f746578746101d4820152601f60f91b6101f48201526101f5019150611f978287611744565b7f3c7465787420783d223231302220793d22333035223e57616c6c657420ce9e008152601f019150611fc98286611744565b661e17ba32bc3a1f60c91b81527f3c7465787420783d2232302220793d2233353022207374796c653d22666f6e7460078201526d016b9b4bd329d191c383c1d911f160951b602782015260350191506120228285611744565b661e17ba32bc3a1f60c91b81527f3c7465787420783d2232302220793d2233383022207374796c653d22666f6e7460078201526e05ae6d2f4ca746268e0f076447c60f608b1b6027820152603601915061207c8284611744565b661e17ba32bc3a1f60c91b8152651e17b9bb339f60d11b600782019081529250600d015b9695505050505050565b7f3c7465787420783d2232302220793d22333035223e53747265616d20ce9e00008152601e0160006120dc8284611744565b661e17ba32bc3a1f60c91b8152915060078201611cf3565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000601d82015b9150611cf38284611744565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c00000000000081526000601a820161211e565b602081016102de82846116b2565b6080810161217482876116b2565b61218160208301866116b2565b61218e6040830185611ba7565b81810360608301526120a08184611712565b60208082528101611cf381846116c1565b602081016102de828461170a565b60208082528101611cf38184611712565b602080825281016102de81611766565b602080825281016102de816117b8565b602080825281016102de816117fa565b602080825281016102de8161186d565b602080825281016102de816118ae565b602080825281016102de8161191b565b602080825281016102de81611964565b602080825281016102de816119cf565b602080825281016102de81611a16565b602080825281016102de81611a5c565b602080825281016102de81611a8e565b602080825281016102de81611ad7565b602080825281016102de81611b15565b602080825281016102de81611b63565b602081016102de8284611ba7565b60006122c960405190565b90506112b48282612584565b600067ffffffffffffffff8211156122ef576122ef61261b565b5060209081020190565b600067ffffffffffffffff8211156123135761231361261b565b601f19601f83011660200192915050565b60008219821115612337576123376125d9565b500190565b600060ff8216915060ff831692508260ff03821115612337576123376125d9565b6000825b925082612370576123706125ef565b500490565b600060ff8216915060ff8316612361565b80825b60018511156123c5578086048111156123a4576123a46125d9565b60018516156123b257908102905b80026123be8560011c90565b9450612389565b94509492505050565b6000611cf360001984846000826123e757506001611cf3565b816123f457506000611cf3565b816001811461240a576002811461241457612441565b6001915050611cf3565b60ff841115612425576124256125d9565b8360020a91508482111561243b5761243b6125d9565b50611cf3565b5060208310610133831016604e8410600b8410161715612474575081810a8381111561246f5761246f6125d9565b611cf3565b6124818484846001612386565b92509050818404811115612497576124976125d9565b0292915050565b60008160001904831182151516156124b8576124b86125d9565b500290565b600060ff8216915060ff831692508160ff04831182151516156124b8576124b86125d9565b6000825b9250828210156124f8576124f86125d9565b500390565b600060ff8216915060ff83166124e6565b60006001600160a01b0382166102de565b82818337506000910152565b60005b8381101561254657818101518382015260200161252e565b838111156107545750506000910152565b60028104600182168061256b57607f821691505b6020821081141561257e5761257e612605565b50919050565b601f19601f830116810181811067ffffffffffffffff821117156125aa576125aa61261b565b6040525050565b60006000198214156119c8576119c86125d9565b6000826125d4576125d46125ef565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b61263a8161250e565b811461264557600080fd5b50565b80151561263a565b6001600160e01b0319811661263a565b8061263a56fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220c9cc8951c6816003d7191be41af3ca80b717a8fcc51b25aa334d754fcdb98c0f64736f6c63430008040033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061010b5760003560e01c806370a08231116100a2578063a22cb46511610071578063a22cb46514610233578063b88d4fde14610246578063c87b56dd14610259578063e985e9c51461026c578063f25e99911461027f57600080fd5b806370a08231146101cf5780637d38f23b146101ef578063836992751461020257806395d89b411461022b57600080fd5b806323b872dd116100de57806323b872dd1461018357806342842e0e146101965780636352211e146101a9578063691c65d4146101bc57600080fd5b806301ffc9a71461011057806306fdde0314610139578063081812fc1461014e578063095ea7b31461016e575b600080fd5b61012361011e366004611626565b610292565b60405161013091906121b1565b60405180910390f35b6101416102e4565b60405161013091906121bf565b61016161015c366004611662565b610376565b6040516101309190612158565b61018161017c3660046115c1565b6103cf565b005b6101816101913660046114cb565b610455565b6101816101a43660046114cb565b610486565b6101616101b7366004611662565b6104a1565b6101816101ca366004611455565b6104d6565b6101e26101dd366004611455565b6105b2565b60405161013091906122b0565b6101416101fd366004611455565b6105f6565b610161610210366004611455565b6007602052600090815260409020546001600160a01b031681565b610141610708565b610181610241366004611591565b610717565b610181610254366004611518565b610722565b610141610267366004611662565b61075a565b61012361027a366004611491565b610765565b61014161028d366004611662565b610793565b60006001600160e01b031982166380ac58cd60e01b14806102c357506001600160e01b03198216635b5e139f60e01b145b806102de57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546102f390612557565b80601f016020809104026020016040519081016040528092919081815260200182805461031f90612557565b801561036c5780601f106103415761010080835404028352916020019161036c565b820191906000526020600020905b81548152906001019060200180831161034f57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166103b35760405162461bcd60e51b81526004016103aa90612270565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006103da826104a1565b9050806001600160a01b0316836001600160a01b0316141561040e5760405162461bcd60e51b81526004016103aa90612280565b336001600160a01b038216148061042a575061042a8133610765565b6104465760405162461bcd60e51b81526004016103aa90612230565b610450838361081f565b505050565b61045f338261088d565b61047b5760405162461bcd60e51b81526004016103aa90612290565b61045083838361091f565b61045083838360405180602001604052806000815250610722565b6000818152600260205260408120546001600160a01b0316806102de5760405162461bcd60e51b81526004016103aa90612250565b6000819050806001600160a01b03166319c87f1f6040518163ffffffff1660e01b815260040160206040518083038186803b15801561051457600080fd5b505afa158015610528573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061054c9190611473565b6001600160a01b0316336001600160a01b03161461057c5760405162461bcd60e51b81526004016103aa906122a0565b33600081815260076020526040902080546001600160a01b0319166001600160a01b0385161790556105ae9080610a41565b5050565b60006001600160a01b0382166105da5760405162461bcd60e51b81526004016103aa90612240565b506001600160a01b031660009081526003602052604090205490565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061063e57634e487b7160e01b600052603260045260246000fd5b6001600160a01b0392831660209182029290920101526006546040516332fe2d9b60e21b8152600092919091169063cbf8b66c906106809085906004016121a0565b60006040518083038186803b15801561069857600080fd5b505afa1580156106ac573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526106d491908101906115f1565b9050806000815181106106f757634e487b7160e01b600052603260045260246000fd5b602002602001015192505050919050565b6060600180546102f390612557565b6105ae338383610b23565b61072c338361088d565b6107485760405162461bcd60e51b81526004016103aa90612290565b61075484848484610bc6565b50505050565b60606102de82610bf9565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b606060006107a866038d7ea4c680008461235d565b90506107be6107b96103e88361235d565b610d92565b6107d960646107cf6103e8856125c5565b6107b9919061235d565b6107f6600a60646107ec6103e8876125c5565b6107cf91906125c5565b60405160200161080893929190611bad565b604051602081830303815290604052915050919050565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610854826104a1565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166108c15760405162461bcd60e51b81526004016103aa90612220565b60006108cc836104a1565b9050806001600160a01b0316846001600160a01b031614806109075750836001600160a01b03166108fc84610376565b6001600160a01b0316145b8061091757506109178185610765565b949350505050565b826001600160a01b0316610932826104a1565b6001600160a01b0316146109585760405162461bcd60e51b81526004016103aa906121e0565b6001600160a01b03821661097e5760405162461bcd60e51b81526004016103aa90612200565b61098960008261081f565b6001600160a01b03831660009081526003602052604081208054600192906109b29084906124e2565b90915550506001600160a01b03821660009081526003602052604081208054600192906109e0908490612324565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b038216610a675760405162461bcd60e51b81526004016103aa90612260565b6000818152600260205260409020546001600160a01b031615610a9c5760405162461bcd60e51b81526004016103aa906121f0565b6001600160a01b0382166000908152600360205260408120805460019290610ac5908490612324565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b816001600160a01b0316836001600160a01b03161415610b555760405162461bcd60e51b81526004016103aa90612210565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190610bb99085906121b1565b60405180910390a3505050565b610bd184848461091f565b610bdd84848484610eac565b6107545760405162461bcd60e51b81526004016103aa906121d0565b60008181526002602090815260408083205481519283019091529181526060916001600160a01b0316158015918491610ce1576001600160a01b0380831660009081526007602090815260409182902054825163c3ae1e5960e01b815292519316928392610cbd92849263c3ae1e59926004808201939291829003018186803b158015610c8557600080fd5b505afa158015610c99573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061028d9190611680565b604051602001610ccd91906120aa565b604051602081830303815290604052925050505b6000610d3382610cfa856001600160a01b031631610793565b610d03866105f6565b610d0c87610fb9565b604051602001610d1f9493929190611cfa565b60405160208183030381529060405261111c565b604051602001610d43919061212a565b6040516020818303038152906040529050610d6881604051602001610d1f9190611be5565b604051602001610d7891906120f4565b604051602081830303815290604052945050505050919050565b606081610db65750506040805180820190915260018152600360fc1b602082015290565b8160005b8115610de05780610dca816125b1565b9150610dd99050600a8361235d565b9150610dba565b60008167ffffffffffffffff811115610e0957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015610e33576020820181803683370190505b5090505b841561091757610e486001836124e2565b9150610e55600a866125c5565b610e60906030612324565b60f81b818381518110610e8357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350610ea5600a8661235d565b9450610e37565b60006001600160a01b0384163b15610fae57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290610ef0903390899088908890600401612166565b602060405180830381600087803b158015610f0a57600080fd5b505af1925050508015610f3a575060408051601f3d908101601f19168201909252610f3791810190611644565b60015b610f94573d808015610f68576040519150601f19603f3d011682016040523d82523d6000602084013e610f6d565b606091505b508051610f8c5760405162461bcd60e51b81526004016103aa906121d0565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610917565b506001949350505050565b60408051602880825260608281019093526000919060208201818036833701905050905060005b6014811015611115576000610ff68260136124e2565b61100190600861249e565b61100c9060026123ce565b61101f906001600160a01b03871661235d565b60f81b9050600060108260f81c6110369190612375565b60f81b905060008160f81c601061104d91906124bd565b8360f81c61105b91906124fd565b60f81b90506110698261127e565b8561107586600261249e565b8151811061109357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506110b38161127e565b856110bf86600261249e565b6110ca906001612324565b815181106110e857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350505050808061110d906125b1565b915050610fe0565b5092915050565b606081516000141561113c57505060408051602081019091526000815290565b6000604051806060016040528060408152602001612667604091399050600060038451600261116b9190612324565b611175919061235d565b61118090600461249e565b67ffffffffffffffff8111156111a657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156111d0576020820181803683370190505b509050600182016020820185865187015b8082101561123c576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f81168501518453600184019350506111e1565b5050600386510660018114611258576002811461126b57611273565b603d6001830353603d6002830353611273565b603d60018303535b509195945050505050565b6000600a60f883901c10156112a55761129c60f883901c603061233c565b60f81b92915050565b61129c60f883901c605761233c565b919050565b60006112cc6112c7846122d5565b6122be565b905080838252602082019050828560208602820111156112eb57600080fd5b60005b8581101561133157815167ffffffffffffffff81111561130d57600080fd5b80860161131a898261141e565b8552505060209283019291909101906001016112ee565b5050509392505050565b60006113496112c7846122f9565b90508281526020810184848401111561136157600080fd5b61136c84828561251f565b509392505050565b60006113826112c7846122f9565b90508281526020810184848401111561139a57600080fd5b61136c84828561252b565b80356102de81612631565b80516102de81612631565b600082601f8301126113cc57600080fd5b81516109178482602086016112b9565b80356102de81612648565b80356102de81612650565b80516102de81612650565b600082601f83011261140e57600080fd5b813561091784826020860161133b565b600082601f83011261142f57600080fd5b8151610917848260208601611374565b80356102de81612660565b80516102de81612660565b60006020828403121561146757600080fd5b600061091784846113a5565b60006020828403121561148557600080fd5b600061091784846113b0565b600080604083850312156114a457600080fd5b60006114b085856113a5565b92505060206114c1858286016113a5565b9150509250929050565b6000806000606084860312156114e057600080fd5b60006114ec86866113a5565b93505060206114fd868287016113a5565b925050604061150e8682870161143f565b9150509250925092565b6000806000806080858703121561152e57600080fd5b600061153a87876113a5565b945050602061154b878288016113a5565b935050604061155c8782880161143f565b925050606085013567ffffffffffffffff81111561157957600080fd5b611585878288016113fd565b91505092959194509250565b600080604083850312156115a457600080fd5b60006115b085856113a5565b92505060206114c1858286016113dc565b600080604083850312156115d457600080fd5b60006115e085856113a5565b92505060206114c18582860161143f565b60006020828403121561160357600080fd5b815167ffffffffffffffff81111561161a57600080fd5b610917848285016113bb565b60006020828403121561163857600080fd5b600061091784846113e7565b60006020828403121561165657600080fd5b600061091784846113f2565b60006020828403121561167457600080fd5b6000610917848461143f565b60006020828403121561169257600080fd5b6000610917848461144a565b60006116aa83836116b2565b505060200190565b6116bb8161250e565b82525050565b60006116cb825190565b80845260209384019383018060005b838110156116ff5781516116ee888261169e565b9750602083019250506001016116da565b509495945050505050565b8015156116bb565b600061171c825190565b80845260208401935061173381856020860161252b565b601f01601f19169290920192915050565b600061174e825190565b61175c81856020860161252b565b9290920192915050565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b602082015291505b5060400190565b602581526000602082017f4552433732313a207472616e736665722066726f6d20696e636f72726563742081526437bbb732b960d91b602082015291506117b1565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000815291505b5060200190565b7f7b226e616d65223a22427569646c477569646c20546162617264222c2022696d81526530b3b2911d1160d11b602082015260005b5060260190565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b602082015291506117b1565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c6572000000000000008152915061182a565b7f3c3f786d6c2076657273696f6e3d22312e302220656e636f64696e673d22555481526523169c111f9f60d11b60208201526000611866565b602c81526000602082017f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015291506117b1565b603881526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015291506117b1565b601760f91b815260005b5060010190565b602a81526000602082017f4552433732313a2062616c616e636520717565727920666f7220746865207a65815269726f206164647265737360b01b602082015291506117b1565b602981526000602082017f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481526832b73a103a37b5b2b760b91b602082015291506117b1565b60208082527f4552433732313a206d696e7420746f20746865207a65726f20616464726573739101908152600061182a565b602c81526000602082017f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015291506117b1565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b602082015291506117b1565b603181526000602082017f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f8152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b602082015291506117b1565b602781526000602082017f596f7520617265206e6f742074686520726563697069656e74206f66207468658152662073747265616d60c81b602082015291506117b1565b806116bb565b6000611bb98286611744565b9150611bc4826119be565b9150611bd08285611744565b9150611bdc8284611744565b95945050505050565b6000611bf082611831565b9150611bfc8284611744565b7f222c20226465736372697074696f6e223a202254686973204e4654206d61726b81527f732074686520626f756e6420616464726573732061732061206d656d6265722060208201527f6f662074686520427569646c477569646c2e2054686520696d6167652069732060408201527f612066756c6c792d6f6e636861696e2064796e616d696320535647207265666c60608201527f656374696e672063757272656e742062616c616e636573206f6620746865206260808201527f6f756e642077616c6c657420616e64206275696c64657220776f726b2073747260a08201526565616d2e227d60d01b60c0820152915060c682015b9392505050565b6000611d05826118e2565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f7376672220786d6c6e733a786c696e6b3d22687474703a2f2f7777772e60208201527f77332e6f72672f313939392f786c696e6b222076657273696f6e3d22312e312260408201527f2076696577426f783d223020302034303020343030222070726573657276654160608201527f7370656374526174696f3d22784d6964594d6964206d656574223e000000000060808201527f3c7374796c6520747970653d22746578742f637373223e3c215b43444154415b609b8201527f74657874207b20666f6e742d66616d696c793a206d6f6e6f73706163653b206660bb8201527f6f6e742d73697a653a20323170783b7d202e6831207b666f6e742d73697a653a60db8201527f20343070783b20666f6e742d7765696768743a203630303b7d5d5d3e3c2f737460fb820152633cb6329f60e11b61011b8201527f3c726563742077696474683d2234303022206865696768743d2234303022206661011f8201526f34b6361e9111b333333333331110179f60811b61013f8201527f3c7465787420636c6173733d2268312220783d2235302220793d223730223e4b61014f820152723734b3b43a1037b3103a34329e17ba32bc3a1f60691b61016f8201527f3c7465787420636c6173733d2268312220783d2238302220793d223132302220610182820152711f213ab4b23623bab4b2361e17ba32bc3a1f60711b6101a28201527f3c7465787420783d2237302220793d2232343022207374796c653d22666f6e746101b48201527f2d73697a653a31303070783b223ef09f8f97efb88f20f09f8fb03c2f746578746101d4820152601f60f91b6101f48201526101f5019150611f978287611744565b7f3c7465787420783d223231302220793d22333035223e57616c6c657420ce9e008152601f019150611fc98286611744565b661e17ba32bc3a1f60c91b81527f3c7465787420783d2232302220793d2233353022207374796c653d22666f6e7460078201526d016b9b4bd329d191c383c1d911f160951b602782015260350191506120228285611744565b661e17ba32bc3a1f60c91b81527f3c7465787420783d2232302220793d2233383022207374796c653d22666f6e7460078201526e05ae6d2f4ca746268e0f076447c60f608b1b6027820152603601915061207c8284611744565b661e17ba32bc3a1f60c91b8152651e17b9bb339f60d11b600782019081529250600d015b9695505050505050565b7f3c7465787420783d2232302220793d22333035223e53747265616d20ce9e00008152601e0160006120dc8284611744565b661e17ba32bc3a1f60c91b8152915060078201611cf3565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000601d82015b9150611cf38284611744565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c00000000000081526000601a820161211e565b602081016102de82846116b2565b6080810161217482876116b2565b61218160208301866116b2565b61218e6040830185611ba7565b81810360608301526120a08184611712565b60208082528101611cf381846116c1565b602081016102de828461170a565b60208082528101611cf38184611712565b602080825281016102de81611766565b602080825281016102de816117b8565b602080825281016102de816117fa565b602080825281016102de8161186d565b602080825281016102de816118ae565b602080825281016102de8161191b565b602080825281016102de81611964565b602080825281016102de816119cf565b602080825281016102de81611a16565b602080825281016102de81611a5c565b602080825281016102de81611a8e565b602080825281016102de81611ad7565b602080825281016102de81611b15565b602080825281016102de81611b63565b602081016102de8284611ba7565b60006122c960405190565b90506112b48282612584565b600067ffffffffffffffff8211156122ef576122ef61261b565b5060209081020190565b600067ffffffffffffffff8211156123135761231361261b565b601f19601f83011660200192915050565b60008219821115612337576123376125d9565b500190565b600060ff8216915060ff831692508260ff03821115612337576123376125d9565b6000825b925082612370576123706125ef565b500490565b600060ff8216915060ff8316612361565b80825b60018511156123c5578086048111156123a4576123a46125d9565b60018516156123b257908102905b80026123be8560011c90565b9450612389565b94509492505050565b6000611cf360001984846000826123e757506001611cf3565b816123f457506000611cf3565b816001811461240a576002811461241457612441565b6001915050611cf3565b60ff841115612425576124256125d9565b8360020a91508482111561243b5761243b6125d9565b50611cf3565b5060208310610133831016604e8410600b8410161715612474575081810a8381111561246f5761246f6125d9565b611cf3565b6124818484846001612386565b92509050818404811115612497576124976125d9565b0292915050565b60008160001904831182151516156124b8576124b86125d9565b500290565b600060ff8216915060ff831692508160ff04831182151516156124b8576124b86125d9565b6000825b9250828210156124f8576124f86125d9565b500390565b600060ff8216915060ff83166124e6565b60006001600160a01b0382166102de565b82818337506000910152565b60005b8381101561254657818101518382015260200161252e565b838111156107545750506000910152565b60028104600182168061256b57607f821691505b6020821081141561257e5761257e612605565b50919050565b601f19601f830116810181811067ffffffffffffffff821117156125aa576125aa61261b565b6040525050565b60006000198214156119c8576119c86125d9565b6000826125d4576125d46125ef565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b61263a8161250e565b811461264557600080fd5b50565b80151561263a565b6001600160e01b0319811661263a565b8061263a56fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220c9cc8951c6816003d7191be41af3ca80b717a8fcc51b25aa334d754fcdb98c0f64736f6c63430008040033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ 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.