Copyright © 2024 Frictionless Markets S.à.r.l
Author: DEFYCA Labs S.à.r.l
Copyright © 2023 DEFYCA Labs S.à.r.l Permission is hereby granted, free of charge, to any person obtaining a copy of the Frictionless protocol smart contracts (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL DEFYCA LABS S.à.r.l BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
The IFrictionlessPermissionsManager is responsible for the management of permission of the various participants in the Frictionless protocol. The roles and responsibilities are defined in the public README for the Frictionless protocol at https://gitlab.com/dfyclabs/protocol/dfyclabs-tokens/-/blob/main/README.md?ref_type=heads#roles-responsibilities
Validates if a wallet address is permissioned in the Frictionless protocol
Parameters
Name | Type | Description |
---|---|---|
Returns
Name | Type | Description |
---|---|---|
Registers a users wallet address as an OnChainId (Identity) to the Frictionless protocol. This Identity is used when permissioning a user to the protocol by invoking the addUser function later.
Parameters
Returns
Gets a users OnChainId (Identity) in the Frictionless protocol.
Parameters
Returns
Get the signed claimData message to be used in the addUser function. The message must be signed using the PK of the ClaimIssuer (PROTOCOL_ADMIN)
Parameters
Returns
verify if the userAddress is permissioned in the Frictionless protocol and has a valid claim
Parameters
Returns
Adds a user's OnChainId (Identity) to the Frictionless protocol along with its associated claim data. The Identity is created by invoking the registerIdentity function first.
Parameters
Returns
Removes a user from the Frictionless protocol along with its associated claim data.
Parameters
Returns
Emitted when a user is added to the Frictionless protocol. This event is emitted by the addUser
function.
Emitted when a user is registered in the Frictionless protocol. This event is emitted by the registerIdentity
function.
Emitted when a user is removed in the Frictionless protocol. This event is emitted by the removeUser
function.
throws if specific address is zero.
throws if treasury tries to add or remove treasury.
throws if user is not a permissioned investor
the internal struct defining a Claim for a PERMISSIONED_USER in the protocol. Used to submit claims for the OnChainId by the ClaimIssuer.
Enum of the Frictionless protocol participants.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
userAddress
address
the wallet address to verify
<none>
bool
true if the address is permissioned in the Frictionless Protocol.
userAddress
address
the address of the user's wallet to register
userISOCountry
uint16
the ISO 3166-1 numeric code of the user, can be the place of residence or the location KYC/AML onboarding was undertaken. requires The msg.sender to have the TREX Agent permissions (PROTOCOL_TREASURY or PROTOCOL_ADMIN)
<none>
address
address the address of the user's OnChainId (Identity) with the associated claims.
userAddress
address
the address of the user's wallet to register requires The msg.sender to have the TREX Agent permissions (PROTOCOL_TREASURY or PROTOCOL_ADMIN)
<none>
address
address the address of the user's OnChainId (Identity) with the associated claims.
userIdentity
address
the address of the user's OnChainId (Identity)
userType
IFrictionlessPermissionsManager.FrictionlessPermissionedUser
the type of the user as per the enum
<none>
bytes32
signed claimData message to be used in the addUser unction once signed by the ClaimIssuer PK.
userAddress
address
the address of the user's wallet to verify
userType
FrictionlessPermissionedUser
the type of the user as per the enum
<none>
bool
true if a valid permissioned user and has a valid claim, otherwise false.
userIdentity
address
the address of the user's OnChainId (Identity)
userType
FrictionlessPermissionedUser
the type of the user as per the enum
claimSignature
bytes
the signed claimData by the ClaimIssuer
claimURI
string
the URI of the off-chain claim for the user. i.e. The Frictionless Markets graphQL endpoint requires The msg.sender to be the Owner if the userType is the PROTOCOL_TREASURY requires The msg.sender to have the TREX Agent permissions (PROTOCOL_TREASURY or PROTOCOL_ADMIN) to add any user
<none>
address
address the address of the user's OnChainId (Identity) with the associated claims.
userAddress
address
the address of the user's wallet requires The msg.sender to have the TREX Agent permissions (PROTOCOL_TREASURY or PROTOCOL_ADMIN) to remove any user
<none>
bool
true if the user is removed from the Frictionless protocol along with its associated claim data, otherwise false.