Skip to content

chore/tc-referral-updates#641

Merged
ivan-angjelkoski merged 1 commit into
devfrom
chore/tc-referral-updates
Apr 13, 2026
Merged

chore/tc-referral-updates#641
ivan-angjelkoski merged 1 commit into
devfrom
chore/tc-referral-updates

Conversation

@Frederick-88
Copy link
Copy Markdown
Collaborator

@Frederick-88 Frederick-88 commented Apr 13, 2026

Summary by CodeRabbit

  • New Features

    • Added ability to fetch invitee referrer information by address.
  • Updates

    • Extended account statistics and referrer data models with additional fields for enhanced tracking.
  • Tests

    • Added test coverage for the new invitee referrer retrieval functionality.
  • Chores

    • Updated SDK dependency to version 1.18.5.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 13, 2026

Caution

Review failed

Pull request was closed or merged during review

📝 Walkthrough

Walkthrough

This pull request adds support for fetching invitee referrer information through the TcAbacusGrpcApi. Changes include a new gRPC API method, corresponding transformer logic, updated type definitions, test coverage, and a dependency version bump for the protobuf package.

Changes

Cohort / File(s) Summary
Dependency Update
packages/sdk-ts/package.json
Updated @injectivelabs/tc-abacus-proto-ts-v2 dependency version from 1.18.4 to 1.18.5.
Type Definitions
packages/sdk-ts/src/client/tcAbacus/types/tcAbacus.ts
Extended AccountStatsResponse with code: string field, extended ReferrerInvitee with allTimeVolume: string field, and added new InviteeReferrer interface with code, height, address, createdAt, and referrerAddress fields.
Transformer Implementation
packages/sdk-ts/src/client/tcAbacus/grpc/transformers/index.ts
Added new transformer grpcInviteeReferrerToInviteeReferrer to convert gRPC responses to InviteeReferrer type; updated grpcAccountStatsToAccountStats to include code field and grpcReferrerInviteeToReferrerInvitee to include allTimeVolume field.
API Method
packages/sdk-ts/src/client/tcAbacus/grpc/TcAbacusGrpcApi.ts
Added public async method fetchInviteeReferrer(address: string) that constructs a gRPC request, executes the call, and returns the transformed response.
Test Coverage
packages/sdk-ts/src/client/tcAbacus/grpc/TcAbacusGrpcApi.spec.ts
Added new async Jest test case for fetchInviteeReferrer method, verifying response definition and structure against transformer output.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

🐰 A referrer's address now in sight,
Through gRPC calls that travel light,
With transformers dancing, types aligned,
New invitee data we shall find! ✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'chore/tc-referral-updates' is vague and generic, using a branch name format that does not clearly describe the actual changes made to the codebase. Use a descriptive title that clarifies the changes, such as 'Add fetchInviteeReferrer method and InviteeReferrer type to TcAbacusGrpcApi' or 'Update tc-abacus proto dependency and add invitee referrer support'.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/tc-referral-updates

Comment @coderabbitai help to get the list of available commands and usage tips.

@socket-security
Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​injectivelabs/​tc-abacus-proto-ts-v2@​1.18.4 ⏵ 1.18.574 +110074 +196 +1100

View full report

@ivan-angjelkoski ivan-angjelkoski merged commit ea8b8f6 into dev Apr 13, 2026
4 of 5 checks passed
@ivan-angjelkoski ivan-angjelkoski deleted the chore/tc-referral-updates branch April 13, 2026 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants