matter-labs / block-explorer

zkSync Era Block Explorer
Apache License 2.0
125 stars 110 forks source link

feat: add search route #84

Closed vasyl-ivanchuk closed 1 year ago

vasyl-ivanchuk commented 1 year ago

What ❔

App search route which redirects the request to tx, batch or address route depending on the param. Examples:

/search?q=123 -> /batch/123

/search?q=0x7e341fa7fa5368ece4814825fd181697404b5d243172db071bf5562c02976ad5 -> /tx/0x7e341fa7fa5368ece4814825fd181697404b5d243172db071bf5562c02976ad5

/search?q=0x043927b4e501835556057472A5636e99fC247e9A -> /address/0x043927b4e501835556057472A5636e99fC247e9A

Why ❔

Unified search URL is requested by developers who work on integrations with zkSync.

Checklist

github-actions[bot] commented 1 year ago

API E2E Test Results

206 tests   206 :heavy_check_mark:  29s :stopwatch:   14 suites      0 :zzz:     1 files        0 :x:

Results for commit 65292eca.

github-actions[bot] commented 1 year ago

Visit the preview URL for this PR (updated for commit 65292ec):

(expires Wed, 15 Nov 2023 17:29:59 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: e508f9012944951194447cb8885950b451a24403

github-actions[bot] commented 1 year ago

Unit Test Results

       3 files     245 suites   3m 41s :stopwatch: 1 918 tests 1 917 :heavy_check_mark: 1 :zzz: 0 :x: 1 944 runs  1 943 :heavy_check_mark: 1 :zzz: 0 :x:

Results for commit 65292eca.

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 2.27.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: