getChainIdsFromRequiredNamespaces static method
List<String>
getChainIdsFromRequiredNamespaces({
- required Map<
String, RequiredNamespace> requiredNamespaces,
Gets the chains from the required namespaces If keys value is provided, it will only get the chains for the provided keys
Implementation
static List<String> getChainIdsFromRequiredNamespaces({
required Map<String, RequiredNamespace> requiredNamespaces,
}) {
Set<String> chainIds = {};
// Loop through the required namespaces
requiredNamespaces.forEach((String ns, RequiredNamespace value) {
chainIds.addAll(
getChainsFromRequiredNamespace(
nsOrChainId: ns,
requiredNamespace: value,
),
);
});
return chainIds.toList();
}