-
Notifications
You must be signed in to change notification settings - Fork 485
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OP rollup: Batch view and DA fields (#2210)
* tx batches view adjustments * blocks and txs tabs of batch page * batch details * add batch info to block details view * display batch blob data in EIP-4844 and calldata container * display batch blob data in celestia container * tests * add optimism_celestia preset * review fixes * update screenshots
- Loading branch information
Showing
38 changed files
with
967 additions
and
107 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Set of ENVs for OP Celestia Raspberry network explorer | ||
# https://opcelestia-raspberry.gelatoscout.com | ||
# This is an auto-generated file. To update all values, run "yarn preset:sync --name=optimism_celestia" | ||
|
||
# Local ENVs | ||
NEXT_PUBLIC_APP_PROTOCOL=http | ||
NEXT_PUBLIC_APP_HOST=localhost | ||
NEXT_PUBLIC_APP_PORT=3000 | ||
NEXT_PUBLIC_APP_ENV=development | ||
NEXT_PUBLIC_API_WEBSOCKET_PROTOCOL=ws | ||
|
||
# Instance ENVs | ||
NEXT_PUBLIC_AD_ADBUTLER_CONFIG_DESKTOP={'id':'721628','width':'728','height':'90'} | ||
NEXT_PUBLIC_AD_ADBUTLER_CONFIG_MOBILE={'id':'721627','width':'300','height':'100'} | ||
NEXT_PUBLIC_AD_BANNER_PROVIDER=adbutler | ||
NEXT_PUBLIC_AD_TEXT_PROVIDER=none | ||
NEXT_PUBLIC_API_BASE_PATH=/ | ||
NEXT_PUBLIC_API_HOST=opcelestia-raspberry.gelatoscout.com | ||
NEXT_PUBLIC_API_SPEC_URL=https://raw.githubusercontent.com/blockscout/blockscout-api-v2-swagger/main/swagger.yaml | ||
NEXT_PUBLIC_CONTRACT_CODE_IDES=[{'title':'Remix IDE','url':'https://remix.ethereum.org/?address={hash}&blockscout={domain}','icon_url':'https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/ide-icons/remix.png'}] | ||
NEXT_PUBLIC_FEATURED_NETWORKS=https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/featured-networks/opcelestia-raspberry.json | ||
NEXT_PUBLIC_GRAPHIQL_TRANSACTION=0x0f5b54de81848d8d8baa02c69030037218a2b4df622d64a2a429e11721606656 | ||
NEXT_PUBLIC_HOMEPAGE_CHARTS=['daily_txs'] | ||
NEXT_PUBLIC_HOMEPAGE_PLATE_BACKGROUND=rgba(255, 0, 0, 1) | ||
NEXT_PUBLIC_IS_TESTNET=true | ||
NEXT_PUBLIC_MARKETPLACE_ENABLED=false | ||
NEXT_PUBLIC_METADATA_SERVICE_API_HOST=https://metadata.services.blockscout.com | ||
NEXT_PUBLIC_NETWORK_CURRENCY_DECIMALS=18 | ||
NEXT_PUBLIC_NETWORK_CURRENCY_NAME=ETH | ||
NEXT_PUBLIC_NETWORK_CURRENCY_SYMBOL=ETH | ||
NEXT_PUBLIC_NETWORK_ICON=https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/network-icons/optimism.svg | ||
NEXT_PUBLIC_NETWORK_ICON_DARK=https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/network-icons/optimism.svg | ||
NEXT_PUBLIC_NETWORK_ID=123420111 | ||
NEXT_PUBLIC_NETWORK_LOGO=https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/network-logos/optimism.svg | ||
NEXT_PUBLIC_NETWORK_LOGO_DARK=https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/network-logos/optimism.svg | ||
NEXT_PUBLIC_NETWORK_NAME=OP Celestia Raspberry | ||
NEXT_PUBLIC_NETWORK_RPC_URL=https://rpc.opcelestia-raspberry.gelato.digital | ||
NEXT_PUBLIC_NETWORK_SHORT_NAME=opcelestia-raspberry | ||
NEXT_PUBLIC_OG_ENHANCED_DATA_ENABLED=true | ||
NEXT_PUBLIC_ROLLUP_L1_BASE_URL=https://eth-sepolia.blockscout.com/ | ||
NEXT_PUBLIC_ROLLUP_L2_WITHDRAWAL_URL=https://bridge.gelato.network/bridge/opcelestia-raspberry | ||
NEXT_PUBLIC_ROLLUP_TYPE=optimistic | ||
NEXT_PUBLIC_STATS_API_HOST=https://stats-opcelestia-raspberry.k8s.blockscout.com | ||
NEXT_PUBLIC_TRANSACTION_INTERPRETATION_PROVIDER=blockscout | ||
NEXT_PUBLIC_VISUALIZE_API_HOST=https://visualizer.services.blockscout.com | ||
NEXT_PUBLIC_WEB3_WALLETS=none |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,104 @@ | ||
export const txnBatchesData = { | ||
import type { | ||
OptimismL2TxnBatchTypeCallData, | ||
OptimismL2TxnBatchTypeCelestia, | ||
OptimismL2TxnBatchTypeEip4844, | ||
OptimisticL2TxnBatchesResponse, | ||
} from 'types/api/optimisticL2'; | ||
|
||
export const txnBatchesData: OptimisticL2TxnBatchesResponse = { | ||
items: [ | ||
{ | ||
batch_data_container: 'in_blob4844', | ||
internal_id: 260998, | ||
l1_timestamp: '2022-11-10T11:29:11.000000Z', | ||
l1_tx_hashes: [ | ||
'0x5bc94d02b65743dfaa9e10a2d6e175aff2a05cce2128c8eaf848bd84ab9325c5', | ||
'0x92a51bc623111dbb91f243e3452e60fab6f090710357f9d9b75ac8a0f67dfd9d', | ||
'0x9553351f6bd1577f4e782738c087be08697fb11f3b91745138d71ba166d62c3b', | ||
], | ||
l1_timestamp: '2023-02-24T10:16:12.000000Z', | ||
l2_block_number: 5902836, | ||
tx_count: 0, | ||
l2_block_end: 124882074, | ||
l2_block_start: 124881833, | ||
tx_count: 4011, | ||
}, | ||
{ | ||
batch_data_container: 'in_calldata', | ||
internal_id: 260997, | ||
l1_timestamp: '2022-11-03T11:20:59.000000Z', | ||
l1_tx_hashes: [ | ||
'0xc45f846ee28ce9ba116ce2d378d3dd00b55d324b833b3ecd4241c919c572c4aa', | ||
'0x80f5fba70d5685bc2b70df836942e892b24afa7bba289a2fac0ca8f4d554cc72', | ||
], | ||
l1_timestamp: '2023-02-24T10:16:00.000000Z', | ||
l2_block_number: 5902835, | ||
tx_count: 0, | ||
l2_block_end: 124881832, | ||
l2_block_start: 124881613, | ||
tx_count: 4206, | ||
}, | ||
{ | ||
internal_id: 260996, | ||
l1_timestamp: '2024-09-03T11:14:23.000000Z', | ||
l1_tx_hashes: [ | ||
'0x48139721f792d3a68c3781b4cf50e66e8fc7dbb38adff778e09066ea5be9adb8', | ||
'0x39f4c46cae57bae936acb9159e367794f41f021ed3788adb80ad93830edb5f22', | ||
], | ||
l1_timestamp: '2023-02-24T10:16:00.000000Z', | ||
l2_block_number: 5902834, | ||
tx_count: 0, | ||
l2_block_end: 124881612, | ||
l2_block_start: 124881380, | ||
tx_count: 4490, | ||
}, | ||
], | ||
next_page_params: { | ||
block_number: 5902834, | ||
id: 5902834, | ||
items_count: 50, | ||
}, | ||
}; | ||
|
||
export const txnBatchTypeCallData: OptimismL2TxnBatchTypeCallData = { | ||
batch_data_container: 'in_calldata', | ||
internal_id: 309123, | ||
l1_timestamp: '2022-08-10T10:30:24.000000Z', | ||
l1_tx_hashes: [ | ||
'0x478c45f182631ae6f7249d40f31fdac36f41d88caa2e373fba35340a7345ca67', | ||
], | ||
l2_block_end: 10146784, | ||
l2_block_start: 10145379, | ||
tx_count: 1608, | ||
}; | ||
|
||
export const txnBatchTypeCelestia: OptimismL2TxnBatchTypeCelestia = { | ||
batch_data_container: 'in_celestia', | ||
blobs: [ | ||
{ | ||
commitment: '0x39c18c21c6b127d58809b8d3b5931472421f9b51532959442f53038f10b78f2a', | ||
height: 2584868, | ||
l1_timestamp: '2024-08-28T16:51:12.000000Z', | ||
l1_transaction_hash: '0x2bb0b96a8ba0f063a243ac3dee0b2f2d87edb2ba9ef44bfcbc8ed191af1c4c24', | ||
namespace: '0x00000000000000000000000000000000000000000008e5f679bf7116cb', | ||
}, | ||
], | ||
internal_id: 309667, | ||
l1_timestamp: '2022-08-28T16:51:12.000000Z', | ||
l1_tx_hashes: [ | ||
'0x2bb0b96a8ba0f063a243ac3dee0b2f2d87edb2ba9ef44bfcbc8ed191af1c4c24', | ||
], | ||
l2_block_end: 10935879, | ||
l2_block_start: 10934514, | ||
tx_count: 1574, | ||
}; | ||
|
||
export const txnBatchTypeEip4844: OptimismL2TxnBatchTypeEip4844 = { | ||
batch_data_container: 'in_blob4844', | ||
blobs: [ | ||
{ | ||
hash: '0x012a4f0c6db6bce9d3d357b2bf847764320bcb0107ab318f3a532f637bc60dfe', | ||
l1_timestamp: '2022-08-23T03:59:12.000000Z', | ||
l1_transaction_hash: '0x3870f136497e5501dc20d0974daf379c8636c958794d59a9c90d4f8a9f0ed20a', | ||
}, | ||
{ | ||
hash: '0x01d1097cce23229931afbc2fd1cf0d707da26df7b39cef1c542276ae718de4f6', | ||
l1_timestamp: '2022-08-23T03:59:12.000000Z', | ||
l1_transaction_hash: '0x3870f136497e5501dc20d0974daf379c8636c958794d59a9c90d4f8a9f0ed20a', | ||
}, | ||
], | ||
internal_id: 2538459, | ||
l1_timestamp: '2022-08-23T03:59:12.000000Z', | ||
l1_tx_hashes: [ | ||
'0x3870f136497e5501dc20d0974daf379c8636c958794d59a9c90d4f8a9f0ed20a', | ||
], | ||
l2_block_end: 16291502, | ||
l2_block_start: 16291373, | ||
tx_count: 704, | ||
}; |
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
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
Oops, something went wrong.