Skip to content

feat(sdk-coin-flrp): add createPairedWallet method to Flrp#8578

Open
ashutoshkumar-6 wants to merge 1 commit intomasterfrom
feat/SI-287-flrp-create-paired-wallet
Open

feat(sdk-coin-flrp): add createPairedWallet method to Flrp#8578
ashutoshkumar-6 wants to merge 1 commit intomasterfrom
feat/SI-287-flrp-create-paired-wallet

Conversation

@ashutoshkumar-6
Copy link
Copy Markdown
Contributor

SI-287

Summary

  • Add CreatePairedWalletParams and CreatePairedWalletResponse interfaces to src/lib/iface.ts
  • Add createPairedWallet(params) method to the Flrp class in src/flrp.ts that POSTs to /api/v2/flrp/wallet/:walletId/create-paired-wallet
  • Add nock devDependency and 3 unit tests covering label, no-label, and HTTP error cases

Test plan

  • yarn unit-test --scope @bitgo/sdk-coin-flrp passes
  • createPairedWallet with label POSTs { label } body
  • createPairedWallet without label POSTs empty body
  • HTTP 4xx errors propagate correctly

🤖 Generated with Claude Code

@linear
Copy link
Copy Markdown

linear Bot commented Apr 20, 2026

@ashutoshkumar-6 ashutoshkumar-6 force-pushed the feat/SI-287-flrp-create-paired-wallet branch from a2b3306 to 99c3424 Compare April 20, 2026 12:41
ashutoshkumar-6 added a commit that referenced this pull request Apr 20, 2026
Add CreatePairedWalletParams and CreatePairedWalletResponse interfaces
to iface.ts. Add createPairedWallet() method to the Flrp class that
POSTs to /api/v2/flrp/wallet/:walletId/create-paired-wallet. Add
unit tests covering label/no-label and error cases.

Closes #8578
@ashutoshkumar-6 ashutoshkumar-6 force-pushed the feat/SI-287-flrp-create-paired-wallet branch from 99c3424 to 1bafc61 Compare April 20, 2026 12:46
ashutoshkumar-6 added a commit that referenced this pull request Apr 20, 2026
Add CreatePairedWalletParams and CreatePairedWalletResponse interfaces
to iface.ts. Add createPairedWallet() method to the Flrp class that
POSTs to /api/v2/flrp/wallet/:walletId/create-paired-wallet. Add
unit tests covering label/no-label and error cases.

Closes #8578
@ashutoshkumar-6 ashutoshkumar-6 force-pushed the feat/SI-287-flrp-create-paired-wallet branch from 1bafc61 to aecf9e8 Compare April 20, 2026 12:55
Add CreatePairedWalletParams and CreatePairedWalletResponse interfaces
to iface.ts. Add createPairedWallet() method to the Flrp class that
POSTs to /api/v2/flrp/wallet/:walletId/create-paired-wallet. Add
unit tests covering label/no-label and error cases.

Closes #8578
@ashutoshkumar-6 ashutoshkumar-6 force-pushed the feat/SI-287-flrp-create-paired-wallet branch from 16af4d0 to 2f31fb4 Compare April 20, 2026 13:22
@ashutoshkumar-6 ashutoshkumar-6 marked this pull request as ready for review April 21, 2026 06:02
@ashutoshkumar-6 ashutoshkumar-6 requested a review from a team as a code owner April 21, 2026 06:02
Copy link
Copy Markdown
Contributor

@Doddanna17 Doddanna17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Implementation is correct — URL pattern, conditional body, and .result() chaining all follow existing conventions.

Two minor items:

  • CreatePairedWalletResponse: top-level [key: string]: unknown is unnecessary since all fields are typed; remove it to preserve type safety for callers. coinSpecific index sig is fine.
  • PR description claims "Add nock devDependency" but package.json is not in the diff. Nock resolves from root workspace so CI will pass, but the module's package.json should declare it explicitly if that was the intent.

LGTM otherwise.

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.

3 participants