Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multicall chain info #168

Merged
merged 7 commits into from
Jan 8, 2024
Merged

Multicall chain info #168

merged 7 commits into from
Jan 8, 2024

Conversation

Siegrift
Copy link
Collaborator

@Siegrift Siegrift commented Dec 31, 2023

Closes #154

Rationale

See the issue description, comments and related Slack discussions for full context.

We fetch on-chain data in two places, 1) when fetching a batch of active data feeds and 2) when multi-calling beacon values for the batch. Both of these verify that chain ID matches the configuration and log a warning otherwise. During 1) we remember the block ID and use it to fetch the nonce (at that block) when making the update transaction. In 2) we fetch the values at latest the block number. See this discussion.

When making an update transaction we log the sponsor wallet address and a nonce of the update transaction.

I've also updated the local-test-configuration which was broken after #165.

@Siegrift Siegrift requested a review from aquarat December 31, 2023 11:39
@Siegrift Siegrift self-assigned this Dec 31, 2023
@Siegrift Siegrift removed the request for review from aquarat December 31, 2023 11:39
@Siegrift Siegrift force-pushed the upgrade-contracts3 branch from e542112 to 4e8f3d5 Compare January 8, 2024 08:01
Base automatically changed from upgrade-contracts3 to main January 8, 2024 08:03
@Siegrift Siegrift force-pushed the multicall-chain-info branch from 929fbd3 to 9fb525d Compare January 8, 2024 09:20
@Siegrift Siegrift changed the title WIP: Multicall chain info Multicall chain info Jan 8, 2024
@Siegrift Siegrift force-pushed the multicall-chain-info branch from 0cf68b8 to 2582117 Compare January 8, 2024 13:29
@Siegrift Siegrift requested a review from aquarat January 8, 2024 13:40
@Siegrift Siegrift force-pushed the multicall-chain-info branch from 2582117 to 24b1e40 Compare January 8, 2024 13:42
Copy link
Collaborator

@aquarat aquarat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't offer you any feedback 😆😅, it's extremely neat ⭐ 👏

@Siegrift Siegrift merged commit f15339a into main Jan 8, 2024
4 checks passed
@Siegrift Siegrift deleted the multicall-chain-info branch January 8, 2024 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multicall chain info with read calls, use tx count from the fetched block
2 participants