diff --git a/documentation/docs/pages/docs/start-building/add.mdx b/documentation/docs/pages/docs/start-building/add.mdx index d213e945..220359ae 100644 --- a/documentation/docs/pages/docs/start-building/add.mdx +++ b/documentation/docs/pages/docs/start-building/add.mdx @@ -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. @@ -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). +::: + diff --git a/documentation/docs/pages/docs/start-building/yaml-config/networks.mdx b/documentation/docs/pages/docs/start-building/yaml-config/networks.mdx index 10591c18..e329f612 100644 --- a/documentation/docs/pages/docs/start-building/yaml-config/networks.mdx +++ b/documentation/docs/pages/docs/start-building/yaml-config/networks.mdx @@ -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