ETH Price: $3,430.65 (-2.43%)

Token

Chain Light (CL)
 

Overview

Max Total Supply

1,063 CL

Holders

1,057

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
1 CL
0x72f4557d651d5869b6B8b412d16D6b86AaA617d5
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:
ChainLight

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-09-16
*/

// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.2

pragma solidity 0.8.16;

/**
 * @dev Interface of ERC721A.
 */
interface IERC721A {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the
     * ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    // =============================================================
    //                            STRUCTS
    // =============================================================

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Stores the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
        // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
        uint24 extraData;
    }

    // =============================================================
    //                         TOKEN COUNTERS
    // =============================================================

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() external view returns (uint256);

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);

    // =============================================================
    //                            IERC721
    // =============================================================

    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

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

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

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

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

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

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` 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);

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

    /**
     * @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);

    // =============================================================
    //                           IERC2309
    // =============================================================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId`
     * (inclusive) is transferred from `from` to `to`, as defined in the
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
     *
     * See {_mintERC2309} for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

/**
 * @dev Interface of ERC721 token receiver.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @title ERC721A
 *
 * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
 * Non-Fungible Token Standard, including the Metadata extension.
 * Optimized for lower gas during batch mints.
 *
 * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
 * starting from `_startTokenId()`.
 *
 * Assumptions:
 *
 * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {

	address public _owner;
    modifier onlyOwner() { 
        require(_owner==msg.sender, "No!"); 
        _; 
    }

	function withdraw() external onlyOwner {
        uint256 balance = address(this).balance;
        payable(msg.sender).transfer(balance);
    }

    // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364).
    struct TokenApprovalRef {
        address value;
    }

    // =============================================================
    //                           CONSTANTS
    // =============================================================

    // Mask of an entry in packed address data.
    uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant _BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant _BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant _BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant _BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant _BITMASK_BURNED = 1 << 224;

    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225;

    // The bit position of `extraData` in packed ownership.
    uint256 private constant _BITPOS_EXTRA_DATA = 232;

    // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
    uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;

    // The mask of the lower 160 bits for addresses.
    uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;

    // The maximum `quantity` that can be minted with {_mintERC2309}.
    // This limit is to prevent overflows on the address data entries.
    // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309}
    // is required to cause an overflow, which is unrealistic.
    uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;

    // The `Transfer` event signature is given by:
    // `keccak256(bytes("Transfer(address,address,uint256)"))`.
    bytes32 private constant _TRANSFER_EVENT_SIGNATURE =
        0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;

    // =============================================================
    //                            STORAGE
    // =============================================================

    // The next token ID to be minted.
    uint256 private _currentIndex;

    // The number of tokens burned.
    uint256 private _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned.
    // See {_packedOwnershipOf} implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    // - [232..255] `extraData`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

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

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

    // =============================================================
    //                          CONSTRUCTOR
    // =============================================================

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
		_owner = msg.sender;
    }

    // =============================================================
    //                   TOKEN COUNTING OPERATIONS
    // =============================================================

    /**
     * @dev Returns the starting token ID.
     * To change the starting token ID, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view virtual returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than `_currentIndex - _startTokenId()` times.
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * @dev Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view virtual returns (uint256) {
        // Counter underflow is impossible as `_currentIndex` does not decrement,
        // and it is initialized to `_startTokenId()`.
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @dev Returns the total number of tokens burned.
     */
    function _totalBurned() internal view virtual returns (uint256) {
        return _burnCounter;
    }

    // =============================================================
    //                    ADDRESS DATA OPERATIONS
    // =============================================================

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return uint64(_packedAddressData[owner] >> _BITPOS_AUX);
    }

    /**
     * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal virtual {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        // Cast `aux` with assembly to avoid redundant masking.
        assembly {
            auxCasted := aux
        }
        packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes
        // of the XOR of all function selectors in the interface.
        // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165)
        // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`)
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

    /**
     * @dev Returns the token collection name.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        string memory baseURI = _baseURI();
        return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : '';
    }

    /**
     * @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, it can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    // =============================================================
    //                     OWNERSHIPS OPERATIONS
    // =============================================================

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

    /**
     * @dev Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around over time.
     */
    function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal virtual {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & _BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an initialized ownership slot
                        // (i.e. `ownership.addr != address(0) && ownership.burned == false`)
                        // before an unintialized ownership slot
                        // (i.e. `ownership.addr == address(0) && ownership.burned == false`)
                        // Hence, `curr` will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed will be zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP);
        ownership.burned = packed & _BITMASK_BURNED != 0;
        ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA);
    }

    /**
     * @dev Packs ownership data into a single uint256.
     */
    function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`.
            result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags))
        }
    }

    /**
     * @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
     */
    function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {
        // For branchless setting of the `nextInitialized` flag.
        assembly {
            // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`.
            result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
        }
    }

    // =============================================================
    //                      APPROVAL OPERATIONS
    // =============================================================

    /**
     * @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) public virtual override {
        address owner = ownerOf(tokenId);

        if (_msgSenderERC721A() != owner)
            if (!isApprovedForAll(owner, _msgSenderERC721A())) {
                revert ApprovalCallerNotOwnerNorApproved();
            }

        _tokenApprovals[tokenId].value = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @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) public virtual override {
        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

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

    /**
     * @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. See {_mint}.
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned.
    }

    /**
     * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`.
     */
    function _isSenderApprovedOrOwner(
        address approvedAddress,
        address owner,
        address msgSender
    ) private pure returns (bool result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
            msgSender := and(msgSender, _BITMASK_ADDRESS)
            // `msgSender == owner || msgSender == approvedAddress`.
            result := or(eq(msgSender, owner), eq(msgSender, approvedAddress))
        }
    }

    /**
     * @dev Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedSlotAndAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`.
        assembly {
            approvedAddressSlot := tokenApproval.slot
            approvedAddress := sload(approvedAddressSlot)
        }
    }

    // =============================================================
    //                      TRANSFER OPERATIONS
    // =============================================================

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) public virtual override {

        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
            if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();

        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // We can directly increment and decrement the balances.
            --_packedAddressData[from]; // Updates: `balance -= 1`.
            ++_packedAddressData[to]; // Updates: `balance += 1`.

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                to,
                _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @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 memory _data
    ) public virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token IDs
     * are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * `startTokenId` - the first token ID to be transferred.
     * `quantity` - the amount to be transferred.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token IDs
     * have been transferred. This includes minting.
     * And also called after one token has been burned.
     *
     * `startTokenId` - the first token ID to be transferred.
     * `quantity` - the amount to be transferred.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * `from` - Previous owner of the given token ID.
     * `to` - Target address that will receive the token.
     * `tokenId` - Token ID to be transferred.
     * `_data` - Optional data to send along with the call.
     *
     * Returns whether the call correctly returned the expected magic value.
     */
    function _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
            bytes4 retval
        ) {
            return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    // =============================================================
    //                        MINT OPERATIONS
    // =============================================================

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _mint(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // `balance` and `numberMinted` have a maximum limit of 2**64.
        // `tokenId` has a maximum limit of 2**256.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

            // Use assembly to loop and emit the `Transfer` event for gas savings.
            // The duplicated `log4` removes an extra check and reduces stack juggling.
            // The assembly, together with the surrounding Solidity code, have been
            // delicately arranged to nudge the compiler into producing optimized opcodes.
            assembly {
                // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
                toMasked := and(to, _BITMASK_ADDRESS)
                // Emit the `Transfer` event.
                log4(
                    0, // Start of data (0, since no data).
                    0, // End of data (0, since no data).
                    _TRANSFER_EVENT_SIGNATURE, // Signature.
                    0, // `address(0)`.
                    toMasked, // `to`.
                    startTokenId // `tokenId`.
                )

                for {
                    let tokenId := add(startTokenId, 1)
                } iszero(eq(tokenId, end)) {
                    tokenId := add(tokenId, 1)
                } {
                    // Emit the `Transfer` event. Similar to above.
                    log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
                }
            }
            if (toMasked == 0) revert MintToZeroAddress();

            _currentIndex = end;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * This function is intended for efficient minting only during contract creation.
     *
     * It emits only one {ConsecutiveTransfer} as defined in
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
     * instead of a sequence of {Transfer} event(s).
     *
     * Calling this function outside of contract creation WILL make your contract
     * non-compliant with the ERC721 standard.
     * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
     * {ConsecutiveTransfer} event is only permissible during contract creation.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {ConsecutiveTransfer} event.
     */
    function _mintERC2309(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();
        if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are unrealistic due to the above check for `quantity` to be below the limit.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);

            _currentIndex = startTokenId + quantity;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement
     * {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * See {_mint}.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal virtual {
        _mint(to, quantity);

        unchecked {
            if (to.code.length != 0) {
                uint256 end = _currentIndex;
                uint256 index = end - quantity;
                do {
                    if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) revert();
            }
        }
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal virtual {
        _safeMint(to, quantity, '');
    }

    // =============================================================
    //                        BURN OPERATIONS
    // =============================================================

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

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

        address from = address(uint160(prevOwnershipPacked));

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
                if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                from,
                (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

    // =============================================================
    //                     EXTRA DATA OPERATIONS
    // =============================================================

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual {
        uint256 packed = _packedOwnerships[index];
        if (packed == 0) revert OwnershipNotInitializedForExtraData();
        uint256 extraDataCasted;
        // Cast `extraData` with assembly to avoid redundant masking.
        assembly {
            extraDataCasted := extraData
        }
        packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA);
        _packedOwnerships[index] = packed;
    }

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

    /**
     * @dev Returns the next extra data for the packed ownership data.
     * The returned result is shifted into position.
     */
    function _nextExtraData(
        address from,
        address to,
        uint256 prevOwnershipPacked
    ) private view returns (uint256) {
        uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA);
        return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA;
    }

    // =============================================================
    //                       OTHER OPERATIONS
    // =============================================================

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @dev Converts a uint256 to its ASCII string decimal representation.
     */
    function _toString(uint256 value) internal pure virtual returns (string memory str) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), but
            // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
            // We will need 1 word for the trailing zeros padding, 1 word for the length,
            // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
            let m := add(mload(0x40), 0xa0)
            // Update the free memory pointer to allocate.
            mstore(0x40, m)
            // Assign the `str` to the end.
            str := sub(m, 0x20)
            // Zeroize the slot after the string.
            mstore(str, 0)

            // Cache the end of the memory to calculate the length later.
            let end := str

            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // prettier-ignore
            for { let temp := value } 1 {} {
                str := sub(str, 1)
                // Write the character to the pointer.
                // The ASCII index of the '0' character is 48.
                mstore8(str, add(48, mod(temp, 10)))
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
                // prettier-ignore
                if iszero(temp) { break }
            }

            let length := sub(end, str)
            // Move the pointer 32 bytes leftwards to make room for the length.
            str := sub(str, 0x20)
            // Store the length.
            mstore(str, length)
        }
    }
}


library Base64 {
    /**
     * @dev Base64 Encoding/Decoding Table
     */
    string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

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

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

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

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

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

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

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

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

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

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

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

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

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

        return result;
    }
}


contract ChainLight is ERC721A{

    uint256 public constant MAX_WALLET_MINT = 100;
    uint256 public constant MAX_FREE_MINT_PER_WALLET = 1;
    uint256 public constant MAX_SUPPLY = 1234;
    uint256 public constant COST = 0.002 ether;

    constructor() ERC721A("Chain Light","CL"){}

    function freeMint() public payable{
        uint256 amount = 1;
        require(totalSupply()+amount <= MAX_SUPPLY-175);
        require(_numberMinted(msg.sender)+amount <= MAX_FREE_MINT_PER_WALLET);
        _mint(msg.sender, amount);
    }

    function mint(uint256 amount) public payable{
        require(totalSupply()+amount <= MAX_SUPPLY);
        require(_numberMinted(msg.sender)+amount <= MAX_WALLET_MINT);
        require(COST*amount <= msg.value);
        _mint(msg.sender, amount);
    }

   
    function random(uint256 nonce) public view returns (bytes32){
        return keccak256(abi.encodePacked(nonce));
    }

 
    function render(uint256 _tokenId) internal view returns (string memory) {

		uint256 int_size = uint8(random(_tokenId)[0]);
		string memory size = _toString(int_size);

        return string.concat(
			'<svg xmlns="http://www.w3.org/2000/svg" id="x" preserveAspectRatio="xMinYMin meet" viewBox="0 0 1000 1000">',
			'<filter id="blur">',
			'<feGaussianBlur in="SourceGraphic" stdDeviation="0.5" />',
			'</filter>',
			'<rect fill="#000000" width="1000" height="1000" filter="url(#blur)"/>',
			'<circle cx="500" cy="500" r="',size,'" fill="#FFFFFF" filter="url(#blur)" />',
			'</svg>',
			''
        );
    }

    function tokenURI(uint256 _tokenId)
        public
        view
        override
        returns (string memory)
    {
        require(_exists(_tokenId), "token does not exists");

		uint256 int_size = uint8(random(_tokenId)[0]);
		string memory size = _toString(int_size);

        string memory svg = string(abi.encodePacked(render(_tokenId)));
        string memory json = Base64.encode(
            abi.encodePacked(
				'{"name": "Chain Light #',_toString(_tokenId),'"',
				',"description":"Chain Light store on the Ethereum Blockchain (Metadata & Image)"',
				',"attributes":[{"trait_type":"brightness", "value":"',size,'"}]',
                ',"image": "data:image/svg+xml;base64,', Base64.encode(bytes(svg)), '"}'
            )
        );

        return string(abi.encodePacked("data:application/json;base64,", json));
    }

    function contractURI() public view returns (string memory) {
        return 'ipfs://QmagTVcfMQyP7k822cSytgp7qAdTW5a626uwDjtsvpWv4X';
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"COST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_FREE_MINT_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_WALLET_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"_operatorApprovals","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"random","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"_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":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040518060400160405280600b81526020016a10da185a5b88131a59da1d60aa1b8152506040518060400160405280600281526020016110d360f21b815250816003908162000062919062000136565b50600462000071828262000136565b5060006001555050600080546001600160a01b0319163317905562000202565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620000bc57607f821691505b602082108103620000dd57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200013157600081815260208120601f850160051c810160208610156200010c5750805b601f850160051c820191505b818110156200012d5782815560010162000118565b5050505b505050565b81516001600160401b0381111562000152576200015262000091565b6200016a81620001638454620000a7565b84620000e3565b602080601f831160018114620001a25760008415620001895750858301515b600019600386901b1c1916600185901b1785556200012d565b600085815260208120601f198616915b82811015620001d357888601518255948401946001909101908401620001b2565b5085821015620001f25787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61187380620002126000396000f3fe6080604052600436106101665760003560e01c80637fe0d73d116100d1578063b863bd371161008a578063c87b56dd11610064578063c87b56dd146103df578063e8a3d485146103ff578063e985e9c514610414578063edc3bc3f1461043457600080fd5b8063b863bd3714610384578063b88d4fde146103a4578063bf8fbbd2146103c457600080fd5b80637fe0d73d146102f257806395d89b4114610307578063a0712d681461031c578063a22cb4651461032f578063a6eb27e21461034f578063b2bdfa7b1461036457600080fd5b806332cb6b0c1161012357806332cb6b0c1461025f5780633ccfd60b1461027557806342842e0e1461028a5780635b70ea9f146102aa5780636352211e146102b257806370a08231146102d257600080fd5b806301ffc9a71461016b57806306fdde03146101a0578063081812fc146101c2578063095ea7b3146101fa57806318160ddd1461021c57806323b872dd1461023f575b600080fd5b34801561017757600080fd5b5061018b610186366004611060565b61046f565b60405190151581526020015b60405180910390f35b3480156101ac57600080fd5b506101b56104c1565b60405161019791906110cd565b3480156101ce57600080fd5b506101e26101dd3660046110e0565b610553565b6040516001600160a01b039091168152602001610197565b34801561020657600080fd5b5061021a610215366004611115565b610597565b005b34801561022857600080fd5b50600254600154035b604051908152602001610197565b34801561024b57600080fd5b5061021a61025a36600461113f565b610637565b34801561026b57600080fd5b506102316104d281565b34801561028157600080fd5b5061021a6107cf565b34801561029657600080fd5b5061021a6102a536600461113f565b610847565b61021a610867565b3480156102be57600080fd5b506101e26102cd3660046110e0565b6108dc565b3480156102de57600080fd5b506102316102ed36600461117b565b6108e7565b3480156102fe57600080fd5b50610231606481565b34801561031357600080fd5b506101b5610936565b61021a61032a3660046110e0565b610945565b34801561033b57600080fd5b5061021a61034a366004611196565b6109b3565b34801561035b57600080fd5b50610231600181565b34801561037057600080fd5b506000546101e2906001600160a01b031681565b34801561039057600080fd5b5061023161039f3660046110e0565b610a1f565b3480156103b057600080fd5b5061021a6103bf3660046111e8565b610a51565b3480156103d057600080fd5b5061023166071afd498d000081565b3480156103eb57600080fd5b506101b56103fa3660046110e0565b610a9b565b34801561040b57600080fd5b506101b5610b9e565b34801561042057600080fd5b5061018b61042f3660046112c4565b610bbe565b34801561044057600080fd5b5061018b61044f3660046112c4565b600860209081526000928352604080842090915290825290205460ff1681565b60006301ffc9a760e01b6001600160e01b0319831614806104a057506380ac58cd60e01b6001600160e01b03198316145b806104bb5750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600380546104d0906112f7565b80601f01602080910402602001604051908101604052809291908181526020018280546104fc906112f7565b80156105495780601f1061051e57610100808354040283529160200191610549565b820191906000526020600020905b81548152906001019060200180831161052c57829003601f168201915b5050505050905090565b600061055e82610bec565b61057b576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b60006105a2826108dc565b9050336001600160a01b038216146105db576105be8133610bbe565b6105db576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061064282610c14565b9050836001600160a01b0316816001600160a01b0316146106755760405162a1148160e81b815260040160405180910390fd5b60008281526007602052604090208054338082146001600160a01b038816909114176106c2576106a58633610bbe565b6106c257604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166106e957604051633a954ecd60e21b815260040160405180910390fd5b80156106f457600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260056020526040812091909155600160e11b84169003610786576001840160008181526005602052604081205490036107845760015481146107845760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b6000546001600160a01b031633146108145760405162461bcd60e51b81526020600482015260036024820152624e6f2160e81b60448201526064015b60405180910390fd5b6040514790339082156108fc029083906000818181858888f19350505050158015610843573d6000803e3d6000fd5b5050565b61086283838360405180602001604052806000815250610a51565b505050565b600161087660af6104d2611347565b816108846002546001540390565b61088e919061135a565b111561089957600080fd5b3360009081526006602052604090819020546001916108c49184911c67ffffffffffffffff1661135a565b11156108cf57600080fd5b6108d93382610c82565b50565b60006104bb82610c14565b60006001600160a01b038216610910576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b6060600480546104d0906112f7565b6104d2816109566002546001540390565b610960919061135a565b111561096b57600080fd5b3360009081526006602052604090819020546064916109969184911c67ffffffffffffffff1661135a565b11156109a157600080fd5b346108c48266071afd498d000061136d565b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600081604051602001610a3491815260200190565b604051602081830303815290604052805190602001209050919050565b610a5c848484610637565b6001600160a01b0383163b15610a9557610a7884848484610d80565b610a95576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610aa682610bec565b610aea5760405162461bcd60e51b8152602060048201526015602482015274746f6b656e20646f6573206e6f742065786973747360581b604482015260640161080b565b6000610af583610a1f565b60001a90506000610b0582610e6b565b90506000610b1285610eaf565b604051602001610b2291906113a8565b60405160208183030381529060405290506000610b71610b4187610e6b565b84610b4b85610ef7565b604051602001610b5d939291906113c4565b604051602081830303815290604052610ef7565b905080604051602001610b849190611532565b604051602081830303815290604052945050505050919050565b60606040518060600160405280603581526020016117c960359139905090565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b6000600154821080156104bb575050600090815260056020526040902054600160e01b161590565b600081600154811015610c695760008181526005602052604081205490600160e01b82169003610c67575b80600003610c60575060001901600081815260056020526040902054610c3f565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b6001546000829003610ca75760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526006602090815260408083208054680100000000000000018802019055848352600590915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114610d5657808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101610d1e565b5081600003610d7757604051622e076360e81b815260040160405180910390fd5b60015550505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290610db5903390899088908890600401611577565b6020604051808303816000875af1925050508015610df0575060408051601f3d908101601f19168201909252610ded918101906115aa565b60015b610e4e573d808015610e1e576040519150601f19603f3d011682016040523d82523d6000602084013e610e23565b606091505b508051600003610e46576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a900480610e855750819003601f19909101908152919050565b60606000610ebc83610a1f565b60001a90506000610ecc82610e6b565b905080604051602001610edf91906115c7565b60405160208183030381529060405292505050919050565b60608151600003610f1657505060408051602081019091526000815290565b60006040518060600160405280604081526020016117fe6040913990506000600384516002610f45919061135a565b610f4f91906117a6565b610f5a90600461136d565b67ffffffffffffffff811115610f7257610f726111d2565b6040519080825280601f01601f191660200182016040528015610f9c576020820181803683370190505b509050600182016020820185865187015b80821015611008576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250610fad565b505060038651066001811461102457600281146110375761103f565b603d6001830353603d600283035361103f565b603d60018303535b509195945050505050565b6001600160e01b0319811681146108d957600080fd5b60006020828403121561107257600080fd5b8135610c608161104a565b60005b83811015611098578181015183820152602001611080565b50506000910152565b600081518084526110b981602086016020860161107d565b601f01601f19169290920160200192915050565b602081526000610c6060208301846110a1565b6000602082840312156110f257600080fd5b5035919050565b80356001600160a01b038116811461111057600080fd5b919050565b6000806040838503121561112857600080fd5b611131836110f9565b946020939093013593505050565b60008060006060848603121561115457600080fd5b61115d846110f9565b925061116b602085016110f9565b9150604084013590509250925092565b60006020828403121561118d57600080fd5b610c60826110f9565b600080604083850312156111a957600080fd5b6111b2836110f9565b9150602083013580151581146111c757600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156111fe57600080fd5b611207856110f9565b9350611215602086016110f9565b925060408501359150606085013567ffffffffffffffff8082111561123957600080fd5b818701915087601f83011261124d57600080fd5b81358181111561125f5761125f6111d2565b604051601f8201601f19908116603f01168101908382118183101715611287576112876111d2565b816040528281528a60208487010111156112a057600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156112d757600080fd5b6112e0836110f9565b91506112ee602084016110f9565b90509250929050565b600181811c9082168061130b57607f821691505b60208210810361132b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156104bb576104bb611331565b808201808211156104bb576104bb611331565b600081600019048311821515161561138757611387611331565b500290565b6000815161139e81856020860161107d565b9290920192915050565b600082516113ba81846020870161107d565b9190910192915050565b7f7b226e616d65223a2022436861696e204c6967687420230000000000000000008152600084516113fc81601785016020890161107d565b601160f91b6017918401918201527f2c226465736372697074696f6e223a22436861696e204c696768742073746f7260188201527f65206f6e2074686520457468657265756d20426c6f636b636861696e20284d6560388201526f3a30b230ba3090131024b6b0b3b2949160811b60588201527f2c2261747472696275746573223a5b7b2274726169745f74797065223a22627260688201527334b3b43a3732b9b9911610113b30b63ab2911d1160611b608882015284516114c581609c84016020890161107d565b62227d5d60e81b9101609c8101919091527f2c22696d616765223a2022646174613a696d6167652f7376672b786d6c3b6261609f820152641cd94d8d0b60da1b60bf82015261152861151a60c483018661138c565b61227d60f01b815260020190565b9695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161156a81601d85016020870161107d565b91909101601d0192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611528908301846110a1565b6000602082840312156115bc57600080fd5b8151610c608161104a565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f737667222069643d22782220707265736572766541737065637452617460208201527f696f3d22784d696e594d696e206d656574222076696577426f783d223020302060408201526a189818181018981818111f60a91b6060820152711e3334b63a32b91034b21e9131363ab9111f60711b606b8201527f3c6665476175737369616e426c757220696e3d22536f75726365477261706869607d8201527f632220737464446576696174696f6e3d22302e3522202f3e0000000000000000609d820152681e17b334b63a32b91f60b91b60b58201527f3c726563742066696c6c3d2223303030303030222077696474683d223130303060be8201527f22206865696768743d2231303030222066696c7465723d2275726c2823626c7560de82015264391491179f60d91b60fe8201527f3c636972636c652063783d22353030222063793d223530302220723d22000000610103820152600061179061175761012084018561138c565b7f222066696c6c3d2223464646464646222066696c7465723d2275726c2823626c8152663ab9149110179f60c91b602082015260270190565b651e17b9bb339f60d11b81526006019392505050565b6000826117c357634e487b7160e01b600052601260045260246000fd5b50049056fe697066733a2f2f516d6167545663664d517950376b38323263537974677037714164545735613632367577446a74737670577634584142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220a0e3f467767046c9a5c780363386f3308b82d81b5b0989abf6852ae8925b81a364736f6c63430008100033

Deployed Bytecode

0x6080604052600436106101665760003560e01c80637fe0d73d116100d1578063b863bd371161008a578063c87b56dd11610064578063c87b56dd146103df578063e8a3d485146103ff578063e985e9c514610414578063edc3bc3f1461043457600080fd5b8063b863bd3714610384578063b88d4fde146103a4578063bf8fbbd2146103c457600080fd5b80637fe0d73d146102f257806395d89b4114610307578063a0712d681461031c578063a22cb4651461032f578063a6eb27e21461034f578063b2bdfa7b1461036457600080fd5b806332cb6b0c1161012357806332cb6b0c1461025f5780633ccfd60b1461027557806342842e0e1461028a5780635b70ea9f146102aa5780636352211e146102b257806370a08231146102d257600080fd5b806301ffc9a71461016b57806306fdde03146101a0578063081812fc146101c2578063095ea7b3146101fa57806318160ddd1461021c57806323b872dd1461023f575b600080fd5b34801561017757600080fd5b5061018b610186366004611060565b61046f565b60405190151581526020015b60405180910390f35b3480156101ac57600080fd5b506101b56104c1565b60405161019791906110cd565b3480156101ce57600080fd5b506101e26101dd3660046110e0565b610553565b6040516001600160a01b039091168152602001610197565b34801561020657600080fd5b5061021a610215366004611115565b610597565b005b34801561022857600080fd5b50600254600154035b604051908152602001610197565b34801561024b57600080fd5b5061021a61025a36600461113f565b610637565b34801561026b57600080fd5b506102316104d281565b34801561028157600080fd5b5061021a6107cf565b34801561029657600080fd5b5061021a6102a536600461113f565b610847565b61021a610867565b3480156102be57600080fd5b506101e26102cd3660046110e0565b6108dc565b3480156102de57600080fd5b506102316102ed36600461117b565b6108e7565b3480156102fe57600080fd5b50610231606481565b34801561031357600080fd5b506101b5610936565b61021a61032a3660046110e0565b610945565b34801561033b57600080fd5b5061021a61034a366004611196565b6109b3565b34801561035b57600080fd5b50610231600181565b34801561037057600080fd5b506000546101e2906001600160a01b031681565b34801561039057600080fd5b5061023161039f3660046110e0565b610a1f565b3480156103b057600080fd5b5061021a6103bf3660046111e8565b610a51565b3480156103d057600080fd5b5061023166071afd498d000081565b3480156103eb57600080fd5b506101b56103fa3660046110e0565b610a9b565b34801561040b57600080fd5b506101b5610b9e565b34801561042057600080fd5b5061018b61042f3660046112c4565b610bbe565b34801561044057600080fd5b5061018b61044f3660046112c4565b600860209081526000928352604080842090915290825290205460ff1681565b60006301ffc9a760e01b6001600160e01b0319831614806104a057506380ac58cd60e01b6001600160e01b03198316145b806104bb5750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600380546104d0906112f7565b80601f01602080910402602001604051908101604052809291908181526020018280546104fc906112f7565b80156105495780601f1061051e57610100808354040283529160200191610549565b820191906000526020600020905b81548152906001019060200180831161052c57829003601f168201915b5050505050905090565b600061055e82610bec565b61057b576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b60006105a2826108dc565b9050336001600160a01b038216146105db576105be8133610bbe565b6105db576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061064282610c14565b9050836001600160a01b0316816001600160a01b0316146106755760405162a1148160e81b815260040160405180910390fd5b60008281526007602052604090208054338082146001600160a01b038816909114176106c2576106a58633610bbe565b6106c257604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166106e957604051633a954ecd60e21b815260040160405180910390fd5b80156106f457600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260056020526040812091909155600160e11b84169003610786576001840160008181526005602052604081205490036107845760015481146107845760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b6000546001600160a01b031633146108145760405162461bcd60e51b81526020600482015260036024820152624e6f2160e81b60448201526064015b60405180910390fd5b6040514790339082156108fc029083906000818181858888f19350505050158015610843573d6000803e3d6000fd5b5050565b61086283838360405180602001604052806000815250610a51565b505050565b600161087660af6104d2611347565b816108846002546001540390565b61088e919061135a565b111561089957600080fd5b3360009081526006602052604090819020546001916108c49184911c67ffffffffffffffff1661135a565b11156108cf57600080fd5b6108d93382610c82565b50565b60006104bb82610c14565b60006001600160a01b038216610910576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b6060600480546104d0906112f7565b6104d2816109566002546001540390565b610960919061135a565b111561096b57600080fd5b3360009081526006602052604090819020546064916109969184911c67ffffffffffffffff1661135a565b11156109a157600080fd5b346108c48266071afd498d000061136d565b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600081604051602001610a3491815260200190565b604051602081830303815290604052805190602001209050919050565b610a5c848484610637565b6001600160a01b0383163b15610a9557610a7884848484610d80565b610a95576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610aa682610bec565b610aea5760405162461bcd60e51b8152602060048201526015602482015274746f6b656e20646f6573206e6f742065786973747360581b604482015260640161080b565b6000610af583610a1f565b60001a90506000610b0582610e6b565b90506000610b1285610eaf565b604051602001610b2291906113a8565b60405160208183030381529060405290506000610b71610b4187610e6b565b84610b4b85610ef7565b604051602001610b5d939291906113c4565b604051602081830303815290604052610ef7565b905080604051602001610b849190611532565b604051602081830303815290604052945050505050919050565b60606040518060600160405280603581526020016117c960359139905090565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b6000600154821080156104bb575050600090815260056020526040902054600160e01b161590565b600081600154811015610c695760008181526005602052604081205490600160e01b82169003610c67575b80600003610c60575060001901600081815260056020526040902054610c3f565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b6001546000829003610ca75760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526006602090815260408083208054680100000000000000018802019055848352600590915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114610d5657808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101610d1e565b5081600003610d7757604051622e076360e81b815260040160405180910390fd5b60015550505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290610db5903390899088908890600401611577565b6020604051808303816000875af1925050508015610df0575060408051601f3d908101601f19168201909252610ded918101906115aa565b60015b610e4e573d808015610e1e576040519150601f19603f3d011682016040523d82523d6000602084013e610e23565b606091505b508051600003610e46576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a900480610e855750819003601f19909101908152919050565b60606000610ebc83610a1f565b60001a90506000610ecc82610e6b565b905080604051602001610edf91906115c7565b60405160208183030381529060405292505050919050565b60608151600003610f1657505060408051602081019091526000815290565b60006040518060600160405280604081526020016117fe6040913990506000600384516002610f45919061135a565b610f4f91906117a6565b610f5a90600461136d565b67ffffffffffffffff811115610f7257610f726111d2565b6040519080825280601f01601f191660200182016040528015610f9c576020820181803683370190505b509050600182016020820185865187015b80821015611008576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250610fad565b505060038651066001811461102457600281146110375761103f565b603d6001830353603d600283035361103f565b603d60018303535b509195945050505050565b6001600160e01b0319811681146108d957600080fd5b60006020828403121561107257600080fd5b8135610c608161104a565b60005b83811015611098578181015183820152602001611080565b50506000910152565b600081518084526110b981602086016020860161107d565b601f01601f19169290920160200192915050565b602081526000610c6060208301846110a1565b6000602082840312156110f257600080fd5b5035919050565b80356001600160a01b038116811461111057600080fd5b919050565b6000806040838503121561112857600080fd5b611131836110f9565b946020939093013593505050565b60008060006060848603121561115457600080fd5b61115d846110f9565b925061116b602085016110f9565b9150604084013590509250925092565b60006020828403121561118d57600080fd5b610c60826110f9565b600080604083850312156111a957600080fd5b6111b2836110f9565b9150602083013580151581146111c757600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156111fe57600080fd5b611207856110f9565b9350611215602086016110f9565b925060408501359150606085013567ffffffffffffffff8082111561123957600080fd5b818701915087601f83011261124d57600080fd5b81358181111561125f5761125f6111d2565b604051601f8201601f19908116603f01168101908382118183101715611287576112876111d2565b816040528281528a60208487010111156112a057600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156112d757600080fd5b6112e0836110f9565b91506112ee602084016110f9565b90509250929050565b600181811c9082168061130b57607f821691505b60208210810361132b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156104bb576104bb611331565b808201808211156104bb576104bb611331565b600081600019048311821515161561138757611387611331565b500290565b6000815161139e81856020860161107d565b9290920192915050565b600082516113ba81846020870161107d565b9190910192915050565b7f7b226e616d65223a2022436861696e204c6967687420230000000000000000008152600084516113fc81601785016020890161107d565b601160f91b6017918401918201527f2c226465736372697074696f6e223a22436861696e204c696768742073746f7260188201527f65206f6e2074686520457468657265756d20426c6f636b636861696e20284d6560388201526f3a30b230ba3090131024b6b0b3b2949160811b60588201527f2c2261747472696275746573223a5b7b2274726169745f74797065223a22627260688201527334b3b43a3732b9b9911610113b30b63ab2911d1160611b608882015284516114c581609c84016020890161107d565b62227d5d60e81b9101609c8101919091527f2c22696d616765223a2022646174613a696d6167652f7376672b786d6c3b6261609f820152641cd94d8d0b60da1b60bf82015261152861151a60c483018661138c565b61227d60f01b815260020190565b9695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161156a81601d85016020870161107d565b91909101601d0192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611528908301846110a1565b6000602082840312156115bc57600080fd5b8151610c608161104a565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f737667222069643d22782220707265736572766541737065637452617460208201527f696f3d22784d696e594d696e206d656574222076696577426f783d223020302060408201526a189818181018981818111f60a91b6060820152711e3334b63a32b91034b21e9131363ab9111f60711b606b8201527f3c6665476175737369616e426c757220696e3d22536f75726365477261706869607d8201527f632220737464446576696174696f6e3d22302e3522202f3e0000000000000000609d820152681e17b334b63a32b91f60b91b60b58201527f3c726563742066696c6c3d2223303030303030222077696474683d223130303060be8201527f22206865696768743d2231303030222066696c7465723d2275726c2823626c7560de82015264391491179f60d91b60fe8201527f3c636972636c652063783d22353030222063793d223530302220723d22000000610103820152600061179061175761012084018561138c565b7f222066696c6c3d2223464646464646222066696c7465723d2275726c2823626c8152663ab9149110179f60c91b602082015260270190565b651e17b9bb339f60d11b81526006019392505050565b6000826117c357634e487b7160e01b600052601260045260246000fd5b50049056fe697066733a2f2f516d6167545663664d517950376b38323263537974677037714164545735613632367577446a74737670577634584142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220a0e3f467767046c9a5c780363386f3308b82d81b5b0989abf6852ae8925b81a364736f6c63430008100033

Deployed Bytecode Sourcemap

54651:2596:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18505:639;;;;;;;;;;-1:-1:-1;18505:639:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;18505:639:0;;;;;;;;19407:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;25890:218::-;;;;;;;;;;-1:-1:-1;25890:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1719:32:1;;;1701:51;;1689:2;1674:18;25890:218:0;1555:203:1;25331:400:0;;;;;;;;;;-1:-1:-1;25331:400:0;;;;;:::i;:::-;;:::i;:::-;;15158:323;;;;;;;;;;-1:-1:-1;15432:12:0;;15416:13;;:28;15158:323;;;2346:25:1;;;2334:2;2319:18;15158:323:0;2200:177:1;29529:2819:0;;;;;;;;;;-1:-1:-1;29529:2819:0;;;;;:::i;:::-;;:::i;54801:41::-;;;;;;;;;;;;54838:4;54801:41;;9885:145;;;;;;;;;;;;;:::i;32444:185::-;;;;;;;;;;-1:-1:-1;32444:185:0;;;;;:::i;:::-;;:::i;54951:245::-;;;:::i;20800:152::-;;;;;;;;;;-1:-1:-1;20800:152:0;;;;;:::i;:::-;;:::i;16342:233::-;;;;;;;;;;-1:-1:-1;16342:233:0;;;;;:::i;:::-;;:::i;54690:45::-;;;;;;;;;;;;54732:3;54690:45;;19583:104;;;;;;;;;;;;;:::i;55204:257::-;;;;;;:::i;:::-;;:::i;26448:234::-;;;;;;;;;;-1:-1:-1;26448:234:0;;;;;:::i;:::-;;:::i;54742:52::-;;;;;;;;;;;;54793:1;54742:52;;9763:21;;;;;;;;;;-1:-1:-1;9763:21:0;;;;-1:-1:-1;;;;;9763:21:0;;;55474:120;;;;;;;;;;-1:-1:-1;55474:120:0;;;;;:::i;:::-;;:::i;33227:399::-;;;;;;;;;;-1:-1:-1;33227:399:0;;;;;:::i;:::-;;:::i;54849:42::-;;;;;;;;;;;;54880:11;54849:42;;56239:857;;;;;;;;;;-1:-1:-1;56239:857:0;;;;;:::i;:::-;;:::i;57104:140::-;;;;;;;;;;;;;:::i;26839:164::-;;;;;;;;;;-1:-1:-1;26839:164:0;;;;;:::i;:::-;;:::i;13890:70::-;;;;;;;;;;-1:-1:-1;13890:70:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;18505:639;18590:4;-1:-1:-1;;;;;;;;;18914:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;18991:25:0;;;18914:102;:179;;;-1:-1:-1;;;;;;;;;;19068:25:0;;;18914:179;18894:199;18505:639;-1:-1:-1;;18505:639:0:o;19407:100::-;19461:13;19494:5;19487:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19407:100;:::o;25890:218::-;25966:7;25991:16;25999:7;25991;:16::i;:::-;25986:64;;26016:34;;-1:-1:-1;;;26016:34:0;;;;;;;;;;;25986:64;-1:-1:-1;26070:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;26070:30:0;;25890:218::o;25331:400::-;25412:13;25428:16;25436:7;25428;:16::i;:::-;25412:32;-1:-1:-1;49388:10:0;-1:-1:-1;;;;;25461:28:0;;;25457:175;;25509:44;25526:5;49388:10;26839:164;:::i;25509:44::-;25504:128;;25581:35;;-1:-1:-1;;;25581:35:0;;;;;;;;;;;25504:128;25644:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;25644:35:0;-1:-1:-1;;;;;25644:35:0;;;;;;;;;25695:28;;25644:24;;25695:28;;;;;;;25401:330;25331:400;;:::o;29529:2819::-;29665:27;29695;29714:7;29695:18;:27::i;:::-;29665:57;;29780:4;-1:-1:-1;;;;;29739:45:0;29755:19;-1:-1:-1;;;;;29739:45:0;;29735:86;;29793:28;;-1:-1:-1;;;29793:28:0;;;;;;;;;;;29735:86;29835:27;28637:24;;;:15;:24;;;;;28865:26;;49388:10;28262:30;;;-1:-1:-1;;;;;27955:28:0;;28240:20;;;28237:56;30021:180;;30114:43;30131:4;49388:10;26839:164;:::i;30114:43::-;30109:92;;30166:35;;-1:-1:-1;;;30166:35:0;;;;;;;;;;;30109:92;-1:-1:-1;;;;;30218:16:0;;30214:52;;30243:23;;-1:-1:-1;;;30243:23:0;;;;;;;;;;;30214:52;30415:15;30412:160;;;30555:1;30534:19;30527:30;30412:160;-1:-1:-1;;;;;30952:24:0;;;;;;;:18;:24;;;;;;30950:26;;-1:-1:-1;;30950:26:0;;;31021:22;;;;;;;;;31019:24;;-1:-1:-1;31019:24:0;;;24189:11;24164:23;24160:41;24147:63;-1:-1:-1;;;24147:63:0;31314:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;31609:47:0;;:52;;31605:627;;31714:1;31704:11;;31682:19;31837:30;;;:17;:30;;;;;;:35;;31833:384;;31975:13;;31960:11;:28;31956:242;;32122:30;;;;:17;:30;;;;;:52;;;31956:242;31663:569;31605:627;32279:7;32275:2;-1:-1:-1;;;;;32260:27:0;32269:4;-1:-1:-1;;;;;32260:27:0;;;;;;;;;;;29652:2696;;;29529:2819;;;:::o;9885:145::-;9832:6;;-1:-1:-1;;;;;9832:6:0;9840:10;9832:18;9824:34;;;;-1:-1:-1;;;9824:34:0;;5567:2:1;9824:34:0;;;5549:21:1;5606:1;5586:18;;;5579:29;-1:-1:-1;;;5624:18:1;;;5617:33;5667:18;;9824:34:0;;;;;;;;;9985:37:::1;::::0;9953:21:::1;::::0;9993:10:::1;::::0;9985:37;::::1;;;::::0;9953:21;;9935:15:::1;9985:37:::0;9935:15;9985:37;9953:21;9993:10;9985:37;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;9924:106;9885:145::o:0;32444:185::-;32582:39;32599:4;32605:2;32609:7;32582:39;;;;;;;;;;;;:16;:39::i;:::-;32444:185;;;:::o;54951:245::-;55013:1;55057:14;55068:3;54838:4;55057:14;:::i;:::-;55047:6;55033:13;15432:12;;15416:13;;:28;;15158:323;55033:13;:20;;;;:::i;:::-;:38;;55025:47;;;;;;55105:10;16718:7;16746:25;;;:18;:25;;10616:2;16746:25;;;;;54793:1;;55091:32;;55117:6;;16746:50;10478:13;16745:82;55091:32;:::i;:::-;:60;;55083:69;;;;;;55163:25;55169:10;55181:6;55163:5;:25::i;:::-;54985:211;54951:245::o;20800:152::-;20872:7;20915:27;20934:7;20915:18;:27::i;16342:233::-;16414:7;-1:-1:-1;;;;;16438:19:0;;16434:60;;16466:28;;-1:-1:-1;;;16466:28:0;;;;;;;;;;;16434:60;-1:-1:-1;;;;;;16512:25:0;;;;;:18;:25;;;;;;10478:13;16512:55;;16342:233::o;19583:104::-;19639:13;19672:7;19665:14;;;;;:::i;55204:257::-;54838:4;55281:6;55267:13;15432:12;;15416:13;;:28;;15158:323;55267:13;:20;;;;:::i;:::-;:34;;55259:43;;;;;;55335:10;16718:7;16746:25;;;:18;:25;;10616:2;16746:25;;;;;54732:3;;55321:32;;55347:6;;16746:50;10478:13;16745:82;55321:32;:::i;:::-;:51;;55313:60;;;;;;55407:9;55392:11;55397:6;54880:11;55392;:::i;26448:234::-;49388:10;26543:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;26543:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;26543:60:0;;;;;;;;;;26619:55;;540:41:1;;;26543:49:0;;49388:10;26619:55;;513:18:1;26619:55:0;;;;;;;26448:234;;:::o;55474:120::-;55526:7;55579:5;55562:23;;;;;;6393:19:1;;6437:2;6428:12;;6264:182;55562:23:0;;;;;;;;;;;;;55552:34;;;;;;55545:41;;55474:120;;;:::o;33227:399::-;33394:31;33407:4;33413:2;33417:7;33394:12;:31::i;:::-;-1:-1:-1;;;;;33440:14:0;;;:19;33436:183;;33479:56;33510:4;33516:2;33520:7;33529:5;33479:30;:56::i;:::-;33474:145;;33563:40;;-1:-1:-1;;;33563:40:0;;;;;;;;;;;33474:145;33227:399;;;;:::o;56239:857::-;56341:13;56380:17;56388:8;56380:7;:17::i;:::-;56372:51;;;;-1:-1:-1;;;56372:51:0;;6653:2:1;56372:51:0;;;6635:21:1;6692:2;6672:18;;;6665:30;-1:-1:-1;;;6711:18:1;;;6704:51;6772:18;;56372:51:0;6451:345:1;56372:51:0;56430:16;56455;56462:8;56455:6;:16::i;:::-;56472:1;56455:19;;-1:-1:-1;56480:18:0;56501:19;56455;56501:9;:19::i;:::-;56480:40;;56533:17;56577:16;56584:8;56577:6;:16::i;:::-;56560:34;;;;;;;;:::i;:::-;;;;;;;;;;;;;56533:62;;56606:18;56627:378;56704:19;56714:8;56704:9;:19::i;:::-;56878:4;56948:25;56968:3;56948:13;:25::i;:::-;56655:339;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;56627:13;:378::i;:::-;56606:399;;57082:4;57032:55;;;;;;;;:::i;:::-;;;;;;;;;;;;;57018:70;;;;;;56239:857;;;:::o;57104:140::-;57148:13;57174:62;;;;;;;;;;;;;;;;;;;57104:140;:::o;26839:164::-;-1:-1:-1;;;;;26960:25:0;;;26936:4;26960:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;26839:164::o;27261:282::-;27326:4;27416:13;;27406:7;:23;27363:153;;;;-1:-1:-1;;27467:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;27467:44:0;:49;;27261:282::o;21955:1275::-;22022:7;22057;22159:13;;22152:4;:20;22148:1015;;;22197:14;22214:23;;;:17;:23;;;;;;;-1:-1:-1;;;22303:24:0;;:29;;22299:845;;22968:113;22975:6;22985:1;22975:11;22968:113;;-1:-1:-1;;;23046:6:0;23028:25;;;;:17;:25;;;;;;22968:113;;;23114:6;21955:1275;-1:-1:-1;;;21955:1275:0:o;22299:845::-;22174:989;22148:1015;23191:31;;-1:-1:-1;;;23191:31:0;;;;;;;;;;;36888:2720;36984:13;;36961:20;37012:13;;;37008:44;;37034:18;;-1:-1:-1;;;37034:18:0;;;;;;;;;;;37008:44;-1:-1:-1;;;;;37540:22:0;;;;;;:18;:22;;;;10616:2;37540:22;;;:71;;37578:32;37566:45;;37540:71;;;37854:31;;;:17;:31;;;;;-1:-1:-1;24620:15:0;;24594:24;24590:46;24189:11;24164:23;24160:41;24157:52;24147:63;;37854:173;;38089:23;;;;37854:31;;37540:22;;38854:25;37540:22;;38707:335;39122:1;39108:12;39104:20;39062:346;39163:3;39154:7;39151:16;39062:346;;39381:7;39371:8;39368:1;39341:25;39338:1;39335;39330:59;39216:1;39203:15;39062:346;;;39066:77;39441:8;39453:1;39441:13;39437:45;;39463:19;;-1:-1:-1;;;39463:19:0;;;;;;;;;;;39437:45;39499:13;:19;-1:-1:-1;32444:185:0;;;:::o;35710:716::-;35894:88;;-1:-1:-1;;;35894:88:0;;35873:4;;-1:-1:-1;;;;;35894:45:0;;;;;:88;;49388:10;;35961:4;;35967:7;;35976:5;;35894:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;35894:88:0;;;;;;;;-1:-1:-1;;35894:88:0;;;;;;;;;;;;:::i;:::-;;;35890:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36177:6;:13;36194:1;36177:18;36173:235;;36223:40;;-1:-1:-1;;;36223:40:0;;;;;;;;;;;36173:235;36366:6;36360:13;36351:6;36347:2;36343:15;36336:38;35890:529;-1:-1:-1;;;;;;36053:64:0;-1:-1:-1;;;36053:64:0;;-1:-1:-1;35710:716:0;;;;;;:::o;49508:1745::-;49573:17;50007:4;50000;49994:11;49990:22;50099:1;50093:4;50086:15;50174:4;50171:1;50167:12;50160:19;;;50256:1;50251:3;50244:14;50360:3;50599:5;50581:428;50647:1;50642:3;50638:11;50631:18;;50818:2;50812:4;50808:13;50804:2;50800:22;50795:3;50787:36;50912:2;50902:13;;50969:25;50581:428;50969:25;-1:-1:-1;51039:13:0;;;-1:-1:-1;;51154:14:0;;;51216:19;;;51154:14;49508:1745;-1:-1:-1;49508:1745:0:o;55605:626::-;55662:13;55684:16;55709;55716:8;55709:6;:16::i;:::-;55726:1;55709:19;;-1:-1:-1;55734:18:0;55755:19;55709;55755:9;:19::i;:::-;55734:40;;56144:4;55794:429;;;;;;;;:::i;:::-;;;;;;;;;;;;;55787:436;;;;55605:626;;;:::o;51545:3097::-;51603:13;51840:4;:11;51855:1;51840:16;51836:31;;-1:-1:-1;;51858:9:0;;;;;;;;;-1:-1:-1;51858:9:0;;;51545:3097::o;51836:31::-;51920:19;51942:6;;;;;;;;;;;;;;;;;51920:28;;52359:20;52418:1;52399:4;:11;52413:1;52399:15;;;;:::i;:::-;52398:21;;;;:::i;:::-;52393:27;;:1;:27;:::i;:::-;52382:39;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;52382:39:0;;52359:62;;52601:1;52594:5;52590:13;52705:2;52697:6;52693:15;52816:4;52868;52862:11;52856:4;52852:22;52778:1432;52902:6;52893:7;52890:19;52778:1432;;;53008:1;52999:7;52995:15;52984:26;;53047:7;53041:14;53700:4;53692:5;53688:2;53684:14;53680:25;53670:8;53666:40;53660:47;53649:9;53641:67;53754:1;53743:9;53739:17;53726:30;;53846:4;53838:5;53834:2;53830:14;53826:25;53816:8;53812:40;53806:47;53795:9;53787:67;53900:1;53889:9;53885:17;53872:30;;53991:4;53983:5;53980:1;53976:13;53972:24;53962:8;53958:39;53952:46;53941:9;53933:66;54045:1;54034:9;54030:17;54017:30;;54128:4;54121:5;54117:16;54107:8;54103:31;54097:38;54086:9;54078:58;;54182:1;54171:9;54167:17;54154:30;;52778:1432;;;52782:107;;54372:1;54365:4;54359:11;54355:19;54393:1;54388:123;;;;54530:1;54525:73;;;;54348:250;;54388:123;54441:4;54437:1;54426:9;54422:17;54414:32;54491:4;54487:1;54476:9;54472:17;54464:32;54388:123;;54525:73;54578:4;54574:1;54563:9;54559:17;54551:32;54348:250;-1:-1:-1;54628:6:0;;51545:3097;-1:-1:-1;;;;;51545:3097:0:o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:1;816:16;;809:27;592:250::o;847:282::-;900:3;938:5;932:12;965:6;960:3;953:19;981:76;1050:6;1043:4;1038:3;1034:14;1027:4;1020:5;1016:16;981:76;:::i;:::-;1111:2;1090:15;-1:-1:-1;;1086:29:1;1077:39;;;;1118:4;1073:50;;847:282;-1:-1:-1;;847:282:1:o;1134:231::-;1283:2;1272:9;1265:21;1246:4;1303:56;1355:2;1344:9;1340:18;1332:6;1303:56;:::i;1370:180::-;1429:6;1482:2;1470:9;1461:7;1457:23;1453:32;1450:52;;;1498:1;1495;1488:12;1450:52;-1:-1:-1;1521:23:1;;1370:180;-1:-1:-1;1370:180:1:o;1763:173::-;1831:20;;-1:-1:-1;;;;;1880:31:1;;1870:42;;1860:70;;1926:1;1923;1916:12;1860:70;1763:173;;;:::o;1941:254::-;2009:6;2017;2070:2;2058:9;2049:7;2045:23;2041:32;2038:52;;;2086:1;2083;2076:12;2038:52;2109:29;2128:9;2109:29;:::i;:::-;2099:39;2185:2;2170:18;;;;2157:32;;-1:-1:-1;;;1941:254:1:o;2382:328::-;2459:6;2467;2475;2528:2;2516:9;2507:7;2503:23;2499:32;2496:52;;;2544:1;2541;2534:12;2496:52;2567:29;2586:9;2567:29;:::i;:::-;2557:39;;2615:38;2649:2;2638:9;2634:18;2615:38;:::i;:::-;2605:48;;2700:2;2689:9;2685:18;2672:32;2662:42;;2382:328;;;;;:::o;2715:186::-;2774:6;2827:2;2815:9;2806:7;2802:23;2798:32;2795:52;;;2843:1;2840;2833:12;2795:52;2866:29;2885:9;2866:29;:::i;2906:347::-;2971:6;2979;3032:2;3020:9;3011:7;3007:23;3003:32;3000:52;;;3048:1;3045;3038:12;3000:52;3071:29;3090:9;3071:29;:::i;:::-;3061:39;;3150:2;3139:9;3135:18;3122:32;3197:5;3190:13;3183:21;3176:5;3173:32;3163:60;;3219:1;3216;3209:12;3163:60;3242:5;3232:15;;;2906:347;;;;;:::o;3440:127::-;3501:10;3496:3;3492:20;3489:1;3482:31;3532:4;3529:1;3522:15;3556:4;3553:1;3546:15;3572:1138;3667:6;3675;3683;3691;3744:3;3732:9;3723:7;3719:23;3715:33;3712:53;;;3761:1;3758;3751:12;3712:53;3784:29;3803:9;3784:29;:::i;:::-;3774:39;;3832:38;3866:2;3855:9;3851:18;3832:38;:::i;:::-;3822:48;;3917:2;3906:9;3902:18;3889:32;3879:42;;3972:2;3961:9;3957:18;3944:32;3995:18;4036:2;4028:6;4025:14;4022:34;;;4052:1;4049;4042:12;4022:34;4090:6;4079:9;4075:22;4065:32;;4135:7;4128:4;4124:2;4120:13;4116:27;4106:55;;4157:1;4154;4147:12;4106:55;4193:2;4180:16;4215:2;4211;4208:10;4205:36;;;4221:18;;:::i;:::-;4296:2;4290:9;4264:2;4350:13;;-1:-1:-1;;4346:22:1;;;4370:2;4342:31;4338:40;4326:53;;;4394:18;;;4414:22;;;4391:46;4388:72;;;4440:18;;:::i;:::-;4480:10;4476:2;4469:22;4515:2;4507:6;4500:18;4555:7;4550:2;4545;4541;4537:11;4533:20;4530:33;4527:53;;;4576:1;4573;4566:12;4527:53;4632:2;4627;4623;4619:11;4614:2;4606:6;4602:15;4589:46;4677:1;4672:2;4667;4659:6;4655:15;4651:24;4644:35;4698:6;4688:16;;;;;;;3572:1138;;;;;;;:::o;4715:260::-;4783:6;4791;4844:2;4832:9;4823:7;4819:23;4815:32;4812:52;;;4860:1;4857;4850:12;4812:52;4883:29;4902:9;4883:29;:::i;:::-;4873:39;;4931:38;4965:2;4954:9;4950:18;4931:38;:::i;:::-;4921:48;;4715:260;;;;;:::o;4980:380::-;5059:1;5055:12;;;;5102;;;5123:61;;5177:4;5169:6;5165:17;5155:27;;5123:61;5230:2;5222:6;5219:14;5199:18;5196:38;5193:161;;5276:10;5271:3;5267:20;5264:1;5257:31;5311:4;5308:1;5301:15;5339:4;5336:1;5329:15;5193:161;;4980:380;;;:::o;5696:127::-;5757:10;5752:3;5748:20;5745:1;5738:31;5788:4;5785:1;5778:15;5812:4;5809:1;5802:15;5828:128;5895:9;;;5916:11;;;5913:37;;;5930:18;;:::i;5961:125::-;6026:9;;;6047:10;;;6044:36;;;6060:18;;:::i;6091:168::-;6131:7;6197:1;6193;6189:6;6185:14;6182:1;6179:21;6174:1;6167:9;6160:17;6156:45;6153:71;;;6204:18;;:::i;:::-;-1:-1:-1;6244:9:1;;6091:168::o;6933:198::-;6975:3;7013:5;7007:12;7028:65;7086:6;7081:3;7074:4;7067:5;7063:16;7028:65;:::i;:::-;7109:16;;;;;6933:198;-1:-1:-1;;6933:198:1:o;7136:289::-;7267:3;7305:6;7299:13;7321:66;7380:6;7375:3;7368:4;7360:6;7356:17;7321:66;:::i;:::-;7403:16;;;;;7136:289;-1:-1:-1;;7136:289:1:o;7781:1972::-;8745:66;8740:3;8733:79;8715:3;8841:6;8835:13;8857:75;8925:6;8920:2;8915:3;8911:12;8904:4;8896:6;8892:17;8857:75;:::i;:::-;-1:-1:-1;;;8991:2:1;8951:16;;;8983:11;;;8976:33;9038:66;9033:2;9025:11;;9018:87;9134:34;9129:2;9121:11;;9114:55;-1:-1:-1;;;9193:2:1;9185:11;;9178:65;9273:66;9267:3;9259:12;;9252:88;-1:-1:-1;;;9364:3:1;9356:12;;9349:73;9447:13;;9469:77;9447:13;9531:3;9523:12;;9516:4;9504:17;;9469:77;:::i;:::-;-1:-1:-1;;;9565:17:1;;9606:3;9598:12;;9591:39;;;;7507:66;9740:3;9732:12;;7495:79;-1:-1:-1;;;7590:12:1;;;7583:29;9646:101;9676:70;7628:12;;;9694:6;9676:70;:::i;:::-;-1:-1:-1;;;7716:27:1;;7768:1;7759:11;;7651:125;9646:101;9639:108;7781:1972;-1:-1:-1;;;;;;7781:1972:1:o;9758:461::-;10020:31;10015:3;10008:44;9990:3;10081:6;10075:13;10097:75;10165:6;10160:2;10155:3;10151:12;10144:4;10136:6;10132:17;10097:75;:::i;:::-;10192:16;;;;10210:2;10188:25;;9758:461;-1:-1:-1;;9758:461:1:o;10224:500::-;-1:-1:-1;;;;;10493:15:1;;;10475:34;;10545:15;;10540:2;10525:18;;10518:43;10592:2;10577:18;;10570:34;;;10640:3;10635:2;10620:18;;10613:31;;;10418:4;;10661:57;;10698:19;;10690:6;10661:57;:::i;10729:249::-;10798:6;10851:2;10839:9;10830:7;10826:23;10822:32;10819:52;;;10867:1;10864;10857:12;10819:52;10899:9;10893:16;10918:30;10942:5;10918:30;:::i;11449:2149::-;12477:66;12465:79;;12574:66;12569:2;12560:12;;12553:88;12671:66;12666:2;12657:12;;12650:88;-1:-1:-1;;;12763:2:1;12754:12;;12747:56;-1:-1:-1;;;12828:3:1;12819:13;;12812:71;12914:66;12908:3;12899:13;;12892:89;13012:66;13006:3;12997:13;;12990:89;-1:-1:-1;;;13104:3:1;13095:13;;13088:34;13153:66;13147:3;13138:13;;13131:89;13251:66;13245:3;13236:13;;13229:89;-1:-1:-1;;;13343:3:1;13334:13;;13327:45;11053:66;13420:3;13411:13;;11041:79;12447:3;13447:71;13477:40;13512:3;13507;13503:13;13495:6;13477:40;:::i;:::-;11208:66;11196:79;;-1:-1:-1;;;11300:2:1;11291:12;;11284:48;11357:2;11348:12;;11131:235;13447:71;-1:-1:-1;;;11421:21:1;;13590:1;13579:13;;11449:2149;-1:-1:-1;;;11449:2149:1:o;13603:217::-;13643:1;13669;13659:132;;13713:10;13708:3;13704:20;13701:1;13694:31;13748:4;13745:1;13738:15;13776:4;13773:1;13766:15;13659:132;-1:-1:-1;13805:9:1;;13603:217::o

Swarm Source

ipfs://a0e3f467767046c9a5c780363386f3308b82d81b5b0989abf6852ae8925b81a3
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.