-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add batching options to
createRollupFetchTransactionHash
closes fs-895
- Loading branch information
1 parent
f225ca0
commit 0f2b701
Showing
7 changed files
with
224 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
src/utils/getEarliestRollupCreatorDeploymentBlockNumber.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { | ||
mainnet, | ||
arbitrumOne, | ||
arbitrumNova, | ||
base, | ||
sepolia, | ||
holesky, | ||
arbitrumSepolia, | ||
baseSepolia, | ||
nitroTestnodeL1, | ||
nitroTestnodeL2, | ||
} from '../chains'; | ||
import { ParentChainId } from '../types/ParentChain'; | ||
|
||
const earliestRollupCreatorDeploymentBlockNumber = { | ||
// mainnet L1 | ||
[mainnet.id]: 18_736_164n, | ||
// mainnet L2 | ||
[arbitrumOne.id]: 150_599_584n, | ||
[arbitrumNova.id]: 47_798_739n, | ||
[base.id]: 12_978_604n, | ||
// testnet L1 | ||
[sepolia.id]: 4_741_823n, | ||
[holesky.id]: 1_118_493n, | ||
// testnet L2 | ||
[arbitrumSepolia.id]: 654_628n, | ||
[baseSepolia.id]: 10_606_961n, | ||
// local nitro-testnode | ||
[nitroTestnodeL1.id]: 0n, | ||
[nitroTestnodeL2.id]: 0n, | ||
} as const; | ||
|
||
export function getEarliestRollupCreatorDeploymentBlockNumber(chainId: ParentChainId) { | ||
for (const key in earliestRollupCreatorDeploymentBlockNumber) { | ||
if (chainId.toString() === key) { | ||
return earliestRollupCreatorDeploymentBlockNumber[chainId]; | ||
} | ||
} | ||
|
||
return 'latest'; | ||
} |
Oops, something went wrong.