-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PRT-751 Fixing issue with first LOL relay adding and reorganizing a f…
…ew methods / classes (#610)
- Loading branch information
1 parent
8b6232c
commit 608b427
Showing
20 changed files
with
656 additions
and
322 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
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,25 +1,39 @@ | ||
import { ConsumerSessionWithProvider, SessionManager } from "../types/types"; | ||
import Relayer from "../relayer/relayer"; | ||
import { Badge } from "../grpc_web_services/pairing/relay_pb"; | ||
import { QueryShowAllChainsResponse } from "../codec/spec/query"; | ||
export interface LavaProvidersOptions { | ||
accountAddress: string; | ||
network: string; | ||
relayer: Relayer | null; | ||
geolocation: string; | ||
debug?: boolean; | ||
} | ||
export declare class LavaProviders { | ||
private providers; | ||
private network; | ||
private index; | ||
private accountAddress; | ||
private relayer; | ||
private geolocation; | ||
constructor(accountAddress: string, network: string, relayer: Relayer | null, geolocation: string); | ||
private debugMode; | ||
constructor(options: LavaProvidersOptions); | ||
updateLavaProvidersRelayersBadge(badge: Badge | undefined): void; | ||
init(pairingListConfig: string): Promise<void>; | ||
showAllChains(): Promise<QueryShowAllChainsResponse>; | ||
initDefaultConfig(): Promise<any>; | ||
initLocalConfig(path: string): Promise<any>; | ||
GetLavaProviders(): ConsumerSessionWithProvider[]; | ||
GetNextLavaProvider(): ConsumerSessionWithProvider; | ||
getSession(chainID: string, rpcInterface: string): Promise<SessionManager>; | ||
getSession(chainID: string, rpcInterface: string, badge?: Badge): Promise<SessionManager>; | ||
private debugPrint; | ||
pickRandomProviders(providers: Array<ConsumerSessionWithProvider>): ConsumerSessionWithProvider[]; | ||
pickRandomProvider(providers: Array<ConsumerSessionWithProvider>): ConsumerSessionWithProvider; | ||
private getPairingFromChain; | ||
private getMaxCuForUser; | ||
private getServiceApis; | ||
convertRestApiName(name: string): string; | ||
SendRelayToAllProvidersAndRace(options: any, relayCu: number, rpcInterface: string): Promise<any>; | ||
SendRelayWithRetry(options: any, lavaRPCEndpoint: ConsumerSessionWithProvider, relayCu: number, rpcInterface: string): Promise<any>; | ||
private extractBlockNumberFromError; | ||
} |
Large diffs are not rendered by default.
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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export declare function base64ToUint8Array(str: string): Uint8Array; | ||
export declare function generateRPCData(method: string, params: Array<any>): string; |
Oops, something went wrong.