Skip to content

Commit

Permalink
feat: As a developer, I want to find the attestation ID prefix for a …
Browse files Browse the repository at this point in the history
…given network
  • Loading branch information
alainncls committed May 17, 2024
1 parent 1562801 commit e3410e4
Showing 1 changed file with 28 additions and 45 deletions.
73 changes: 28 additions & 45 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@ the network.</h4>

<p align="center">
<a href="#links">Links</a> •
<a href="#repository-organisation">Repo Organisation</a> •
<a href="#repository-organisation">Repository Organisation</a> •
<a href="#getting-started">Getting Started</a> •
<a href="#contributing">Contributing</a> •
<a href="#contracts-addresses">Contracts Addresses</a> •
<a href="#subgraphs-addresses">Subgraphs Addresses</a> •
<a href="#linking-attestations">Linking Attestations</a> •
<a href="#off-chain-attestations">Off-chain Attestations</a> •
<a href="#subgraphs-urls">Subgraphs URLs</a> •
<a href="#network-prefixes">Network Prefixes</a> •
<a href="#license">License</a>
</p>

Expand All @@ -36,9 +35,11 @@ the network.</h4>
.
├── contracts # All smart contracts needed to run Verax
├── explorer # Explorer frontend to discover the main objects
├── governance # Governance NFTs
├── sdk # An SDK to easily interact with the contracts and the subgraphs
├── snap # A MetaMask Snap to leverage the attestions in transactions
├── subgraph # The subgraph indexing all the data generated by the contracts
├── tutorial # An example project to show how to use the SDK and the platform
├── website # Verax landing page and
```

Expand Down Expand Up @@ -67,16 +68,19 @@ Don't hesitate to check our [Contribution Guide](./CONTRIBUTING.md) before pushi

The main contracts (i.e. the "registries") and the helpers contracts are deployed on:

- Linea Testnet
- Linea Goerli (Deprecated)
- Linea Sepolia
- Linea Mainnet
- Arbitrum Testnet
- Arbitrum Sepolia
- Arbitrum Mainnet
- Arbitrum Nova
- Base Sepolia
- Base Mainnet

Here are the addresses on those networks:

<details>
<summary>Linea Goerli</summary>
<summary>Linea Goerli (Deprecated)</summary>

- Router =
[0x736c78b2f2cBf4F921E8551b2acB6A5Edc9177D5](https://goerli.lineascan.build/address/0x736c78b2f2cBf4F921E8551b2acB6A5Edc9177D5)
Expand Down Expand Up @@ -127,24 +131,6 @@ Here are the addresses on those networks:

</details>

<details>
<summary>Arbitrum Testnet</summary>

- Router =
[0x746390cB11913d8F93BDF8a974cFEC724039B3Cc](https://goerli.arbiscan.io/address/0x746390cB11913d8F93BDF8a974cFEC724039B3Cc)
- AttestationRegistry =
[0xCD839595FdA5A8111d5E03D42d9D9af60ee67B66](https://goerli.arbiscan.io/address/0xCD839595FdA5A8111d5E03D42d9D9af60ee67B66)
- ModuleRegistry =
[0x58EE79284bE65b217Db408A0991314f9Ae84348A](https://goerli.arbiscan.io/address/0x58EE79284bE65b217Db408A0991314f9Ae84348A)
- PortalRegistry =
[0x7d6a914C1e33C141CB4a5e0095c1075E5649aFB2](https://goerli.arbiscan.io/address/0x7d6a914C1e33C141CB4a5e0095c1075E5649aFB2)
- SchemaRegistry =
[0x129043e80e0B4C7da61a622df0912c31D3414AA7](https://goerli.arbiscan.io/address/0x129043e80e0B4C7da61a622df0912c31D3414AA7)
- AttestationReader =
[0x055E7d488eCACf9f1B0B42659c331C037505D4a1](https://goerli.arbiscan.io/address/0x055E7d488eCACf9f1B0B42659c331C037505D4a1)

</details>

<details>
<summary>Arbitrum Sepolia</summary>

Expand Down Expand Up @@ -181,23 +167,6 @@ Here are the addresses on those networks:

</details>

<details>
<summary>Arbitrum Nova</summary>

- Router =
[0xC81B5149D9Cd49195D00EFb16FED89f3Ba78E03B](https://nova.arbiscan.io/address/0xc81b5149d9cd49195d00efb16fed89f3ba78e03b)
- AttestationRegistry =
[0xB9Cf26ED827Eb4A7079e8dedB0ea93D932A2e3e8](https://nova.arbiscan.io/address/0xB9Cf26ED827Eb4A7079e8dedB0ea93D932A2e3e8)
- ModuleRegistry =
[0x46F7471cd2C1d69Cb5e62c1a34F3fCAf81304Fc3](https://nova.arbiscan.io/address/0x46F7471cd2C1d69Cb5e62c1a34F3fCAf81304Fc3)
- PortalRegistry =
[0xADc8da3d3388dEe74C7134fC4AEe1cF866Da5d38](https://nova.arbiscan.io/address/0xADc8da3d3388dEe74C7134fC4AEe1cF866Da5d38)
- SchemaRegistry =
[0x9b5BABcEbf0E8550da1eCDe5674783179B6557FB](https://nova.arbiscan.io/address/0x9b5BABcEbf0E8550da1eCDe5674783179B6557FB)
- AttestationReader =
[0x7A22D0Fba31a4d5b5E4F5263379B4dbf3707b48c](https://nova.arbiscan.io/address/0x7A22D0Fba31a4d5b5E4F5263379B4dbf3707b48c)

</details>
<details>
<summary>Arbitrum Nova</summary>

Expand Down Expand Up @@ -248,17 +217,31 @@ Here are the addresses on those networks:

</details>

## Subgraphs Addresses
## Subgraphs URLs

- [Linea Goerli](https://api.goldsky.com/api/public/project_clqghnrbp9nx201wtgylv8748/subgraphs/verax/subgraph-testnet/gn)
- [Linea Goerli (Deprecated)](https://api.goldsky.com/api/public/project_clqghnrbp9nx201wtgylv8748/subgraphs/verax/subgraph-testnet/gn)
- [Linea Sepolia](https://api.studio.thegraph.com/query/67521/verax-v1-linea-sepolia/v0.0.1)
- [Linea Mainnet](https://graph-query.linea.build/subgraphs/name/Consensys/linea-attestation-registry/graphql)
- [Arbitrum Goerli](https://api.thegraph.com/subgraphs/name/cliqueofficial/verax-arbitrum-goerli)
- [Arbitrum Sepolia](https://api.studio.thegraph.com/query/67946/verax-arbitrum-sepolia/v0.0.2)
- [Arbitrum Mainnet](https://api.thegraph.com/subgraphs/name/cliqueofficial/verax-arbitrum)
- [Arbitrum Nova](https://api.goldsky.com/api/public/project_clr9aj9alwgwg01q7ci1rh781/subgraphs/verax-arbitrum-nova/0.0.5/gn)
- [Base Sepolia](https://api.studio.thegraph.com/query/67521/verax-v1-base-sepolia/v0.0.1)
- [Base Mainnet](https://api.studio.thegraph.com/query/67521/verax-v1-base/v0.0.1)

## Network Prefixes

To easily differentiate the networks on which an attestation has been made, we use network prefixes for the Attestation
ID. This prefix is defined in the `contracts/script/utils.ts` file.

- Linea Goerli (Deprecated) - `0x0000`
- Linea Sepolia - `0x0000`
- Linea Mainnet - `0x0000`
- Arbitrum Sepolia - `0x0001`
- Arbitrum Mainnet - `0x0001`
- Arbitrum Nova - `0x0002`
- Base Sepolia - `0x0005`
- Base Mainnet - `0x0005`

## License

[MIT](./LICENSE)

0 comments on commit e3410e4

Please sign in to comment.