Skip to content

Commit

Permalink
Merge pull request #46 from rabbitholegg/feat_optional_task_param
Browse files Browse the repository at this point in the history
Feat(types): optional task param
  • Loading branch information
Quazia authored Oct 23, 2023
2 parents 99f46a7 + fae6aa5 commit 81c4931
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/chatty-news-boil.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rabbitholegg/questdk": minor
---

Add optional task param for getter typng
7 changes: 5 additions & 2 deletions src/actions/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,11 @@ export type ActionParams =

export interface IActionPlugin {
pluginId: string
getSupportedChainIds: () => Promise<number[]>
getSupportedTokenAddresses: (chainId: number) => Promise<Address[]>
getSupportedChainIds: (task?: ActionType) => Promise<number[]>
getSupportedTokenAddresses: (
chainId: number,
task?: ActionType,
) => Promise<Address[]>
bridge: (
params: BridgeActionParams,
) => Promise<TransactionFilter> | Promise<PluginActionNotImplementedError>
Expand Down

0 comments on commit 81c4931

Please sign in to comment.