Instrument Registry serves as the registry for instrument domains. It's a light-weight registry that maintains minimum information for instrument domain creation and lookup.
Instrument Registry has the following responsibilities:
As mentioned in section Instrument, once the instrument contract is deployed, Service Providers can activate this instrument on NUTS Platform in Instrument Registry. Below is the activation process:
Instrument Registry queries Config to get the Instrument Manager Factory;
Instrument Registry calls Instrument Manager Factory to create a new instrument domain for this instrument;
Instrument Registry assigns a new ID for the instrument.
During the activation process, Service Providers might be required to deposit NUTS tokens which are burned when the instrument is deactivated. The amount of NUTS token to deposit is configured in the Config.
Instrument Registry supports looking up instrument domain by instrument ID. Since the Instrument Manager is the portal for the instrument domain, the lookup method simply returns the address of the Instrument Manager.