feat: add getNetworksByType

This commit is contained in:
Derrick Hammer 2023-07-19 13:21:29 -04:00
parent 9da6535b58
commit 2ec79e3242
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 0 deletions

View File

@ -18,6 +18,10 @@ export class NetworkRegistryClient extends Client {
public async registerNetwork(types: string[]) {
return this.callModuleReturn("registerNetwork", { types });
}
public async getNetworksByType(type: string) {
return this.callModuleReturn("getNetworksByType", { type });
}
}
export const createClient = factory<NetworkRegistryClient>(