Skip to content

Commit

Permalink
feat(SpokePoolClient): getter function for speedUps (#713)
Browse files Browse the repository at this point in the history
  • Loading branch information
melisaguevara committed Aug 28, 2024
1 parent 1f20994 commit 92db736
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/clients/SpokePoolClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,14 @@ export class SpokePoolClient extends BaseAbstractClient {
);
}

/**
* Retrieves speed up requests grouped by depositor and depositId.
* @returns A mapping of depositor addresses to deposit ids with their corresponding speed up requests.
*/
public getSpeedUps(): { [depositorAddress: string]: { [depositId: number]: SpeedUp[] } } {
return this.speedUps;
}

/**
* Find a corresponding deposit for a given fill.
* @param fill The fill to find a corresponding deposit for.
Expand Down

0 comments on commit 92db736

Please sign in to comment.