Skip to content

Comments

Add SAFE certificate extension#79

Open
lex-node wants to merge 2 commits intodevelopfrom
codex/create-missing-safe-extension-in-storage
Open

Add SAFE certificate extension#79
lex-node wants to merge 2 commits intodevelopfrom
codex/create-missing-safe-extension-in-storage

Conversation

@lex-node
Copy link
Contributor

Motivation

  • The codebase and conversion logic expect a SAFE certificate extension under src/storage/extensions to provide SAFE-specific metadata, but no extension file existed, causing the referenced PR flow to fail.

Description

  • Added src/storage/extensions/SAFEExtension.sol which defines a SAFEData struct and a SAFEExtension contract implementing ICertificateExtension with decodeExtensionData, encodeExtensionData, supportsExtensionType, and getExtensionURI that emits SAFE metadata under the SAFEDetails JSON key.
  • The contract is UUPS-upgradeable and integrates BorgAuthACL with initialize and _authorizeUpgrade restricted to onlyOwner and includes a uint256ToString helper for JSON encoding.

Testing

  • No automated tests were executed for this change.

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant