diff --git a/.changeset/gold-lizards-leave.md b/.changeset/gold-lizards-leave.md new file mode 100644 index 0000000..5909518 --- /dev/null +++ b/.changeset/gold-lizards-leave.md @@ -0,0 +1,5 @@ +--- +"@rabbitholegg/questdk": minor +--- + +Add mint, burn, and quest action types diff --git a/src/actions/index.ts b/src/actions/index.ts index 3717586..0e252e3 100644 --- a/src/actions/index.ts +++ b/src/actions/index.ts @@ -3,6 +3,8 @@ export type { StakeActionParams, BridgeActionParams, MintActionParams, + BurnActionParams, + QuestActionParams, DelegateActionParams, ActionParams, IActionPlugin, diff --git a/src/actions/types.ts b/src/actions/types.ts index c83de6c..3b83406 100644 --- a/src/actions/types.ts +++ b/src/actions/types.ts @@ -33,9 +33,22 @@ export type BridgeActionParams = { } export type MintActionParams = { + chainId: number address: string tokenId: number - quantity: number + amount: number +} + +export type BurnActionParams = MintActionParams + +export type QuestActionParams = { + chainId: number + rewardToken?: Address + rewardAmount?: bigint | FilterOperator + startTime?: bigint | FilterOperator + endTime?: bigint | FilterOperator + totalParticipants?: bigint | FilterOperator + actionSpec?: string } export type DelegateActionParams = { @@ -53,6 +66,8 @@ export type ActionParams = | BridgeActionParams | MintActionParams | DelegateActionParams + | MintActionParams + | QuestActionParams export interface IActionPlugin { pluginId: string @@ -76,6 +91,12 @@ export interface IActionPlugin { delegate?: ( params: DelegateActionParams, ) => Promise | Promise + burn?: ( + params: DelegateActionParams, + ) => Promise | Promise + quest?: ( + params: DelegateActionParams, + ) => Promise | Promise } export enum ActionType { @@ -83,6 +104,8 @@ export enum ActionType { Stake = 'stake', Swap = 'swap', Mint = 'mint', + Burn = 'burn', + Quest = 'quest', Deposit = 'deposit', Delegate = 'delegate', Lend = 'lend', diff --git a/src/index.ts b/src/index.ts index 3a465a0..391e0e8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -8,6 +8,8 @@ export { PluginActionNotImplementedError } from './errors/plugin.js' export type { SwapActionParams, + BurnActionParams, + QuestActionParams, StakeActionParams, BridgeActionParams, MintActionParams,