generated from wharfkit/api-client-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
100 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.') | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.