An external access level provider may be utilized when you need to rely on controls and data passports provided by external systems. In order to switch to an external access level provider, the external provider contract must conform to the IAccessLevels interface or an adapter contract that conforms to the interface must be used. Once the external provider contract is deployed, the AppManager must be pointed to the new provider.Documentation Index
Fetch the complete documentation index at: https://thrackle.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Required functions for the External Access Level Provider
see IAccessLevels
see AccessLevels
see DataModule
Process for switching to an external access level provider
The switching process consists of proposing and confirming the data provider. The first part of the 2 step process is to propose a new access level provider in the AppManager. Once the new provider address is proposed, then it is confirmed by invoking a confirmation function in the new provider that invokes the corresponding function in AppManager. The process is as follows:-
- Deploy the external Access Level Provider.
-
- Call proposeAccessLevelsProvider in the AppManager.
-
- Call confirmDataProvider in the external access level provider contract with provider type = IDataModule.ProviderType.ACCESS_LEVEL:
Revert Messages
The confirmation will revert if the external access level contract address does not match the proposed access level provider:0x41284967.