# References/Examples

These repos in the workspace are useful references for building on `trac-peer`:

### Reference apps

* `intercom/`
  * Shows a real project that depends on `trac-peer` and builds features/contracts on top of it.
  * See: [`intercom/SKILL.md`](https://github.com/Trac-Systems/intercom/blob/main/SKILL.md)
  * In-repo walkthrough: [Intercom example](https://docs.trac.network/documentation/developers/mainnet/dapp-developer-guide/references-examples/intercom)
* `trac-dapp-example/`
  * A simple Next.js dApp that talks to a peer RPC and uses the wallet extension to sign contract txs.
  * In-repo walkthrough: [trac-dapp-example](https://docs.trac.network/documentation/developers/mainnet/dapp-developer-guide/references-examples/trac-dapp-example)

### Wallet extension

* `tap-wallet-extension/`
  * Injects `window.tracnetwork` and implements `tracSignTx` approvals.
