Skip to content

OfficialRegistryConfig

Defined in: packages/sdk/src/official-registry/types.ts:50

optional attachAttestations?: boolean

Defined in: packages/sdk/src/official-registry/types.ts:78

Load ERC-8176 attestation JSON from registry/<project>/sigs/ next to each official descriptor. Default false (keeps unit-test mocks simple).


optional baseUrl?: string

Defined in: packages/sdk/src/official-registry/types.ts:64

Prefix before /{pin|ref}/{path}. Defaults to GitHub raw for the official repo.


optional cache?: DescriptorCache

Defined in: packages/sdk/src/official-registry/types.ts:66

Optional durable cache (fs / IndexedDB). Memory cache is always on.


optional fetch?: {(input, init?): Promise<Response>; (input, init?): Promise<Response>; }

Defined in: packages/sdk/src/official-registry/types.ts:68

Injected fetch (tests, custom gateways). Defaults to globalThis.fetch.

(input, init?): Promise<Response>

MDN Reference

URL | RequestInfo

RequestInit

Promise<Response>

(input, init?): Promise<Response>

MDN Reference

string | URL | Request

RequestInit

Promise<Response>


optional indexes?: OfficialRegistryIndexes

Defined in: packages/sdk/src/official-registry/types.ts:73

Caller-owned index objects (from fetchPrebuiltRegistryIndex). When set, those files are not fetched again.


optional pin?: string

Defined in: packages/sdk/src/official-registry/types.ts:56

Full 40-character git commit SHA. When omitted (and ref is unset), defaults to VENDORED_REGISTRY_COMMIT. Never pass master / main here — use ref for a floating branch or tag.


optional ref?: string

Defined in: packages/sdk/src/official-registry/types.ts:62

Explicit branch or tag (for example "master"). Opt-in floating ref for local development. Mutually exclusive with pin. Production wallets should pass an explicit pin SHA instead.