ProtocolHelpers
LooksRare protocol team (👀,💎)
ProtocolHelpers
This contract contains helper view functions for order creation.
Methods​
computeDigestMerkleTree​
function computeDigestMerkleTree(OrderStructs.MerkleTree merkleTree) external view returns (bytes32 digest)
Parameters​
Name | Type | Description |
---|---|---|
merkleTree | OrderStructs.MerkleTree | undefined |
Returns​
Name | Type | Description |
---|---|---|
digest | bytes32 | undefined |
computeMakerDigest​
function computeMakerDigest(OrderStructs.Maker maker) external view returns (bytes32 digest)
Parameters​
Name | Type | Description |
---|---|---|
maker | OrderStructs.Maker | undefined |
Returns​
Name | Type | Description |
---|---|---|
digest | bytes32 | undefined |
looksRareProtocol​
function looksRareProtocol() external view returns (contract LooksRareProtocol)
Returns​
Name | Type | Description |
---|---|---|
_0 | contract LooksRareProtocol | undefined |
verifyMakerSignature​
function verifyMakerSignature(OrderStructs.Maker maker, bytes makerSignature, address signer) external view returns (bool)
Parameters​
Name | Type | Description |
---|---|---|
maker | OrderStructs.Maker | undefined |
makerSignature | bytes | undefined |
signer | address | undefined |
Returns​
Name | Type | Description |
---|---|---|
_0 | bool | undefined |
verifyMerkleTree​
function verifyMerkleTree(OrderStructs.MerkleTree merkleTree, bytes makerSignature, address signer) external view returns (bool)
Parameters​
Name | Type | Description |
---|---|---|
merkleTree | OrderStructs.MerkleTree | undefined |
makerSignature | bytes | undefined |
signer | address | undefined |
Returns​
Name | Type | Description |
---|---|---|
_0 | bool | undefined |
Errors​
NullSignerAddress​
error NullSignerAddress()
It is emitted if the signer is null.
SignatureEOAInvalid​
error SignatureEOAInvalid()
It is emitted if the signature is invalid for an EOA (the address recovered is not the expected one).
SignatureERC1271Invalid​
error SignatureERC1271Invalid()
It is emitted if the signature is invalid for a ERC1271 contract signer.
SignatureLengthInvalid​
error SignatureLengthInvalid(uint256 length)
It is emitted if the signature's length is neither 64 nor 65 bytes.
Parameters​
Name | Type | Description |
---|---|---|
length | uint256 | undefined |
SignatureParameterSInvalid​
error SignatureParameterSInvalid()
It is emitted if the signature is invalid due to S parameter.
SignatureParameterVInvalid​
error SignatureParameterVInvalid(uint8 v)
It is emitted if the signature is invalid due to V parameter.
Parameters​
Name | Type | Description |
---|---|---|
v | uint8 | undefined |