Skip to content

Project a standard's computed info into its CollectionIndexProjection, using the builder's index() when present and a status-only default otherwise. Single…

projectStandardIndex(builder, collection, info, ctx): CollectionIndexProjection

Defined in: packages/bitbadgesjs-sdk/src/api-indexer/info-builders.ts:90

Project a standard's computed info into its CollectionIndexProjection, using the builder's index() when present and a status-only default otherwise. Single source of the default so every indexed standard behaves consistently.

Parameters

builder

StandardInfoBuilder<unknown>

collection

BitBadgesCollection<bigint>

info

unknown

ctx

StandardInfoCtx

Returns

CollectionIndexProjection

Edit this page on GitHub