151 Commits
Author SHA1 Message Date
tom goriunovandGitHub b9c24fea17 Replace lodash with es-toolkit (#2503)
* first part of migration

* second part of migration

* bump up es-toolkit version

* bump up `es-toolkit` version and remove `lodash` completely

* update screenshot
2025-01-14 12:30:05 +01:00
tom goriunovandGitHub 54fe4919e2 Call the API logout endpoint when the user logs out (#2469)
* Call the API logout endpoint when the user logs out

* fix tests

* one more fix
2024-12-16 13:22:09 +01:00
tom goriunovandGitHub f6a002b180 Migrate from web3modal to reown (#2321)
* migrate from `web3modal` to `reown`

Fixes #2316

* bump up package versions
2024-12-13 18:32:26 +01:00
tom goriunovandGitHub a93e992291 ReCaptcha: migrate back to v2 solution (#2446)
* show recaptcha in the site footer

* replace badge in footer with text

* add invisible reCaptcha v2

* handle unsolved reCaptcha case

* migrate the rest of components to invisible reCaptcha v2

* remove unused code

* refactoring

* add env for demo

* fix tests

* update values for demo

* update link to secret in vault

* mock recaptcha for tests

* ohhh victor victor

* fix token metadata update test

* deprecate variable for ReCaptcha v3
2024-12-09 18:06:56 +01:00
Igor StuevandGitHub 993b9996ae Scroll views (#2418)
* Scroll views

* review fix

* fix tests
2024-12-03 11:05:28 +01:00
tom goriunovandGitHub ba0a9a05e6 Contract page improvements (#2419)
* display address selector for non-verified proxy contract

* add code view snippet for ABI and Compiler Settings

* syntax highlighting for Scilla contracts

* ENV preset for zilliqa

* fix tests

* add native coin value to simulate method call

* fix test
2024-11-25 16:04:09 +01:00
tom goriunovandGitHub 882179f037 Optimism and Arbitrum rollups updates (#2414)
* OP rollups: add ENV to show/hide "Output roots" page

* Rename status labels for Arbitrum blocks and transactions
2024-11-25 09:50:35 +01:00
tom 5c286d6517 migrate to eslint 9 and its flat config 2024-11-13 12:54:12 +01:00
tom goriunovandGitHub 29ee20ff02 Support bech32 address standard (#2351)
* create settings context with simple address format toggler

* transform base16 hash to bech32 hash

* add ENV variables

* add snippet to address page

* add redirect for bech32 addresses

* change address format in search

* add provider to tests

* update demo values

* migrate from Buffer to Uint8Array and add tests

* bug fixes and screenshots updates

* review fixes

* roll back changes in env values

* update screenshots
2024-11-04 18:53:59 +01:00
Max Alekseenko a8a0335eaa update tests 2024-11-01 15:56:55 +01:00
tom cab7e57880 [skip ci] clean up and more tests 2024-10-14 20:58:14 +02:00
tom d8cb6f6d89 fix ts 2024-09-25 16:59:01 +02:00
tom 7327a3496e fix paddings 2024-09-16 19:24:48 +02:00
tom 1d0f358b57 Change max width of page content 2024-09-16 16:59:59 +02:00
tom goriunovandGitHub 703ffcd395 Limit page content width (#2197)
* limit content width for horizontal menu layout

* limit content width for vertical menu layout

* limit amout of tabs in routed tabs skeleton

* fix width of error screen

* add NEXT_PUBLIC_ROLLUP_L2_WITHDRAWAL_URL L2 review envs

* add tests

* fixes

* fix tests

* move content wrapper to render fixture

* update screenshots and fix tests
2024-08-28 13:20:33 +02:00
tom goriunovandGitHub 30e14b6e83 Add support for zkSync smart-contracts (#2173)
* additional form fields

* pass optimization modes from API and handle single verification method case

* display zk contract info
2024-08-20 10:27:46 +02:00
tom goriunovandGitHub b8abfba53f Pack Chakra theme into NPM package (#2115)
* build package

* update version

* fix name collision

* add workflow
2024-08-12 18:13:07 +02:00
tom goriunovandGitHub e7a7742b27 RPC tests (#2101)
* test for degraded block details tab

* fix marketplace app test

* more tests for degraded block

* test for address degradation view
2024-07-16 12:10:14 +02:00
tom 09332872a4 add mockRpcResponse fixture and skip marketplace app test 2024-07-02 16:51:26 +02:00
tom goriunovandGitHub 80cd43ad5e Implement NFT instance metadata refetch button (#2039)
* refactor token instance page title

* add menu item and modal with recaptcha

* initialize refresh and show loading state

* handle error state

* fix metadata atributes parser

* refactoring

* tests
2024-06-25 18:19:39 +02:00
tom goriunovandGitHub 7c8de882a6 Call contract read methods from the client (#2032)
* display methods accordion

* add method_id to methods

* query read method via public client

* query read methods without inputs at accordion section open

* add custom abi tabs

* add proxy tabs

* custom wagmi config if wc is not configured

* remove ContractAbiItemConstant component

* display tuple properties in method outputs

* display read result

* clean up

* support nested arrays in the read result

* re-write test for contract methods

* change result view for address output

* refactoring

* fix tests

* remove web3 provider fallback

* fix tab loading

* refactoring

* add implementation contract selector

* add "copy to clipboard" for address, remove top-level square brackets

* add preview mode to contract method result

* tests for read result

* fix tests

* change styles for result preview

* review fix
2024-06-24 19:56:06 +02:00
Igor StuevandGitHub 1944d26850 Merge pull request #2024 from blockscout/fe-2006
Arbitrum views
2024-06-21 13:56:02 +03:00
tom goriunovandGitHub ff2173bcdb Navigation: horizontal layout (#1991)
* add ENV for navigation layout type

* add network menu to top bar

* renaming and main component placeholder

* add logo, testnet badge, login and connect wallet buttons to the nav bar

* refactor once more

* styles for nav link group

* style nav link

* style groupped nav links

* update values for L2 review

* update demo values

* fix deployment values for L2 review

* tests

* fix prop collision

* shorten filter input on marketplace page and update MainArea height

* change margin between text and lightning label

* add active state to "Other" nav menu

* popover fixes

* fix link width

* [skip ci] update demo values
2024-06-19 15:58:13 +02:00
isstuev b2cdf7c6b9 arbitrum 2024-06-18 12:11:43 +03:00
tom goriunovandGitHub e459923d65 Resolve BENS names from URL directly to address page (#2004)
* Resolve BENS names from URL directly to address page

Fixes #1965

* fix tests
2024-06-13 13:11:13 +02:00
isstuev de3c836333 OP Fault Proofs support 2024-05-28 12:01:37 +02:00
Max AlekseenkoandGitHub e4b80c66f8 Merge branch 'main' into menu-lightning-label 2024-05-27 15:09:39 +02:00
tom goriunovandGitHub 8829025900 Playwright tests refactoring, pt.5 (#1952)
* next part of test refactoring

* more refactoring

* more refactoring

* fixes and clean-up

* fixes

* build fixes

* more fixes
2024-05-25 15:41:32 +02:00
Max Alekseenko f1bb68e5d2 change variable names 2024-05-22 15:48:00 +02:00
isstuev a334c7f45c remove unsupported features from search results 2024-05-21 17:32:55 +02:00
Max Alekseenko 6663a21710 fix styles and add tests 2024-05-13 17:22:33 +02:00
Max Alekseenko fd738f6b6c add more tests 2024-05-07 19:50:54 +02:00
Max Alekseenko 8ea3d6251d merge main 2024-05-06 21:48:27 +02:00
tom goriunovandGitHub 351ff02d95 Playwright tests refactoring, pt.4 (#1892)
* remove feature config from the pw tests

* update screenshots
2024-05-06 19:36:27 +02:00
76a5702044 Get smart-contract bytecode from websocket (#1851)
* Get smart-contract bytecode from websocket

Fixes #1769

* fix test

* i am stupid 😓

* Update values.yaml.gotmpl

---------

Co-authored-by: Yan Vaskov <[email protected]>
2024-05-06 19:13:10 +02:00
tom goriunovandGitHub e4c82dcd71 Contract interaction improvements (#1875)
* add contract method id tag

* add form submit type

* refactor types for SmartConstract and make new component for Contract ABI methods

* move contract method form inside ABI folder

* handle form submit and display result

* clean-up

* change copied text

* handle case when blockchain interaction is not configured

* tests and screenshots update

* fix bug wit WEI checkbox
2024-05-06 19:12:34 +02:00
tom goriunovandGitHub f2e7242c14 fix flaky tests (#1871)
* try to fix flaky tests

* wagmi test config

* update zk evm test
2024-04-30 14:57:48 +02:00
tom goriunovandGitHub 07318c41cd Update API Endpoint for fetching has_methods_* and `has_custom_meth… (#1842)
* Update API Endpoint for fetching `has_methods_*` and `has_custom_methods_*` fields

Fixes #1821

* don't load address txs when navigating to contract tab

* fix test
2024-04-23 15:43:04 +02:00
tom goriunovandGitHub 295d02dc24 zkEVM deposits and withdrawals (#1833)
* deposits page

* withdrawals page

* tests

* rename optimism routes

* [skip ci] fix presets
2024-04-23 15:42:32 +02:00
tom goriunovandGitHub 43357004b5 Playwright tests refactoring, pt.2 (#1787)
* create storageState fixture

* remove auth fixture

* renaming

* migrate bridge tokens and shibarium rollup tests

* migrate to common app config

* update screenshots

* re-implement fixtures for mocking envs, features and auth state

* update screenshot
2024-04-17 20:20:02 +02:00
tom goriunovandGitHub 9babbc4b2f Enhance OG tags with API data (#1806)
* simple fetch data for token instance page

* generate enhanced metadata

* group query params in page props

* make base gSSP function generic

* add metric for search engine bots

* measure api request duration

* get API data for token, address and dapp pages

* improve typings for apiData prop

* add ENV variable

* tweak logs for /media-type requests

* [skip ci] add prefix to default metrics
2024-04-16 10:27:47 +02:00
Max AlekseenkoandGitHub 669b41dee6 Merge pull request #1785 from blockscout/marketplace-banner
Marketplace banner
2024-04-15 19:25:24 +02:00
Max Alekseenko 89bdba41ad add tests 2024-04-10 16:35:36 +02:00
tom goriunovandGitHub 8a5738730f Playwright tests refactoring, pt.1 (#1744)
* abort all requests for external resources and single mock for text ad

* render and mockApiResponse fixtures

* move fixtures into separate files

* rewrite Blocks test

* refactor mockApiResponse signature

* test with auth

* rewrite test with other API domains

* fix test

* separate script for installing deps in pw docker
2024-04-01 14:48:30 +02:00
isstuev ccb193fb70 Add support of ERC-404 type 2024-03-28 15:14:19 +04:00
tom goriunovandGitHub 5e14c4a48f zkSync batches (#1743)
* dev preset

* batches page

* batch details view

* batch txs

* adjustments in block view

* adjustments in tx view

* adjustments on home page

* fixes

* tests

* add pagination to batch txs

* ENV values for demo

* fix layout on batch details tab

* add more fields to batch details

* update screenshots

* revert demo ENVs
2024-03-28 07:44:39 +01:00
isstuev 399d43832d test fixes 2024-03-26 18:57:01 +04:00
tom goriunovandGitHub 7dd2cafada update web3modal to v4 (#1731)
* update hooks and methods

* fix typescript

* options fix

* fix pw test build

* try to fix tests

* more pw test fixes

* update screenshots and fix address verification test
2024-03-25 08:41:20 +01:00
isstuev de092b15b4 enable email for wallet connect 2024-03-19 18:30:07 +04:00
Max Alekseenko 80736369ea add test for marketplace page 2024-02-28 18:04:09 +01:00