Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
joshstevens19 committed Dec 28, 2024
1 parent dbf7654 commit 9c5d47a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 10 deletions.
14 changes: 4 additions & 10 deletions documentation/docs/pages/docs/start-building/add.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,6 @@ networks:
This will skip for you if you only have one network setup.
By setting kind to "Hypersync" you could use [hypersync](https://docs.envio.dev/docs/HyperSync/overview) as a data source.
```yaml
networks:
- name: ethereum // [!code focus]
kind: Hypersync
chain_id: 1
rpc: https://1.hypersync.xyz
```
2. "Enter Contract Address" - This is the contract address you want to add to your YAML project
It will then download the ABI and put it in the `abis` folder and map it automatically in your YAML file.
Expand All @@ -49,4 +39,8 @@ Some things to know:
- If the contract is not verified on Etherscan it will not be able to download the ABI.
- If the contract is a proxy it try to download the ABI of the implementation contract.

:::info
You can also use `kind` to set different data sources like hypersync read more about it [here](/docs/start-building/yaml-config/networks#kind).
:::


Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,26 @@ networks:
max_block_range: 10000 // [!code focus]
```
### kind
The kind of provider to use, this can be either `Hypersync` or `Rpc`. By default it will use `Rpc` if you do not provide this.

#### Hypersync

By setting kind to "Hypersync" you could use [hypersync](https://docs.envio.dev/docs/HyperSync/overview) as a data source.

```yaml [rindexer.yaml]
name: rETHIndexer
description: My first rindexer project
repository: https://github.com/joshstevens19/rindexer
project_type: no-code
networks:
- name: ethereum
kind: Hypersync // [!code focus]
chain_id: 1
rpc: https://1.hypersync.xyz
```

### compute_units_per_second

:::info
Expand Down

0 comments on commit 9c5d47a

Please sign in to comment.