Skip to content

Commit

Permalink
style: linted
Browse files Browse the repository at this point in the history
  • Loading branch information
dafuga committed Sep 25, 2023
1 parent 2a26bc3 commit 1e14eb9
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 95 deletions.
18 changes: 8 additions & 10 deletions src/endpoints.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import {
APIClient,
} from '@wharfkit/antelope'
import { HyperionV1APIClient } from './endpoints/v1';
import { HyperionV2APIClient } from './endpoints/v2';
import {APIClient} from '@wharfkit/antelope'
import {HyperionV1APIClient} from './endpoints/v1'
import {HyperionV2APIClient} from './endpoints/v2'

export class HyperionAPIClient {
public v1: HyperionV1APIClient;
public v2: HyperionV2APIClient;
export class HyperionAPIClient {
public v1: HyperionV1APIClient
public v2: HyperionV2APIClient

constructor(private client: APIClient) {
this.v1 = new HyperionV1APIClient(client);
this.v2 = new HyperionV2APIClient(client);
this.v1 = new HyperionV1APIClient(client)
this.v2 = new HyperionV2APIClient(client)
}
}
31 changes: 15 additions & 16 deletions src/endpoints/v1.ts
Original file line number Diff line number Diff line change
@@ -1,50 +1,49 @@
import { APIClient, NameType, TimePointType, UInt64Type } from "@wharfkit/antelope";
import { SortType } from "../types";
import {APIClient} from '@wharfkit/antelope'

export class HyperionV1APIClient {
public history: HyperionV1HistoryAPIClient;
public chain: HyperionV1ChainAPIClient;
public trace_api: HyperionV1TraceApiClient;
public history: HyperionV1HistoryAPIClient
public chain: HyperionV1ChainAPIClient
public trace_api: HyperionV1TraceApiClient

constructor(private client: APIClient) {
this.history = new HyperionV1HistoryAPIClient(client);
this.chain = new HyperionV1ChainAPIClient(client);
this.trace_api = new HyperionV1TraceApiClient(client);
this.history = new HyperionV1HistoryAPIClient(client)
this.chain = new HyperionV1ChainAPIClient(client)
this.trace_api = new HyperionV1TraceApiClient(client)
}
}

class HyperionV1HistoryAPIClient {
constructor(private client: APIClient) {}

async get_actions(): Promise<void> {
throw new Error("Method not implemented.");
throw new Error('Method not implemented.')
}

async get_controlled_accounts(): Promise<void> {
throw new Error("Method not implemented.");
throw new Error('Method not implemented.')
}

async get_key_accounts(): Promise<void> {
throw new Error("Method not implemented.");
throw new Error('Method not implemented.')
}

async get_transaction(): Promise<void> {
throw new Error("Method not implemented.");
throw new Error('Method not implemented.')
}
}

class HyperionV1ChainAPIClient {
constructor(private client: APIClient) {}

async get_block(): Promise<void> {
throw new Error("Method not implemented.");
throw new Error('Method not implemented.')
}
}

class HyperionV1TraceApiClient {
constructor(private client: APIClient) {}

async get_block(): Promise<void> {
throw new Error("Method not implemented.");
throw new Error('Method not implemented.')
}
}
}
23 changes: 15 additions & 8 deletions src/endpoints/v2.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
import { APIClient, Asset, Checksum256Type, Int64Type, NameType, PublicKeyType, TimePointType, UInt64Type } from "@wharfkit/antelope"
import { V2 } from "../types"
import {
APIClient,
Asset,
Checksum256Type,
Int64Type,
NameType,
PublicKeyType,
} from '@wharfkit/antelope'
import {V2} from '../types'

export class HyperionV2APIClient {
public state: HyperionV2StateAPIClient;
public history: HyperionV2HistoryAPIClient;
public state: HyperionV2StateAPIClient
public history: HyperionV2HistoryAPIClient

constructor(private client: APIClient) {
this.state = new HyperionV2StateAPIClient(client);
this.history = new HyperionV2HistoryAPIClient(client);
this.state = new HyperionV2StateAPIClient(client)
this.history = new HyperionV2HistoryAPIClient(client)
}

get_health(): Promise<V2.GetHealthResponse> {
Expand Down Expand Up @@ -210,10 +217,10 @@ export class HyperionV2HistoryAPIClient {
}

async get_transfers(): Promise<any> {
throw new Error("Method not implemented.");
throw new Error('Method not implemented.')
}

async get_transacted_accounts(): Promise<any> {
throw new Error("Method not implemented.");
throw new Error('Method not implemented.')
}
}
Loading

0 comments on commit 1e14eb9

Please sign in to comment.