Show transfer bond as a single event in account history
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 11
- Forks
- 26
- Avg merge
- 11h 58m
- Merged PRs (30d)
- 16
Description
A `transferBond` transaction currently shows up in the account history as an "Undelegated from 0x…" / "Redelegated with 0x…" pair with matching -/+ amounts (same tx, same round), which reads as a delegation change instead of a stake transfer between accounts.
Cause: `TransferBondEvent` is already fetched in `queries/events.graphql` (amount, oldDelegator, newDelegator), but `components/HistoryView/index.tsx` has no `case "TransferBondEvent"`, so it hits `default: return null` and only the underlying Unbond/Rebond events render.
Suggested fix: add a `TransferBondEvent` case ("Transferred stake to 0x…" / "Received stake from 0x…") and hide the Unbond/Rebond events emitted in the same transaction.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with queries/events.graphql to confirm the TransferBondEvent fields, then inspect the event switch in components/HistoryView/index.tsx. Add the transfer and receipt history entries and ensure the matching same-transaction Unbond/Rebond pair is hidden, so one transfer is shown instead of two delegation changes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- graphql, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 82/100