kleros-escrow-data-service
Version:
Data service for interacting with Kleros Escrow
21 lines (20 loc) • 735 B
JavaScript
// Export all types
export * from "./types";
// Export GraphQL response types
// export type { SubgraphResponse, RulingResponse } from "./services/event";
// Export all services (read functions)
export * from "./services";
// Export all actions (write functions)
export * from "./actions";
// Export the client
export * from "./client/KlerosEscrowClient";
import { KlerosEscrowClient } from "./client/KlerosEscrowClient";
/**
* Creates a Kleros Escrow client
* @param config The Kleros Escrow configuration
* @param signer Optional signer for write operations
* @returns A client for interacting with Kleros Escrow
*/
export function createKlerosEscrowClient(config, signer) {
return new KlerosEscrowClient(config, signer);
}