Uh oh!
There was an error while loading. Please reload this page.
chore: token-interface - #2362
Conversation
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (64)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
ananas-block
commented
Mar 28, 2026
nit: duplicated
Extract to a shared utility. |
ananas-block
commented
Mar 28, 2026
nit: inconsistent discriminator type declarations Some discriminators are // number (transfer.ts, approve.ts, burn.ts)constLIGHT_TOKEN_TRANSFER_CHECKED_DISCRIMINATOR=12;constLIGHT_TOKEN_APPROVE_DISCRIMINATOR=4;// Buffer (freeze.ts, thaw.ts)constLIGHT_TOKEN_FREEZE_ACCOUNT_DISCRIMINATOR=Buffer.from([10]);constLIGHT_TOKEN_THAW_ACCOUNT_DISCRIMINATOR=Buffer.from([11]);Pick one convention. |
ananas-block
commented
Mar 28, 2026
nit: buffer over-allocation in ATA encoding
constbuffer=Buffer.alloc(2000);The Borsh-encoded |
Uh oh!
There was an error while loading. Please reload this page.
Replace @lightprotocol/compressed-token/unified with the new @lightprotocol/token-interface package (pending publish of Lightprotocol/light-protocol#2362). - Use createTransferInstructions (object params, flat array return) - Use getAta for aggregated balance check - Use toKitInstructions from /kit export for native v2 conversion - Delete convertV1InstructionToV2 from utils.ts (replaced by /kit) - Remove pre-transaction batch splitting (SDK handles inline) - Fix spec fee payer terminology
963ac04 to
a7336afCompareananas-block
commented
Mar 30, 2026
Code Review Comments1. |
SwenSchaeferjohann
commented
Mar 30, 2026
|
SwenSchaeferjohann
commented
Mar 30, 2026
superseded by #2366 |
No description provided.