Conversation
✅ Heimdall Review Status
|
|
b413c2b to
a2e7fa9
Compare
|
generated clients are failing because orval is trying to import the sql alpha api which does not exist in the codegen output |
01b6557 to
9730aaf
Compare
| const result = await cdp.endUser.signSolanaMessage({ | ||
| userId: endUser.userId, | ||
| address: endUser.solanaAccountObjects[0].address, | ||
| message: Buffer.from("Hello, World!").toString("base64"), | ||
| }); |
There was a problem hiding this comment.
This assumes the user has granted delegation to the developer, right? Would be good to document that in the script instructions
There was a problem hiding this comment.
documented at the top
9730aaf to
9fe6cc1
Compare
| // ─── Delegated Sign/Send Operations ─── | ||
|
|
||
| describe("signEvmHash", () => { | ||
| const mockResult = { signature: "0xsig123" }; |
There was a problem hiding this comment.
also add a unit test for the scenario where projectID isnt set?
|
Review Error for sddioulde @ 2026-03-30 22:58:31 UTC |
| @@ -1,5 +1,5 @@ | |||
| /** | |||
| * Generated by orval v7.6.0 🍺 | |||
| * Generated by orval v7.21.0 🍺 | |||
There was a problem hiding this comment.
according to our package.json, this is the correct version #622
| * Delegated routing interceptor. | ||
| * Registered after withAuth so it runs BEFORE the auth interceptor (LIFO order). | ||
| * This rewrites the URL first, then the auth interceptor computes JWT headers | ||
| * (Authorization and X-Wallet-Auth) against the rewritten URL path, ensuring | ||
| * the `uris` claim matches the actual request URL. | ||
| * The API gateway validates the JWT, strips the /delegated prefix, and forwards | ||
| * to the backend. |
There was a problem hiding this comment.
why is this needed? would be good to document the why
There was a problem hiding this comment.
prefixed comment with explainer
…ions Verifies that all delegation operations on CDPEndUserClient throw UserInputValidationError when project ID is not configured. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Description
Add
projectIdconfiguration andrevokeDelegationForEndUserto the TypeScript SDK for delegated signing operations.Changes
New:
projectIdconfigurationprojectId?: stringtoCdpClientOptions, reading fromCDP_PROJECT_IDenv varCDPEndUserClientacceptsprojectIdvia constructor, validates at delegation call time withrequireProjectId()toEndUserAccountreceivesprojectIdthrough options, with its ownrequireProjectId()helperCDPEndUserClientandEndUserAccountnow send the real project ID instead of a placeholderNew:
revokeDelegationForEndUserrevokeDelegationForEndUseronCDPEndUserClient(direct) andrevokeDelegationonEndUserAccountCdpOpenApiClientScope: TypeScript only — Python implementation deferred.
Tests
pnpm test -- --run)pnpm lint) aside from pre-existingno-consoleincdpApiClient.tstoHaveBeenCalledWithassertions inendUser.test.tsto verifyprojectIdis passed correctlyChecklist