37 Commits
Author SHA1 Message Date
tom goriunovandGitHub 176cdb5aba Show conflicting proxy implementations warning (#3179)
* Show conflicting proxy implementations warning

Resolves #2884

* fix: add conflicting_implementations field to contract mocks

* fix tests

* proxy info tweaks

* fix ts
2026-01-05 19:14:56 +01:00
tom goriunovandGitHub f04c953583 Support geas smart contract language 🪿 (#2848)
* Support for `geas` smart contract language 🪿

Fixes #2818

* support fallback method with inputs and outputs

* fix data that is passed to fallback method

* add "pragma" and "define" to builtins

* add "inputs" and "outputs" to the fallback method for all contracts ABI
2025-08-15 13:22:21 +02:00
tom goriunovandGitHub 6b7b1301a3 Display and handle status field in smart contract view (#2807)
* Display and handle `status` field in smart contract view

Fixes #2658

* change text of the alerts
2025-07-01 15:29:38 +02:00
tom goriunovandGitHub 753545a2fb Remove proxy_type field from SmartContract model (#2671)
* remove `proxy_type` field from SmartContract model

* fix ts
2025-04-15 15:23:44 +02:00
tom goriunovandGitHub 7187fc80e6 Support verification of Stylus contracts (#2450)
* add Arbitrum Sepolia dev preset

* base form layout

* add validation for repo url and commit hash

* improve global error text

* show stylus contract info

* add test for contract verification form

* hide "open in IDE" for stylus contracts

* [skip ci] adjust validation rules for GitHub URL

* change contract info items order

* fix error text styles
2024-12-11 13:17:23 +01:00
tom goriunovandGitHub 018d9c1f25 Constructor array parameters are displayed as concatenated strings instead of arrays (#2407)
Fixes #2394
2024-11-25 09:49:23 +01:00
tom goriunovandGitHub 6ba52e09b2 Display proxy pattern info on contract page (#2230)
* Display proxy pattern info in UI

Fixes #2209

* update texts

* [skip ci] adjust alert condition
2024-09-12 12:10:23 +02:00
tom goriunovandGitHub 043cf4aefc SolidityScan API response schema validation (#2190)
* add schema validation to solidity scan report resource

* report invalid API schema event to prometheus
2024-08-26 11:28:53 +02:00
tom goriunovandGitHub 91b5be58d5 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 e335d2c992 Show error if contract method has invalid data structure (#2087)
* show error if contract method has invalid data structure

* convert address to checksum when reading from contract method
2024-07-18 09:36:49 +02:00
tom goriunovandGitHub 434aae92bb 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 b12956685e Blueprint contracts support (#2009)
Fixes #1907
2024-06-13 13:11:26 +02:00
isstuev a92f705f5f add certified conract label 2024-05-26 11:48:52 +02:00
tom goriunovandGitHub 22f8016a8f 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
tom goriunovandGitHub b9985adbb6 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 70c85f48d3 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 09f787bba4 Contract: License (#1668)
* display license on contract page and in the list

* add new field to the form

* review fixes
2024-03-05 11:13:52 +04:00
tom goriunovandGitHub 30efe0e58e Display arrays of structs on Read/Write contract tabs (#1556)
* prototype

* change host for preview

* improve labels for nested arrays

* add field path

* bind fields to react form

* transform form fields into method args

* add styles for non-array args

* styles for tuple array

* style nested array inputs

* clear and multiply buttons for inputs

* show errors in inputs

* pass disabled state to inputs

* change direction of accordioin icon

* remove old code

* add asterix to required fields

* improvements and comments

* change styles

* highlight sections with errors

* refactoring field method name

* fix lable color

* fix ts

* preliminary tests

* better complex field labels

* improve tests

* remove outputs for write methods

* rollback review value
2024-02-26 19:29:08 +04:00
isstuev 2264f7d027 better mock 2024-02-19 12:45:19 +01:00
isstuev 1a607dbb64 tests 2024-02-19 12:45:19 +01:00
tom 6d3d45fe7f Merge branch 'main' of github.com:blockscout/frontend into tom2drum/issue-1035 2024-01-08 19:28:14 +04:00
tom 14d02d8ec1 Tuple item names are not displayed in the new UI
Fixes #1476
2024-01-08 17:50:31 +04:00
tom c931a8b07c fix tests 2023-12-19 08:58:35 +04:00
isstuev 4adf949e39 change border color, add tests 2023-12-01 17:24:04 +01:00
isstuev 18351a48db soliditycheck report 2023-11-30 23:48:40 +01:00
tom goriunovandGitHub 940ee709fc Wrong contract read bytes32[] (#1216)
Fixes #1176
2023-09-29 10:45:35 -03:00
tom goriunovandGitHub 9b7d7ab23b contract ABI: improvements and bugfixes (#1011)
* add link to contract method

* scroll to and expand method from url

* expand method if it is the only one

* fix "to WEI" checkbox

* display verification button for precompiled contracts

* add decoded revert reason to contract read result

* update screenshots
2023-07-20 15:40:38 -04:00
tom 5522d4db1a fix tests 2023-06-21 08:23:46 -04:00
tom 942b272463 add new property to mock 2023-06-16 10:39:23 -04:00
tom 90fc276157 eth bytecode db verification notice 2023-06-06 12:30:00 -04:00
tom 04f9abc5ba fix ts 2023-04-07 17:03:20 -03:00
tom 5816722b16 contract mobile layout fixes 2023-02-07 18:35:38 -05:00
tom ba545bc8a0 add custom abi alert and minor fixes 2023-01-19 13:22:15 -06:00
tom 174c9592d8 minimal proxy address 2023-01-16 13:59:13 -06:00
tom 927a0af855 skip all ContractCode tests 2023-01-16 12:42:08 -06:00
tom c1e6cb7317 comment out source code in mocks 2023-01-16 12:25:06 -06:00
tom 6c33c10f08 tests 2023-01-13 17:44:22 -06:00