# ContractReferenceLocations

> For the complete documentation index, see [llms.txt](https://docs.midnight.network/llms.txt)

[**@midnight-ntwrk/compact-runtime v0.19.0**](https://docs.midnight.network/api-reference/compact-runtime.md)

***

[@midnight-ntwrk/compact-runtime](https://docs.midnight.network/api-reference/compact-runtime/globals.md) / ContractReferenceLocations

# Type Alias: ContractReferenceLocations

```
type ContractReferenceLocations = 

  | EmptyPublicLedger

  | PublicLedgerSegments;
```

A data structure indicating the locations of all contract references in a given ledger state. If it is a [EmptyPublicLedger](https://docs.midnight.network/api-reference/compact-runtime/type-aliases/EmptyPublicLedger.md), then no contract references are present in the ledger state. If it is a [PublicLedgerSegments](https://docs.midnight.network/api-reference/compact-runtime/type-aliases/PublicLedgerSegments.md), then contract references are present and can be extracted using [contractDependencies](https://docs.midnight.network/api-reference/compact-runtime/functions/contractDependencies.md).
