galacticcouncil / galacticcouncil/Basilisk-api-old

Add tracking of user actions for an action log

Open
#9 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
4
Forks
3
PR merge metrics
No merged PRs in 30d

Description

### Detailed Description
As a user, i want to be able to list all my relevant past actions on Basilisk. Those actions may include Buy, Sell or liquidity provisioning.

### Context
Within the UI, we want to display a list of relevant historical user actions.

### Possible Implementation

```
enum UserAction {
Buy,
Sell,
AddLiquidity,
RemoveLiquidity,
}

type BuyActionDetail {
// whatever other fields are relevant to track, just an example
balance: BigInt!
}

union UserActionDetail = BuyActionDetail

type UserAction {
ID: ID!
action: UserAction!,
detail: UserActionDetail
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no files, tests, or entry points. Start by locating the action-processing and API schema entry points in the Basilisk indexer, then determine which user actions and detail fields must be stored and exposed; done means the UI can list relevant Buy, Sell, AddLiquidity, and RemoveLiquidity history.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.