Commit Graph

574 Commits

Author SHA1 Message Date
Willian Mitsuda b0c31441c4 Simplify logic 2022-01-31 16:35:34 -03:00
Willian Mitsuda 0f35d205e4 Fix extra redirect 2022-01-31 16:28:10 -03:00
Willian Mitsuda 5abf171be9 Fix invalid nonce handling 2022-01-31 16:26:27 -03:00
Willian Mitsuda 17194c089a Add 404 page 2022-01-31 15:53:25 -03:00
Willian Mitsuda e6d60f1fcd Change address tx by nonce url to addressOrName?nonce=? format 2022-01-31 15:37:29 -03:00
Willian Mitsuda 20fc443009 Error handling UI improvements 2022-01-29 20:44:26 -03:00
Willian Mitsuda d70c22b5a0 Extract common component for address or ens name not found 2022-01-29 20:00:01 -03:00
Willian Mitsuda aeda92e41c Add ENS support to search by nonce url 2022-01-29 19:54:21 -03:00
Willian Mitsuda 17b6c03a33 Basic nonce locator URL 2022-01-29 19:40:26 -03:00
Willian Mitsuda cb6d1f3bcd Extract tx page content component 2022-01-29 19:04:52 -03:00
Willian Mitsuda f138444eee Fix signalling tx not found on network error 2022-01-24 16:36:16 -03:00
Willian Mitsuda e62068c65a Fix ens name without nonce search 2022-01-24 16:23:16 -03:00
Willian Mitsuda af15aaba0c Rename, since the /:addressorName now may not route to just address search results 2022-01-24 16:22:32 -03:00
Willian Mitsuda 80ef1cf820 Add initial support for address:nonce search 2022-01-22 15:02:00 -03:00
Willian Mitsuda fe673bd0f8 Small fixes 2022-01-21 15:59:27 -03:00
Willian Mitsuda 7d87345e98 Prevent passing negative nonce because of prefetch 2022-01-21 15:59:27 -03:00
Willian Mitsuda 0c6137656f Always prefetch 2022-01-21 15:59:27 -03:00
Willian Mitsuda f1db3f2348 Add prefetch to nonce +-2 2022-01-21 15:59:27 -03:00
Willian Mitsuda 0d2a1a593d Add next/last nonce navigation support 2022-01-21 15:59:27 -03:00
Willian Mitsuda e012165696 Improve readability of nonce 2022-01-21 15:59:27 -03:00
Willian Mitsuda 47cbe36c8f First working iteration of sender/nonce navigation 2022-01-21 15:59:27 -03:00
Willian Mitsuda a934282ab0 Remove fourBytesMap usage; replace everything by swr 2021-12-18 21:13:35 -03:00
Willian Mitsuda d67cd52ceb Move check to outside useSWR 2021-12-18 07:31:03 -03:00
Willian Mitsuda 61383a36d9 Change to immutable SWR 2021-12-18 07:09:10 -03:00
Willian Mitsuda 7df1babd27 Remove AddressCollectors and batchResolver 2021-12-16 23:22:56 -03:00
Willian Mitsuda ff0fd63ab9 Replace batch calls of address resolution caches and deep props down with in-place useSWR calls 2021-12-16 23:17:13 -03:00
Willian Mitsuda 28a216ff5f Eliminate redundant function 2021-12-16 19:22:13 -03:00
Willian Mitsuda e9f32e3530 Extract method formatter 2021-12-16 19:12:55 -03:00
Willian Mitsuda 478dd84710 Eliminate simple transfer singleton entry 2021-12-16 19:08:04 -03:00
Willian Mitsuda d5ea295eec Rework use4Bytes hook to use swr; fix handling of 0x00 data 2021-12-16 18:35:54 -03:00
Willian Mitsuda da50c7b4ac Add custom error decoding 2021-12-13 21:03:13 -03:00
Willian Mitsuda f22199d7d5 Add basic structure for custom errors 2021-12-13 15:41:37 -03:00
Willian Mitsuda d5fa5dda36 Small refactorings; no semantic changes 2021-12-13 15:11:34 -03:00
Willian Mitsuda 0754c4f4bf Add failed tx error msg support; depends on ots_getTransactionError custom API 2021-12-12 23:32:30 -03:00
Willian Mitsuda 0439be7ac9 Fix display Sourcify verification status for created contracts on block tx results 2021-12-04 17:22:17 -03:00
Willian Mitsuda 9fb6e1877d Fix address resolution for created contracts on results page 2021-12-04 16:59:29 -03:00
Willian Mitsuda 658e530ed1 Fix tabs when search by ens name; fix contract creation on block txs results 2021-12-04 16:54:27 -03:00
Willian Mitsuda 7a9dd3c519 Move hook 2021-12-04 16:33:07 -03:00
Willian Mitsuda 6f6dd1877a Remove dead code 2021-12-04 16:29:40 -03:00
Willian Mitsuda 3a6f050061 Dont display the contract tab if we know the address is an EOA 2021-12-04 16:28:40 -03:00
Willian Mitsuda 14186ad151 Add uniswap V3 resolver 2021-12-03 16:14:09 -03:00
Willian Mitsuda e6ec78daee Add all Uniswap V3 known deployments from https://github.com/Uniswap/v3-periphery/blob/main/deploys.md 2021-12-03 15:46:50 -03:00
Willian Mitsuda 6a15285a48 Add uniswap V1 support 2021-12-03 10:04:42 -03:00
Willian Mitsuda 0233879011 Remove console.log 2021-12-03 10:04:15 -03:00
Willian Mitsuda c58d9afb38 First working iteration of uniswap V2 LP address resolver 2021-12-03 08:37:09 -03:00
Willian Mitsuda 751ef0c9af Extract higher level hook 2021-12-02 16:19:03 -03:00
Willian Mitsuda c40e653bef Small refactorings 2021-12-02 15:42:59 -03:00
Willian Mitsuda 2e04c726d7 Use new custom API to server-side check if address has code/is contract 2021-12-02 15:34:06 -03:00
Willian Mitsuda c3dfcfeee3 Add still unoptimized check for addresses with code 2021-12-02 15:21:58 -03:00
Willian Mitsuda 10debf1395 Add eth2 deposit contract 2021-12-02 15:21:23 -03:00
Willian Mitsuda 5216198b06 Add selection highlighting support to decoded param table values 2021-11-29 15:32:07 -03:00
Willian Mitsuda e37a5b6c02 Add ENS mainnet contracts 2021-11-29 15:03:09 -03:00
Willian Mitsuda 832f5f435f Reduce the amount of network calls by probing first only name() and on success probe other erc20 methods 2021-11-29 14:45:14 -03:00
Willian Mitsuda 53630f43a4 Silence catch error on purpose 2021-11-29 14:28:35 -03:00
Willian Mitsuda fcc05de66d Add old tornado proxy address 2021-11-28 13:58:53 -03:00
Willian Mitsuda 9d56f981b3 Add known binance addresses 2021-11-28 13:06:20 -03:00
Willian Mitsuda 8092f7699d Add tornado.cash pool addresses 2021-11-26 09:13:16 -03:00
Willian Mitsuda 44eec1d2e7 Undo hash coloring 2021-11-26 05:22:08 -03:00
Willian Mitsuda 380ef96225 Change default token icon 2021-11-26 05:13:23 -03:00
Willian Mitsuda 83ce3ab734 Fix contract tab 2021-11-26 03:38:24 -03:00
Willian Mitsuda 3bfe0d0055 Extract and generalize ETH address fixing logic 2021-11-25 16:20:44 -03:00
Willian Mitsuda d9592fe196 Move file 2021-11-25 15:50:59 -03:00
Willian Mitsuda 7946188633 Extract Sourcify logo component 2021-11-25 15:48:17 -03:00
Willian Mitsuda 379ffda83e Extract single Sourcify metadata helper function 2021-11-25 15:41:40 -03:00
Willian Mitsuda 843781c8ba Push down address search-specific computations 2021-11-25 15:30:11 -03:00
Willian Mitsuda 97611ca0a1 Extract address transaction results component 2021-11-25 07:03:29 -03:00
Willian Mitsuda 0b43df6b75 Extract common search logic 2021-11-25 06:44:25 -03:00
Willian Mitsuda 33939054f2 Migrate to react-router v6 2021-11-25 06:28:45 -03:00
Willian Mitsuda 18b834c852 Upgrade react-chartjs-2 to v4; make code tree-shakeable 2021-11-23 20:53:49 -03:00
Willian Mitsuda c2629b5830 Fix 4bytes trace map not loading on prod build 2021-11-22 15:57:28 -03:00
Willian Mitsuda 3c20cf6810 Increment required API level (because of ots_traceTransaction) 2021-11-22 14:29:31 -03:00
Willian Mitsuda ed79a7a72f Normalize function names to lower capital 2021-11-22 14:25:18 -03:00
Willian Mitsuda 637ff5c9d8 Fix selfdestruct display 2021-11-22 14:16:33 -03:00
Willian Mitsuda e640d11a16 Fix ERC resolver for tokens with empty name/symbol 2021-11-21 09:04:08 -03:00
Willian Mitsuda 087b531905 Add selfdestruct support 2021-11-21 08:52:37 -03:00
Willian Mitsuda a985830c74 Simplified display of create/create2 traces 2021-11-19 17:26:57 -03:00
Willian Mitsuda 8bfe34850d Dont try to parse method selector for create/create2 traces 2021-11-19 15:39:53 -03:00
Willian Mitsuda 26600afdb6 Merge branch 'develop' into feature/trace-tx 2021-11-19 14:58:41 -03:00
Willian Mitsuda 56a9efb81b Fix resolving names not propagating inside param tables 2021-11-19 14:57:21 -03:00
Willian Mitsuda f0c78b6a12 Link Sourcify decoration directly to contracts verification info page 2021-11-19 14:52:00 -03:00
Willian Mitsuda 2a72602f12 Merge branch 'develop' into feature/trace-tx 2021-11-18 16:15:25 -03:00
Willian Mitsuda 2e586789a4 Replace by TransactionAddress component 2021-11-18 16:01:11 -03:00
Willian Mitsuda 454f785878 Remove unnecessary code 2021-11-18 15:51:08 -03:00
Willian Mitsuda c9f7f46ebc Add generic resolvers support to internal ops 2021-11-18 15:46:09 -03:00
Willian Mitsuda 5b203bc8d4 Remove unnecessary nested spans 2021-11-11 16:14:04 -03:00
Willian Mitsuda 36b5437643 Fix missing Sourcify decoration on token transfers 2021-11-11 15:51:03 -03:00
Willian Mitsuda 8e29326ff5 Remove unused attribute 2021-11-11 15:37:40 -03:00
Willian Mitsuda 56c5c420fb Merge branch 'develop' into feature/trace-tx 2021-11-11 05:27:36 -03:00
Willian Mitsuda 0caf58ea29 Add Sourcify decoration support to tx logs page 2021-11-10 16:48:24 -03:00
Willian Mitsuda 1794fff7f3 Add Sourcify decoration to addresses in tx details page 2021-11-10 16:24:34 -03:00
Willian Mitsuda 7102a746b9 Add Sourcify decorations to BlockTransactions page 2021-11-10 05:58:28 -03:00
Willian Mitsuda dca72a13b4 Add Sourcify decoration support to AddressTransactions page 2021-11-10 05:45:46 -03:00
Willian Mitsuda fe8be2ee21 Retrofit useMultipleMetadata into AddressTransactions page 2021-11-10 05:00:27 -03:00
Willian Mitsuda 8d259dacc8 Create a new type for checksummed addresses; small renames 2021-11-10 04:46:43 -03:00
Willian Mitsuda cc652eea5b Fix width 2021-11-08 15:20:13 -03:00
Willian Mitsuda 445cd679d8 Tweak styling of disabled tabs 2021-11-08 14:57:51 -03:00
Willian Mitsuda 05aee02a43 Disable utf8 display when impossible to decode 2021-11-08 14:55:41 -03:00
Willian Mitsuda d905afd75d Allow raw display of non-decodable inputs 2021-11-08 14:53:23 -03:00
Willian Mitsuda b9a9495c61 Add loading indicator 2021-11-08 09:07:52 -03:00
Willian Mitsuda d9155bff11 Use complete input decoder 2021-11-08 08:28:28 -03:00
Willian Mitsuda a03b7d21f6 Remove unused parameter 2021-11-08 08:20:16 -03:00
Willian Mitsuda eb22a227f1 Merge branch 'develop' into feature/trace-tx 2021-11-08 08:14:46 -03:00
Willian Mitsuda c0f934b190 Remove unnecessary attributes; simplify code 2021-11-08 08:02:05 -03:00
Willian Mitsuda 25f821548e Extract InputDecoder component 2021-11-08 07:49:30 -03:00
Willian Mitsuda f1fe98965b Tweak spacing 2021-11-07 21:07:20 -03:00
Willian Mitsuda 17cb352a1f Remove unnecessary nested divs 2021-11-07 17:54:28 -03:00
Willian Mitsuda fc1f0fe196 Use higher level component 2021-11-07 17:46:42 -03:00
Willian Mitsuda bf7117c1eb Add hover coloring 2021-11-07 17:42:10 -03:00
Willian Mitsuda 45bfe9718a Fix staticcall display ot traces 2021-11-07 17:35:17 -03:00
Willian Mitsuda 43f0ba0f8d Remove deprecated parameters 2021-11-07 09:21:02 -03:00
Willian Mitsuda 00ecea2c54 Merge branch 'develop' into feature/trace-tx 2021-11-07 09:15:02 -03:00
Willian Mitsuda 128c70b972 Replace component 2021-11-07 08:56:12 -03:00
Willian Mitsuda b723182ad3 Extract utility component TransactionAddress 2021-11-07 08:21:56 -03:00
Willian Mitsuda f90d9150b8 UI fixes 2021-11-06 16:14:30 -03:00
Willian Mitsuda 42b585bc40 Add input decoding to trace 2021-11-06 15:54:34 -03:00
Willian Mitsuda 8c46eaabb1 Generalize attribute type 2021-11-06 05:15:27 -03:00
Willian Mitsuda 9954c8ac02 Typedef component 2021-11-06 05:04:50 -03:00
Willian Mitsuda fd3173c3a6 Extract TraceInput component 2021-11-06 02:12:37 -03:00
Willian Mitsuda 45893bae8b Merge branch 'develop' into feature/trace-tx 2021-11-04 16:34:16 -03:00
Willian Mitsuda e2ba28b64e Add previous GR round payout addresses 2021-11-04 15:59:17 -03:00
Willian Mitsuda 8efe230bc8 Add missing resolvers support on decoded inputs and logs table 2021-11-03 09:14:52 -03:00
Willian Mitsuda 03e48f678c Add missing resolvers on token transferred section 2021-11-03 09:07:38 -03:00
Willian Mitsuda d99a9a24c1 Add GR11 matching payout address to the hardcoded list 2021-11-03 09:01:22 -03:00
Willian Mitsuda 3b60030817 Reduce redraws 2021-11-03 04:52:01 -03:00
Willian Mitsuda 596ed93e0e Hide children nodes seems to performe better on large traces 2021-11-02 21:54:25 -03:00
Willian Mitsuda fd5b884caa Add tree expand/collapse toggles 2021-11-02 21:24:19 -03:00
Willian Mitsuda 364461c00b Merge branch 'develop' into feature/trace-tx 2021-11-02 03:52:05 -03:00
Willian Mitsuda 2dd055755e Add gitcoin donation checkout address 2021-11-02 03:48:42 -03:00
Willian Mitsuda 7daffbca26 Add tornado cash proxy 2021-11-02 03:36:30 -03:00
Willian Mitsuda f2fbab36a6 Initial implementation of hardcoded address resolver with Uniswap V1/2/3 main contracts as a bootstrap test 2021-11-02 03:32:11 -03:00
Willian Mitsuda bc1d6f35b8 Add merged trace address resolution 2021-11-01 17:40:38 -03:00
Willian Mitsuda c4615e47bf Add address resolution support to trace tool 2021-11-01 17:09:47 -03:00
Willian Mitsuda d2ae5f07fd Merge branch 'develop' into feature/trace-tx 2021-11-01 16:56:24 -03:00
Willian Mitsuda 2dd4850eb0 Start using JsonRpcBatchProvider from ethers instead of the regular one to optimize for big txs 2021-11-01 16:17:48 -03:00
Willian Mitsuda 74a9b05c04 Typo fix 2021-11-01 15:37:10 -03:00
Willian Mitsuda 66be71f89d TODO: must finish reverse token address support on internal ETH transfers section 2021-11-01 04:46:19 -03:00
Willian Mitsuda 91a888c73b Migrate remaining token decoration support to the new resolver framework 2021-11-01 04:26:19 -03:00
Willian Mitsuda e22b564a71 Add in-page cache capabilities to main resolver 2021-11-01 04:15:12 -03:00
Willian Mitsuda 378d5a0c25 Reorder attributes 2021-11-01 01:32:35 -03:00
Willian Mitsuda ba86907ec2 Add TODO 2021-10-31 20:00:40 -03:00
Willian Mitsuda 9879290a38 Add symbol support 2021-10-31 19:59:14 -03:00
Willian Mitsuda 9b2dcf0aca Fix token address link 2021-10-31 19:55:09 -03:00
Willian Mitsuda 099c1465b0 Add ERC token address resolver 2021-10-31 19:51:11 -03:00
Willian Mitsuda 59ff4fd401 Extract renderer interface 2021-10-31 05:10:42 -03:00
Willian Mitsuda 887e35ce49 Generalize plain address/ens rendering logic 2021-10-31 03:16:03 -03:00
Willian Mitsuda 25cc823c91 Generalize resolver framework to allow tracking of the resolver source 2021-10-31 02:38:41 -03:00
Willian Mitsuda 7bfa479d6c Retrofit name resolvers into transaction/* pages 2021-10-30 22:44:33 -03:00
Willian Mitsuda 41be42d1ce Save 1 array construction 2021-10-30 22:14:37 -03:00
Willian Mitsuda 3211befaea Remove redundant React.memo 2021-10-30 22:14:16 -03:00
Willian Mitsuda 4c59cd188f Remove redundant React.memo 2021-10-30 22:05:26 -03:00