XYOracleNetwork/clients

View on GitHub
packages/cli/src/terminal/commands/handlers/attach/listAttachedModules.ts

Summary

Maintainability
A
1 hr
Test Coverage
import type { NodeInstance } from '@xyo-network/node-model'

import { printLine, printTitle } from '../../../../lib/index.js'

export const listAttachedModules = async (node: NodeInstance) => {
  printTitle('List Attached Modules')

  const addresses = await node.attached()

  for (const address of addresses) {
    printLine(`0x${address}`)
  }
}