@newcoin-core/agent
Version:
A super simple way to set up newOS agents
14 lines (11 loc) • 402 B
text/typescript
import { NewgraphClient } from "../clients/client";
import { NewcoinReader } from "./reader";
import { NewcoinWriter } from "./writer";
export const NewcoinReaderAgent = (token: string) => {
const client = NewgraphClient(token)
return NewcoinReader(client);
}
export const NewcoinWriterAgent = (token: string) => {
const client = NewgraphClient(token)
return NewcoinWriter(client);
}