-
Notifications
You must be signed in to change notification settings - Fork 480
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Scroll views * review fix * fix tests
- Loading branch information
Showing
50 changed files
with
2,051 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ on: | |
- optimism_sepolia | ||
- polygon | ||
- rootstock | ||
- scroll_sepolia | ||
- shibarium | ||
- stability | ||
- zkevm | ||
|
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 |
---|---|---|
|
@@ -26,6 +26,7 @@ on: | |
- polygon | ||
- rootstock | ||
- shibarium | ||
- scroll_sepolia | ||
- stability | ||
- zkevm | ||
- zilliqa_prototestnet | ||
|
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 @@ | ||
# Set of ENVs for Scroll Sepolia Testnet network explorer | ||
# https://scroll-sepolia.blockscout.com | ||
# This is an auto-generated file. To update all values, run "yarn dev:preset:sync --name=scroll_sepolia" | ||
|
||
# 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_API_BASE_PATH=/ | ||
NEXT_PUBLIC_API_HOST=scroll-sepolia.blockscout.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/scroll-testnet.json | ||
NEXT_PUBLIC_GRAPHIQL_TRANSACTION=0xa0d22caf6217a488b1e97b646c5ed88e8a3020a607bcd1f3fe8d4c430bb19ad5 | ||
NEXT_PUBLIC_HOMEPAGE_CHARTS=['daily_txs'] | ||
NEXT_PUBLIC_HOMEPAGE_HERO_BANNER_CONFIG={'background':['rgba(255, 238, 218, 1)'],'text_color':['rgba(25, 6, 2, 1)']} | ||
NEXT_PUBLIC_IS_TESTNET=true | ||
NEXT_PUBLIC_METADATA_SERVICE_API_HOST=https://metadata.services.blockscout.com | ||
NEXT_PUBLIC_NETWORK_CURRENCY_DECIMALS=18 | ||
NEXT_PUBLIC_NETWORK_CURRENCY_NAME=Ether | ||
NEXT_PUBLIC_NETWORK_CURRENCY_SYMBOL=ETH | ||
NEXT_PUBLIC_NETWORK_ICON=https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/network-icons/scroll.svg | ||
NEXT_PUBLIC_NETWORK_ICON_DARK=https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/network-icons/scroll-dark.svg | ||
NEXT_PUBLIC_NETWORK_ID=534351 | ||
NEXT_PUBLIC_NETWORK_LOGO=https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/network-logos/scroll.svg | ||
NEXT_PUBLIC_NETWORK_LOGO_DARK=https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/network-logos/scroll-dark.svg | ||
NEXT_PUBLIC_NETWORK_NAME=Scroll Sepolia Testnet | ||
NEXT_PUBLIC_NETWORK_RPC_URL=https://sepolia-rpc.scroll.io | ||
NEXT_PUBLIC_NETWORK_SHORT_NAME=Scroll Sepolia Testnet | ||
NEXT_PUBLIC_OG_ENHANCED_DATA_ENABLED=true | ||
NEXT_PUBLIC_OG_IMAGE_URL=https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/og-images/scroll-testnet.png | ||
NEXT_PUBLIC_RE_CAPTCHA_APP_SITE_KEY=6Ld0iT8aAAAAAJdju0CmAwGjW7JTDvIw-Q5pwt5T | ||
NEXT_PUBLIC_STATS_API_HOST=https://stats-scroll-sepolia.k8s-prod-2.blockscout.com | ||
NEXT_PUBLIC_TRANSACTION_INTERPRETATION_PROVIDER=blockscout | ||
NEXT_PUBLIC_VISUALIZE_API_HOST=https://visualizer.services.blockscout.com | ||
NEXT_PUBLIC_ROLLUP_TYPE=scroll | ||
NEXT_PUBLIC_ROLLUP_L1_BASE_URL=https://eth-sepolia.blockscout.com/ |
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,26 @@ | ||
import type { ScrollL2MessagesResponse } from 'types/api/scrollL2'; | ||
|
||
export const baseResponse: ScrollL2MessagesResponse = { | ||
items: [ | ||
{ | ||
id: 930795, | ||
origination_transaction_block_number: 20639178, | ||
origination_transaction_hash: '0x70380f2c6ecd53aa6e0608e6c9d770acaa29c0508869ec296bae3e09678ea9f4', | ||
origination_timestamp: '2024-08-30T05:03:23.000000Z', | ||
completion_transaction_hash: null, | ||
value: '5084131319054877748', | ||
}, | ||
{ | ||
id: 930748, | ||
origination_transaction_block_number: 20638104, | ||
origination_transaction_hash: '0x7e7b4d5ff0b7a6af5e52f4aa2ad9eca3c0c5664368cbb781e04b5b13c6109b2b', | ||
origination_timestamp: '2024-08-30T01:26:35.000000Z', | ||
completion_transaction_hash: '0x426b16ea3a42228f6d754ae55c348986122cdb1e4331b6fd454975776f513ea1', | ||
value: '0', | ||
}, | ||
], | ||
next_page_params: { | ||
items_count: 50, | ||
id: 1, | ||
}, | ||
}; |
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,50 @@ | ||
import type { ScrollL2BatchesResponse } from 'types/api/scrollL2'; | ||
|
||
export const batchData = { | ||
number: 66928, | ||
commitment_transaction: { | ||
block_number: 19114878, | ||
hash: '0x57552c0dbcf56383ee2efdf8fd6be143b355135fc300361924582c308877b8b7', | ||
timestamp: '2024-01-29T21:31:35.000000Z', | ||
}, | ||
confirmation_transaction: { | ||
block_number: null, | ||
hash: null, | ||
timestamp: null, | ||
}, | ||
data_availability: { | ||
batch_data_container: 'in_blob4844' as const, | ||
}, | ||
start_block: 456000, | ||
end_block: 789000, | ||
transaction_count: 654, | ||
}; | ||
|
||
export const baseResponse: ScrollL2BatchesResponse = { | ||
items: [ | ||
batchData, | ||
{ | ||
number: 66879, | ||
commitment_transaction: { | ||
block_number: 19114386, | ||
hash: '0x0d33245814b9e61c8f0ed6fd3fb7464f34be33d2c3aee69629d65e8995d77edc', | ||
timestamp: '2024-01-29T19:52:35.000000Z', | ||
}, | ||
confirmation_transaction: { | ||
block_number: 19114558, | ||
hash: '0x6f9a19d503947ec91d6e9d5c2129913a7def86fd0f87061c06e5994cf857bee0', | ||
timestamp: '2024-01-29T20:27:11.000000Z', | ||
}, | ||
data_availability: { | ||
batch_data_container: 'in_calldata', | ||
}, | ||
start_block: 456000, | ||
end_block: 789000, | ||
transaction_count: 962, | ||
}, | ||
], | ||
next_page_params: { | ||
items_count: 50, | ||
number: 1, | ||
}, | ||
}; |
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
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,32 @@ | ||
import type { ScrollL2MessageItem, ScrollL2TxnBatch } from 'types/api/scrollL2'; | ||
|
||
import { TX_HASH } from './tx'; | ||
|
||
export const SCROLL_L2_TXN_BATCH: ScrollL2TxnBatch = { | ||
commitment_transaction: { | ||
block_number: 4053979, | ||
hash: '0xd04d626495ef69abd37ae3ea585ed03319a3d3b50cf10874f7f36741c7b45a18', | ||
timestamp: '2023-08-09T08:09:12.000000Z', | ||
}, | ||
confirmation_transaction: { | ||
block_number: null, | ||
hash: null, | ||
timestamp: null, | ||
}, | ||
end_block: 1711, | ||
number: 273, | ||
start_block: 1697, | ||
transaction_count: 15, | ||
data_availability: { | ||
batch_data_container: 'in_blob4844', | ||
}, | ||
}; | ||
|
||
export const SCROLL_L2_MESSAGE_ITEM: ScrollL2MessageItem = { | ||
id: 930795, | ||
origination_transaction_block_number: 20639178, | ||
origination_transaction_hash: TX_HASH, | ||
origination_timestamp: '2024-08-30T05:03:23.000000Z', | ||
completion_transaction_hash: 'TX_HASH', | ||
value: '5084131319054877748', | ||
}; |
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.