We are currently introducing ValidatorOptInHub as the next version of the Opt-In Router.

The key difference is in the return types of the optedIn functions. The Hub allows the support of multiple registries dynamically, but the Router remains backwards compatible (via one of its registries pointing to the Hub which checks all registries).


Functions

ValidatorOptInRouter (Old)


ValidatorOptInHub (New)

Instead of 3 fixed fields, we now have a dynamic list of supported registries. As a result, the OptInStatus struct is no longer used - a boolean list is used instead. Two additional functions have also been included to simply return whether a single validator or multiple validators are opted in anywhere.

Querying a single validator

Querying multiple validators