(address: string, args: unknown)
| 61 | }); |
| 62 | |
| 63 | const invokeByAddressCode = (address: string, args: unknown) => ` |
| 64 | const segments = ${JSON.stringify(address)}.split(".").slice(1); |
| 65 | let node = tools; |
| 66 | for (const segment of segments) node = node[segment]; |
| 67 | const result = await node(${JSON.stringify(args)}); |
| 68 | return JSON.stringify(result); |
| 69 | `; |
| 70 | |
| 71 | type ToolEnvelope = { |
| 72 | readonly ok: boolean; |
no outgoing calls
no test coverage detected