Skip to content

Commit

Permalink
fix type erros
Browse files Browse the repository at this point in the history
  • Loading branch information
ponderingdemocritus committed Jan 26, 2025
1 parent 2326efc commit 64f87ce
Show file tree
Hide file tree
Showing 7 changed files with 635 additions and 4,351 deletions.
3 changes: 3 additions & 0 deletions examples/example-basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import chalk from "chalk";
import { ChromaVectorDB } from "../packages/core/src/core/vector-db";
import { z } from "zod";
import { env } from "../packages/core/src/core/env";
import { HandlerRole } from "../packages/core/src/core/types";

/**
* Helper function to get user input from CLI
Expand Down Expand Up @@ -77,6 +78,7 @@ async function main() {
// Register available outputs
dreams.registerOutput({
name: "EXECUTE_TRANSACTION",
role: HandlerRole.OUTPUT,
handler: async (data: any) => {
const result = await starknetChain.write(data.payload);
return `Transaction: ${JSON.stringify(result, null, 2)}`;
Expand All @@ -102,6 +104,7 @@ async function main() {

dreams.registerOutput({
name: "GRAPHQL_FETCH",
role: HandlerRole.OUTPUT,
handler: async (data: any) => {
const { query, variables } = data.payload ?? {};
const result = await fetchGraphQL(
Expand Down
Loading

0 comments on commit 64f87ce

Please sign in to comment.