ETH Price: $3,166.24 (+4.26%)

Token

Voltz Community SBT (VLTZSBT)
 

Overview

Max Total Supply

50,350 VLTZSBT

Holders

6,404

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
x107.eth
Balance
8 VLTZSBT
0x7ca38bac0a7c2d603e0d877f2c16e6792d7e9ee5
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
CommunitySBT

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 15 : CommunitySBT.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./IERC5192.sol";

contract CommunitySBT is Ownable, ERC721URIStorage, IERC5192 {

    struct RootData {
        bool isValid;
        string metadataURI;
    }
    struct TokenData {
        uint96 badgeId;
        bytes32 merkleRoot;
    }

    /// @dev mapping used to track whitelisted merkle roots
    mapping(bytes32 => RootData) public rootData;

    // the root used to claim a given token ID. Required to get the base URI. 
    mapping(uint256 => TokenData) public tokenData;

    /// @notice tracks the number of minted badges
    using Counters for Counters.Counter;
    Counters.Counter private _tokenSupply;

    /// @notice leaf details that seat at the bottom of each merkle tree
    struct LeafInfo {
        address account;
        uint96 badgeId;
    }

    /** @notice Information needed for the NewValidRoot event. It is used to track
     * badges registration in the subgraph. Everything other than the merkleRoot is discarded.
     */
    struct RootInfo {
        bytes32 merkleRoot; 
        string baseMetadataURI; // The folder URI from which individual token URIs can be derived. Must therefore end with a slash.
        uint32 startTimestamp; // Only logged, not stored
        uint32 endTimestamp; // Only logged, not stored
    }

    event RedeemCommunitySBT(LeafInfo leafInfo, uint256 tokenId);
    event NewValidRoot(RootInfo rootInfo);
    event InvalidatedRoot(bytes32 merkleRoot);
    
    constructor(string memory name, string memory symbol)
    ERC721(name, symbol){}

    /** @notice Registers a new root as being valid. This allows it to be used in badges verifications.
     * @dev Apart from the root and the URI, the input values are only used for logging 
     */
    function addNewRoot(RootInfo memory rootInfo) public onlyOwner { 
        rootData[rootInfo.merkleRoot].isValid = true;
        require(bytes(rootInfo.baseMetadataURI).length > 0, "cannot set empty root URI");
        require(bytes(rootData[rootInfo.merkleRoot].metadataURI).length == 0, "cannot overwrite non-empty URI");
        rootData[rootInfo.merkleRoot].metadataURI = rootInfo.baseMetadataURI;
        emit NewValidRoot(rootInfo);
    }

    /** @notice Removes a root from whitelist. It ca no longer be used for badges validations.
     * @notice This should only be used in case a faulty root was submitted.
     * @notice If a user already redeemed a badge based on the faulty root, 
     * the badge cannot be burnt.
     */
    function invalidateRoot(bytes32 merkleRoot) public onlyOwner { 
        rootData[merkleRoot].isValid = false;
        emit InvalidatedRoot(merkleRoot);
    }

    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override virtual {
        require(from == address(0), "Soul Bound Token");   
        super._beforeTokenTransfer(from, to, tokenId);  
    }

    /** @notice Total supply getter. Returns the total number of minted badges so far.
     */
    function totalSupply() public view returns (uint256) { 
        return _tokenSupply.current();
    }

    /** @notice Total supply getter. Returns the total number of minted badges so far.
     * @param account: user's address
     * @param merkleRoot: merkle root associated with this badge
     * @param badgeId: badge ID
     */
    function getTokenIdHash(address account,bytes32 merkleRoot, uint96 badgeId) public view returns (bytes32) {
        return keccak256(abi.encodePacked(account, merkleRoot, badgeId));
    }

    /// @inheritdoc IERC5192
    function locked(uint256 tokenId) external override(IERC5192) view returns (bool) {
        return true; // All tokens are locked.
    }

    function tokenURI(uint256 tokenId)
        public
        view
        override(ERC721URIStorage)
        returns (string memory)
    {
        string memory rootURI = rootData[tokenData[tokenId].merkleRoot].metadataURI;
        return string(abi.encodePacked(rootURI, Strings.toString(uint256(tokenData[tokenId].badgeId)), ".json"));
    }

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

    /** @notice Total supply getter. Returns the total number of minted badges so far.
     * @param leafInfo: merkle tree leaf with badge information
     * @param proof: merkle tree proof of the leaf
     * @param merkleRoot: merkle tree root based on which the proof is verified
     */
    function redeem(LeafInfo memory leafInfo, bytes32[] calldata proof, bytes32 merkleRoot) public returns (uint256) {
        require(_verify(_leaf(leafInfo), proof, merkleRoot), "Invalid Merkle proof"); 

        bytes32 tokenIdHash = getTokenIdHash(leafInfo.account, merkleRoot, leafInfo.badgeId);
        uint256 tokenId = uint256(tokenIdHash);

        _tokenSupply.increment();
        _safeMint(leafInfo.account, tokenId);

        tokenData[tokenId].merkleRoot = merkleRoot;
        tokenData[tokenId].badgeId = leafInfo.badgeId;

        emit RedeemCommunitySBT(leafInfo, tokenId);
        // https://eips.ethereum.org/EIPS/eip-5192
        emit Locked(tokenId);

        return tokenId;
    }

    /** @notice Supports redemption of multiple SBTs in one transaction
     * @dev Each claim must present its own root and a full proof, even if this involves duplication
     * @param leafInfos the leaves of the merkle trees from which to claim an SBT
     * @param proofs the proofs - one bytes32[] for each leaf
     * @param merkleRoots the merkel roots - one bytes32 for each leaf
     */ 
    function multiRedeem(LeafInfo[] memory leafInfos, bytes32[][] calldata proofs, bytes32[] memory merkleRoots) public returns (uint256[] memory tokenIds) {
        require(leafInfos.length == proofs.length && leafInfos.length == merkleRoots.length, "Bad input");
        tokenIds = new uint256[](leafInfos.length);

        for (uint256 i=0; i < leafInfos.length; i++) {
            tokenIds[i] = redeem(leafInfos[i], proofs[i], merkleRoots[i]);
        }
        return tokenIds;
    }

    /** @notice Encoded the leaf information
     * @param leafInfo: merkle tree leaf with badge information
     */
    function _leaf(LeafInfo memory leafInfo)
    internal pure returns (bytes32)
    {
        return keccak256(abi.encodePacked(leafInfo.account, leafInfo.badgeId));
    }


    /** @notice Verification that the hash of the actor address and information
     * is correctly stored in the Merkle tree i.e. the proof is validated
     */
    function _verify(bytes32 encodedLeaf, bytes32[] memory proof, bytes32 merkleRoot)
    internal view returns (bool)
    {
        require(rootData[merkleRoot].isValid, "Unrecognised merkle root");
        return MerkleProof.verify(proof, merkleRoot, encodedLeaf);
    }

}

File 2 of 15 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 15 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not token owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved");
        _safeTransfer(from, to, tokenId, data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

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

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

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

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits an {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 4 of 15 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 5 of 15 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 6 of 15 : ERC721URIStorage.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/extensions/ERC721URIStorage.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @dev See {ERC721-_burn}. This override additionally checks to see if a
     * token-specific URI was set for the token, and if so, it deletes the token URI from
     * the storage mapping.
     */
    function _burn(uint256 tokenId) internal virtual override {
        super._burn(tokenId);

        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
}

File 7 of 15 : 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 15 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 9 of 15 : 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 15 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 11 of 15 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 12 of 15 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`,
     * consuming from one or the other at each step according to the instructions given by
     * `proofFlags`.
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 13 of 15 : 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 14 of 15 : 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);
}

File 15 of 15 : IERC5192.sol
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.0;

interface IERC5192 {
  /// @notice Emitted when the locking status is changed to locked.
  /// @dev If a token is minted and the status is locked, this event should be emitted.
  /// @param tokenId The identifier for a token.
  event Locked(uint256 tokenId);

  /// @notice Emitted when the locking status is changed to unlocked.
  /// @dev If a token is minted and the status is unlocked, this event should be emitted.
  /// @param tokenId The identifier for a token.
  event Unlocked(uint256 tokenId);

  /// @notice Returns the locking status of an Soulbound Token
  /// @dev SBTs assigned to zero address are considered invalid, and queries
  /// about them do throw.
  /// @param tokenId The identifier for an SBT.
  function locked(uint256 tokenId) external view returns (bool);
}

Settings
{
  "evmVersion": "london",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"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":false,"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"InvalidatedRoot","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Locked","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"string","name":"baseMetadataURI","type":"string"},{"internalType":"uint32","name":"startTimestamp","type":"uint32"},{"internalType":"uint32","name":"endTimestamp","type":"uint32"}],"indexed":false,"internalType":"struct CommunitySBT.RootInfo","name":"rootInfo","type":"tuple"}],"name":"NewValidRoot","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint96","name":"badgeId","type":"uint96"}],"indexed":false,"internalType":"struct CommunitySBT.LeafInfo","name":"leafInfo","type":"tuple"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"RedeemCommunitySBT","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Unlocked","type":"event"},{"inputs":[{"components":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"string","name":"baseMetadataURI","type":"string"},{"internalType":"uint32","name":"startTimestamp","type":"uint32"},{"internalType":"uint32","name":"endTimestamp","type":"uint32"}],"internalType":"struct CommunitySBT.RootInfo","name":"rootInfo","type":"tuple"}],"name":"addNewRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"uint96","name":"badgeId","type":"uint96"}],"name":"getTokenIdHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"invalidateRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"locked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint96","name":"badgeId","type":"uint96"}],"internalType":"struct CommunitySBT.LeafInfo[]","name":"leafInfos","type":"tuple[]"},{"internalType":"bytes32[][]","name":"proofs","type":"bytes32[][]"},{"internalType":"bytes32[]","name":"merkleRoots","type":"bytes32[]"}],"name":"multiRedeem","outputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint96","name":"badgeId","type":"uint96"}],"internalType":"struct CommunitySBT.LeafInfo","name":"leafInfo","type":"tuple"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"redeem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"rootData","outputs":[{"internalType":"bool","name":"isValid","type":"bool"},{"internalType":"string","name":"metadataURI","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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenData","outputs":[{"internalType":"uint96","name":"badgeId","type":"uint96"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162004637380380620046378339818101604052810190620000379190620003ae565b8181620000596200004d6200009560201b60201c565b6200009d60201b60201c565b81600190805190602001906200007192919062000161565b5080600290805190602001906200008a92919062000161565b505050505062000498565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200016f9062000462565b90600052602060002090601f016020900481019282620001935760008555620001df565b82601f10620001ae57805160ff1916838001178555620001df565b82800160010185558215620001df579182015b82811115620001de578251825591602001919060010190620001c1565b5b509050620001ee9190620001f2565b5090565b5b808211156200020d576000816000905550600101620001f3565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200027a826200022f565b810181811067ffffffffffffffff821117156200029c576200029b62000240565b5b80604052505050565b6000620002b162000211565b9050620002bf82826200026f565b919050565b600067ffffffffffffffff821115620002e257620002e162000240565b5b620002ed826200022f565b9050602081019050919050565b60005b838110156200031a578082015181840152602081019050620002fd565b838111156200032a576000848401525b50505050565b6000620003476200034184620002c4565b620002a5565b9050828152602081018484840111156200036657620003656200022a565b5b62000373848285620002fa565b509392505050565b600082601f83011262000393576200039262000225565b5b8151620003a584826020860162000330565b91505092915050565b60008060408385031215620003c857620003c76200021b565b5b600083015167ffffffffffffffff811115620003e957620003e862000220565b5b620003f7858286016200037b565b925050602083015167ffffffffffffffff8111156200041b576200041a62000220565b5b62000429858286016200037b565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200047b57607f821691505b6020821081141562000492576200049162000433565b5b50919050565b61418f80620004a86000396000f3fe608060405234801561001057600080fd5b50600436106101735760003560e01c80636352211e116100de578063b45a3c0e11610097578063c87b56dd11610071578063c87b56dd14610470578063d3919493146104a0578063e985e9c5146104d0578063f2fde38b1461050057610173565b8063b45a3c0e146103f3578063b4b5b48f14610423578063b88d4fde1461045457610173565b80636352211e1461033157806370a0823114610361578063715018a6146103915780638da5cb5b1461039b57806395d89b41146103b9578063a22cb465146103d757610173565b80631cb21604116101305780631cb216041461024c57806323b872dd1461027c578063376bd598146102985780633eefdcce146102c957806342842e0e146102e55780634fac786d1461030157610173565b806301ffc9a71461017857806306fdde03146101a8578063081812fc146101c6578063095ea7b3146101f657806318160ddd14610212578063186eb6a414610230575b600080fd5b610192600480360381019061018d9190612458565b61051c565b60405161019f91906124a0565b60405180910390f35b6101b0610596565b6040516101bd9190612554565b60405180910390f35b6101e060048036038101906101db91906125ac565b610628565b6040516101ed919061261a565b60405180910390f35b610210600480360381019061020b9190612661565b61066e565b005b61021a610786565b60405161022791906126b0565b60405180910390f35b61024a60048036038101906102459190612910565b610797565b005b61026660048036038101906102619190612a4d565b6108f0565b60405161027391906126b0565b60405180910390f35b61029660048036038101906102919190612ac1565b610a9d565b005b6102b260048036038101906102ad9190612b14565b610afd565b6040516102c0929190612b41565b60405180910390f35b6102e360048036038101906102de9190612b14565b610bb6565b005b6102ff60048036038101906102fa9190612ac1565b610c27565b005b61031b60048036038101906103169190612b71565b610c47565b6040516103289190612bd3565b60405180910390f35b61034b600480360381019061034691906125ac565b610c7d565b604051610358919061261a565b60405180910390f35b61037b60048036038101906103769190612bee565b610d2f565b60405161038891906126b0565b60405180910390f35b610399610de7565b005b6103a3610dfb565b6040516103b0919061261a565b60405180910390f35b6103c1610e24565b6040516103ce9190612554565b60405180910390f35b6103f160048036038101906103ec9190612c47565b610eb6565b005b61040d600480360381019061040891906125ac565b610ecc565b60405161041a91906124a0565b60405180910390f35b61043d600480360381019061043891906125ac565b610ed7565b60405161044b929190612c96565b60405180910390f35b61046e60048036038101906104699190612d60565b610f13565b005b61048a600480360381019061048591906125ac565b610f75565b6040516104979190612554565b60405180910390f35b6104ba60048036038101906104b59190612fbf565b61109e565b6040516104c79190613129565b60405180910390f35b6104ea60048036038101906104e5919061314b565b6111e9565b6040516104f791906124a0565b60405180910390f35b61051a60048036038101906105159190612bee565b61127d565b005b60007fb45a3c0e000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061058f575061058e82611301565b5b9050919050565b6060600180546105a5906131ba565b80601f01602080910402602001604051908101604052809291908181526020018280546105d1906131ba565b801561061e5780601f106105f35761010080835404028352916020019161061e565b820191906000526020600020905b81548152906001019060200180831161060157829003601f168201915b5050505050905090565b6000610633826113e3565b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061067982610c7d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156106ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106e19061325e565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661070961142e565b73ffffffffffffffffffffffffffffffffffffffff16148061073857506107378161073261142e565b6111e9565b5b610777576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161076e906132f0565b60405180910390fd5b6107818383611436565b505050565b6000610792600a6114ef565b905090565b61079f6114fd565b6001600860008360000151815260200190815260200160002060000160006101000a81548160ff02191690831515021790555060008160200151511161081a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108119061335c565b60405180910390fd5b600060086000836000015181526020019081526020016000206001018054610841906131ba565b905014610883576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161087a906133c8565b60405180910390fd5b8060200151600860008360000151815260200190815260200160002060010190805190602001906108b5929190612349565b507ffee9a5271355ae2e52a4bdb7beb03dcfdfafe1648f1643a11791c41ae8247374816040516108e591906134b3565b60405180910390a150565b60006109466108fe8661157b565b858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050846115b5565b610985576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097c90613521565b60405180910390fd5b600061099a8660000151848860200151610c47565b905060008160001c90506109ae600a61162e565b6109bc876000015182611644565b83600960008381526020019081526020016000206001018190555086602001516009600083815260200190815260200160002060000160006101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055507f39f7d08f31ad3faee8d636e08f31a3a2de14760c8eb7db26c3470e04706920138782604051610a5192919061358e565b60405180910390a17f032bc66be43dbccb7487781d168eb7bda224628a3b2c3388bdf69b532a3a161181604051610a8891906126b0565b60405180910390a18092505050949350505050565b610aae610aa861142e565b82611662565b610aed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae490613629565b60405180910390fd5b610af88383836116f7565b505050565b60086020528060005260406000206000915090508060000160009054906101000a900460ff1690806001018054610b33906131ba565b80601f0160208091040260200160405190810160405280929190818152602001828054610b5f906131ba565b8015610bac5780601f10610b8157610100808354040283529160200191610bac565b820191906000526020600020905b815481529060010190602001808311610b8f57829003601f168201915b5050505050905082565b610bbe6114fd565b60006008600083815260200190815260200160002060000160006101000a81548160ff0219169083151502179055507f7767f041e22ffb424f5c71aec92682d05994ccc3e9a09a3394228232714c1db381604051610c1c9190612bd3565b60405180910390a150565b610c4283838360405180602001604052806000815250610f13565b505050565b6000838383604051602001610c5e939291906136e8565b6040516020818303038152906040528051906020012090509392505050565b6000806003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610d26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1d90613771565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610da0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9790613803565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610def6114fd565b610df9600061195e565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060028054610e33906131ba565b80601f0160208091040260200160405190810160405280929190818152602001828054610e5f906131ba565b8015610eac5780601f10610e8157610100808354040283529160200191610eac565b820191906000526020600020905b815481529060010190602001808311610e8f57829003601f168201915b5050505050905090565b610ec8610ec161142e565b8383611a22565b5050565b600060019050919050565b60096020528060005260406000206000915090508060000160009054906101000a90046bffffffffffffffffffffffff16908060010154905082565b610f24610f1e61142e565b83611662565b610f63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5a90613629565b60405180910390fd5b610f6f84848484611b8f565b50505050565b6060600060086000600960008681526020019081526020016000206001015481526020019081526020016000206001018054610fb0906131ba565b80601f0160208091040260200160405190810160405280929190818152602001828054610fdc906131ba565b80156110295780601f10610ffe57610100808354040283529160200191611029565b820191906000526020600020905b81548152906001019060200180831161100c57829003601f168201915b50505050509050806110766009600086815260200190815260200160002060000160009054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff16611beb565b6040516020016110879291906138ab565b604051602081830303815290604052915050919050565b60608383905085511480156110b4575081518551145b6110f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ea90613926565b60405180910390fd5b845167ffffffffffffffff81111561110e5761110d6126d0565b5b60405190808252806020026020018201604052801561113c5781602001602082028036833780820191505090505b50905060005b85518110156111e0576111ae86828151811061116157611160613946565b5b602002602001015186868481811061117c5761117b613946565b5b905060200281019061118e9190613984565b8685815181106111a1576111a0613946565b5b60200260200101516108f0565b8282815181106111c1576111c0613946565b5b60200260200101818152505080806111d890613a16565b915050611142565b50949350505050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6112856114fd565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156112f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ec90613ad1565b60405180910390fd5b6112fe8161195e565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806113cc57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806113dc57506113db82611d4c565b5b9050919050565b6113ec81611db6565b61142b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161142290613771565b60405180910390fd5b50565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166114a983610c7d565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081600001549050919050565b61150561142e565b73ffffffffffffffffffffffffffffffffffffffff16611523610dfb565b73ffffffffffffffffffffffffffffffffffffffff1614611579576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157090613b3d565b60405180910390fd5b565b600081600001518260200151604051602001611598929190613b5d565b604051602081830303815290604052805190602001209050919050565b60006008600083815260200190815260200160002060000160009054906101000a900460ff1661161a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161190613bd5565b60405180910390fd5b611625838386611e22565b90509392505050565b6001816000016000828254019250508190555050565b61165e828260405180602001604052806000815250611e39565b5050565b60008061166e83610c7d565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806116b057506116af81856111e9565b5b806116ee57508373ffffffffffffffffffffffffffffffffffffffff166116d684610628565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661171782610c7d565b73ffffffffffffffffffffffffffffffffffffffff161461176d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161176490613c67565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156117dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117d490613cf9565b60405180910390fd5b6117e8838383611e94565b6117f3600082611436565b6001600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546118439190613d19565b925050819055506001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461189a9190613d4d565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611959838383611f13565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611a91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8890613def565b60405180910390fd5b80600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b8291906124a0565b60405180910390a3505050565b611b9a8484846116f7565b611ba684848484611f18565b611be5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bdc90613e81565b60405180910390fd5b50505050565b60606000821415611c33576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611d47565b600082905060005b60008214611c65578080611c4e90613a16565b915050600a82611c5e9190613ed0565b9150611c3b565b60008167ffffffffffffffff811115611c8157611c806126d0565b5b6040519080825280601f01601f191660200182016040528015611cb35781602001600182028036833780820191505090505b5090505b60008514611d4057600182611ccc9190613d19565b9150600a85611cdb9190613f01565b6030611ce79190613d4d565b60f81b818381518110611cfd57611cfc613946565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611d399190613ed0565b9450611cb7565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600082611e2f85846120af565b1490509392505050565b611e438383612105565b611e506000848484611f18565b611e8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e8690613e81565b60405180910390fd5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614611f03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611efa90613f7e565b60405180910390fd5b611f0e8383836122df565b505050565b505050565b6000611f398473ffffffffffffffffffffffffffffffffffffffff166122e4565b156120a2578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611f6261142e565b8786866040518563ffffffff1660e01b8152600401611f849493929190613ff3565b602060405180830381600087803b158015611f9e57600080fd5b505af1925050508015611fcf57506040513d601f19601f82011682018060405250810190611fcc9190614054565b60015b612052573d8060008114611fff576040519150601f19603f3d011682016040523d82523d6000602084013e612004565b606091505b5060008151141561204a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204190613e81565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506120a7565b600190505b949350505050565b60008082905060005b84518110156120fa576120e5828683815181106120d8576120d7613946565b5b6020026020010151612307565b915080806120f290613a16565b9150506120b8565b508091505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612175576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161216c906140cd565b60405180910390fd5b61217e81611db6565b156121be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121b590614139565b60405180910390fd5b6121ca60008383611e94565b6001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461221a9190613d4d565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46122db60008383611f13565b5050565b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600081831061231f5761231a8284612332565b61232a565b6123298383612332565b5b905092915050565b600082600052816020526040600020905092915050565b828054612355906131ba565b90600052602060002090601f01602090048101928261237757600085556123be565b82601f1061239057805160ff19168380011785556123be565b828001600101855582156123be579182015b828111156123bd5782518255916020019190600101906123a2565b5b5090506123cb91906123cf565b5090565b5b808211156123e85760008160009055506001016123d0565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61243581612400565b811461244057600080fd5b50565b6000813590506124528161242c565b92915050565b60006020828403121561246e5761246d6123f6565b5b600061247c84828501612443565b91505092915050565b60008115159050919050565b61249a81612485565b82525050565b60006020820190506124b56000830184612491565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156124f55780820151818401526020810190506124da565b83811115612504576000848401525b50505050565b6000601f19601f8301169050919050565b6000612526826124bb565b61253081856124c6565b93506125408185602086016124d7565b6125498161250a565b840191505092915050565b6000602082019050818103600083015261256e818461251b565b905092915050565b6000819050919050565b61258981612576565b811461259457600080fd5b50565b6000813590506125a681612580565b92915050565b6000602082840312156125c2576125c16123f6565b5b60006125d084828501612597565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612604826125d9565b9050919050565b612614816125f9565b82525050565b600060208201905061262f600083018461260b565b92915050565b61263e816125f9565b811461264957600080fd5b50565b60008135905061265b81612635565b92915050565b60008060408385031215612678576126776123f6565b5b60006126868582860161264c565b925050602061269785828601612597565b9150509250929050565b6126aa81612576565b82525050565b60006020820190506126c560008301846126a1565b92915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6127088261250a565b810181811067ffffffffffffffff82111715612727576127266126d0565b5b80604052505050565b600061273a6123ec565b905061274682826126ff565b919050565b600080fd5b6000819050919050565b61276381612750565b811461276e57600080fd5b50565b6000813590506127808161275a565b92915050565b600080fd5b600080fd5b600067ffffffffffffffff8211156127ab576127aa6126d0565b5b6127b48261250a565b9050602081019050919050565b82818337600083830152505050565b60006127e36127de84612790565b612730565b9050828152602081018484840111156127ff576127fe61278b565b5b61280a8482856127c1565b509392505050565b600082601f83011261282757612826612786565b5b81356128378482602086016127d0565b91505092915050565b600063ffffffff82169050919050565b61285981612840565b811461286457600080fd5b50565b60008135905061287681612850565b92915050565b600060808284031215612892576128916126cb565b5b61289c6080612730565b905060006128ac84828501612771565b600083015250602082013567ffffffffffffffff8111156128d0576128cf61274b565b5b6128dc84828501612812565b60208301525060406128f084828501612867565b604083015250606061290484828501612867565b60608301525092915050565b600060208284031215612926576129256123f6565b5b600082013567ffffffffffffffff811115612944576129436123fb565b5b6129508482850161287c565b91505092915050565b60006bffffffffffffffffffffffff82169050919050565b61297a81612959565b811461298557600080fd5b50565b60008135905061299781612971565b92915050565b6000604082840312156129b3576129b26126cb565b5b6129bd6040612730565b905060006129cd8482850161264c565b60008301525060206129e184828501612988565b60208301525092915050565b600080fd5b600080fd5b60008083601f840112612a0d57612a0c612786565b5b8235905067ffffffffffffffff811115612a2a57612a296129ed565b5b602083019150836020820283011115612a4657612a456129f2565b5b9250929050565b60008060008060808587031215612a6757612a666123f6565b5b6000612a758782880161299d565b945050604085013567ffffffffffffffff811115612a9657612a956123fb565b5b612aa2878288016129f7565b93509350506060612ab587828801612771565b91505092959194509250565b600080600060608486031215612ada57612ad96123f6565b5b6000612ae88682870161264c565b9350506020612af98682870161264c565b9250506040612b0a86828701612597565b9150509250925092565b600060208284031215612b2a57612b296123f6565b5b6000612b3884828501612771565b91505092915050565b6000604082019050612b566000830185612491565b8181036020830152612b68818461251b565b90509392505050565b600080600060608486031215612b8a57612b896123f6565b5b6000612b988682870161264c565b9350506020612ba986828701612771565b9250506040612bba86828701612988565b9150509250925092565b612bcd81612750565b82525050565b6000602082019050612be86000830184612bc4565b92915050565b600060208284031215612c0457612c036123f6565b5b6000612c128482850161264c565b91505092915050565b612c2481612485565b8114612c2f57600080fd5b50565b600081359050612c4181612c1b565b92915050565b60008060408385031215612c5e57612c5d6123f6565b5b6000612c6c8582860161264c565b9250506020612c7d85828601612c32565b9150509250929050565b612c9081612959565b82525050565b6000604082019050612cab6000830185612c87565b612cb86020830184612bc4565b9392505050565b600067ffffffffffffffff821115612cda57612cd96126d0565b5b612ce38261250a565b9050602081019050919050565b6000612d03612cfe84612cbf565b612730565b905082815260208101848484011115612d1f57612d1e61278b565b5b612d2a8482856127c1565b509392505050565b600082601f830112612d4757612d46612786565b5b8135612d57848260208601612cf0565b91505092915050565b60008060008060808587031215612d7a57612d796123f6565b5b6000612d888782880161264c565b9450506020612d998782880161264c565b9350506040612daa87828801612597565b925050606085013567ffffffffffffffff811115612dcb57612dca6123fb565b5b612dd787828801612d32565b91505092959194509250565b600067ffffffffffffffff821115612dfe57612dfd6126d0565b5b602082029050602081019050919050565b6000612e22612e1d84612de3565b612730565b90508083825260208201905060408402830185811115612e4557612e446129f2565b5b835b81811015612e6e5780612e5a888261299d565b845260208401935050604081019050612e47565b5050509392505050565b600082601f830112612e8d57612e8c612786565b5b8135612e9d848260208601612e0f565b91505092915050565b60008083601f840112612ebc57612ebb612786565b5b8235905067ffffffffffffffff811115612ed957612ed86129ed565b5b602083019150836020820283011115612ef557612ef46129f2565b5b9250929050565b600067ffffffffffffffff821115612f1757612f166126d0565b5b602082029050602081019050919050565b6000612f3b612f3684612efc565b612730565b90508083825260208201905060208402830185811115612f5e57612f5d6129f2565b5b835b81811015612f875780612f738882612771565b845260208401935050602081019050612f60565b5050509392505050565b600082601f830112612fa657612fa5612786565b5b8135612fb6848260208601612f28565b91505092915050565b60008060008060608587031215612fd957612fd86123f6565b5b600085013567ffffffffffffffff811115612ff757612ff66123fb565b5b61300387828801612e78565b945050602085013567ffffffffffffffff811115613024576130236123fb565b5b61303087828801612ea6565b9350935050604085013567ffffffffffffffff811115613053576130526123fb565b5b61305f87828801612f91565b91505092959194509250565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6130a081612576565b82525050565b60006130b28383613097565b60208301905092915050565b6000602082019050919050565b60006130d68261306b565b6130e08185613076565b93506130eb83613087565b8060005b8381101561311c57815161310388826130a6565b975061310e836130be565b9250506001810190506130ef565b5085935050505092915050565b6000602082019050818103600083015261314381846130cb565b905092915050565b60008060408385031215613162576131616123f6565b5b60006131708582860161264c565b92505060206131818582860161264c565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806131d257607f821691505b602082108114156131e6576131e561318b565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006132486021836124c6565b9150613253826131ec565b604082019050919050565b600060208201905081810360008301526132778161323b565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b60006132da603e836124c6565b91506132e58261327e565b604082019050919050565b60006020820190508181036000830152613309816132cd565b9050919050565b7f63616e6e6f742073657420656d70747920726f6f742055524900000000000000600082015250565b60006133466019836124c6565b915061335182613310565b602082019050919050565b6000602082019050818103600083015261337581613339565b9050919050565b7f63616e6e6f74206f7665727772697465206e6f6e2d656d707479205552490000600082015250565b60006133b2601e836124c6565b91506133bd8261337c565b602082019050919050565b600060208201905081810360008301526133e1816133a5565b9050919050565b6133f181612750565b82525050565b600082825260208201905092915050565b6000613413826124bb565b61341d81856133f7565b935061342d8185602086016124d7565b6134368161250a565b840191505092915050565b61344a81612840565b82525050565b600060808301600083015161346860008601826133e8565b50602083015184820360208601526134808282613408565b91505060408301516134956040860182613441565b5060608301516134a86060860182613441565b508091505092915050565b600060208201905081810360008301526134cd8184613450565b905092915050565b7f496e76616c6964204d65726b6c652070726f6f66000000000000000000000000600082015250565b600061350b6014836124c6565b9150613516826134d5565b602082019050919050565b6000602082019050818103600083015261353a816134fe565b9050919050565b61354a816125f9565b82525050565b61355981612959565b82525050565b6040820160008201516135756000850182613541565b5060208201516135886020850182613550565b50505050565b60006060820190506135a3600083018561355f565b6135b060408301846126a1565b9392505050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000613613602e836124c6565b915061361e826135b7565b604082019050919050565b6000602082019050818103600083015261364281613606565b9050919050565b60008160601b9050919050565b600061366182613649565b9050919050565b600061367382613656565b9050919050565b61368b613686826125f9565b613668565b82525050565b6000819050919050565b6136ac6136a782612750565b613691565b82525050565b60008160a01b9050919050565b60006136ca826136b2565b9050919050565b6136e26136dd82612959565b6136bf565b82525050565b60006136f4828661367a565b601482019150613704828561369b565b60208201915061371482846136d1565b600c82019150819050949350505050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b600061375b6018836124c6565b915061376682613725565b602082019050919050565b6000602082019050818103600083015261378a8161374e565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b60006137ed6029836124c6565b91506137f882613791565b604082019050919050565b6000602082019050818103600083015261381c816137e0565b9050919050565b600081905092915050565b6000613839826124bb565b6138438185613823565b93506138538185602086016124d7565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000613895600583613823565b91506138a08261385f565b600582019050919050565b60006138b7828561382e565b91506138c3828461382e565b91506138ce82613888565b91508190509392505050565b7f42616420696e7075740000000000000000000000000000000000000000000000600082015250565b60006139106009836124c6565b915061391b826138da565b602082019050919050565b6000602082019050818103600083015261393f81613903565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b600080833560016020038436030381126139a1576139a0613975565b5b80840192508235915067ffffffffffffffff8211156139c3576139c261397a565b5b6020830192506020820236038313156139df576139de61397f565b5b509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613a2182612576565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613a5457613a536139e7565b5b600182019050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613abb6026836124c6565b9150613ac682613a5f565b604082019050919050565b60006020820190508181036000830152613aea81613aae565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613b276020836124c6565b9150613b3282613af1565b602082019050919050565b60006020820190508181036000830152613b5681613b1a565b9050919050565b6000613b69828561367a565b601482019150613b7982846136d1565b600c820191508190509392505050565b7f556e7265636f676e69736564206d65726b6c6520726f6f740000000000000000600082015250565b6000613bbf6018836124c6565b9150613bca82613b89565b602082019050919050565b60006020820190508181036000830152613bee81613bb2565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000613c516025836124c6565b9150613c5c82613bf5565b604082019050919050565b60006020820190508181036000830152613c8081613c44565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000613ce36024836124c6565b9150613cee82613c87565b604082019050919050565b60006020820190508181036000830152613d1281613cd6565b9050919050565b6000613d2482612576565b9150613d2f83612576565b925082821015613d4257613d416139e7565b5b828203905092915050565b6000613d5882612576565b9150613d6383612576565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613d9857613d976139e7565b5b828201905092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000613dd96019836124c6565b9150613de482613da3565b602082019050919050565b60006020820190508181036000830152613e0881613dcc565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000613e6b6032836124c6565b9150613e7682613e0f565b604082019050919050565b60006020820190508181036000830152613e9a81613e5e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613edb82612576565b9150613ee683612576565b925082613ef657613ef5613ea1565b5b828204905092915050565b6000613f0c82612576565b9150613f1783612576565b925082613f2757613f26613ea1565b5b828206905092915050565b7f536f756c20426f756e6420546f6b656e00000000000000000000000000000000600082015250565b6000613f686010836124c6565b9150613f7382613f32565b602082019050919050565b60006020820190508181036000830152613f9781613f5b565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000613fc582613f9e565b613fcf8185613fa9565b9350613fdf8185602086016124d7565b613fe88161250a565b840191505092915050565b6000608082019050614008600083018761260b565b614015602083018661260b565b61402260408301856126a1565b81810360608301526140348184613fba565b905095945050505050565b60008151905061404e8161242c565b92915050565b60006020828403121561406a576140696123f6565b5b60006140788482850161403f565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006140b76020836124c6565b91506140c282614081565b602082019050919050565b600060208201905081810360008301526140e6816140aa565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614123601c836124c6565b915061412e826140ed565b602082019050919050565b6000602082019050818103600083015261415281614116565b905091905056fea2646970667358221220a6ceca2a91d0d8f03cdc415352eb7f36d686a2d62d47e9f3e480bd87fe91082b64736f6c63430008090033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000013566f6c747a20436f6d6d756e69747920534254000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007564c545a53425400000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101735760003560e01c80636352211e116100de578063b45a3c0e11610097578063c87b56dd11610071578063c87b56dd14610470578063d3919493146104a0578063e985e9c5146104d0578063f2fde38b1461050057610173565b8063b45a3c0e146103f3578063b4b5b48f14610423578063b88d4fde1461045457610173565b80636352211e1461033157806370a0823114610361578063715018a6146103915780638da5cb5b1461039b57806395d89b41146103b9578063a22cb465146103d757610173565b80631cb21604116101305780631cb216041461024c57806323b872dd1461027c578063376bd598146102985780633eefdcce146102c957806342842e0e146102e55780634fac786d1461030157610173565b806301ffc9a71461017857806306fdde03146101a8578063081812fc146101c6578063095ea7b3146101f657806318160ddd14610212578063186eb6a414610230575b600080fd5b610192600480360381019061018d9190612458565b61051c565b60405161019f91906124a0565b60405180910390f35b6101b0610596565b6040516101bd9190612554565b60405180910390f35b6101e060048036038101906101db91906125ac565b610628565b6040516101ed919061261a565b60405180910390f35b610210600480360381019061020b9190612661565b61066e565b005b61021a610786565b60405161022791906126b0565b60405180910390f35b61024a60048036038101906102459190612910565b610797565b005b61026660048036038101906102619190612a4d565b6108f0565b60405161027391906126b0565b60405180910390f35b61029660048036038101906102919190612ac1565b610a9d565b005b6102b260048036038101906102ad9190612b14565b610afd565b6040516102c0929190612b41565b60405180910390f35b6102e360048036038101906102de9190612b14565b610bb6565b005b6102ff60048036038101906102fa9190612ac1565b610c27565b005b61031b60048036038101906103169190612b71565b610c47565b6040516103289190612bd3565b60405180910390f35b61034b600480360381019061034691906125ac565b610c7d565b604051610358919061261a565b60405180910390f35b61037b60048036038101906103769190612bee565b610d2f565b60405161038891906126b0565b60405180910390f35b610399610de7565b005b6103a3610dfb565b6040516103b0919061261a565b60405180910390f35b6103c1610e24565b6040516103ce9190612554565b60405180910390f35b6103f160048036038101906103ec9190612c47565b610eb6565b005b61040d600480360381019061040891906125ac565b610ecc565b60405161041a91906124a0565b60405180910390f35b61043d600480360381019061043891906125ac565b610ed7565b60405161044b929190612c96565b60405180910390f35b61046e60048036038101906104699190612d60565b610f13565b005b61048a600480360381019061048591906125ac565b610f75565b6040516104979190612554565b60405180910390f35b6104ba60048036038101906104b59190612fbf565b61109e565b6040516104c79190613129565b60405180910390f35b6104ea60048036038101906104e5919061314b565b6111e9565b6040516104f791906124a0565b60405180910390f35b61051a60048036038101906105159190612bee565b61127d565b005b60007fb45a3c0e000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061058f575061058e82611301565b5b9050919050565b6060600180546105a5906131ba565b80601f01602080910402602001604051908101604052809291908181526020018280546105d1906131ba565b801561061e5780601f106105f35761010080835404028352916020019161061e565b820191906000526020600020905b81548152906001019060200180831161060157829003601f168201915b5050505050905090565b6000610633826113e3565b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061067982610c7d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156106ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106e19061325e565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661070961142e565b73ffffffffffffffffffffffffffffffffffffffff16148061073857506107378161073261142e565b6111e9565b5b610777576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161076e906132f0565b60405180910390fd5b6107818383611436565b505050565b6000610792600a6114ef565b905090565b61079f6114fd565b6001600860008360000151815260200190815260200160002060000160006101000a81548160ff02191690831515021790555060008160200151511161081a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108119061335c565b60405180910390fd5b600060086000836000015181526020019081526020016000206001018054610841906131ba565b905014610883576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161087a906133c8565b60405180910390fd5b8060200151600860008360000151815260200190815260200160002060010190805190602001906108b5929190612349565b507ffee9a5271355ae2e52a4bdb7beb03dcfdfafe1648f1643a11791c41ae8247374816040516108e591906134b3565b60405180910390a150565b60006109466108fe8661157b565b858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050846115b5565b610985576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097c90613521565b60405180910390fd5b600061099a8660000151848860200151610c47565b905060008160001c90506109ae600a61162e565b6109bc876000015182611644565b83600960008381526020019081526020016000206001018190555086602001516009600083815260200190815260200160002060000160006101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055507f39f7d08f31ad3faee8d636e08f31a3a2de14760c8eb7db26c3470e04706920138782604051610a5192919061358e565b60405180910390a17f032bc66be43dbccb7487781d168eb7bda224628a3b2c3388bdf69b532a3a161181604051610a8891906126b0565b60405180910390a18092505050949350505050565b610aae610aa861142e565b82611662565b610aed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae490613629565b60405180910390fd5b610af88383836116f7565b505050565b60086020528060005260406000206000915090508060000160009054906101000a900460ff1690806001018054610b33906131ba565b80601f0160208091040260200160405190810160405280929190818152602001828054610b5f906131ba565b8015610bac5780601f10610b8157610100808354040283529160200191610bac565b820191906000526020600020905b815481529060010190602001808311610b8f57829003601f168201915b5050505050905082565b610bbe6114fd565b60006008600083815260200190815260200160002060000160006101000a81548160ff0219169083151502179055507f7767f041e22ffb424f5c71aec92682d05994ccc3e9a09a3394228232714c1db381604051610c1c9190612bd3565b60405180910390a150565b610c4283838360405180602001604052806000815250610f13565b505050565b6000838383604051602001610c5e939291906136e8565b6040516020818303038152906040528051906020012090509392505050565b6000806003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610d26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1d90613771565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610da0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9790613803565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610def6114fd565b610df9600061195e565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060028054610e33906131ba565b80601f0160208091040260200160405190810160405280929190818152602001828054610e5f906131ba565b8015610eac5780601f10610e8157610100808354040283529160200191610eac565b820191906000526020600020905b815481529060010190602001808311610e8f57829003601f168201915b5050505050905090565b610ec8610ec161142e565b8383611a22565b5050565b600060019050919050565b60096020528060005260406000206000915090508060000160009054906101000a90046bffffffffffffffffffffffff16908060010154905082565b610f24610f1e61142e565b83611662565b610f63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5a90613629565b60405180910390fd5b610f6f84848484611b8f565b50505050565b6060600060086000600960008681526020019081526020016000206001015481526020019081526020016000206001018054610fb0906131ba565b80601f0160208091040260200160405190810160405280929190818152602001828054610fdc906131ba565b80156110295780601f10610ffe57610100808354040283529160200191611029565b820191906000526020600020905b81548152906001019060200180831161100c57829003601f168201915b50505050509050806110766009600086815260200190815260200160002060000160009054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff16611beb565b6040516020016110879291906138ab565b604051602081830303815290604052915050919050565b60608383905085511480156110b4575081518551145b6110f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ea90613926565b60405180910390fd5b845167ffffffffffffffff81111561110e5761110d6126d0565b5b60405190808252806020026020018201604052801561113c5781602001602082028036833780820191505090505b50905060005b85518110156111e0576111ae86828151811061116157611160613946565b5b602002602001015186868481811061117c5761117b613946565b5b905060200281019061118e9190613984565b8685815181106111a1576111a0613946565b5b60200260200101516108f0565b8282815181106111c1576111c0613946565b5b60200260200101818152505080806111d890613a16565b915050611142565b50949350505050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6112856114fd565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156112f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ec90613ad1565b60405180910390fd5b6112fe8161195e565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806113cc57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806113dc57506113db82611d4c565b5b9050919050565b6113ec81611db6565b61142b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161142290613771565b60405180910390fd5b50565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166114a983610c7d565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081600001549050919050565b61150561142e565b73ffffffffffffffffffffffffffffffffffffffff16611523610dfb565b73ffffffffffffffffffffffffffffffffffffffff1614611579576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157090613b3d565b60405180910390fd5b565b600081600001518260200151604051602001611598929190613b5d565b604051602081830303815290604052805190602001209050919050565b60006008600083815260200190815260200160002060000160009054906101000a900460ff1661161a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161190613bd5565b60405180910390fd5b611625838386611e22565b90509392505050565b6001816000016000828254019250508190555050565b61165e828260405180602001604052806000815250611e39565b5050565b60008061166e83610c7d565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806116b057506116af81856111e9565b5b806116ee57508373ffffffffffffffffffffffffffffffffffffffff166116d684610628565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661171782610c7d565b73ffffffffffffffffffffffffffffffffffffffff161461176d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161176490613c67565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156117dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117d490613cf9565b60405180910390fd5b6117e8838383611e94565b6117f3600082611436565b6001600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546118439190613d19565b925050819055506001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461189a9190613d4d565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611959838383611f13565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611a91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8890613def565b60405180910390fd5b80600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b8291906124a0565b60405180910390a3505050565b611b9a8484846116f7565b611ba684848484611f18565b611be5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bdc90613e81565b60405180910390fd5b50505050565b60606000821415611c33576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611d47565b600082905060005b60008214611c65578080611c4e90613a16565b915050600a82611c5e9190613ed0565b9150611c3b565b60008167ffffffffffffffff811115611c8157611c806126d0565b5b6040519080825280601f01601f191660200182016040528015611cb35781602001600182028036833780820191505090505b5090505b60008514611d4057600182611ccc9190613d19565b9150600a85611cdb9190613f01565b6030611ce79190613d4d565b60f81b818381518110611cfd57611cfc613946565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611d399190613ed0565b9450611cb7565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600082611e2f85846120af565b1490509392505050565b611e438383612105565b611e506000848484611f18565b611e8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e8690613e81565b60405180910390fd5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614611f03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611efa90613f7e565b60405180910390fd5b611f0e8383836122df565b505050565b505050565b6000611f398473ffffffffffffffffffffffffffffffffffffffff166122e4565b156120a2578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611f6261142e565b8786866040518563ffffffff1660e01b8152600401611f849493929190613ff3565b602060405180830381600087803b158015611f9e57600080fd5b505af1925050508015611fcf57506040513d601f19601f82011682018060405250810190611fcc9190614054565b60015b612052573d8060008114611fff576040519150601f19603f3d011682016040523d82523d6000602084013e612004565b606091505b5060008151141561204a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204190613e81565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506120a7565b600190505b949350505050565b60008082905060005b84518110156120fa576120e5828683815181106120d8576120d7613946565b5b6020026020010151612307565b915080806120f290613a16565b9150506120b8565b508091505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612175576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161216c906140cd565b60405180910390fd5b61217e81611db6565b156121be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121b590614139565b60405180910390fd5b6121ca60008383611e94565b6001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461221a9190613d4d565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46122db60008383611f13565b5050565b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600081831061231f5761231a8284612332565b61232a565b6123298383612332565b5b905092915050565b600082600052816020526040600020905092915050565b828054612355906131ba565b90600052602060002090601f01602090048101928261237757600085556123be565b82601f1061239057805160ff19168380011785556123be565b828001600101855582156123be579182015b828111156123bd5782518255916020019190600101906123a2565b5b5090506123cb91906123cf565b5090565b5b808211156123e85760008160009055506001016123d0565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61243581612400565b811461244057600080fd5b50565b6000813590506124528161242c565b92915050565b60006020828403121561246e5761246d6123f6565b5b600061247c84828501612443565b91505092915050565b60008115159050919050565b61249a81612485565b82525050565b60006020820190506124b56000830184612491565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156124f55780820151818401526020810190506124da565b83811115612504576000848401525b50505050565b6000601f19601f8301169050919050565b6000612526826124bb565b61253081856124c6565b93506125408185602086016124d7565b6125498161250a565b840191505092915050565b6000602082019050818103600083015261256e818461251b565b905092915050565b6000819050919050565b61258981612576565b811461259457600080fd5b50565b6000813590506125a681612580565b92915050565b6000602082840312156125c2576125c16123f6565b5b60006125d084828501612597565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612604826125d9565b9050919050565b612614816125f9565b82525050565b600060208201905061262f600083018461260b565b92915050565b61263e816125f9565b811461264957600080fd5b50565b60008135905061265b81612635565b92915050565b60008060408385031215612678576126776123f6565b5b60006126868582860161264c565b925050602061269785828601612597565b9150509250929050565b6126aa81612576565b82525050565b60006020820190506126c560008301846126a1565b92915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6127088261250a565b810181811067ffffffffffffffff82111715612727576127266126d0565b5b80604052505050565b600061273a6123ec565b905061274682826126ff565b919050565b600080fd5b6000819050919050565b61276381612750565b811461276e57600080fd5b50565b6000813590506127808161275a565b92915050565b600080fd5b600080fd5b600067ffffffffffffffff8211156127ab576127aa6126d0565b5b6127b48261250a565b9050602081019050919050565b82818337600083830152505050565b60006127e36127de84612790565b612730565b9050828152602081018484840111156127ff576127fe61278b565b5b61280a8482856127c1565b509392505050565b600082601f83011261282757612826612786565b5b81356128378482602086016127d0565b91505092915050565b600063ffffffff82169050919050565b61285981612840565b811461286457600080fd5b50565b60008135905061287681612850565b92915050565b600060808284031215612892576128916126cb565b5b61289c6080612730565b905060006128ac84828501612771565b600083015250602082013567ffffffffffffffff8111156128d0576128cf61274b565b5b6128dc84828501612812565b60208301525060406128f084828501612867565b604083015250606061290484828501612867565b60608301525092915050565b600060208284031215612926576129256123f6565b5b600082013567ffffffffffffffff811115612944576129436123fb565b5b6129508482850161287c565b91505092915050565b60006bffffffffffffffffffffffff82169050919050565b61297a81612959565b811461298557600080fd5b50565b60008135905061299781612971565b92915050565b6000604082840312156129b3576129b26126cb565b5b6129bd6040612730565b905060006129cd8482850161264c565b60008301525060206129e184828501612988565b60208301525092915050565b600080fd5b600080fd5b60008083601f840112612a0d57612a0c612786565b5b8235905067ffffffffffffffff811115612a2a57612a296129ed565b5b602083019150836020820283011115612a4657612a456129f2565b5b9250929050565b60008060008060808587031215612a6757612a666123f6565b5b6000612a758782880161299d565b945050604085013567ffffffffffffffff811115612a9657612a956123fb565b5b612aa2878288016129f7565b93509350506060612ab587828801612771565b91505092959194509250565b600080600060608486031215612ada57612ad96123f6565b5b6000612ae88682870161264c565b9350506020612af98682870161264c565b9250506040612b0a86828701612597565b9150509250925092565b600060208284031215612b2a57612b296123f6565b5b6000612b3884828501612771565b91505092915050565b6000604082019050612b566000830185612491565b8181036020830152612b68818461251b565b90509392505050565b600080600060608486031215612b8a57612b896123f6565b5b6000612b988682870161264c565b9350506020612ba986828701612771565b9250506040612bba86828701612988565b9150509250925092565b612bcd81612750565b82525050565b6000602082019050612be86000830184612bc4565b92915050565b600060208284031215612c0457612c036123f6565b5b6000612c128482850161264c565b91505092915050565b612c2481612485565b8114612c2f57600080fd5b50565b600081359050612c4181612c1b565b92915050565b60008060408385031215612c5e57612c5d6123f6565b5b6000612c6c8582860161264c565b9250506020612c7d85828601612c32565b9150509250929050565b612c9081612959565b82525050565b6000604082019050612cab6000830185612c87565b612cb86020830184612bc4565b9392505050565b600067ffffffffffffffff821115612cda57612cd96126d0565b5b612ce38261250a565b9050602081019050919050565b6000612d03612cfe84612cbf565b612730565b905082815260208101848484011115612d1f57612d1e61278b565b5b612d2a8482856127c1565b509392505050565b600082601f830112612d4757612d46612786565b5b8135612d57848260208601612cf0565b91505092915050565b60008060008060808587031215612d7a57612d796123f6565b5b6000612d888782880161264c565b9450506020612d998782880161264c565b9350506040612daa87828801612597565b925050606085013567ffffffffffffffff811115612dcb57612dca6123fb565b5b612dd787828801612d32565b91505092959194509250565b600067ffffffffffffffff821115612dfe57612dfd6126d0565b5b602082029050602081019050919050565b6000612e22612e1d84612de3565b612730565b90508083825260208201905060408402830185811115612e4557612e446129f2565b5b835b81811015612e6e5780612e5a888261299d565b845260208401935050604081019050612e47565b5050509392505050565b600082601f830112612e8d57612e8c612786565b5b8135612e9d848260208601612e0f565b91505092915050565b60008083601f840112612ebc57612ebb612786565b5b8235905067ffffffffffffffff811115612ed957612ed86129ed565b5b602083019150836020820283011115612ef557612ef46129f2565b5b9250929050565b600067ffffffffffffffff821115612f1757612f166126d0565b5b602082029050602081019050919050565b6000612f3b612f3684612efc565b612730565b90508083825260208201905060208402830185811115612f5e57612f5d6129f2565b5b835b81811015612f875780612f738882612771565b845260208401935050602081019050612f60565b5050509392505050565b600082601f830112612fa657612fa5612786565b5b8135612fb6848260208601612f28565b91505092915050565b60008060008060608587031215612fd957612fd86123f6565b5b600085013567ffffffffffffffff811115612ff757612ff66123fb565b5b61300387828801612e78565b945050602085013567ffffffffffffffff811115613024576130236123fb565b5b61303087828801612ea6565b9350935050604085013567ffffffffffffffff811115613053576130526123fb565b5b61305f87828801612f91565b91505092959194509250565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6130a081612576565b82525050565b60006130b28383613097565b60208301905092915050565b6000602082019050919050565b60006130d68261306b565b6130e08185613076565b93506130eb83613087565b8060005b8381101561311c57815161310388826130a6565b975061310e836130be565b9250506001810190506130ef565b5085935050505092915050565b6000602082019050818103600083015261314381846130cb565b905092915050565b60008060408385031215613162576131616123f6565b5b60006131708582860161264c565b92505060206131818582860161264c565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806131d257607f821691505b602082108114156131e6576131e561318b565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006132486021836124c6565b9150613253826131ec565b604082019050919050565b600060208201905081810360008301526132778161323b565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b60006132da603e836124c6565b91506132e58261327e565b604082019050919050565b60006020820190508181036000830152613309816132cd565b9050919050565b7f63616e6e6f742073657420656d70747920726f6f742055524900000000000000600082015250565b60006133466019836124c6565b915061335182613310565b602082019050919050565b6000602082019050818103600083015261337581613339565b9050919050565b7f63616e6e6f74206f7665727772697465206e6f6e2d656d707479205552490000600082015250565b60006133b2601e836124c6565b91506133bd8261337c565b602082019050919050565b600060208201905081810360008301526133e1816133a5565b9050919050565b6133f181612750565b82525050565b600082825260208201905092915050565b6000613413826124bb565b61341d81856133f7565b935061342d8185602086016124d7565b6134368161250a565b840191505092915050565b61344a81612840565b82525050565b600060808301600083015161346860008601826133e8565b50602083015184820360208601526134808282613408565b91505060408301516134956040860182613441565b5060608301516134a86060860182613441565b508091505092915050565b600060208201905081810360008301526134cd8184613450565b905092915050565b7f496e76616c6964204d65726b6c652070726f6f66000000000000000000000000600082015250565b600061350b6014836124c6565b9150613516826134d5565b602082019050919050565b6000602082019050818103600083015261353a816134fe565b9050919050565b61354a816125f9565b82525050565b61355981612959565b82525050565b6040820160008201516135756000850182613541565b5060208201516135886020850182613550565b50505050565b60006060820190506135a3600083018561355f565b6135b060408301846126a1565b9392505050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000613613602e836124c6565b915061361e826135b7565b604082019050919050565b6000602082019050818103600083015261364281613606565b9050919050565b60008160601b9050919050565b600061366182613649565b9050919050565b600061367382613656565b9050919050565b61368b613686826125f9565b613668565b82525050565b6000819050919050565b6136ac6136a782612750565b613691565b82525050565b60008160a01b9050919050565b60006136ca826136b2565b9050919050565b6136e26136dd82612959565b6136bf565b82525050565b60006136f4828661367a565b601482019150613704828561369b565b60208201915061371482846136d1565b600c82019150819050949350505050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b600061375b6018836124c6565b915061376682613725565b602082019050919050565b6000602082019050818103600083015261378a8161374e565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b60006137ed6029836124c6565b91506137f882613791565b604082019050919050565b6000602082019050818103600083015261381c816137e0565b9050919050565b600081905092915050565b6000613839826124bb565b6138438185613823565b93506138538185602086016124d7565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000613895600583613823565b91506138a08261385f565b600582019050919050565b60006138b7828561382e565b91506138c3828461382e565b91506138ce82613888565b91508190509392505050565b7f42616420696e7075740000000000000000000000000000000000000000000000600082015250565b60006139106009836124c6565b915061391b826138da565b602082019050919050565b6000602082019050818103600083015261393f81613903565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b600080833560016020038436030381126139a1576139a0613975565b5b80840192508235915067ffffffffffffffff8211156139c3576139c261397a565b5b6020830192506020820236038313156139df576139de61397f565b5b509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613a2182612576565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613a5457613a536139e7565b5b600182019050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613abb6026836124c6565b9150613ac682613a5f565b604082019050919050565b60006020820190508181036000830152613aea81613aae565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613b276020836124c6565b9150613b3282613af1565b602082019050919050565b60006020820190508181036000830152613b5681613b1a565b9050919050565b6000613b69828561367a565b601482019150613b7982846136d1565b600c820191508190509392505050565b7f556e7265636f676e69736564206d65726b6c6520726f6f740000000000000000600082015250565b6000613bbf6018836124c6565b9150613bca82613b89565b602082019050919050565b60006020820190508181036000830152613bee81613bb2565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000613c516025836124c6565b9150613c5c82613bf5565b604082019050919050565b60006020820190508181036000830152613c8081613c44565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000613ce36024836124c6565b9150613cee82613c87565b604082019050919050565b60006020820190508181036000830152613d1281613cd6565b9050919050565b6000613d2482612576565b9150613d2f83612576565b925082821015613d4257613d416139e7565b5b828203905092915050565b6000613d5882612576565b9150613d6383612576565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613d9857613d976139e7565b5b828201905092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000613dd96019836124c6565b9150613de482613da3565b602082019050919050565b60006020820190508181036000830152613e0881613dcc565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000613e6b6032836124c6565b9150613e7682613e0f565b604082019050919050565b60006020820190508181036000830152613e9a81613e5e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613edb82612576565b9150613ee683612576565b925082613ef657613ef5613ea1565b5b828204905092915050565b6000613f0c82612576565b9150613f1783612576565b925082613f2757613f26613ea1565b5b828206905092915050565b7f536f756c20426f756e6420546f6b656e00000000000000000000000000000000600082015250565b6000613f686010836124c6565b9150613f7382613f32565b602082019050919050565b60006020820190508181036000830152613f9781613f5b565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000613fc582613f9e565b613fcf8185613fa9565b9350613fdf8185602086016124d7565b613fe88161250a565b840191505092915050565b6000608082019050614008600083018761260b565b614015602083018661260b565b61402260408301856126a1565b81810360608301526140348184613fba565b905095945050505050565b60008151905061404e8161242c565b92915050565b60006020828403121561406a576140696123f6565b5b60006140788482850161403f565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006140b76020836124c6565b91506140c282614081565b602082019050919050565b600060208201905081810360008301526140e6816140aa565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614123601c836124c6565b915061412e826140ed565b602082019050919050565b6000602082019050818103600083015261415281614116565b905091905056fea2646970667358221220a6ceca2a91d0d8f03cdc415352eb7f36d686a2d62d47e9f3e480bd87fe91082b64736f6c63430008090033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000013566f6c747a20436f6d6d756e69747920534254000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007564c545a53425400000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): Voltz Community SBT
Arg [1] : symbol (string): VLTZSBT

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000013
Arg [3] : 566f6c747a20436f6d6d756e6974792053425400000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [5] : 564c545a53425400000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.