Conversation
packages/authenticated-user-storage/src/__fixtures__/authenticated-userstorage.ts
Show resolved
Hide resolved
| /** Keccak-256 hash uniquely identifying the delegation (0x-prefixed). */ | ||
| delegationHash: string; | ||
| /** Chain ID in hex format (0x-prefixed). */ | ||
| chainIdHex: string; |
There was a problem hiding this comment.
q - do we only support EVM?
Wondering if we can change the format to use CAIP-19 to support non-evm? That way we could remove chainId and tokenAddress and just have 1 field for assetId.
There was a problem hiding this comment.
@V00D00-child what do you think? i believe cash accounts team already implemted they v1. However we could look into using CAIP-10
There was a problem hiding this comment.
do we only support EVM
Yes, the Delegation Framework is only supported on EVM, so I think we should leave out using CAIP-19 for these types
packages/authenticated-user-storage/src/authenticated-user-storage.ts
Outdated
Show resolved
Hide resolved
d319cb3
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Note
Medium Risk
Adds a new client SDK that makes authenticated fetch calls using bearer tokens and performs runtime response validation; incorrect endpoint/config or validation could break consumers but changes are largely additive and isolated to a new package.
Overview
Introduces a new
@metamask/authenticated-user-storagepackage that provides anAuthenticatedUserStorageTypeScript client for the Authenticated User Storage API, with namespaced accessors for delegations (list,create,revoke) and notification preferences (getNotifications,putNotifications) using optionalX-Client-Typeheaders.The SDK includes environment-based URL selection (
Env), runtime response validation via@metamask/superstruct, standardizedAuthenticatedUserStorageErrorwrapping, and a full Jest test suite withnockfixtures. Monorepo wiring is updated to build/typecheck the new package (tsconfigreferences), add ownership mappings (CODEOWNERS,teams.json), and include the workspace dependency inyarn.lock.Written by Cursor Bugbot for commit d319cb3. This will update automatically on new commits. Configure here.