streamingfast / substreams-ethereum

Substreams development kit for Ethereum chains, contains Firehose Block model and helpers as well as utilities for Ethereum ABI encoding/decoding.
Apache License 2.0
22 stars 9 forks source link

Batch rpc calls #11

Closed Eduard-Voiculescu closed 2 years ago

Eduard-Voiculescu commented 2 years ago

Do you want to request a feature or report a bug? Feature request

What is the current behavior? Separate rpc calls

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. N/A

What is the expected behavior? Instead of doing

let fee0 = abi::pool::functions::FeeGrowthGlobal0X128
fee0.call(...)
let fee1 = abi::pool::functions::FeeGrowthGlobal1X128
fee1.call(...)

We could provide a helper to do both calls at the same time instead of doing 2 calls separately.

maoueh commented 2 years ago

Now possible with RpcBatch object