From 20cf7c07f047935119592add30a1d39cc4b772a2 Mon Sep 17 00:00:00 2001 From: Damian Date: Mon, 21 Jul 2025 14:28:35 -0300 Subject: [PATCH 1/5] Add deployedOnBlock to useDeployedContractInfo doc --- docs/hooks/useDeployedContractInfo.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/hooks/useDeployedContractInfo.md b/docs/hooks/useDeployedContractInfo.md index 2e4fd7a..9a70e34 100644 --- a/docs/hooks/useDeployedContractInfo.md +++ b/docs/hooks/useDeployedContractInfo.md @@ -21,4 +21,4 @@ This example retrieves the details of the deployed contract with the specified n ### Return Value -- `data`: Object containing `address` and `abi` of contract. +- `data`: Object containing `address`, `deployedOnBlock` and `abi` of contract. From 0f277606c4e07561e557de210e51f125e285e1f4 Mon Sep 17 00:00:00 2001 From: Damian Date: Mon, 21 Jul 2025 14:29:08 -0300 Subject: [PATCH 2/5] Change fromBlock description on useScaffoldEventHistory doc --- docs/hooks/useScaffoldEventHistory.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/hooks/useScaffoldEventHistory.md b/docs/hooks/useScaffoldEventHistory.md index 07380cf..8a6ee2d 100644 --- a/docs/hooks/useScaffoldEventHistory.md +++ b/docs/hooks/useScaffoldEventHistory.md @@ -31,8 +31,8 @@ This example retrieves the historical event logs for the `GreetingChange` event | :----------------------------- | :-------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **contractName** | `string` | Name of the contract to read from. | | **eventName** | `string` | Name of the event to read. | -| **fromBlock** | `bigint` | Block number from which to start reading events. | -| **toBlock** | `bigint` | block number to stop reading events at (if not provided, reads until current block) | +| **fromBlock** (optional) | `bigint` | Block number from which to start reading events (defaults to `deployedOnBlock` in deployedContracts.ts if set for contract, otherwise defaults to 0). | +| **toBlock** (optional) | `bigint` | Block number to stop reading events at (if not provided, reads until current block). | | **filters** (optional) | `object` | Apply filters to the event based on **indexed** parameter names and values `{ [parameterName]: value }`. | | **blockData** (optional) | `boolean` | If set to true it will return the block data for each event (default: false). | | **transactionData** (optional) | `boolean` | If set to true it will return the transaction data for each event (default: false). | From 3e4e7dba715bcba754eaa4470f8c15696eee10df Mon Sep 17 00:00:00 2001 From: Damian Date: Mon, 21 Jul 2025 14:36:26 -0300 Subject: [PATCH 3/5] Prettier --- docs/hooks/useScaffoldEventHistory.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/hooks/useScaffoldEventHistory.md b/docs/hooks/useScaffoldEventHistory.md index 8a6ee2d..1526bbe 100644 --- a/docs/hooks/useScaffoldEventHistory.md +++ b/docs/hooks/useScaffoldEventHistory.md @@ -31,8 +31,8 @@ This example retrieves the historical event logs for the `GreetingChange` event | :----------------------------- | :-------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **contractName** | `string` | Name of the contract to read from. | | **eventName** | `string` | Name of the event to read. | -| **fromBlock** (optional) | `bigint` | Block number from which to start reading events (defaults to `deployedOnBlock` in deployedContracts.ts if set for contract, otherwise defaults to 0). | -| **toBlock** (optional) | `bigint` | Block number to stop reading events at (if not provided, reads until current block). | +| **fromBlock** (optional) | `bigint` | Block number from which to start reading events (defaults to `deployedOnBlock` in deployedContracts.ts if set for contract, otherwise defaults to 0). | +| **toBlock** (optional) | `bigint` | Block number to stop reading events at (if not provided, reads until current block). | | **filters** (optional) | `object` | Apply filters to the event based on **indexed** parameter names and values `{ [parameterName]: value }`. | | **blockData** (optional) | `boolean` | If set to true it will return the block data for each event (default: false). | | **transactionData** (optional) | `boolean` | If set to true it will return the transaction data for each event (default: false). | From 4d7d46ee1f889bc433f2fd70bfa8909412019c27 Mon Sep 17 00:00:00 2001 From: Damian Martinelli Date: Thu, 24 Jul 2025 10:09:02 -0300 Subject: [PATCH 4/5] Move deployedOnBlock as last at useDeployedContractInfo doc Co-authored-by: Shiv Bhonde | shivbhonde.eth --- docs/hooks/useDeployedContractInfo.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/hooks/useDeployedContractInfo.md b/docs/hooks/useDeployedContractInfo.md index 9a70e34..2cb412c 100644 --- a/docs/hooks/useDeployedContractInfo.md +++ b/docs/hooks/useDeployedContractInfo.md @@ -21,4 +21,4 @@ This example retrieves the details of the deployed contract with the specified n ### Return Value -- `data`: Object containing `address`, `deployedOnBlock` and `abi` of contract. +- `data`: Object containing `address`, `abi` and `deployedOnBlock` of contract. From adc8801a52c1e8d53d272c38373dc7d0544c33a7 Mon Sep 17 00:00:00 2001 From: Pablo Alayeto <55535804+Pabl0cks@users.noreply.github.com> Date: Tue, 5 Aug 2025 16:56:57 +0200 Subject: [PATCH 5/5] Old typo --- docs/hooks/useDeployedContractInfo.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/hooks/useDeployedContractInfo.md b/docs/hooks/useDeployedContractInfo.md index 2cb412c..ac6e893 100644 --- a/docs/hooks/useDeployedContractInfo.md +++ b/docs/hooks/useDeployedContractInfo.md @@ -21,4 +21,4 @@ This example retrieves the details of the deployed contract with the specified n ### Return Value -- `data`: Object containing `address`, `abi` and `deployedOnBlock` of contract. +- `data`: Object containing `address`, `abi` and `deployedOnBlock` of the contract.