Skip to content

Commit

Permalink
fix(creator): standardizing Actiontypes and making all plugin actions…
Browse files Browse the repository at this point in the history
… optional (#74)

* standardizing action types

* adding changeset:

* formatting

* formatting

* chore: format

---------

Co-authored-by: gnomadic <[email protected]>
  • Loading branch information
gnomadic and gnomadic authored Feb 7, 2024
1 parent 9286791 commit 3d5a2ff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/pretty-lobsters-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rabbitholegg/questdk": minor
---

Standardizing ActionParams and no longer requiring some Actions in plugins
8 changes: 4 additions & 4 deletions src/actions/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ export interface IActionPlugin {
chainId: number,
task?: ActionType,
) => Promise<Address[]>
bridge: (
bridge?: (
params: BridgeActionParams,
) => Promise<TransactionFilter> | Promise<PluginActionNotImplementedError>
swap: (
swap?: (
params: SwapActionParams,
) => Promise<TransactionFilter> | Promise<PluginActionNotImplementedError>
mint: (
mint?: (
params: MintActionParams,
) => Promise<TransactionFilter> | Promise<PluginActionNotImplementedError>
stake?: (
Expand All @@ -109,7 +109,7 @@ export interface IActionPlugin {
params: DelegateActionParams,
) => Promise<TransactionFilter> | Promise<PluginActionNotImplementedError>
burn?: (
params: DelegateActionParams,
params: BurnActionParams,
) => Promise<TransactionFilter> | Promise<PluginActionNotImplementedError>
quest?: (
params: QuestActionParams,
Expand Down

0 comments on commit 3d5a2ff

Please sign in to comment.