🖥️Clients
Last updated
export type Character = {
// ... other properties ...
clientConfig?: {
uniswap?: {
shouldTradeInNative?: boolean;
shouldAllowNewTokens?: boolean;
enableWrappedETH?: boolean;
hooks?: string[];
nativeLimitOrders?: boolean;
};
raydium?: {
raydiumVersion?: string;
};
lifi?: {
enableEfficientRouting?: boolean;
maxTxTimeLimit?: number;
};
nameSystem?: {
snsVersionHash?: string;
ensVersionHash?: string;
};
// ... other client configs
};
};import { Client, IAgentRuntime, ClientInstance } from "@sona/core";
export class CustomClient implements Client {
name = "custom";
async start(runtime: IAgentRuntime): Promise<ClientInstance> {
// Initialize platform connection
// Set up event handlers
// Configure message processing
return {
stop: async () => {
// Cleanup resources
// Close connections
}
};
}
}