diff --git a/.changeset/pretty-lobsters-report.md b/.changeset/pretty-lobsters-report.md new file mode 100644 index 0000000..b1fcfbd --- /dev/null +++ b/.changeset/pretty-lobsters-report.md @@ -0,0 +1,5 @@ +--- +"@rabbitholegg/questdk": minor +--- + +Standardizing ActionParams and no longer requiring some Actions in plugins diff --git a/src/actions/types.ts b/src/actions/types.ts index 4cdbf68..060d258 100644 --- a/src/actions/types.ts +++ b/src/actions/types.ts @@ -93,13 +93,13 @@ export interface IActionPlugin { chainId: number, task?: ActionType, ) => Promise - bridge: ( + bridge?: ( params: BridgeActionParams, ) => Promise | Promise - swap: ( + swap?: ( params: SwapActionParams, ) => Promise | Promise - mint: ( + mint?: ( params: MintActionParams, ) => Promise | Promise stake?: ( @@ -109,7 +109,7 @@ export interface IActionPlugin { params: DelegateActionParams, ) => Promise | Promise burn?: ( - params: DelegateActionParams, + params: BurnActionParams, ) => Promise | Promise quest?: ( params: QuestActionParams,