These definitions allow you to communicate with AttestationStation, but are not as easy to use as the high level API.
These definitions allow you to communicate with AttestationStation, but are not as easy to use as the high level API.
### `ATTESTATION_STATION_ADDRESS`
#### `ATTESTATION_STATION_ADDRESS`
The deployment address for the attestation station currently deployed with create2 on Optimism and Optimism Goerli `0xEE36eaaD94d1Cc1d0eccaDb55C38bFfB6Be06C77`.
The deployment address for the attestation station currently deployed with create2 on Optimism and Optimism Goerli `0xEE36eaaD94d1Cc1d0eccaDb55C38bFfB6Be06C77`.
...
@@ -172,7 +167,7 @@ The deployment address for the attestation station currently deployed with creat
...
@@ -172,7 +167,7 @@ The deployment address for the attestation station currently deployed with creat
**Note:**`writeAttestation` already does this for you so this is only needed if using a library other than the attestation station.
**Note:**`writeAttestation` already does this for you so this is only needed if using a library other than the attestation station.
### React API
For react hooks we recomend using the [wagmi cli](https://wagmi.sh/cli/getting-started) with the [etherscan plugin](https://wagmi.sh/cli/plugins/etherscan) and [react plugin](https://wagmi.sh/cli/plugins/react) to automatically generate react hooks around the attestation station.
Use `createKey` and `createValue` to convert your raw keys and values into bytes that can be used in the attestation station contract calls.
Use `parseString`, `parseBool`, `parseAddress` and `parseNumber` to convert values returned by attestation station to their correct data type.
For convenience we also export the hooks here:
-`useAttestationStationAttestation` - Reads attestations with useContractRead
-`useAttestationStationVersion` - Reads attestation version
-`useAttestationStationAttest` - Wraps useContractWrite with attestation station abi calling attest
-`usePrepareAttestationStationAttest` - Wraps usePrepare with attestation station abi calling attest
-`useAttestationStationAttestationCreatedEvent` - Wraps useContractEvents for Created events