Watermark Upkeep
Node Processing and Upkeep
Process Flow
function performUpkeep(
uint256 _chainId,
uint256 _partitionId,
bytes32 _merkleRoot,
string calldata merkleTreeURI
)Verification
function verifyMerkleProof(
uint256 _chainId,
uint256 _partitionId,
bytes32[] calldata _proof,
bytes32 _leaf
) external view returns (bool) {
bytes32 merkleRoot = merkleProofs[_chainId][_partitionId].merkleRoot;
if (merkleRoot == bytes32(0)) {
revert InvalidPartitionId();
}
return MerkleProof.verify(_proof, merkleRoot, _leaf);
}Protocol Benefits
Last updated