2023-07-14 08:34:31 +00:00
|
|
|
import { Client, factory } from "@lumeweb/libkernel/module";
|
2023-03-27 12:54:11 +00:00
|
|
|
|
2023-07-19 16:49:14 +00:00
|
|
|
const MODULE = "zduRybxvGhrGbfH3cmYt9invaL4QLekEyYvggmT6TJH8iucXwJjE9HjcKq";
|
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
|
|
|
}
|
2023-07-19 16:50:45 +00:00
|
|
|
public async register() {
|
|
|
|
return this.callModuleReturn("register");
|
|
|
|
}
|
2023-03-27 12:54:11 +00:00
|
|
|
}
|
|
|
|
|
2023-07-14 08:34:44 +00:00
|
|
|
export const createClient = factory<EthClient>(EthClient, MODULE);
|