ETH Price: $2,592.58 (-3.14%)
Gas: 5 Gwei

Contract

0xcC84cAAa141039c7fE4A6e259bB7C5DC1B6204f7
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Mint192430182024-02-16 21:06:11177 days ago1708117571IN
0xcC84cAAa...C1B6204f7
0 ETH0.0029950637.33191454
Mint191630122024-02-05 15:39:11188 days ago1707147551IN
0xcC84cAAa...C1B6204f7
0 ETH0.0021785527.74133471
Mint176716582023-07-11 16:48:47397 days ago1689094127IN
0xcC84cAAa...C1B6204f7
0 ETH0.0031046237.52815803
Mint175264752023-06-21 7:13:11418 days ago1687331591IN
0xcC84cAAa...C1B6204f7
0 ETH0.0011190413.80391779
Mint173888182023-06-01 22:08:35437 days ago1685657315IN
0xcC84cAAa...C1B6204f7
0 ETH0.005819770.34485582
Mint173744152023-05-30 21:28:47439 days ago1685482127IN
0xcC84cAAa...C1B6204f7
0 ETH0.0027409134.89748695
Mint172754882023-05-16 23:22:59453 days ago1684279379IN
0xcC84cAAa...C1B6204f7
0 ETH0.0040323150.25125023
Mint172057242023-05-07 2:32:23463 days ago1683426743IN
0xcC84cAAa...C1B6204f7
0 ETH0.0068865685.83425581
Mint171022462023-04-22 13:41:47477 days ago1682170907IN
0xcC84cAAa...C1B6204f7
0 ETH0.0009741330.17310301
Mint171022462023-04-22 13:41:47477 days ago1682170907IN
0xcC84cAAa...C1B6204f7
0 ETH0.002406930
Mint170878112023-04-20 12:49:35479 days ago1681994975IN
0xcC84cAAa...C1B6204f7
0 ETH0.0039454647.68391103
Mint170758722023-04-18 20:17:59481 days ago1681849079IN
0xcC84cAAa...C1B6204f7
0 ETH0.0068988886.90958298
Mint168479272023-03-17 13:48:35513 days ago1679060915IN
0xcC84cAAa...C1B6204f7
0 ETH0.0022863928.50650584
Mint167853722023-03-08 18:40:23522 days ago1678300823IN
0xcC84cAAa...C1B6204f7
0 ETH0.0042356651.23020643
Mint167783202023-03-07 18:52:35523 days ago1678215155IN
0xcC84cAAa...C1B6204f7
0 ETH0.0028330235.33293299
Mint167768242023-03-07 13:49:11523 days ago1678196951IN
0xcC84cAAa...C1B6204f7
0 ETH0.0020220424.43794399
Mint167587592023-03-05 0:53:11526 days ago1677977591IN
0xcC84cAAa...C1B6204f7
0 ETH0.0016462819.89658171
Mint167490202023-03-03 15:57:59527 days ago1677859079IN
0xcC84cAAa...C1B6204f7
0 ETH0.0025665232
Mint167442282023-03-02 23:47:59528 days ago1677800879IN
0xcC84cAAa...C1B6204f7
0 ETH0.0018672923.77417931
Mint167419002023-03-02 15:55:35528 days ago1677772535IN
0xcC84cAAa...C1B6204f7
0 ETH0.00848307102.52445327
Mint167350342023-03-01 16:44:23529 days ago1677689063IN
0xcC84cAAa...C1B6204f7
0 ETH0.0051585762.34528513
Mint167233292023-02-28 1:14:35531 days ago1677546875IN
0xcC84cAAa...C1B6204f7
0 ETH0.0018038621.81077972
Mint167218802023-02-27 20:22:35531 days ago1677529355IN
0xcC84cAAa...C1B6204f7
0 ETH0.0036121445.04927113
Mint167203942023-02-27 15:22:35531 days ago1677511355IN
0xcC84cAAa...C1B6204f7
0 ETH0.0023423328.308886
Mint167200442023-02-27 14:12:35531 days ago1677507155IN
0xcC84cAAa...C1B6204f7
0 ETH0.0027577634.37918301
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:
MacroGraduateSBT

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 100000 runs

Other Settings:
default evmVersion
File 1 of 7 : MacroGraduateSBT.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.17;

import "solmate/src/tokens/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

enum GraduationTiers {
    OG,
    HONORS,
    ENGINEERS,
    FOUNDERS
}

contract MacroGraduateSBT is ERC721, Ownable {
    /// @notice baseURI where the SBT metadata is located
    string public baseTokenURI;

    /// @notice the Merkle root used to prove inclusion in the MerkleDrop
    bytes32 public root; // merkle root

    /// @param _baseURI the URI which returns the SBT metadata
    /// @param _root the new merkle root
    /// @param _owner the address of the admin of the contract
    constructor(
        string memory _baseURI,
        bytes32 _root,
        address _owner
    ) ERC721("Macro Graduate Soulbound Token", "MGSBT") {
        baseTokenURI = _baseURI;
        emit BaseURISet(_baseURI);
        root = _root;
        emit MerkleRootSet(_root);
        transferOwnership(_owner);
    }

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

    /// @notice Emitted when the setMerkleRoot function is called successfully
    /// @param root The new merkle root
    event MerkleRootSet(bytes32 root);

    /// @notice Emitted when the setBaseURI function is called successfully
    /// @param baseURI The new baseTokenURI
    event BaseURISet(string baseURI);

    /// @notice Function for graduate to claim their SBT
    /// @dev The tokenId contains the graduate's address, cohort number, and graduation tier
    /// @dev Replay mint attacks are prevented because a given graduate's tokenId will always be the same, and duplicate tokenIds cannot be minted
    /// @param to address they would like to soul bound the token to
    /// @param cohortNumber the cohort (block) number that a given graduate graduated in
    /// @param graduationTier enum representing how well an graduate did in the fellowship
    /// @param proof merkle proof to be generated by frontend tool
    function mint(
        address to,
        uint16 cohortNumber,
        GraduationTiers graduationTier,
        bytes32[] calldata proof
    ) external {
        require(
            _verify(_leaf(msg.sender, cohortNumber, graduationTier), proof),
            "INVALID_PROOF"
        );
        _create(msg.sender, cohortNumber, graduationTier, to);
    }

    /// @notice Function for admin to gift NFTs to graduates
    /// @dev all arrays must be of the same length and the indexes of each array correspond to the same graduate data across each array
    /// @param addresses array of graduate addresses which will receive tokens
    /// @param cohortNumbers and array of cohort (block) numbers that a given graduate graduated in
    /// @param gradTiers array of enums representing how well a graduate did in the fellowship
    function batchAirdrop(
        address[] calldata addresses,
        uint16[] calldata cohortNumbers,
        GraduationTiers[] calldata gradTiers
    ) external onlyOwner {
        uint256 length = addresses.length;
        require(
            length > 0 &&
                length == cohortNumbers.length &&
                length == gradTiers.length,
            "INCONSISTENT_LENGTH"
        );
        unchecked {
            for (uint256 i; i < length; ++i) {
                address currentAddress = addresses[i];
                _create(
                    currentAddress,
                    cohortNumbers[i],
                    gradTiers[i],
                    currentAddress
                );
            }
        }
    }

    /// @dev private function to abstract duplicate logic in mint and batchAirdrop
    /// @param claimerAddress address within the merkle tree or batch airdrop "addresses" array
    /// @param cohortNumber the cohort (block) number that a given graduate graduated in
    /// @param gradTier enum representing how well an graduate did in the fellowship
    /// @param to address receiving the token
    function _create(
        address claimerAddress,
        uint16 cohortNumber,
        GraduationTiers gradTier,
        address to
    ) private {
        uint256 tokenId = (uint256(uint160(claimerAddress)) << uint256(24)) +
            (uint256(cohortNumber) << uint256(8)) +
            uint256(uint8(gradTier));
        _safeMint(to, tokenId);
        emit Locked(tokenId);
    }

    /// @notice burn deletes the token from the ERC721 implementation
    /// @dev burn will be used to update graduate data or "transfer" tokens to new address by burning and minting a new SBT
    /// @param tokenId tokenId which will be burned
    function burn(uint256 tokenId) external onlyOwner {
        _burn(tokenId);
    }

    /// @dev will always revert - if tokens need to be transfered, an admin must burn and then mint a new one.
    function transferFrom(
        address from,
        address to,
        uint256 id
    ) public override {
        revert("NON_TRANSFERABLE");
    }

    /// @dev will always revert - if tokens need to be transfered, an admin must burn and then mint a new one.
    function approve(address spender, uint256 id) public override {
        revert("NON_TRANSFERABLE");
    }

    /// @dev will always revert - if tokens need to be transfered, an admin must burn and then mint a new one.
    function setApprovalForAll(address operator, bool approved)
        public
        override
    {
        revert("NON_TRANSFERABLE");
    }

    /// @notice view function that returns the cohort number for a given tokenId
    /// @param tokenId the token id requested
    function cohortNumber(uint256 tokenId) external view returns (uint16) {
        ownerOf(tokenId);
        return uint16(tokenId >> uint256(8));
    }

    /// @notice view function that returns the graduation tier for a given tokenId
    /// @param tokenId the token id requested
    function graduationTier(uint256 tokenId) external view returns (uint16) {
        ownerOf(tokenId);
        return uint8(tokenId);
    }

    /// @dev returns the location of the asset corresponding to a specific token id
    /// @param id the token id for the asset being requested
    function tokenURI(uint256 id) public view override returns (string memory) {
        ownerOf(id); // ownerOf will revert if the token does not exist
          return string.concat(baseTokenURI, Strings.toString(id), ".json");
    }

    /// @dev updates the base uri in storage where the assets for the colleciton are held
    /// @param _baseURI the URI which returns the NFT metadata
    function setBaseURI(string calldata _baseURI) external onlyOwner {
        baseTokenURI = _baseURI;
        emit BaseURISet(_baseURI);
    }

    /// @notice this function will need to be called at the end of every cohort to enable new grads to claim their tokens
    /// @param _root the new merkle root
    function setMerkleRoot(bytes32 _root) external onlyOwner {
        root = _root;
        emit MerkleRootSet(_root);
    }

    function supportsInterface(bytes4 interfaceId)
        public
        pure
        override
        returns (bool)
    {
        return
            interfaceId == 0xb45a3c0e || // ERC165 Interface ID for ERC5192
            interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165
            interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721
            interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata
    }

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

    /// @dev this function returns the hash of graduate data, also known as a leaf in our merkle tree
    /// @param account the graduate's address (is msg.sender)
    /// @param cohortNumber the cohort (block) number that a given graduate graduated in
    /// @param graduationTier enum representing how well an graduate did in the fellowship
    function _leaf(
        address account,
        uint16 cohortNumber,
        GraduationTiers graduationTier
    ) internal pure returns (bytes32) {
        return
            keccak256(abi.encodePacked(account, cohortNumber, graduationTier));
    }

    /// @dev this function verifies if the leaf is found in the merkle tree
    /// @param leaf a hash of all the graduate's data
    /// @param proof a valid merkle proof. a merkle proof consists of the values to hash together with the value being proved to get back the Merkle root
    function _verify(bytes32 leaf, bytes32[] memory proof)
        internal
        view
        returns (bool)
    {
        return MerkleProof.verify(proof, root, leaf);
    }
}

File 2 of 7 : ERC721.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Modern, minimalist, and gas efficient ERC-721 implementation.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC721.sol)
abstract contract ERC721 {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event Transfer(address indexed from, address indexed to, uint256 indexed id);

    event Approval(address indexed owner, address indexed spender, uint256 indexed id);

    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /*//////////////////////////////////////////////////////////////
                         METADATA STORAGE/LOGIC
    //////////////////////////////////////////////////////////////*/

    string public name;

    string public symbol;

    function tokenURI(uint256 id) public view virtual returns (string memory);

    /*//////////////////////////////////////////////////////////////
                      ERC721 BALANCE/OWNER STORAGE
    //////////////////////////////////////////////////////////////*/

    mapping(uint256 => address) internal _ownerOf;

    mapping(address => uint256) internal _balanceOf;

    function ownerOf(uint256 id) public view virtual returns (address owner) {
        require((owner = _ownerOf[id]) != address(0), "NOT_MINTED");
    }

    function balanceOf(address owner) public view virtual returns (uint256) {
        require(owner != address(0), "ZERO_ADDRESS");

        return _balanceOf[owner];
    }

    /*//////////////////////////////////////////////////////////////
                         ERC721 APPROVAL STORAGE
    //////////////////////////////////////////////////////////////*/

    mapping(uint256 => address) public getApproved;

    mapping(address => mapping(address => bool)) public isApprovedForAll;

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(string memory _name, string memory _symbol) {
        name = _name;
        symbol = _symbol;
    }

    /*//////////////////////////////////////////////////////////////
                              ERC721 LOGIC
    //////////////////////////////////////////////////////////////*/

    function approve(address spender, uint256 id) public virtual {
        address owner = _ownerOf[id];

        require(msg.sender == owner || isApprovedForAll[owner][msg.sender], "NOT_AUTHORIZED");

        getApproved[id] = spender;

        emit Approval(owner, spender, id);
    }

    function setApprovalForAll(address operator, bool approved) public virtual {
        isApprovedForAll[msg.sender][operator] = approved;

        emit ApprovalForAll(msg.sender, operator, approved);
    }

    function transferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual {
        require(from == _ownerOf[id], "WRONG_FROM");

        require(to != address(0), "INVALID_RECIPIENT");

        require(
            msg.sender == from || isApprovedForAll[from][msg.sender] || msg.sender == getApproved[id],
            "NOT_AUTHORIZED"
        );

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        unchecked {
            _balanceOf[from]--;

            _balanceOf[to]++;
        }

        _ownerOf[id] = to;

        delete getApproved[id];

        emit Transfer(from, to, id);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual {
        transferFrom(from, to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, "") ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        bytes calldata data
    ) public virtual {
        transferFrom(from, to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, data) ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    /*//////////////////////////////////////////////////////////////
                              ERC165 LOGIC
    //////////////////////////////////////////////////////////////*/

    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return
            interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165
            interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721
            interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata
    }

    /*//////////////////////////////////////////////////////////////
                        INTERNAL MINT/BURN LOGIC
    //////////////////////////////////////////////////////////////*/

    function _mint(address to, uint256 id) internal virtual {
        require(to != address(0), "INVALID_RECIPIENT");

        require(_ownerOf[id] == address(0), "ALREADY_MINTED");

        // Counter overflow is incredibly unrealistic.
        unchecked {
            _balanceOf[to]++;
        }

        _ownerOf[id] = to;

        emit Transfer(address(0), to, id);
    }

    function _burn(uint256 id) internal virtual {
        address owner = _ownerOf[id];

        require(owner != address(0), "NOT_MINTED");

        // Ownership check above ensures no underflow.
        unchecked {
            _balanceOf[owner]--;
        }

        delete _ownerOf[id];

        delete getApproved[id];

        emit Transfer(owner, address(0), id);
    }

    /*//////////////////////////////////////////////////////////////
                        INTERNAL SAFE MINT LOGIC
    //////////////////////////////////////////////////////////////*/

    function _safeMint(address to, uint256 id) internal virtual {
        _mint(to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, "") ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function _safeMint(
        address to,
        uint256 id,
        bytes memory data
    ) internal virtual {
        _mint(to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, data) ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }
}

/// @notice A generic interface for a contract which properly accepts ERC721 tokens.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC721.sol)
abstract contract ERC721TokenReceiver {
    function onERC721Received(
        address,
        address,
        uint256,
        bytes calldata
    ) external virtual returns (bytes4) {
        return ERC721TokenReceiver.onERC721Received.selector;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 4 of 7 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

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

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

File 5 of 7 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 * OpenZeppelin's JavaScript library generates merkle trees that are safe
 * against this attack out of the box.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

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

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

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

    /**
     * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

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

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

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

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

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

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

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

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

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

File 6 of 7 : 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 7 of 7 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"},{"internalType":"bytes32","name":"_root","type":"bytes32"},{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"baseURI","type":"string"}],"name":"BaseURISet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Locked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"MerkleRootSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"id","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":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint16[]","name":"cohortNumbers","type":"uint16[]"},{"internalType":"enum GraduationTiers[]","name":"gradTiers","type":"uint8[]"}],"name":"batchAirdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"cohortNumber","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"graduationTier","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"locked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint16","name":"cohortNumber","type":"uint16"},{"internalType":"enum GraduationTiers","name":"graduationTier","type":"uint8"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"root","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":"id","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":"id","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":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setMerkleRoot","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":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162002586380380620025868339810160408190526200003491620002e9565b6040518060400160405280601e81526020017f4d6163726f20477261647561746520536f756c626f756e6420546f6b656e0000815250604051806040016040528060058152602001641351d4d09560da1b81525081600090816200009991906200044e565b506001620000a882826200044e565b505050620000c5620000bf6200015960201b60201c565b6200015d565b6007620000d384826200044e565b507ff9c7803e94e0d3c02900d8a90893a6d5e90dd04d32a4cfe825520f82bf9f32f6836040516200010591906200051a565b60405180910390a160088290556040518281527f42cbc405e4dbf1b691e85b9a34b08ecfcf7a9ad9078bf4d645ccfa1fac11c10b9060200160405180910390a16200015081620001af565b5050506200054f565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620001b962000232565b6001600160a01b038116620002245760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6200022f816200015d565b50565b6006546001600160a01b031633146200028e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016200021b565b565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620002c3578181015183820152602001620002a9565b50506000910152565b80516001600160a01b0381168114620002e457600080fd5b919050565b600080600060608486031215620002ff57600080fd5b83516001600160401b03808211156200031757600080fd5b818601915086601f8301126200032c57600080fd5b81518181111562000341576200034162000290565b604051601f8201601f19908116603f011681019083821181831017156200036c576200036c62000290565b816040528281528960208487010111156200038657600080fd5b62000399836020830160208801620002a6565b809750505050505060208401519150620003b660408501620002cc565b90509250925092565b600181811c90821680620003d457607f821691505b602082108103620003f557634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200044957600081815260208120601f850160051c81016020861015620004245750805b601f850160051c820191505b81811015620004455782815560010162000430565b5050505b505050565b81516001600160401b038111156200046a576200046a62000290565b62000482816200047b8454620003bf565b84620003fb565b602080601f831160018114620004ba5760008415620004a15750858301515b600019600386901b1c1916600185901b17855562000445565b600085815260208120601f198616915b82811015620004eb57888601518255948401946001909101908401620004ca565b50858210156200050a5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208152600082518060208401526200053b816040850160208701620002a6565b601f01601f19169190910160400192915050565b612027806200055f6000396000f3fe608060405234801561001057600080fd5b50600436106101ae5760003560e01c806395d89b41116100ee578063d35827a611610097578063dd524f8811610071578063dd524f88146103b7578063e985e9c5146103ca578063ebf0c717146103f8578063f2fde38b1461040157600080fd5b8063d35827a614610376578063d35a780d14610389578063d547cfb7146103af57600080fd5b8063b88d4fde116100c8578063b88d4fde1461033d578063c87b56dd14610350578063d301ef731461036357600080fd5b806395d89b4114610314578063a22cb4651461031c578063b45a3c0e1461032a57600080fd5b806342966c681161015b57806370a082311161013557806370a08231146102ba578063715018a6146102db5780637cb64759146102e35780638da5cb5b146102f657600080fd5b806342966c681461028157806355f804b3146102945780636352211e146102a757600080fd5b8063095ea7b31161018c578063095ea7b31461024b57806323b872dd1461026057806342842e0e1461026e57600080fd5b806301ffc9a7146101b357806306fdde03146101db578063081812fc146101f0575b600080fd5b6101c66101c13660046116a0565b610414565b60405190151581526020015b60405180910390f35b6101e3610545565b6040516101d291906116e1565b6102266101fe366004611732565b60046020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101d2565b61025e61025936600461176f565b6105d3565b005b61025e610259366004611799565b61025e61027c366004611799565b61063a565b61025e61028f366004611732565b6107a4565b61025e6102a236600461181e565b6107b8565b6102266102b5366004611732565b61080b565b6102cd6102c8366004611860565b61089c565b6040519081526020016101d2565b61025e610944565b61025e6102f1366004611732565b610958565b60065473ffffffffffffffffffffffffffffffffffffffff16610226565b6101e361099b565b61025e61025936600461187b565b6101c6610338366004611732565b6109a8565b61025e61034b3660046118b7565b6109bc565b6101e361035e366004611732565b610b16565b61025e61037136600461196b565b610b54565b61025e610384366004611a26565b610c7d565b61039c610397366004611732565b610d36565b60405161ffff90911681526020016101d2565b6101e3610d49565b61039c6103c5366004611732565b610d56565b6101c66103d8366004611a8b565b600560209081526000928352604080842090915290825290205460ff1681565b6102cd60085481565b61025e61040f366004611860565b610d69565b60007fb45a3c0e000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614806104a757507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b806104f357507f80ac58cd000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b8061053f57507f5b5e139f000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6000805461055290611abe565b80601f016020809104026020016040519081016040528092919081815260200182805461057e90611abe565b80156105cb5780601f106105a0576101008083540402835291602001916105cb565b820191906000526020600020905b8154815290600101906020018083116105ae57829003601f168201915b505050505081565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f4e4f4e5f5452414e5346455241424c450000000000000000000000000000000060448201526064015b60405180910390fd5b6106458383836105d3565b73ffffffffffffffffffffffffffffffffffffffff82163b158061073957506040517f150b7a020000000000000000000000000000000000000000000000000000000080825233600483015273ffffffffffffffffffffffffffffffffffffffff858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af11580156106f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107159190611b11565b7fffffffff0000000000000000000000000000000000000000000000000000000016145b61079f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f554e534146455f524543495049454e54000000000000000000000000000000006044820152606401610631565b505050565b6107ac610e1d565b6107b581610e9e565b50565b6107c0610e1d565b60076107cd828483611bab565b507ff9c7803e94e0d3c02900d8a90893a6d5e90dd04d32a4cfe825520f82bf9f32f682826040516107ff929190611d0e565b60405180910390a15050565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff1680610897576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f4e4f545f4d494e544544000000000000000000000000000000000000000000006044820152606401610631565b919050565b600073ffffffffffffffffffffffffffffffffffffffff821661091b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f5a45524f5f4144445245535300000000000000000000000000000000000000006044820152606401610631565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b61094c610e1d565b6109566000610fe8565b565b610960610e1d565b60088190556040518181527f42cbc405e4dbf1b691e85b9a34b08ecfcf7a9ad9078bf4d645ccfa1fac11c10b9060200160405180910390a150565b6001805461055290611abe565b60006109b38261080b565b50600192915050565b6109c78585856105d3565b73ffffffffffffffffffffffffffffffffffffffff84163b1580610aa957506040517f150b7a02000000000000000000000000000000000000000000000000000000008082529073ffffffffffffffffffffffffffffffffffffffff86169063150b7a0290610a429033908a90899089908990600401611d2a565b6020604051808303816000875af1158015610a61573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a859190611b11565b7fffffffff0000000000000000000000000000000000000000000000000000000016145b610b0f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f554e534146455f524543495049454e54000000000000000000000000000000006044820152606401610631565b5050505050565b6060610b218261080b565b506007610b2d8361105f565b604051602001610b3e929190611d75565b6040516020818303038152906040529050919050565b610b5c610e1d565b848015801590610b6b57508084145b8015610b7657508082145b610bdc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f494e434f4e53495354454e545f4c454e475448000000000000000000000000006044820152606401610631565b60005b81811015610c73576000888883818110610bfb57610bfb611e42565b9050602002016020810190610c109190611860565b9050610c6a81888885818110610c2857610c28611e42565b9050602002016020810190610c3d9190611e71565b878786818110610c4f57610c4f611e42565b9050602002016020810190610c649190611e8c565b8461111d565b50600101610bdf565b5050505050505050565b610cc4610c8b3386866111b4565b8383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506111ea92505050565b610d2a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f494e56414c49445f50524f4f46000000000000000000000000000000000000006044820152606401610631565b610b0f3385858861111d565b6000610d418261080b565b505060ff1690565b6007805461055290611abe565b6000610d618261080b565b505060081c90565b610d71610e1d565b73ffffffffffffffffffffffffffffffffffffffff8116610e14576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610631565b6107b581610fe8565b60065473ffffffffffffffffffffffffffffffffffffffff163314610956576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610631565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff1680610f2a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f4e4f545f4d494e544544000000000000000000000000000000000000000000006044820152606401610631565b73ffffffffffffffffffffffffffffffffffffffff8116600081815260036020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190558583526002825280832080547fffffffffffffffffffffffff000000000000000000000000000000000000000090811690915560049092528083208054909216909155518492907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6006805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6060600061106c83611200565b600101905060008167ffffffffffffffff81111561108c5761108c611b2e565b6040519080825280601f01601f1916602001820160405280156110b6576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85049450846110c057509392505050565b600082600381111561113157611131611ea7565b60ff1661116462ffff00600887901b1676ffffffffffffffffffffffffffffffffffffffff000000601889901b16611f05565b61116e9190611f05565b905061117a82826112e2565b6040518181527f032bc66be43dbccb7487781d168eb7bda224628a3b2c3388bdf69b532a3a16119060200160405180910390a15050505050565b60008383836040516020016111cb93929190611f18565b6040516020818303038152906040528051906020012090509392505050565b60006111f98260085485611447565b9392505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310611249577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310611275576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061129357662386f26fc10000830492506010015b6305f5e10083106112ab576305f5e100830492506008015b61271083106112bf57612710830492506004015b606483106112d1576064830492506002015b600a831061053f5760010192915050565b6112ec828261145d565b73ffffffffffffffffffffffffffffffffffffffff82163b15806113dd57506040517f150b7a0200000000000000000000000000000000000000000000000000000000808252336004830152600060248301819052604483018490526080606484015260848301529073ffffffffffffffffffffffffffffffffffffffff84169063150b7a029060a4016020604051808303816000875af1158015611395573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113b99190611b11565b7fffffffff0000000000000000000000000000000000000000000000000000000016145b611443576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f554e534146455f524543495049454e54000000000000000000000000000000006044820152606401610631565b5050565b60008261145485846115f6565b14949350505050565b73ffffffffffffffffffffffffffffffffffffffff82166114da576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f494e56414c49445f524543495049454e540000000000000000000000000000006044820152606401610631565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff1615611566576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f414c52454144595f4d494e5445440000000000000000000000000000000000006044820152606401610631565b73ffffffffffffffffffffffffffffffffffffffff8216600081815260036020908152604080832080546001019055848352600290915280822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600081815b845181101561163b576116278286838151811061161a5761161a611e42565b6020026020010151611643565b91508061163381611fb9565b9150506115fb565b509392505050565b600081831061165f5760008281526020849052604090206111f9565b60008381526020839052604090206111f9565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146107b557600080fd5b6000602082840312156116b257600080fd5b81356111f981611672565b60005b838110156116d85781810151838201526020016116c0565b50506000910152565b60208152600082518060208401526117008160408501602087016116bd565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60006020828403121561174457600080fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461089757600080fd5b6000806040838503121561178257600080fd5b61178b8361174b565b946020939093013593505050565b6000806000606084860312156117ae57600080fd5b6117b78461174b565b92506117c56020850161174b565b9150604084013590509250925092565b60008083601f8401126117e757600080fd5b50813567ffffffffffffffff8111156117ff57600080fd5b60208301915083602082850101111561181757600080fd5b9250929050565b6000806020838503121561183157600080fd5b823567ffffffffffffffff81111561184857600080fd5b611854858286016117d5565b90969095509350505050565b60006020828403121561187257600080fd5b6111f98261174b565b6000806040838503121561188e57600080fd5b6118978361174b565b9150602083013580151581146118ac57600080fd5b809150509250929050565b6000806000806000608086880312156118cf57600080fd5b6118d88661174b565b94506118e66020870161174b565b935060408601359250606086013567ffffffffffffffff81111561190957600080fd5b611915888289016117d5565b969995985093965092949392505050565b60008083601f84011261193857600080fd5b50813567ffffffffffffffff81111561195057600080fd5b6020830191508360208260051b850101111561181757600080fd5b6000806000806000806060878903121561198457600080fd5b863567ffffffffffffffff8082111561199c57600080fd5b6119a88a838b01611926565b909850965060208901359150808211156119c157600080fd5b6119cd8a838b01611926565b909650945060408901359150808211156119e657600080fd5b506119f389828a01611926565b979a9699509497509295939492505050565b803561ffff8116811461089757600080fd5b80356004811061089757600080fd5b600080600080600060808688031215611a3e57600080fd5b611a478661174b565b9450611a5560208701611a05565b9350611a6360408701611a17565b9250606086013567ffffffffffffffff811115611a7f57600080fd5b61191588828901611926565b60008060408385031215611a9e57600080fd5b611aa78361174b565b9150611ab56020840161174b565b90509250929050565b600181811c90821680611ad257607f821691505b602082108103611b0b577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b600060208284031215611b2357600080fd5b81516111f981611672565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b601f82111561079f57600081815260208120601f850160051c81016020861015611b845750805b601f850160051c820191505b81811015611ba357828155600101611b90565b505050505050565b67ffffffffffffffff831115611bc357611bc3611b2e565b611bd783611bd18354611abe565b83611b5d565b6000601f841160018114611c295760008515611bf35750838201355b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600387901b1c1916600186901b178355610b0f565b6000838152602090207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0861690835b82811015611c785786850135825560209485019460019092019101611c58565b5086821015611cb3577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60f88860031b161c19848701351681555b505060018560011b0183555050505050565b8183528181602085013750600060208284010152600060207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116840101905092915050565b602081526000611d22602083018486611cc5565b949350505050565b600073ffffffffffffffffffffffffffffffffffffffff808816835280871660208401525084604083015260806060830152611d6a608083018486611cc5565b979650505050505050565b6000808454611d8381611abe565b60018281168015611d9b5760018114611dce57611dfd565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0084168752821515830287019450611dfd565b8860005260208060002060005b85811015611df45781548a820152908401908201611ddb565b50505082870194505b505050508351611e118183602088016116bd565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060208284031215611e8357600080fd5b6111f982611a05565b600060208284031215611e9e57600080fd5b6111f982611a17565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082018082111561053f5761053f611ed6565b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000008460601b1681527fffff0000000000000000000000000000000000000000000000000000000000008360f01b166014820152600060048310611fa4577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b5060f89190911b601682015260170192915050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611fea57611fea611ed6565b506001019056fea26469706673582212202ffcc9d2fec2e8fdb9f674b3009022ca16631da930006e9951b435ff047e457464736f6c634300081100330000000000000000000000000000000000000000000000000000000000000060e9679d5ce0229d69318f8aef5bb33997a7d33c7b78ebb7fab2cee7b856e78fc2000000000000000000000000ed03eb80f1e8d5cacbe80b8d1d4db599f32c41a20000000000000000000000000000000000000000000000000000000000000043697066733a2f2f626166796265696574657537716c766b77366b717372676b6737663473616d3774717978793266647471646f34326f6c62737969687232366769652f0000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101ae5760003560e01c806395d89b41116100ee578063d35827a611610097578063dd524f8811610071578063dd524f88146103b7578063e985e9c5146103ca578063ebf0c717146103f8578063f2fde38b1461040157600080fd5b8063d35827a614610376578063d35a780d14610389578063d547cfb7146103af57600080fd5b8063b88d4fde116100c8578063b88d4fde1461033d578063c87b56dd14610350578063d301ef731461036357600080fd5b806395d89b4114610314578063a22cb4651461031c578063b45a3c0e1461032a57600080fd5b806342966c681161015b57806370a082311161013557806370a08231146102ba578063715018a6146102db5780637cb64759146102e35780638da5cb5b146102f657600080fd5b806342966c681461028157806355f804b3146102945780636352211e146102a757600080fd5b8063095ea7b31161018c578063095ea7b31461024b57806323b872dd1461026057806342842e0e1461026e57600080fd5b806301ffc9a7146101b357806306fdde03146101db578063081812fc146101f0575b600080fd5b6101c66101c13660046116a0565b610414565b60405190151581526020015b60405180910390f35b6101e3610545565b6040516101d291906116e1565b6102266101fe366004611732565b60046020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101d2565b61025e61025936600461176f565b6105d3565b005b61025e610259366004611799565b61025e61027c366004611799565b61063a565b61025e61028f366004611732565b6107a4565b61025e6102a236600461181e565b6107b8565b6102266102b5366004611732565b61080b565b6102cd6102c8366004611860565b61089c565b6040519081526020016101d2565b61025e610944565b61025e6102f1366004611732565b610958565b60065473ffffffffffffffffffffffffffffffffffffffff16610226565b6101e361099b565b61025e61025936600461187b565b6101c6610338366004611732565b6109a8565b61025e61034b3660046118b7565b6109bc565b6101e361035e366004611732565b610b16565b61025e61037136600461196b565b610b54565b61025e610384366004611a26565b610c7d565b61039c610397366004611732565b610d36565b60405161ffff90911681526020016101d2565b6101e3610d49565b61039c6103c5366004611732565b610d56565b6101c66103d8366004611a8b565b600560209081526000928352604080842090915290825290205460ff1681565b6102cd60085481565b61025e61040f366004611860565b610d69565b60007fb45a3c0e000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614806104a757507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b806104f357507f80ac58cd000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b8061053f57507f5b5e139f000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6000805461055290611abe565b80601f016020809104026020016040519081016040528092919081815260200182805461057e90611abe565b80156105cb5780601f106105a0576101008083540402835291602001916105cb565b820191906000526020600020905b8154815290600101906020018083116105ae57829003601f168201915b505050505081565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f4e4f4e5f5452414e5346455241424c450000000000000000000000000000000060448201526064015b60405180910390fd5b6106458383836105d3565b73ffffffffffffffffffffffffffffffffffffffff82163b158061073957506040517f150b7a020000000000000000000000000000000000000000000000000000000080825233600483015273ffffffffffffffffffffffffffffffffffffffff858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af11580156106f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107159190611b11565b7fffffffff0000000000000000000000000000000000000000000000000000000016145b61079f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f554e534146455f524543495049454e54000000000000000000000000000000006044820152606401610631565b505050565b6107ac610e1d565b6107b581610e9e565b50565b6107c0610e1d565b60076107cd828483611bab565b507ff9c7803e94e0d3c02900d8a90893a6d5e90dd04d32a4cfe825520f82bf9f32f682826040516107ff929190611d0e565b60405180910390a15050565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff1680610897576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f4e4f545f4d494e544544000000000000000000000000000000000000000000006044820152606401610631565b919050565b600073ffffffffffffffffffffffffffffffffffffffff821661091b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f5a45524f5f4144445245535300000000000000000000000000000000000000006044820152606401610631565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b61094c610e1d565b6109566000610fe8565b565b610960610e1d565b60088190556040518181527f42cbc405e4dbf1b691e85b9a34b08ecfcf7a9ad9078bf4d645ccfa1fac11c10b9060200160405180910390a150565b6001805461055290611abe565b60006109b38261080b565b50600192915050565b6109c78585856105d3565b73ffffffffffffffffffffffffffffffffffffffff84163b1580610aa957506040517f150b7a02000000000000000000000000000000000000000000000000000000008082529073ffffffffffffffffffffffffffffffffffffffff86169063150b7a0290610a429033908a90899089908990600401611d2a565b6020604051808303816000875af1158015610a61573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a859190611b11565b7fffffffff0000000000000000000000000000000000000000000000000000000016145b610b0f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f554e534146455f524543495049454e54000000000000000000000000000000006044820152606401610631565b5050505050565b6060610b218261080b565b506007610b2d8361105f565b604051602001610b3e929190611d75565b6040516020818303038152906040529050919050565b610b5c610e1d565b848015801590610b6b57508084145b8015610b7657508082145b610bdc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f494e434f4e53495354454e545f4c454e475448000000000000000000000000006044820152606401610631565b60005b81811015610c73576000888883818110610bfb57610bfb611e42565b9050602002016020810190610c109190611860565b9050610c6a81888885818110610c2857610c28611e42565b9050602002016020810190610c3d9190611e71565b878786818110610c4f57610c4f611e42565b9050602002016020810190610c649190611e8c565b8461111d565b50600101610bdf565b5050505050505050565b610cc4610c8b3386866111b4565b8383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506111ea92505050565b610d2a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f494e56414c49445f50524f4f46000000000000000000000000000000000000006044820152606401610631565b610b0f3385858861111d565b6000610d418261080b565b505060ff1690565b6007805461055290611abe565b6000610d618261080b565b505060081c90565b610d71610e1d565b73ffffffffffffffffffffffffffffffffffffffff8116610e14576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610631565b6107b581610fe8565b60065473ffffffffffffffffffffffffffffffffffffffff163314610956576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610631565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff1680610f2a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f4e4f545f4d494e544544000000000000000000000000000000000000000000006044820152606401610631565b73ffffffffffffffffffffffffffffffffffffffff8116600081815260036020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190558583526002825280832080547fffffffffffffffffffffffff000000000000000000000000000000000000000090811690915560049092528083208054909216909155518492907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6006805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6060600061106c83611200565b600101905060008167ffffffffffffffff81111561108c5761108c611b2e565b6040519080825280601f01601f1916602001820160405280156110b6576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85049450846110c057509392505050565b600082600381111561113157611131611ea7565b60ff1661116462ffff00600887901b1676ffffffffffffffffffffffffffffffffffffffff000000601889901b16611f05565b61116e9190611f05565b905061117a82826112e2565b6040518181527f032bc66be43dbccb7487781d168eb7bda224628a3b2c3388bdf69b532a3a16119060200160405180910390a15050505050565b60008383836040516020016111cb93929190611f18565b6040516020818303038152906040528051906020012090509392505050565b60006111f98260085485611447565b9392505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310611249577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310611275576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061129357662386f26fc10000830492506010015b6305f5e10083106112ab576305f5e100830492506008015b61271083106112bf57612710830492506004015b606483106112d1576064830492506002015b600a831061053f5760010192915050565b6112ec828261145d565b73ffffffffffffffffffffffffffffffffffffffff82163b15806113dd57506040517f150b7a0200000000000000000000000000000000000000000000000000000000808252336004830152600060248301819052604483018490526080606484015260848301529073ffffffffffffffffffffffffffffffffffffffff84169063150b7a029060a4016020604051808303816000875af1158015611395573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113b99190611b11565b7fffffffff0000000000000000000000000000000000000000000000000000000016145b611443576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f554e534146455f524543495049454e54000000000000000000000000000000006044820152606401610631565b5050565b60008261145485846115f6565b14949350505050565b73ffffffffffffffffffffffffffffffffffffffff82166114da576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f494e56414c49445f524543495049454e540000000000000000000000000000006044820152606401610631565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff1615611566576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f414c52454144595f4d494e5445440000000000000000000000000000000000006044820152606401610631565b73ffffffffffffffffffffffffffffffffffffffff8216600081815260036020908152604080832080546001019055848352600290915280822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600081815b845181101561163b576116278286838151811061161a5761161a611e42565b6020026020010151611643565b91508061163381611fb9565b9150506115fb565b509392505050565b600081831061165f5760008281526020849052604090206111f9565b60008381526020839052604090206111f9565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146107b557600080fd5b6000602082840312156116b257600080fd5b81356111f981611672565b60005b838110156116d85781810151838201526020016116c0565b50506000910152565b60208152600082518060208401526117008160408501602087016116bd565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60006020828403121561174457600080fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461089757600080fd5b6000806040838503121561178257600080fd5b61178b8361174b565b946020939093013593505050565b6000806000606084860312156117ae57600080fd5b6117b78461174b565b92506117c56020850161174b565b9150604084013590509250925092565b60008083601f8401126117e757600080fd5b50813567ffffffffffffffff8111156117ff57600080fd5b60208301915083602082850101111561181757600080fd5b9250929050565b6000806020838503121561183157600080fd5b823567ffffffffffffffff81111561184857600080fd5b611854858286016117d5565b90969095509350505050565b60006020828403121561187257600080fd5b6111f98261174b565b6000806040838503121561188e57600080fd5b6118978361174b565b9150602083013580151581146118ac57600080fd5b809150509250929050565b6000806000806000608086880312156118cf57600080fd5b6118d88661174b565b94506118e66020870161174b565b935060408601359250606086013567ffffffffffffffff81111561190957600080fd5b611915888289016117d5565b969995985093965092949392505050565b60008083601f84011261193857600080fd5b50813567ffffffffffffffff81111561195057600080fd5b6020830191508360208260051b850101111561181757600080fd5b6000806000806000806060878903121561198457600080fd5b863567ffffffffffffffff8082111561199c57600080fd5b6119a88a838b01611926565b909850965060208901359150808211156119c157600080fd5b6119cd8a838b01611926565b909650945060408901359150808211156119e657600080fd5b506119f389828a01611926565b979a9699509497509295939492505050565b803561ffff8116811461089757600080fd5b80356004811061089757600080fd5b600080600080600060808688031215611a3e57600080fd5b611a478661174b565b9450611a5560208701611a05565b9350611a6360408701611a17565b9250606086013567ffffffffffffffff811115611a7f57600080fd5b61191588828901611926565b60008060408385031215611a9e57600080fd5b611aa78361174b565b9150611ab56020840161174b565b90509250929050565b600181811c90821680611ad257607f821691505b602082108103611b0b577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b600060208284031215611b2357600080fd5b81516111f981611672565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b601f82111561079f57600081815260208120601f850160051c81016020861015611b845750805b601f850160051c820191505b81811015611ba357828155600101611b90565b505050505050565b67ffffffffffffffff831115611bc357611bc3611b2e565b611bd783611bd18354611abe565b83611b5d565b6000601f841160018114611c295760008515611bf35750838201355b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600387901b1c1916600186901b178355610b0f565b6000838152602090207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0861690835b82811015611c785786850135825560209485019460019092019101611c58565b5086821015611cb3577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60f88860031b161c19848701351681555b505060018560011b0183555050505050565b8183528181602085013750600060208284010152600060207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116840101905092915050565b602081526000611d22602083018486611cc5565b949350505050565b600073ffffffffffffffffffffffffffffffffffffffff808816835280871660208401525084604083015260806060830152611d6a608083018486611cc5565b979650505050505050565b6000808454611d8381611abe565b60018281168015611d9b5760018114611dce57611dfd565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0084168752821515830287019450611dfd565b8860005260208060002060005b85811015611df45781548a820152908401908201611ddb565b50505082870194505b505050508351611e118183602088016116bd565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060208284031215611e8357600080fd5b6111f982611a05565b600060208284031215611e9e57600080fd5b6111f982611a17565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082018082111561053f5761053f611ed6565b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000008460601b1681527fffff0000000000000000000000000000000000000000000000000000000000008360f01b166014820152600060048310611fa4577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b5060f89190911b601682015260170192915050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611fea57611fea611ed6565b506001019056fea26469706673582212202ffcc9d2fec2e8fdb9f674b3009022ca16631da930006e9951b435ff047e457464736f6c63430008110033

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

0000000000000000000000000000000000000000000000000000000000000060e9679d5ce0229d69318f8aef5bb33997a7d33c7b78ebb7fab2cee7b856e78fc2000000000000000000000000ed03eb80f1e8d5cacbe80b8d1d4db599f32c41a20000000000000000000000000000000000000000000000000000000000000043697066733a2f2f626166796265696574657537716c766b77366b717372676b6737663473616d3774717978793266647471646f34326f6c62737969687232366769652f0000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _baseURI (string): ipfs://bafybeieteu7qlvkw6kqsrgkg7f4sam7tqyxy2fdtqdo42olbsyihr26gie/
Arg [1] : _root (bytes32): 0xe9679d5ce0229d69318f8aef5bb33997a7d33c7b78ebb7fab2cee7b856e78fc2
Arg [2] : _owner (address): 0xeD03eB80F1e8D5cAcBE80b8d1D4dB599F32C41A2

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : e9679d5ce0229d69318f8aef5bb33997a7d33c7b78ebb7fab2cee7b856e78fc2
Arg [2] : 000000000000000000000000ed03eb80f1e8d5cacbe80b8d1d4db599f32c41a2
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [4] : 697066733a2f2f626166796265696574657537716c766b77366b717372676b67
Arg [5] : 37663473616d3774717978793266647471646f34326f6c627379696872323667
Arg [6] : 69652f0000000000000000000000000000000000000000000000000000000000


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.