From 09825ea3c7b73ae9caa2607c31f2f57db0d9e065 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 23 Mar 2023 13:02:29 -0400 Subject: [PATCH] *Add createClient --- src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index c42974c..36439eb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -6,7 +6,7 @@ import type { } from "@lumeweb/interface-relay"; import { RpcQueryOptions } from "@lumeweb/rpc-client"; import { Buffer } from "buffer"; -import { Client } from "@lumeweb/libkernel-universal"; +import { Client, factory } from "@lumeweb/libkernel-universal"; const RPC_MODULE = "fAAgZfXMqN3YOn0-b9DICt8OPsOFeWw3YKY2p84aytzBww"; @@ -123,3 +123,5 @@ export class SimpleRpcQuery extends RpcQueryBase { return this; } } + +export const createClient = factory(RpcNetwork, RPC_MODULE);