MerkleProofWrapperUpgradeable.sol 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. // SPDX-License-Identifier: MIT
  2. pragma solidity ^0.8.0;
  3. import "../utils/cryptography/MerkleProofUpgradeable.sol";
  4. import "../proxy/utils/Initializable.sol";
  5. contract MerkleProofWrapperUpgradeable is Initializable {
  6. function __MerkleProofWrapper_init() internal onlyInitializing {
  7. }
  8. function __MerkleProofWrapper_init_unchained() internal onlyInitializing {
  9. }
  10. function verify(
  11. bytes32[] memory proof,
  12. bytes32 root,
  13. bytes32 leaf
  14. ) public pure returns (bool) {
  15. return MerkleProofUpgradeable.verify(proof, root, leaf);
  16. }
  17. function processProof(bytes32[] memory proof, bytes32 leaf) public pure returns (bytes32) {
  18. return MerkleProofUpgradeable.processProof(proof, leaf);
  19. }
  20. /**
  21. * @dev This empty reserved space is put in place to allow future versions to add new
  22. * variables without shifting down storage in the inheritance chain.
  23. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
  24. */
  25. uint256[50] private __gap;
  26. }