OffchainLabs / arbitrum-orbit-sdk

💙 SDK for building Arbitrum Orbit chains
Apache License 2.0
29 stars 41 forks source link

Add version of createRollupFetchTransactionHash that takes deployedAtBlockNumber as input #205

Open antonio-altr opened 3 days ago

antonio-altr commented 3 days ago

https://github.com/OffchainLabs/arbitrum-orbit-sdk/blob/ad7ed7f253aa667f78fff26f34bd289c938e4bfc/src/createRollupFetchTransactionHash.ts#L61

Currently this function checks for all createRollup logs dating back from the rollup creator deployment block.

It would be helpful if there was another version that would only check the range starting from deployedAtBlockNumber in the OrbitSetupScriptConfig.json. Many RPC providers have a 10k block limit for eth_getLogs, for example, which would require us to do a lot of queries just to find the createRollup tx hash.