-
Notifications
You must be signed in to change notification settings - Fork 0
/
base_space_interfaces.sol
28 lines (22 loc) · 1.13 KB
/
base_space_interfaces.sol
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
pragma solidity 0.5.4;
interface IFactorySpace {
// this is the only method that's not directly called on the space
function createContent(address payable lib, address payable content_type) external returns (address);
// current factory methods of space - not including wallet ...
function createContentType() external returns (address);
function createLibrary(address address_KMS) external returns (address);
function createGroup() external returns (address);
}
interface IUserSpace {
function userWallets(address _userAddr) external view returns (address);
function createUserWallet(address payable _user) external returns (address);
}
interface IKmsSpace {
function checkKMS(string calldata _kmsIdStr) external view returns (uint);
function checkKMSAddr(address _kmsAddr) external view returns (uint);
function getKMSID(address _kmsAddr) external view returns (string memory);
function getKMSInfo(string calldata _kmsID, bytes calldata prefix) external view returns (string memory, string memory);
}
interface INodeSpace {
function canNodePublish(address candidate) external view returns (bool);
}