-
Notifications
You must be signed in to change notification settings - Fork 31
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
18 changed files
with
164 additions
and
657 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
This file was deleted.
Oops, something went wrong.
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,32 +1,32 @@ | ||
import { BaseAPI } from './BaseAPI'; | ||
import { APIParams, Pagination, PaginationOptions } from '../APIRequester'; | ||
|
||
export interface PermissionedRelayer { | ||
export interface PermissionedRelayers { | ||
port_id: string; | ||
channel_id: string; | ||
relayer: string; | ||
relayers: string[]; | ||
} | ||
|
||
export class IbcPermAPI extends BaseAPI { | ||
public async relayers( | ||
params: Partial<PaginationOptions & APIParams> = {} | ||
): Promise<[PermissionedRelayer[], Pagination]> { | ||
): Promise<[PermissionedRelayers[], Pagination]> { | ||
return this.c | ||
.get<{ | ||
permissioned_relayers: PermissionedRelayer[]; | ||
permissioned_relayers: PermissionedRelayers[]; | ||
pagination: Pagination; | ||
}>(`/ibc/apps/perm/v1/relayers`, params) | ||
.then(d => [d.permissioned_relayers, d.pagination]); | ||
} | ||
|
||
public async relayer( | ||
public async relayersByChannel( | ||
port_id: string, | ||
channel_id: string | ||
): Promise<PermissionedRelayer> { | ||
): Promise<PermissionedRelayers> { | ||
return this.c | ||
.get<{ permissioned_relayer: PermissionedRelayer }>( | ||
.get<{ permissioned_relayers: PermissionedRelayers }>( | ||
`/ibc/apps/perm/v1/relayers/${port_id}/${channel_id}` | ||
) | ||
.then(d => d.permissioned_relayer); | ||
.then(d => d.permissioned_relayers); | ||
} | ||
} |
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
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
95 changes: 0 additions & 95 deletions
95
src/core/ibc/applications/fetchprice/IbcFetchpriceParams.ts
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.