Skip to content

feat: add referrals service client with store, retrieve, and list methods#3

Open
leinss wants to merge 5 commits intomainfrom
feature/referrals
Open

feat: add referrals service client with store, retrieve, and list methods#3
leinss wants to merge 5 commits intomainfrom
feature/referrals

Conversation

@leinss
Copy link

@leinss leinss commented Jan 5, 2026

This pull request introduces a new referrals service client to the Circles SDK, enabling users to store, retrieve, and list referral links via a dedicated backend. The main changes include adding the @aboutcircles/sdk-referrals package, integrating it into the main SDK, and updating configuration options to support referral functionalities.

Referrals service client implementation:

  • Added new @aboutcircles/sdk-referrals package, including package.json, TypeScript configuration, and implementation files for the referrals client and type definitions. [1] [2] [3] [4] [5]

SDK integration:

  • Registered @aboutcircles/sdk-referrals as a dependency in the main SDK package.
  • Imported and initialized the Referrals client in Sdk.ts, conditionally based on the presence of a referrals service URL in the configuration. [1] [2] [3]

New SDK API for referrals:

  • Added a new referrals property to the main Sdk class, exposing methods for storing a referral, retrieving referral info, and listing referrals for the authenticated user, with appropriate error handling if the service is not configured.

Configuration update:

  • Extended the CirclesConfig interface to include an optional referralsServiceUrl property for enabling referral features.

leinss added 5 commits January 5, 2026 14:48
- Updated links in ContractError, EncodingError, and ValidationError documentation to reflect the latest commit hash.
- Adjusted links for utility functions such as bytesToHex, checksumAddress, and cidV0ToHex to point to the correct lines in the updated codebase.
- Added missing documentation links for functions related to error handling and ABI encoding.
- Included the referrals package in the TypeDoc configuration for better documentation coverage.
@socket-security
Copy link

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

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​noble/​hashes@​2.0.110010010085100

View full report

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.

1 participant

Comments