ETH Price: $3,414.93 (+3.03%)

Contract

0xB6bF34FA8625b8119D2105161741D56e6B42Af29
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim173018272023-05-20 16:28:47556 days ago1684600127IN
0xB6bF34FA...e6B42Af29
0 ETH0.0643961936.00431266
Set Claim Merkle...173018142023-05-20 16:26:11556 days ago1684599971IN
0xB6bF34FA...e6B42Af29
0 ETH0.0011514939.66832589
Claim164226842023-01-16 23:37:59680 days ago1673912279IN
0xB6bF34FA...e6B42Af29
0 ETH0.0401055531.75925159
Claim164224982023-01-16 23:00:47680 days ago1673910047IN
0xB6bF34FA...e6B42Af29
0 ETH0.0410521643.57965073
Claim164224392023-01-16 22:48:59680 days ago1673909339IN
0xB6bF34FA...e6B42Af29
0 ETH0.003380133.49023368
Claim164224132023-01-16 22:43:47680 days ago1673909027IN
0xB6bF34FA...e6B42Af29
0 ETH0.0221670532.40016451
Claim163502652023-01-06 20:55:35690 days ago1673038535IN
0xB6bF34FA...e6B42Af29
0 ETH0.0029209127.6267151
Claim163095942023-01-01 4:41:59696 days ago1672548119IN
0xB6bF34FA...e6B42Af29
0 ETH0.0029042817.33333615
Claim163095182023-01-01 4:26:35696 days ago1672547195IN
0xB6bF34FA...e6B42Af29
0 ETH0.0060753914.31464613
Claim163093762023-01-01 3:58:11696 days ago1672545491IN
0xB6bF34FA...e6B42Af29
0 ETH0.002464114.71081289
Claim163093132023-01-01 3:45:35696 days ago1672544735IN
0xB6bF34FA...e6B42Af29
0 ETH0.0052862914.66459454
Claim163093052023-01-01 3:43:59696 days ago1672544639IN
0xB6bF34FA...e6B42Af29
0 ETH0.0034776714.8470016
Claim163092512023-01-01 3:33:11696 days ago1672543991IN
0xB6bF34FA...e6B42Af29
0 ETH0.0023693314.14788206
Claim163091832023-01-01 3:19:35696 days ago1672543175IN
0xB6bF34FA...e6B42Af29
0 ETH0.0043527714.69466007
Claim163091462023-01-01 3:12:11696 days ago1672542731IN
0xB6bF34FA...e6B42Af29
0 ETH0.0032297419.28883893
Claim163089682023-01-01 2:36:35696 days ago1672540595IN
0xB6bF34FA...e6B42Af29
0 ETH0.0017073316.53500277
Claim163089412023-01-01 2:31:11696 days ago1672540271IN
0xB6bF34FA...e6B42Af29
0 ETH0.0058908716.24486075
Claim163089242023-01-01 2:27:47696 days ago1672540067IN
0xB6bF34FA...e6B42Af29
0 ETH0.0026149215.37695025
Claim163089162023-01-01 2:26:11696 days ago1672539971IN
0xB6bF34FA...e6B42Af29
0 ETH0.0262266915.94203136
Claim163089062023-01-01 2:24:11696 days ago1672539851IN
0xB6bF34FA...e6B42Af29
0 ETH0.0013892713.46692389
Claim163088562023-01-01 2:14:11696 days ago1672539251IN
0xB6bF34FA...e6B42Af29
0 ETH0.0016366315.84994117
Claim163088342023-01-01 2:09:35696 days ago1672538975IN
0xB6bF34FA...e6B42Af29
0 ETH0.0023854122.56391144
Claim163085982023-01-01 1:22:11696 days ago1672536131IN
0xB6bF34FA...e6B42Af29
0 ETH0.0027274216.27446835
Claim163084532023-01-01 0:53:11696 days ago1672534391IN
0xB6bF34FA...e6B42Af29
0 ETH0.0017038416.11568005
Claim163083632023-01-01 0:34:59696 days ago1672533299IN
0xB6bF34FA...e6B42Af29
0 ETH0.0016637616.10552331
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MechPartsAfterglowTokenClaim

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : MechPartsAfterglowTokenClaim.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol";
import "./MechPartsAfterglowToken.sol";

contract MechPartsAfterglowTokenClaim is ReentrancyGuard, Ownable, IERC1155Receiver
{
	// TPL Mecha Parts token contract
	MechPartsAfterglowToken public mechPartsAfterglowToken;

	// Claim Allowlist
	bytes32 public claimMerkleRoot;
	mapping(address => mapping(uint => bool)) public claimAllowlistClaimed;

	constructor(
		address payable _MechPartsAfterglowTokenAddress,
		bytes32 _claimMerkleRoot
	) {
		// Set the token address
		mechPartsAfterglowToken = MechPartsAfterglowToken(_MechPartsAfterglowTokenAddress);

		// Set the merkleRoot
		setClaimMerkleRoot(_claimMerkleRoot);
	}

	function claim(
		address _recipient,
		bytes32[][] calldata _proofs,
		uint256[] calldata _tokenIds,
		uint256[] calldata _tokenCounts
	)
		external
		nonReentrant
	{
		// We have to go through the airdrop function since there is no other way to mint
		// So the Mech Parts Token contract will airdrop (mint) to this contract,
		// and then this contract will transfer out the tokens to the claimer
		require(_proofs.length > 0, "Missing proof");
		require(_tokenIds.length > 0, "Must provide tokens for claim");
		require(_tokenIds.length == _tokenCounts.length, "Invalid array lengths for tokenIds and tokenCounts");
		require(_tokenIds.length == _proofs.length, "Invalid array lengths for proofs and tokenIds");

		for (uint256 idx; idx < _tokenIds.length; idx++) {
			bytes32[] calldata _proof = _proofs[idx];
			uint256 _tokenId = _tokenIds[idx];
			uint256 _tokenCount = _tokenCounts[idx];

			// Check that purchase is legal per allowlist
			require(reviewClaimProof(_recipient, _proof, _tokenId, _tokenCount), "Proof does not match data");
			require(claimAllowlistClaimed[_recipient][_tokenId] == false, "Can not exceed permitted amount");

			// Update allowlist claimed
			// We require that each person claims the exact number of a tokenID provided to them
			claimAllowlistClaimed[_recipient][_tokenId] = true;
		}

		// If we make it here, then send tokens
		mechPartsAfterglowToken.safeBatchTransferFrom(
			address(this),
			_recipient,
			_tokenIds,
			_tokenCounts,
			""
		);
	}

	/**
	 * Allowlist Merkle Data
	 * Credit for Merkle setup code: Cobble
	 **/
	function getLeaf(address addr, uint256 tokenId, uint256 tokenCount) public pure returns(bytes32) {
		return keccak256(abi.encodePacked(addr, tokenId, tokenCount));
	}

	function reviewClaimProof(
		address _sender,
		bytes32[] calldata _proof,
		uint256 _tokenId,
		uint256 _tokenCount
	) public view returns (bool) {
		return MerkleProof.verify(_proof, claimMerkleRoot, getLeaf(_sender, _tokenId, _tokenCount));
	}



	/**
	 * Only Owner functions:
	 * - setting the claim merkle root
	 * - burning the remaining supply
	 **/


	function setClaimMerkleRoot(bytes32 _merkleRoot) public onlyOwner {
		claimMerkleRoot = _merkleRoot;
	}

	function burnBatch(
		uint256[] calldata _tokenIds,
		uint256[] calldata _tokenCounts
	) public onlyOwner {
		mechPartsAfterglowToken.burnBatch(
			address(this),
			_tokenIds,
			_tokenCounts
		);
	}


	/**
	 * IERC1155Receiver implementation
	 **/

	function supportsInterface(
		bytes4 interfaceId
	) external pure returns (bool) {
		return interfaceId == type(IERC1155Receiver).interfaceId;
	}

	function onERC1155Received(
		address,
		address,
		uint256,
		uint256,
		bytes calldata
	) external pure returns (bytes4) {
		return bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"));
	}

	function onERC1155BatchReceived(
		address,
		address,
		uint256[] calldata,
		uint256[] calldata,
		bytes calldata
	) external pure returns (bytes4) {
		return bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"));
	}
}

File 2 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

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

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

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

File 3 of 14 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

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

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

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

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 5 of 14 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
     * @dev Handles the receipt of a single ERC1155 token type. This function is
     * called at the end of a `safeTransferFrom` after the balance has been updated.
     *
     * NOTE: To accept the transfer, this must return
     * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
     * (i.e. 0xf23a6e61, or its own function selector).
     *
     * @param operator The address which initiated the transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param id The ID of the token being transferred
     * @param value The amount of tokens being transferred
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
     */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
     * @dev Handles the receipt of a multiple ERC1155 token types. This function
     * is called at the end of a `safeBatchTransferFrom` after the balances have
     * been updated.
     *
     * NOTE: To accept the transfer(s), this must return
     * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
     * (i.e. 0xbc197c81, or its own function selector).
     *
     * @param operator The address which initiated the batch transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param ids An array containing ids of each token being transferred (order and length must match values array)
     * @param values An array containing amounts of each token being transferred (order and length must match ids array)
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
     */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

File 6 of 14 : MechPartsAfterglowToken.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.10;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol";

contract MechPartsAfterglowToken is ERC1155Burnable, Ownable {

	// Auto-approved operators
	address[] public autoApprovedOperators;

	// Metadata
	string public name = 'TPL Mech Afterglow';
	string public symbol = 'TPLAFTERGLOW';

	// Royalty configuration
	address public royaltyRecipient;
	uint256 public royaltyBps = 500;

	/**
	 * Management
	 */

	constructor()
		ERC1155("ipfs://Qmdo1GeuYE9UohkUr4WqBSsxqLs653zGd6nVkLrGGNhiwW/{id}.json")
		Ownable()
	{
		// Default royalty recipient
		royaltyRecipient = msg.sender;
	}

	/**
	 * Override the approval to include contracts we support
	 **/
	function isApprovedForAll(address account, address operator) public view virtual override returns (bool) {
		for (uint256 idx; idx < autoApprovedOperators.length; idx++) {
			if (operator == autoApprovedOperators[idx]) {
				return true;
			}
		}

		return super.isApprovedForAll(account, operator);
	}


	/**
	 * Ownership functions
	 **/
	function setURI(string memory baseURI)
		external
		onlyOwner
	{
		_setURI(baseURI);
	}

	function airdrop(
		address[] calldata addresses,
		uint256[] calldata tokenIds,
		uint256[] calldata amounts
	)
		external
		onlyOwner
	{
		require(addresses.length > 0 && addresses.length == tokenIds.length && tokenIds.length == amounts.length, "Invalid array lengths");

		for (uint256 idx; idx < addresses.length; idx++) {
			_mint(
				addresses[idx],
				tokenIds[idx],
				amounts[idx],
				""
			);
		}
	}

	function addAutoApprovedOperator(address operator) external onlyOwner {
		autoApprovedOperators.push(operator);
	}

	function removeAutoApprovedOperatorByIndex(uint256 idx) external onlyOwner {
		require(idx < autoApprovedOperators.length, "Index greater than autoApprovedOperators length");
		autoApprovedOperators[idx] = autoApprovedOperators[autoApprovedOperators.length-1];
		autoApprovedOperators.pop();
	}

	function setRoyaltyRecipient(address _recipient)
		external
		onlyOwner
	{
		royaltyRecipient = _recipient;
	}

	function setRoyaltyBps(uint256 _bps)
		external
		onlyOwner
	{
		require(_bps < 10000, "Royalty basis points must be under 10,000 (100%)");
		royaltyBps = _bps;
	}


	/**
	 * On-Chain Royalties & Interface
	 **/
	function supportsInterface(bytes4 interfaceId)
		public
		view
		override
		returns (bool)
	{
		return interfaceId == this.royaltyInfo.selector || super.supportsInterface(interfaceId);
	}

	function royaltyInfo(uint256, uint256 amount)
		public
		view
		returns (address, uint256)
	{
		return (royaltyRecipient, (amount * royaltyBps) / 10000);
	}
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

File 9 of 14 : ERC1155Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Burnable.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of {ERC1155} that allows token holders to destroy both their
 * own tokens and those that they have been approved to use.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Burnable is ERC1155 {
    function burn(
        address account,
        uint256 id,
        uint256 value
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burn(account, id, value);
    }

    function burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory values
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burnBatch(account, ids, values);
    }
}

File 10 of 14 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

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

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: balance query for the zero address");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

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

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: transfer caller is not owner nor approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, _asSingletonArray(id), _asSingletonArray(amount), data);

        _balances[id][to] += amount;
        emit TransferSingle(operator, address(0), to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `from`
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address from,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), _asSingletonArray(id), _asSingletonArray(amount), "");

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }

        emit TransferSingle(operator, from, address(0), id, amount);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(
        address from,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
        }

        emit TransferBatch(operator, from, address(0), ids, amounts);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC1155: setting approval status for self");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

File 11 of 14 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 12 of 14 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address payable","name":"_MechPartsAfterglowTokenAddress","type":"address"},{"internalType":"bytes32","name":"_claimMerkleRoot","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_tokenCounts","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"bytes32[][]","name":"_proofs","type":"bytes32[][]"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_tokenCounts","type":"uint256[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"claimAllowlistClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"tokenCount","type":"uint256"}],"name":"getLeaf","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"mechPartsAfterglowToken","outputs":[{"internalType":"contract MechPartsAfterglowToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_sender","type":"address"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_tokenCount","type":"uint256"}],"name":"reviewClaimProof","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setClaimMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b506040516110cd3803806110cd83398101604081905261002f9161011d565b600160005561003d33610068565b600280546001600160a01b0319166001600160a01b038416179055610061816100ba565b5050610157565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001546001600160a01b031633146101185760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b600355565b6000806040838503121561013057600080fd5b82516001600160a01b038116811461014757600080fd5b6020939093015192949293505050565b610f67806101666000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c806383ca4b6f1161008c578063bc197c8111610066578063bc197c81146101ff578063f23a6e6114610253578063f2fde38b1461028c578063fd1e29621461029f57600080fd5b806383ca4b6f146101d25780638da5cb5b146101e55780639c4dab52146101f657600080fd5b80635981991f116100c85780635981991f1461018157806361d6a1d81461019457806364ae826f146101a9578063715018a6146101ca57600080fd5b806301ffc9a7146100ef57806305289a881461012857806344359e4314610153575b600080fd5b6101136100fd36600461097f565b6001600160e01b031916630271189760e51b1490565b60405190151581526020015b60405180910390f35b60025461013b906001600160a01b031681565b6040516001600160a01b03909116815260200161011f565b6101136101613660046109cc565b600460209081526000928352604080842090915290825290205460ff1681565b61011361018f366004610a42565b6102b2565b6101a76101a2366004610aa7565b610309565b005b6101bc6101b7366004610b52565b6106ba565b60405190815260200161011f565b6101a7610709565b6101a76101e0366004610b85565b61073f565b6001546001600160a01b031661013b565b6101bc60035481565b61023a61020d366004610c33565b7fbc197c819b3e337a6f9652dd10becd7eef83032af3b9d958d3d42f669414662198975050505050505050565b6040516001600160e01b0319909116815260200161011f565b61023a610261366004610cee565b7ff23a6e612e1ff4830e658fe43f4e3cb4a5f8170bd5d9e69fb5d7a7fa9e4fdf979695505050505050565b6101a761029a366004610d66565b6107d9565b6101a76102ad366004610d81565b610874565b60006102ff8585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060035491506102fa90508987876106ba565b6108a3565b9695505050505050565b600260005414156103615760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600055846103a35760405162461bcd60e51b815260206004820152600d60248201526c26b4b9b9b4b73390383937b7b360991b6044820152606401610358565b826103f05760405162461bcd60e51b815260206004820152601d60248201527f4d7573742070726f7669646520746f6b656e7320666f7220636c61696d0000006044820152606401610358565b82811461045a5760405162461bcd60e51b815260206004820152603260248201527f496e76616c6964206172726179206c656e6774687320666f7220746f6b656e49604482015271647320616e6420746f6b656e436f756e747360701b6064820152608401610358565b8285146104bf5760405162461bcd60e51b815260206004820152602d60248201527f496e76616c6964206172726179206c656e6774687320666f722070726f6f667360448201526c20616e6420746f6b656e49647360981b6064820152608401610358565b60005b8381101561063f573660008888848181106104df576104df610d9a565b90506020028101906104f19190610db0565b91509150600087878581811061050957610509610d9a565b905060200201359050600086868681811061052657610526610d9a565b90506020020135905061053c8c858585856102b2565b6105885760405162461bcd60e51b815260206004820152601960248201527f50726f6f6620646f6573206e6f74206d617463682064617461000000000000006044820152606401610358565b6001600160a01b038c16600090815260046020908152604080832085845290915290205460ff16156105fc5760405162461bcd60e51b815260206004820152601f60248201527f43616e206e6f7420657863656564207065726d697474656420616d6f756e74006044820152606401610358565b506001600160a01b038b16600090815260046020908152604080832093835292905220805460ff191660011790555081905061063781610dfa565b9150506104c2565b50600254604051631759616b60e11b81526001600160a01b0390911690632eb2c2d69061067a9030908b908990899089908990600401610e59565b600060405180830381600087803b15801561069457600080fd5b505af11580156106a8573d6000803e3d6000fd5b50506001600055505050505050505050565b6040516bffffffffffffffffffffffff19606085901b16602082015260348101839052605481018290526000906074016040516020818303038152906040528051906020012090509392505050565b6001546001600160a01b031633146107335760405162461bcd60e51b815260040161035890610eb8565b61073d60006108b9565b565b6001546001600160a01b031633146107695760405162461bcd60e51b815260040161035890610eb8565b600254604051631ac8311560e21b81526001600160a01b0390911690636b20c454906107a19030908890889088908890600401610eed565b600060405180830381600087803b1580156107bb57600080fd5b505af11580156107cf573d6000803e3d6000fd5b5050505050505050565b6001546001600160a01b031633146108035760405162461bcd60e51b815260040161035890610eb8565b6001600160a01b0381166108685760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610358565b610871816108b9565b50565b6001546001600160a01b0316331461089e5760405162461bcd60e51b815260040161035890610eb8565b600355565b6000826108b0858461090b565b14949350505050565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600081815b845181101561097757600085828151811061092d5761092d610d9a565b602002602001015190508083116109535760008381526020829052604090209250610964565b600081815260208490526040902092505b508061096f81610dfa565b915050610910565b509392505050565b60006020828403121561099157600080fd5b81356001600160e01b0319811681146109a957600080fd5b9392505050565b80356001600160a01b03811681146109c757600080fd5b919050565b600080604083850312156109df57600080fd5b6109e8836109b0565b946020939093013593505050565b60008083601f840112610a0857600080fd5b50813567ffffffffffffffff811115610a2057600080fd5b6020830191508360208260051b8501011115610a3b57600080fd5b9250929050565b600080600080600060808688031215610a5a57600080fd5b610a63866109b0565b9450602086013567ffffffffffffffff811115610a7f57600080fd5b610a8b888289016109f6565b9699909850959660408101359660609091013595509350505050565b60008060008060008060006080888a031215610ac257600080fd5b610acb886109b0565b9650602088013567ffffffffffffffff80821115610ae857600080fd5b610af48b838c016109f6565b909850965060408a0135915080821115610b0d57600080fd5b610b198b838c016109f6565b909650945060608a0135915080821115610b3257600080fd5b50610b3f8a828b016109f6565b989b979a50959850939692959293505050565b600080600060608486031215610b6757600080fd5b610b70846109b0565b95602085013595506040909401359392505050565b60008060008060408587031215610b9b57600080fd5b843567ffffffffffffffff80821115610bb357600080fd5b610bbf888389016109f6565b90965094506020870135915080821115610bd857600080fd5b50610be5878288016109f6565b95989497509550505050565b60008083601f840112610c0357600080fd5b50813567ffffffffffffffff811115610c1b57600080fd5b602083019150836020828501011115610a3b57600080fd5b60008060008060008060008060a0898b031215610c4f57600080fd5b610c58896109b0565b9750610c6660208a016109b0565b9650604089013567ffffffffffffffff80821115610c8357600080fd5b610c8f8c838d016109f6565b909850965060608b0135915080821115610ca857600080fd5b610cb48c838d016109f6565b909650945060808b0135915080821115610ccd57600080fd5b50610cda8b828c01610bf1565b999c989b5096995094979396929594505050565b60008060008060008060a08789031215610d0757600080fd5b610d10876109b0565b9550610d1e602088016109b0565b94506040870135935060608701359250608087013567ffffffffffffffff811115610d4857600080fd5b610d5489828a01610bf1565b979a9699509497509295939492505050565b600060208284031215610d7857600080fd5b6109a9826109b0565b600060208284031215610d9357600080fd5b5035919050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e19843603018112610dc757600080fd5b83018035915067ffffffffffffffff821115610de257600080fd5b6020019150600581901b3603821315610a3b57600080fd5b6000600019821415610e1c57634e487b7160e01b600052601160045260246000fd5b5060010190565b81835260006001600160fb1b03831115610e3c57600080fd5b8260051b8083602087013760009401602001938452509192915050565b6001600160a01b0387811682528616602082015260a060408201819052600090610e869083018688610e23565b8281036060840152610e99818587610e23565b8381036080909401939093525050600081526020019695505050505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6001600160a01b0386168152606060208201819052600090610f129083018688610e23565b8281036040840152610f25818587610e23565b9897505050505050505056fea26469706673582212205be5c0b6087acef46e9ddb8b99ce0c9001bffbc8719b26a154016486faded3dd64736f6c634300080a0033000000000000000000000000a47fb7c4edd3475ce66f49a66b9bf1edbc61e52db7d6f99edf802b91b59289f0b721922c74d7ec357e81689bfa5a8ab10a921986

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100ea5760003560e01c806383ca4b6f1161008c578063bc197c8111610066578063bc197c81146101ff578063f23a6e6114610253578063f2fde38b1461028c578063fd1e29621461029f57600080fd5b806383ca4b6f146101d25780638da5cb5b146101e55780639c4dab52146101f657600080fd5b80635981991f116100c85780635981991f1461018157806361d6a1d81461019457806364ae826f146101a9578063715018a6146101ca57600080fd5b806301ffc9a7146100ef57806305289a881461012857806344359e4314610153575b600080fd5b6101136100fd36600461097f565b6001600160e01b031916630271189760e51b1490565b60405190151581526020015b60405180910390f35b60025461013b906001600160a01b031681565b6040516001600160a01b03909116815260200161011f565b6101136101613660046109cc565b600460209081526000928352604080842090915290825290205460ff1681565b61011361018f366004610a42565b6102b2565b6101a76101a2366004610aa7565b610309565b005b6101bc6101b7366004610b52565b6106ba565b60405190815260200161011f565b6101a7610709565b6101a76101e0366004610b85565b61073f565b6001546001600160a01b031661013b565b6101bc60035481565b61023a61020d366004610c33565b7fbc197c819b3e337a6f9652dd10becd7eef83032af3b9d958d3d42f669414662198975050505050505050565b6040516001600160e01b0319909116815260200161011f565b61023a610261366004610cee565b7ff23a6e612e1ff4830e658fe43f4e3cb4a5f8170bd5d9e69fb5d7a7fa9e4fdf979695505050505050565b6101a761029a366004610d66565b6107d9565b6101a76102ad366004610d81565b610874565b60006102ff8585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060035491506102fa90508987876106ba565b6108a3565b9695505050505050565b600260005414156103615760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600055846103a35760405162461bcd60e51b815260206004820152600d60248201526c26b4b9b9b4b73390383937b7b360991b6044820152606401610358565b826103f05760405162461bcd60e51b815260206004820152601d60248201527f4d7573742070726f7669646520746f6b656e7320666f7220636c61696d0000006044820152606401610358565b82811461045a5760405162461bcd60e51b815260206004820152603260248201527f496e76616c6964206172726179206c656e6774687320666f7220746f6b656e49604482015271647320616e6420746f6b656e436f756e747360701b6064820152608401610358565b8285146104bf5760405162461bcd60e51b815260206004820152602d60248201527f496e76616c6964206172726179206c656e6774687320666f722070726f6f667360448201526c20616e6420746f6b656e49647360981b6064820152608401610358565b60005b8381101561063f573660008888848181106104df576104df610d9a565b90506020028101906104f19190610db0565b91509150600087878581811061050957610509610d9a565b905060200201359050600086868681811061052657610526610d9a565b90506020020135905061053c8c858585856102b2565b6105885760405162461bcd60e51b815260206004820152601960248201527f50726f6f6620646f6573206e6f74206d617463682064617461000000000000006044820152606401610358565b6001600160a01b038c16600090815260046020908152604080832085845290915290205460ff16156105fc5760405162461bcd60e51b815260206004820152601f60248201527f43616e206e6f7420657863656564207065726d697474656420616d6f756e74006044820152606401610358565b506001600160a01b038b16600090815260046020908152604080832093835292905220805460ff191660011790555081905061063781610dfa565b9150506104c2565b50600254604051631759616b60e11b81526001600160a01b0390911690632eb2c2d69061067a9030908b908990899089908990600401610e59565b600060405180830381600087803b15801561069457600080fd5b505af11580156106a8573d6000803e3d6000fd5b50506001600055505050505050505050565b6040516bffffffffffffffffffffffff19606085901b16602082015260348101839052605481018290526000906074016040516020818303038152906040528051906020012090509392505050565b6001546001600160a01b031633146107335760405162461bcd60e51b815260040161035890610eb8565b61073d60006108b9565b565b6001546001600160a01b031633146107695760405162461bcd60e51b815260040161035890610eb8565b600254604051631ac8311560e21b81526001600160a01b0390911690636b20c454906107a19030908890889088908890600401610eed565b600060405180830381600087803b1580156107bb57600080fd5b505af11580156107cf573d6000803e3d6000fd5b5050505050505050565b6001546001600160a01b031633146108035760405162461bcd60e51b815260040161035890610eb8565b6001600160a01b0381166108685760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610358565b610871816108b9565b50565b6001546001600160a01b0316331461089e5760405162461bcd60e51b815260040161035890610eb8565b600355565b6000826108b0858461090b565b14949350505050565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600081815b845181101561097757600085828151811061092d5761092d610d9a565b602002602001015190508083116109535760008381526020829052604090209250610964565b600081815260208490526040902092505b508061096f81610dfa565b915050610910565b509392505050565b60006020828403121561099157600080fd5b81356001600160e01b0319811681146109a957600080fd5b9392505050565b80356001600160a01b03811681146109c757600080fd5b919050565b600080604083850312156109df57600080fd5b6109e8836109b0565b946020939093013593505050565b60008083601f840112610a0857600080fd5b50813567ffffffffffffffff811115610a2057600080fd5b6020830191508360208260051b8501011115610a3b57600080fd5b9250929050565b600080600080600060808688031215610a5a57600080fd5b610a63866109b0565b9450602086013567ffffffffffffffff811115610a7f57600080fd5b610a8b888289016109f6565b9699909850959660408101359660609091013595509350505050565b60008060008060008060006080888a031215610ac257600080fd5b610acb886109b0565b9650602088013567ffffffffffffffff80821115610ae857600080fd5b610af48b838c016109f6565b909850965060408a0135915080821115610b0d57600080fd5b610b198b838c016109f6565b909650945060608a0135915080821115610b3257600080fd5b50610b3f8a828b016109f6565b989b979a50959850939692959293505050565b600080600060608486031215610b6757600080fd5b610b70846109b0565b95602085013595506040909401359392505050565b60008060008060408587031215610b9b57600080fd5b843567ffffffffffffffff80821115610bb357600080fd5b610bbf888389016109f6565b90965094506020870135915080821115610bd857600080fd5b50610be5878288016109f6565b95989497509550505050565b60008083601f840112610c0357600080fd5b50813567ffffffffffffffff811115610c1b57600080fd5b602083019150836020828501011115610a3b57600080fd5b60008060008060008060008060a0898b031215610c4f57600080fd5b610c58896109b0565b9750610c6660208a016109b0565b9650604089013567ffffffffffffffff80821115610c8357600080fd5b610c8f8c838d016109f6565b909850965060608b0135915080821115610ca857600080fd5b610cb48c838d016109f6565b909650945060808b0135915080821115610ccd57600080fd5b50610cda8b828c01610bf1565b999c989b5096995094979396929594505050565b60008060008060008060a08789031215610d0757600080fd5b610d10876109b0565b9550610d1e602088016109b0565b94506040870135935060608701359250608087013567ffffffffffffffff811115610d4857600080fd5b610d5489828a01610bf1565b979a9699509497509295939492505050565b600060208284031215610d7857600080fd5b6109a9826109b0565b600060208284031215610d9357600080fd5b5035919050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e19843603018112610dc757600080fd5b83018035915067ffffffffffffffff821115610de257600080fd5b6020019150600581901b3603821315610a3b57600080fd5b6000600019821415610e1c57634e487b7160e01b600052601160045260246000fd5b5060010190565b81835260006001600160fb1b03831115610e3c57600080fd5b8260051b8083602087013760009401602001938452509192915050565b6001600160a01b0387811682528616602082015260a060408201819052600090610e869083018688610e23565b8281036060840152610e99818587610e23565b8381036080909401939093525050600081526020019695505050505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6001600160a01b0386168152606060208201819052600090610f129083018688610e23565b8281036040840152610f25818587610e23565b9897505050505050505056fea26469706673582212205be5c0b6087acef46e9ddb8b99ce0c9001bffbc8719b26a154016486faded3dd64736f6c634300080a0033

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

000000000000000000000000a47fb7c4edd3475ce66f49a66b9bf1edbc61e52db7d6f99edf802b91b59289f0b721922c74d7ec357e81689bfa5a8ab10a921986

-----Decoded View---------------
Arg [0] : _MechPartsAfterglowTokenAddress (address): 0xa47FB7c4eDd3475CE66F49a66b9bf1edbc61e52d
Arg [1] : _claimMerkleRoot (bytes32): 0xb7d6f99edf802b91b59289f0b721922c74d7ec357e81689bfa5a8ab10a921986

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000a47fb7c4edd3475ce66f49a66b9bf1edbc61e52d
Arg [1] : b7d6f99edf802b91b59289f0b721922c74d7ec357e81689bfa5a8ab10a921986


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.