File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -230,11 +230,24 @@ abstract contract TransceiverRegistry {
230230 return _getTransceiverBitmapStorage ().bitmap;
231231 }
232232
233- /// @notice Returns the Transceiver contracts that have been registered via governance.
233+ /// @notice Returns the Transceiver contracts that have been enabled via governance.
234234 function getTransceivers () external pure returns (address [] memory result ) {
235235 result = _getEnabledTransceiversStorage ();
236236 }
237237
238+ /// @notice Returns the info for all enabled transceivers
239+ function getTransceiverInfo () external view returns (TransceiverInfo[] memory ) {
240+ address [] memory enabledTransceivers = _getEnabledTransceiversStorage ();
241+ uint256 numEnabledTransceivers = enabledTransceivers.length ;
242+ TransceiverInfo[] memory result = new TransceiverInfo [](numEnabledTransceivers);
243+
244+ for (uint256 i = 0 ; i < numEnabledTransceivers; ++ i) {
245+ result[i] = _getTransceiverInfosStorage ()[enabledTransceivers[i]];
246+ }
247+
248+ return result;
249+ }
250+
238251 // ============== Invariants =============================================
239252
240253 /// @dev Check that the transceiver nttManager is in a valid state.
You can’t perform that action at this time.
0 commit comments