From d9b6713d54bb0d59a2aaeb3e4a50f5785239d617 Mon Sep 17 00:00:00 2001 From: Quazia Date: Wed, 25 Oct 2023 17:19:57 -0400 Subject: [PATCH 1/2] Fix(registry): add Stake to executePlugin --- packages/registry/src/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/registry/src/index.ts b/packages/registry/src/index.ts index c22a3b6ae..715bc0804 100644 --- a/packages/registry/src/index.ts +++ b/packages/registry/src/index.ts @@ -8,6 +8,7 @@ import { type SwapActionParams, type DelegateActionParams, type TransactionFilter, + type StakeActionParams, } from '@rabbitholegg/questdk' import { Connext } from '@rabbitholegg/questdk-plugin-connext' @@ -68,6 +69,11 @@ export const executePlugin = ( return Promise.reject(new PluginActionNotImplementedError()) } else return plugin.delegate(params as unknown as DelegateActionParams) } + case ActionType.Stake: { + if (plugin.stake === undefined) { + return Promise.reject(new PluginActionNotImplementedError()) + } else return plugin.stake(params as unknown as StakeActionParams) + } default: throw new Error(`Unknown action type "${actionType}"`) } From 059df8bb8ae2c9daa3a11adbb0d84c5670536039 Mon Sep 17 00:00:00 2001 From: Quazia Date: Wed, 25 Oct 2023 17:24:32 -0400 Subject: [PATCH 2/2] Chore(changeset): Publish execute plugin fix --- .changeset/silent-rats-explode.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/silent-rats-explode.md diff --git a/.changeset/silent-rats-explode.md b/.changeset/silent-rats-explode.md new file mode 100644 index 000000000..218cf40cf --- /dev/null +++ b/.changeset/silent-rats-explode.md @@ -0,0 +1,5 @@ +--- +"@rabbitholegg/questdk-plugin-registry": patch +--- + +Add Stake switch to plugin execution