Skip to content

Preserve raw token and NFT metadata in PostgreSQL bytea - #690

Open
startupcompliancekit wants to merge 1 commit into
alephium:masterfrom
startupcompliancekit:fix-590-byte-metadata
Open

startupcompliancekit wants to merge 1 commit into
alephium:masterfrom
startupcompliancekit:fix-590-byte-metadata

Conversation

@startupcompliancekit

Copy link
Copy Markdown

Closes #590.

Store fungible-token names/symbols, NFT token URIs and collection URIs as PostgreSQL bytea. Preserve raw bytes during node ingestion and persistence, converting to UTF-8 strings at the API boundary. Migration 12 converts existing text with UTF-8 encoding.

Regression fixtures cover legacy text migration, raw NUL and malformed UTF-8 bytes, query round trips and API conversion. Validation: 18 tests across five suites passed against local PostgreSQL; production/test formatting and lint passed. No live node was used.

This targets the current master schema. If #685 is merged first, the companion integration patch also upgrades schema generation from 1 to 2; that combination passed 103 tests across 13 suites.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

store metadata as byte

1 participant