30 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 7c1379a026 App config: support multiple RPC URLs (#2498)
Fixes #2479
2025-01-14 11:55:15 +01:00
tom 5c7f7ce1d9 [skip ci] reown: don't sync connected chain 2024-12-23 15:37:28 +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 5c286d6517 migrate to eslint 9 and its flat config 2024-11-13 12:54:12 +01:00
tom 661d018733 handle reconnecting state of web3wallet 2024-11-08 17:26:58 +01:00
94e289c068 Account v2 (#2262)
* simple profile button and auth modal layout

* connect email and code screens to API

* add screens to modal for wallet authentication

* migrate to pin input

* user profile menu

* refactor otp field

* fix passing set-cookie from api response

* add wallet info into profile menu

* add mobile menu

* show connected wallet address in button

* my profile page re-design

* custom behaviour of connect button on dapp page

* style pin input

* add logout

* handle case when account is disabled

* handle case when wc is disabled

* remove old components

* refactoring

* workflow to link wallet or email to account

* link wallet from profile

* show better OTP code errors

* add email alert on watchlist and verified addresses pages

* deprecate env and remove old code

* remove code for unverified email page

* add auth guard to address action items

* move useRedirectForInvalidAuthToken hook

* add mixpanel events

* refetch csrf token after login and fix connect wallet from contract page

* Add NEXT_PUBLIC_RE_CAPTCHA_V3_APP_SITE_KEY env

* migrate to reCAPTCHA v3

* resend code and change email from profile page

* better wallet sign-in message error

* fix demo envs

* update some screenshots

* profile button design fixes

* fix behaviour "connect wallet" button on contract page

* fix linking email and wallet to existing account

* bug fixes

* restore the login page

* update screenshots

* tests for auth modal and user profile

* add name field to profile page and write some tests

* [skip ci] clean up and more tests

* update texts

* change text once more

* fix verified email checkmark behaviour

* pass api error to the toast while signing in with wallet

* [skip ci] disable email field on profile page

* bug fixes

* update screenshot

* Blockscout account V2

Fixes #2029

* fix texts and button paddings

* Form fields refactoring (#2320)

* text and address fields for watchlist form

* checkbox field component

* refactor private tags form

* refactor api keys and custom abi

* refactor verifiy address and token info forms (pt. 1)

* refactor token info forms (pt. 2)

* refactor token info forms (pt. 3)

* refactor public tags form

* refactor contract verification form

* refactor contract audit form

* refactor auth, profile and csv export forms

* renaming and moving

* more refactoring and test fixes

---------

Co-authored-by: aagaev <[email protected]>
2024-10-30 12:56:57 +01:00
tom goriunovandGitHub 885ea69eac Unrecognized chain ID error when adding network via mobile MetaMask (#2312)
Fixes #2267
2024-10-22 17:55:26 +02:00
tom goriunovandGitHub 3a7ef09724 Bump up packages versions (#2229)
* Bump up packages vertions

* fix wagmi config, wc csp policy and id type in account resources
2024-09-11 19:24:16 +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
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
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 77d633062d [skip ci] fix error when creating wagmi config 2024-03-29 17:54:31 +01: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
6a79c24ab7 hotfix: fix error in degraded views when no RPC URL provided (#1583)
* typo fix

* fix block views

* fix tx views

---------

Co-authored-by: isstuev <[email protected]>
2024-02-08 16:19:43 +04:00
tom goriunovandGitHub 1e2d2f5022 Graceful service degradation: tx details tab (#1525)
* display main data

* display rest of tx fields

* placeholder data

* always show tabs

* manage error and retries on details tab

* don't retry if degraded view is active

* fix tests

* fix tx receipt

* change styles and wording for warning

* tweaks

* gray alert style change and update screenshots

* add retries to RPC call

* fixes after merge
2024-01-30 10:39:23 +04:00
tom 6a176e33c5 migration: next part 2023-12-20 14:09:33 +04:00
2c67486807 OpenTelemetry and minor perf fixes (#1343)
* OT init

* add bundle analyzer and change external scripts load strategy

* exporters for prod

* update discord icon and lazy load metamask package

* Fixing opentelemetry url

* add logs and url schema

* Testing NODE_ENV and opentelemetry

* Using jaeger as opentelemetry trace collector

* move envs to build time

* Fixing opentelemetry URL

* fix trace exporter for span processor

* ENV configuration

* filter out incoming requests

* describe feature in docs

* clean up

* Changing otlp endpoint

* fix tests

---------

Co-authored-by: Nick Zenchik <[email protected]>
2023-11-14 12:27:56 -03:00
tom goriunovandGitHub 4f881368eb bugfix: MM is not injected in FF (#1167)
* bugfix: MM is not injected in FF

* hide MM button if user has pseudo MM wallet

* fix pw tests
2023-09-19 11:17:51 -03:00
jasonzysun 68a86c55ea fix error in args of wallet_addEthereumChain request 2023-09-05 17:20:02 +08:00
tom goriunovandGitHub 7fbc45735b TokenPocket wallet integration (#1088)
* base implementation

* switch network before adding token

* make envs-validator happy

* add deployment values

* fix env type

* update icon
2023-08-22 11:29:26 -04:00
tom 11e312cc3d refactor features config 2023-08-11 15:22:42 -04:00
tom goriunovandGitHub f644f2a96e app feature list (#1079)
* metadata helpers and values for txs pages

* update titles to the rest of the pages

* refactor getServerSideProps

* dynamically update metadata for token and dapp page

* test

* 404 error page

* make new config

* make use of new config, delete old one

* feature reporter: dev implementation

* feature reporter: docker integration

* resctructure ENVS.md

* sentry feature

* refinements

* add spaces between sections

* tweaks

* switch to camelCase

* clean up

* remove NEXT_PUBLIC_NETWORK_TOKEN_ADDRESS

* v
2023-08-09 15:39:36 -04:00
tom goriunovandGitHub eabcf72790 bugfix: add to metamask button is not visible (#1006)
Add to metamask button is not visible

Fixes #996
2023-07-13 12:15:48 -04:00
tom 322bd382de update wagmi and web3modal versions 2023-05-30 13:37:27 -03:00
isstuev d63645319c footer 2023-05-29 17:44:23 -03:00
tom b4042c451d fix ts 2023-04-25 17:32:56 -03:00
tom 087b4ce9dc add network to wallet 2023-04-25 17:04:44 -03:00
tom bf4fae1385 add support for coinbase provider 2023-04-19 15:40:25 -03:00
tom 5ac05b54c2 add env value 2023-04-19 12:56:03 -03:00