14 Commits
Author SHA1 Message Date
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 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 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 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
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
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 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 6c33c10f08 tests 2023-01-13 17:44:22 -06:00