2023-03-27 12:54:11 +00:00
|
|
|
import { Client, factory } from "@lumeweb/libkernel-universal";
|
|
|
|
|
2023-03-28 11:56:45 +00:00
|
|
|
const RPC_MODULE = "_B0BvJGSbPWH2tDbHpmhL_i7VpYXDGKzTL7gFLb0qtP5Hg";
|
2023-03-27 12:54:11 +00:00
|
|
|
|
|
|
|
export class EthClient extends Client {
|
|
|
|
public async ready() {
|
|
|
|
return this.callModuleReturn("ready");
|
|
|
|
}
|
|
|
|
public async method(method: string, params: any) {
|
2023-03-27 16:05:29 +00:00
|
|
|
return this.callModuleReturn(method, params);
|
2023-03-27 12:54:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export const createClient = factory<EthClient>(EthClient, RPC_MODULE);
|