Fix ndebit-cash-in-flow.md documentation - incorrect SDK references #12

Closed
opened 2026-06-13 22:02:43 +00:00 by padreug · 0 comments
Owner

Migrated from aiolabs/lamassu-next#12 — opened by @padreug on 2026-01-26.\n\n## Problem

The docs/ndebit-cash-in-flow.md documentation references a non-existent SDK package and incorrect function names, which will cause import errors for anyone following the guide.

Current (Incorrect)

import { decodeBech32 } from '@shocknet/clink-sdk'      // Line 143
import { SendNdebitRequest } from '@shocknet/clink-sdk'  // Line 193
import { decodeBech32, ndebitEncode } from '@shocknet/clink-sdk' // Line 314

Correct

import { decodeNdebit, encodeNdebit, formatNdebitUri } from '@lamassu/clink'

Issues

  1. Wrong package: @shocknet/clink-sdk should be @lamassu/clink
  2. Wrong function names:
    • decodeBech32 → decodeNdebit
    • ndebitEncode → encodeNdebit
  3. Non-existent function: SendNdebitRequest is not in the CLINK library (it's wallet-side code)

Affected Lines

  • 123, 143, 193, 314, 448

Fix

Update all imports and function references to use @lamassu/clink package with correct exports.

Priority

P2 - Documentation fix, doesn't block development but causes confusion

> _Migrated from [aiolabs/lamassu-next#12](https://git.atitlan.io/aiolabs/lamassu-next/issues/12) — opened by @padreug on 2026-01-26._\n\n## Problem The `docs/ndebit-cash-in-flow.md` documentation references a non-existent SDK package and incorrect function names, which will cause import errors for anyone following the guide. ## Current (Incorrect) ```typescript import { decodeBech32 } from '@shocknet/clink-sdk' // Line 143 import { SendNdebitRequest } from '@shocknet/clink-sdk' // Line 193 import { decodeBech32, ndebitEncode } from '@shocknet/clink-sdk' // Line 314 ``` ## Correct ```typescript import { decodeNdebit, encodeNdebit, formatNdebitUri } from '@lamassu/clink' ``` ## Issues 1. **Wrong package**: `@shocknet/clink-sdk` should be `@lamassu/clink` 2. **Wrong function names**: - `decodeBech32` → `decodeNdebit` - `ndebitEncode` → `encodeNdebit` 3. **Non-existent function**: `SendNdebitRequest` is not in the CLINK library (it's wallet-side code) ## Affected Lines - 123, 143, 193, 314, 448 ## Fix Update all imports and function references to use `@lamassu/clink` package with correct exports. ## Priority P2 - Documentation fix, doesn't block development but causes confusion
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
aiolabs/bitspire#12
No description provided.