Skip to content

Commit

Permalink
chore(e2e): extend faucet provider interface to include the provider …
Browse files Browse the repository at this point in the history
…prototypes
  • Loading branch information
AngelCastilloB committed Jun 21, 2022
1 parent 89a5c35 commit 6a61360
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions packages/e2e/src/FaucetProvider/types.ts
Expand Up @@ -54,7 +54,7 @@ export interface FaucetProvider extends Provider {
* @param timeout The time we are willing to wait (in milliseconds) for the faucet request transaction to be confirmed.
* @param confirmations The number of blocks that has passed since our transaction was added to the blockchain.
*/
request(address: string, amount: number, confirmations?: number, timeout?: number): Promise<FaucetRequestResult>;
request(address: string, amount: number, confirmations?: number, timeout?: number): Promise<FaucetRequestResult>;

/**
* Request tAda to be transferred to several given addresses.
Expand All @@ -66,13 +66,20 @@ export interface FaucetProvider extends Provider {
*/
multiRequest(addresses: string[], amounts: number[], confirmations?: number, timeout?: number): Promise<FaucetRequestResult>;

start?(): Promise<void>;
/**
* @throws ProviderError
* Initializes the faucet provider.
*/
close?(): Promise<void>;
start(): Promise<void>;

/**
* @throws ProviderError
* Finalizes the faucet provider.
*/
close(): Promise<void>;

/**
* Performs a health check on the provider.
*
* @return A promise with the healthcheck reponse.
*/
healthCheck(): Promise<HealthCheckResponse>;
}

0 comments on commit 6a61360

Please sign in to comment.