INestorPermissionsManager¶
Author: Originally developed by DEFYCA Labs S.a.r.l., maintained by Nestor Exchange OÜ
MIT Licence. Originally Copyright © 2023 DEFYCA Labs S.a.r.l.
The INestorPermissionsManager is responsible for the management of permission of the various participants in the Nestor Protocol.
Functions¶
isPermissioned¶
Validates if a wallet address is permissioned in the Nestor Protocol
registerIdentity¶
Registers a user's wallet address as an OnChainId (Identity) to the Nestor Protocol.
getIdentity¶
getClaimMsgHash¶
Get the signed claimData message to be used in the addUser function. Must be signed using the PK of the ClaimIssuer (PROTOCOL_ADMIN).
function getClaimMsgHash(address userIdentity, INestorPermissionsManager.NestorPermissionedUser userType) external view returns (bytes32);
hasClaim¶
function hasClaim(address userAddress, NestorPermissionedUser userType) external view returns (bool);
addUser¶
Adds a user's OnChainId (Identity) to the Nestor Protocol along with its associated claim data.
function addUser(
address userIdentity,
NestorPermissionedUser userType,
bytes memory claimSignature,
string memory claimURI
) external returns (address);
removeUser¶
Events¶
NestorPermissionedUserAdded¶
NestorPermissionedUserRegistered¶
NestorPermissionedUserRemoved¶
Errors¶
NestorIsZeroAddress¶
NestorInvalidPermissionForTreasury¶
NestorUserIsNotPermissionedInvestor¶
Structs¶
Claim¶
struct Claim {
address issuer;
uint256 topic;
uint8 scheme;
address identity;
bytes signature;
bytes data;
}