2023-03-27 12:55:41 +00:00
|
|
|
import { Client, factory } from "@lumeweb/libkernel-universal";
|
2023-04-09 01:56:32 +00:00
|
|
|
const RPC_MODULE = "AADAkD3pvLEFOlfs5G5u4Ko-3YkMKGxoZa_SAw8lFumj8w";
|
2023-03-27 12:55:41 +00:00
|
|
|
export class EthClient extends Client {
|
|
|
|
async ready() {
|
|
|
|
return this.callModuleReturn("ready");
|
|
|
|
}
|
|
|
|
async method(method, params) {
|
2023-03-27 16:05:55 +00:00
|
|
|
return this.callModuleReturn(method, params);
|
2023-03-27 12:55:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
export const createClient = factory(EthClient, RPC_MODULE);
|