isValidNamespaces static method

bool isValidNamespaces({
  1. required Map<String, Namespace> namespaces,
  2. required String context,
})

Validates the data of the Namespaces, ensuring it conforms to CAIP-25

Implementation

static bool isValidNamespaces({
  required Map<String, Namespace> namespaces,
  required String context,
}) {
  namespaces.forEach((key, namespace) {
    isValidAccounts(
      accounts: namespace.accounts,
      context: '$context namespace',
    );
  });

  return true;
}