-
Notifications
You must be signed in to change notification settings - Fork 476
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Zilliqa: Consensus data on Block view and Raw Input default format fo…
…r Scilla contract txn (#2375) * ENV preset for zilliqa * add zilliqa fields to block view * [skip ci] fix typo * fix accordion styles * [skip ci] make signers required again * change default format of Raw Input for Scilla contract to UTF-8 * add default type option to log item data
- Loading branch information
Showing
23 changed files
with
387 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,9 @@ on: | |
- shibarium | ||
- stability | ||
- zkevm | ||
- zilliqa_prototestnet | ||
- zksync | ||
- zora | ||
|
||
jobs: | ||
make_slug: | ||
|
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,41 @@ | ||
# Set of ENVs for Zilliqa EVM proto-testnet network explorer | ||
# https://zilliqa-prototestnet.blockscout.com | ||
# This is an auto-generated file. To update all values, run "yarn dev:preset:sync --name=zilliqa_prototestnet" | ||
|
||
# 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 | ||
|
||
NEXT_PUBLIC_VIEWS_ADDRESS_FORMAT=['bech32','base16'] | ||
NEXT_PUBLIC_VIEWS_ADDRESS_BECH_32_PREFIX=zil | ||
NEXT_PUBLIC_VIEWS_BLOCK_HIDDEN_FIELDS=['base_fee'] | ||
|
||
# Instance ENVs | ||
NEXT_PUBLIC_API_BASE_PATH=/ | ||
NEXT_PUBLIC_API_HOST=zilliqa-prototestnet.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_GRAPHIQL_TRANSACTION=0x3d1ded3a7924cd3256a4b1a447c9bfb194f54b9a8ceb441edb8bb01563b516db | ||
NEXT_PUBLIC_HOMEPAGE_CHARTS=['daily_txs'] | ||
NEXT_PUBLIC_HOMEPAGE_HERO_BANNER_CONFIG={'background':['linear-gradient(90deg, rgba(52,103, 109, 1) 0.06%, rgba(105, 181, 172, 1) 99.97%)'],'text_color':['rgba(255, 255, 255, 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=ZIL | ||
NEXT_PUBLIC_NETWORK_CURRENCY_SYMBOL=ZIL | ||
NEXT_PUBLIC_NETWORK_ICON=https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/network-icons/zilliqa.svg | ||
NEXT_PUBLIC_NETWORK_ICON_DARK=https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/network-icons/zilliqa-dark.svg | ||
NEXT_PUBLIC_NETWORK_ID=33103 | ||
NEXT_PUBLIC_NETWORK_LOGO=https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/network-logos/zilliqa.svg | ||
NEXT_PUBLIC_NETWORK_LOGO_DARK=https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/network-logos/zilliqa-dark.svg | ||
NEXT_PUBLIC_NETWORK_NAME=Zilliqa EVM proto-testnet | ||
NEXT_PUBLIC_NETWORK_RPC_URL=https://api.zq2-prototestnet.zilliqa.com | ||
NEXT_PUBLIC_NETWORK_SHORT_NAME=Zilliqa EVM proto-testnet | ||
NEXT_PUBLIC_OG_ENHANCED_DATA_ENABLED=true | ||
NEXT_PUBLIC_OG_IMAGE_URL=https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/og-images/zilliqa.png | ||
NEXT_PUBLIC_RE_CAPTCHA_APP_SITE_KEY=6Ld0iT8aAAAAAJdju0CmAwGjW7JTDvIw-Q5pwt5T | ||
NEXT_PUBLIC_TRANSACTION_INTERPRETATION_PROVIDER=blockscout | ||
NEXT_PUBLIC_VISUALIZE_API_HOST=https://visualizer.services.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
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
ui/block/details/BlockDetailsZilliqaQuorumCertificate.pw.tsx
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 { Grid } from '@chakra-ui/react'; | ||
import React from 'react'; | ||
|
||
import type { ZilliqaQuorumCertificate } from 'types/api/block'; | ||
|
||
import * as blockMock from 'mocks/blocks/block'; | ||
import { test, expect } from 'playwright/lib'; | ||
|
||
import BlockDetailsZilliqaQuorumCertificate from './BlockDetailsZilliqaQuorumCertificate'; | ||
|
||
test('quorum certificate', async({ render }) => { | ||
const component = await render( | ||
<Grid | ||
columnGap={ 8 } | ||
rowGap={{ base: 3, lg: 3 }} | ||
templateColumns={{ base: 'minmax(0, 1fr)', lg: 'minmax(min-content, 200px) minmax(0, 1fr)' }} | ||
overflow="hidden" | ||
> | ||
<BlockDetailsZilliqaQuorumCertificate data={ blockMock.zilliqaWithAggregateQuorumCertificate.zilliqa?.quorum_certificate as ZilliqaQuorumCertificate }/> | ||
</Grid>, | ||
); | ||
await expect(component).toHaveScreenshot(); | ||
}); | ||
|
||
test('aggregated quorum certificate +@mobile', async({ render }) => { | ||
const component = await render( | ||
<Grid | ||
columnGap={ 8 } | ||
rowGap={{ base: 3, lg: 3 }} | ||
templateColumns={{ base: 'minmax(0, 1fr)', lg: 'minmax(min-content, 200px) minmax(0, 1fr)' }} | ||
overflow="hidden" | ||
> | ||
<BlockDetailsZilliqaQuorumCertificate | ||
data={ blockMock.zilliqaWithAggregateQuorumCertificate.zilliqa?.aggregate_quorum_certificate as ZilliqaQuorumCertificate } | ||
/> | ||
</Grid>, | ||
); | ||
await component.getByRole('button', { name: 'Nested quorum certificates' }).click(); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); |
Oops, something went wrong.