Skip to main content
Version: 1.0.0

BatchOrderTypehashRegistry

LooksRare protocol team (👀,💎)

BatchOrderTypehashRegistry

The contract generates the batch order hash that is used to compute the digest for signature verification.

Methods​

hashBatchOrder​

function hashBatchOrder(bytes32 root, uint256 proofLength) external pure returns (bytes32 batchOrderHash)

This function returns the hash of the concatenation of batch order type hash and merkle root.

Parameters​

NameTypeDescription
rootbytes32Merkle root
proofLengthuint256Merkle proof length

Returns​

NameTypeDescription
batchOrderHashbytes32The batch order hash

Errors​

MerkleProofTooLarge​

error MerkleProofTooLarge(uint256 length)

It is returned if the length of the merkle proof provided is greater than tolerated.

Parameters​

NameTypeDescription
lengthuint256Proof length