-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIMetadataRegistry.sol
More file actions
57 lines (38 loc) · 1.77 KB
/
IMetadataRegistry.sol
File metadata and controls
57 lines (38 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;
interface IMetadataRegistry {
// ========== ERRORS ========== //
error AlreadyAssigned();
error InvalidParam(string param);
error InvalidSignature();
error NotAuthorized();
// ========== EVENTS ========== //
event AuctionRegistered(address auctionHouse, uint96 lotId, string ipfsCID);
event CuratorRegistered(address curator, uint256 xId, string ipfsCID);
event CuratorUpdated(uint256 xId, string ipfsCID);
event CuratorAddressAdded(uint256 xId, address curator);
event CuratorAddressRemoved(uint256 xId, address curator);
// ========== DATA STRUCTURES ========== //
struct CuratorRegistration {
address curator;
uint256 xId;
string ipfsCID;
}
struct AuctionRegistration {
address auctionHouse;
uint96 lotId;
string ipfsCID;
}
// ========== INIT ========== //
function registerCurator(CuratorRegistration calldata payload_, bytes calldata signature_) external;
function registerAuction(address auctionHouse_, uint96 lotId_, string calldata ipfsCID_) external;
// ========== UPDATE ========== //
function updateCurator(uint256 xId_, string calldata ipfsCID_) external;
function addCuratorAddress(uint256 xId_, address curator_) external;
function removeCuratorAddress(uint256 xId_, address curator_) external;
// ========== GETTERS ========== //
function isAuctionHouse(address auctionHouse_) external view returns (bool);
function curatorId(address curator_) external view returns (uint256);
function curatorMetadata(uint256 xId_) external view returns (string memory);
function auctionMetadata(address auctionHouse_, uint96 lotId_) external view returns (string memory);
}