2022-05-06 19:18:06 +00:00
|
|
|
import { ValidatorsApi } from "./public/validators";
|
2022-08-29 04:08:33 +00:00
|
|
|
import { ExploreApi } from "./public/explore";
|
|
|
|
import { SharedApi } from "./public/shared";
|
2022-10-22 19:51:07 +00:00
|
|
|
import { ApiRequestInstance } from "~/lib/api/types/non-generated";
|
2022-05-06 19:18:06 +00:00
|
|
|
|
|
|
|
export class PublicApi {
|
|
|
|
public validators: ValidatorsApi;
|
2022-08-29 04:08:33 +00:00
|
|
|
public explore: ExploreApi;
|
|
|
|
public shared: SharedApi;
|
2022-05-06 19:18:06 +00:00
|
|
|
|
|
|
|
constructor(requests: ApiRequestInstance) {
|
|
|
|
this.validators = new ValidatorsApi(requests);
|
2022-08-29 04:08:33 +00:00
|
|
|
this.explore = new ExploreApi(requests);
|
|
|
|
this.shared = new SharedApi(requests);
|
2022-05-06 19:18:06 +00:00
|
|
|
|
|
|
|
Object.freeze(this);
|
|
|
|
}
|
|
|
|
}
|