Skip to content

Add post-action handling  #63

Description

@dzmbs

Description

The protocol currently lacks a fallback mechanism to execute tasks post-action completion (e.g., API calls, database writes, referral tracking). Adding this feature would enable secondary processes like analytics, notifications, or other external logic to be triggered after the main action is finalized.

Suggested Solution

Introduce a postAction handler within each action type to define tasks that execute upon successful action completion.

Example postAction Structure:

export interface PostAction {
    type: 'api-call' | 'db-write' | 'smart-contract';
    endpoint?: string; // For API calls
    data?: string;     // Payload for API or DB write
    contractAddress?: string; // For smart contract call
    abi?: string; // ABI for contract interaction
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions