()
| 500 | } |
| 501 | |
| 502 | function readPublicCommands() { |
| 503 | const metadataNames = new Set(listCommandMetadata().map((metadata) => metadata.name)); |
| 504 | return Object.values(PUBLIC_COMMANDS) |
| 505 | .map((name) => { |
| 506 | if (!metadataNames.has(name)) { |
| 507 | throw new Error(`Missing command metadata for public command: ${name}`); |
| 508 | } |
| 509 | return name; |
| 510 | }) |
| 511 | .sort(); |
| 512 | } |
| 513 | |
| 514 | function readClientCommandMethods(commandContractFiles) { |
| 515 | const commands = new Map(); |
no test coverage detected