Skip to content

Commit c97b74d

Browse files
rrw-zilliqadependabot[bot]sealer3wmitsudalucac-zilliqa
committed
Update otterscan (#19)
* Bump @types/react from 18.2.33 to 18.2.34 (#1446) * Add meta tag to prevent phone number detection on iOS (#1448) * Use ABI of verified contracts to decode function selectors (#1443) * Use ABI of verified contracts to decode function selectors * Add address parameter to use4Bytes function doc * Apply Sourcify color to MethodName component * Disable tab/route for now; feature will be postponed to the next release (#1451) * Remove old gitcoin link * Bump erigon version * Bump version * Bump vite-imagetools from 6.2.1 to 6.2.4 (#1479) * Bump @testing-library/react from 14.0.0 to 14.1.2 (#1480) * Bump prettier from 3.0.3 to 3.1.0 (#1478) * Bump prettier-plugin-organize-imports from 3.2.3 to 3.2.4 (#1476) * Bump react-intersection-observer from 9.5.2 to 9.5.3 (#1475) * Bump @types/react from 18.2.34 to 18.2.37 (#1467) * Bump sb to 7.5.3 * Bump @types/react-highlight from 0.12.7 to 0.12.8 (#1462) * Bump @types/react-blockies from 1.4.3 to 1.4.4 (#1464) * Bump @types/react-dom from 18.2.14 to 18.2.15 (#1468) * Bump @types/react-syntax-highlighter from 15.5.9 to 15.5.10 (#1463) * Bump @types/jest from 29.5.7 to 29.5.8 (#1470) * Bump prettier-plugin-tailwindcss from 0.5.6 to 0.5.7 (#1469) * Using --link as an attempt to optimize build times * Add Cypress e2e tests and GA workflow (#1481) * Add Cypress e2e tests and GA workflow * Add Cypress project ID and enable test recording * Separate devnet and mainnet e2e tests * Remove extra brace set * Use job outputs to decide secret availability * Add run commands for mainnet and devnet E2E tests * Add names to check-secrets steps * Add workflow_dispatch trigger * Add Action testing for cypress-e2e-tests-2 * Use 127.0.0.1 instead of localhost * Remove extra branch from push trigger * Add testing docs * Bump @vitejs/plugin-react-swc from 3.4.1 to 3.5.0 (#1484) * Bump @types/react from 18.2.37 to 18.2.38 (#1491) * Bump typescript from 5.2.2 to 5.3.2 (#1489) * Bump @types/jest from 29.5.8 to 29.5.10 (#1493) * Bump @types/react-dom from 18.2.15 to 18.2.17 (#1494) * Bump vite-plugin-rewrite-all from 1.0.1 to 1.0.2 (#1485) * Bump react-router-dom from 6.18.0 to 6.20.0 (#1495) * Better use ci instead of install * Bump cypress from 13.5.0 to 13.6.0 (#1498) * Remove commify from raw decoded uints (#1486) * Enable e2e test runs on branches named feature/** * Bump vite from 4.5.0 to 5.0.2 (#1499) * Bump vite from 4.5.0 to 5.0.2 Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.5.0 to 5.0.2. - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v5.0.2/packages/vite) --- updated-dependencies: - dependency-name: vite dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Remove vite-plugin-rewrite-all dependency --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: sealer3 <[email protected]> * Use gha cache * Add --link to everything else * Improve e2e workflow execution (#1502) * Remove explicit node setup * First attempt to make devnet tests use the standard cypress github action * Make names shorter; cant read them on github UI * Attempt to fix quotes * Attempt #2 * Attempt #3 * Attempt #4: see cypress limitations cypress-io/github-action#482 * Remove manual node setup * Proper golang cache setup * Beautify script * Smoke tests (#1503) * Automate vitalik address navigation smoketest * Increase timeout for slow page load * Enable video * Trying to fix timeouts * Delete video for successful attempts * Add wait for page load * Bump sb to 7.6.1 * Bump vite from 5.0.2 to 5.0.4 (#1518) * Bump @types/react from 18.2.38 to 18.2.39 (#1512) * Bump vite-imagetools from 6.2.4 to 6.2.5 (#1506) * Bump node to v20.10.0 in order to avoid nodejs/node#50136 (#1528) * Bump @fortawesome/fontawesome-svg-core from 6.4.2 to 6.5.0 (#1517) * Bump @fortawesome/free-regular-svg-icons from 6.4.2 to 6.5.0 (#1516) * Bump @fortawesome/free-solid-svg-icons from 6.4.2 to 6.5.0 (#1520) * Bump @fortawesome/free-brands-svg-icons from 6.4.2 to 6.5.0 (#1522) * Prevent SectionHighlighter from truncating by default (#1504) * Remove truncate class from HighlighterBox * Prevent bytes length label from being selected * Enable static network discovery (#1529) * Bump react-helmet-async from 1.3.0 to 2.0.1 (#1492) * Show parameter names for Sourcify verified contracts in traces (#1473) * Use checksummed addresses in Token Balances tab (#1477) * Bump @types/react from 18.2.39 to 18.2.42 (#1567) * Bump postcss from 8.4.31 to 8.4.32 (#1563) * Bump sb to 7.6.3 (#1568) * Bump tspeg from 3.3.0 to 3.3.1 (#1535) * Bump react-router-dom from 6.20.0 to 6.20.1 (#1564) * Bump @adobe/css-tools from 4.3.1 to 4.3.2 (#1543) * Bump @fortawesome/free-brands-svg-icons from 6.5.0 to 6.5.1 (#1550) * Bump @fortawesome/free-solid-svg-icons from 6.5.0 to 6.5.1 (#1553) * Add icon and selector to contract error types (#1542) * Bump @fortawesome/free-regular-svg-icons from 6.5.0 to 6.5.1 (#1556) * Bump @fortawesome/fontawesome-svg-core from 6.5.0 to 6.5.1 (#1555) * Bump vite-imagetools from 6.2.5 to 6.2.7 (#1566) * Bump @testing-library/jest-dom from 6.1.4 to 6.1.5 (#1548) * Bump react-helmet-async from 2.0.1 to 2.0.3 (#1549) * Add Prettier workflow (#1559) * Add Prettier workflow * Run prettier on entire repo * Opt out of Storybook telemetry * Add building to the workflow * Use the Sourcify web server by default (#1544) * Don't replace the @ symbol in Sourcify sources (#1558) * Bump vite from 5.0.4 to 5.0.5 (#1569) * Use .nvmrc for determining node version (#1570) * Add e2e test for tx page navigation (#1561) * Bump vite from 5.0.5 to 5.0.6 (#1574) * Bump tailwindcss from 3.3.5 to 3.3.6 (#1573) * Bump actions/setup-go from 4 to 5 (#1578) * Bump prettier-plugin-tailwindcss from 0.5.7 to 0.5.9 (#1575) * Bump @types/react-syntax-highlighter from 15.5.10 to 15.5.11 (#1577) * Bump @types/jest from 29.5.10 to 29.5.11 (#1572) * Bump cypress from 13.6.0 to 13.6.1 (#1571) * Bump chart.js from 4.4.0 to 4.4.1 (#1576) * Add array entry interface and FunctionParamInput redesign (#1471) * Add array entry interface and FunctionParamInput redesign * Add extra vertical spacing for Remove buttons * Fix variable array entry spacing * Align all buttons * Use same margin for Add Element as for Query * Add arrays to ParamDeclaration * Add more spacing between items and ParamDeclarations * Add space between parameters of the same function * Align ParamDeclaration text with Remove button text * Add e2e test for Read Contract array inputs * Add mainnet Read Contract test * Shorten step name * Display uint256 values with unselectable commas (#1594) * Display uint256 values with unselectable commas * Add DisplayInteger story * Update decimalHint type * Remove shadow hint * Bump @types/react from 18.2.42 to 18.2.45 (#1601) * Bump typescript from 5.3.2 to 5.3.3 (#1587) * Bump sb to 7.6.4 (#1604) * Bump vite from 5.0.6 to 5.0.9 (#1602) * Fix duplicate github actions execution (#1605) * Remove feature/** branch to avoid duplicate jobs execution * Also remove it from e2e workflow * Bump ts-node from 10.9.1 to 10.9.2 (#1592) * Bump prettier from 3.1.0 to 3.1.1 (#1598) * Bump actions/upload-artifact from 3 to 4 (#1606) Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](actions/upload-artifact@v3...v4) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Temporarily disable arm64 docker builds to debug ga issue (#1615) * Revert "Temporarily disable arm64 docker builds to debug ga issue (#1615)" (#1618) This reverts commit 394419b. * Bump @types/react-dom from 18.2.17 to 18.2.18 (#1617) Bumps [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom) from 18.2.17 to 18.2.18. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom) --- updated-dependencies: - dependency-name: "@types/react-dom" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump vite from 5.0.9 to 5.0.10 (#1611) Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.0.9 to 5.0.10. - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v5.0.10/packages/vite) --- updated-dependencies: - dependency-name: vite dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Attempt to separate amd64/arm64 builds (#1619) * Bump react-router-dom from 6.20.1 to 6.21.0 (#1603) Bumps [react-router-dom](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom) from 6.20.1 to 6.21.0. - [Release notes](https://github.com/remix-run/react-router/releases) - [Changelog](https://github.com/remix-run/react-router/blob/main/packages/react-router-dom/CHANGELOG.md) - [Commits](https://github.com/remix-run/react-router/commits/[email protected]/packages/react-router-dom) --- updated-dependencies: - dependency-name: react-router-dom dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @fontsource/space-grotesk from 5.0.15 to 5.0.16 (#1589) Bumps [@fontsource/space-grotesk](https://github.com/fontsource/font-files/tree/HEAD/fonts/google/space-grotesk) from 5.0.15 to 5.0.16. - [Changelog](https://github.com/fontsource/font-files/blob/main/fonts/google/space-grotesk/CHANGELOG.md) - [Commits](https://github.com/fontsource/font-files/commits/HEAD/fonts/google/space-grotesk) --- updated-dependencies: - dependency-name: "@fontsource/space-grotesk" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @fontsource/fira-code from 5.0.15 to 5.0.16 (#1586) Bumps [@fontsource/fira-code](https://github.com/fontsource/font-files/tree/HEAD/fonts/google/fira-code) from 5.0.15 to 5.0.16. - [Changelog](https://github.com/fontsource/font-files/blob/main/fonts/google/fira-code/CHANGELOG.md) - [Commits](https://github.com/fontsource/font-files/commits/HEAD/fonts/google/fira-code) --- updated-dependencies: - dependency-name: "@fontsource/fira-code" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @fontsource/roboto-mono from 5.0.15 to 5.0.16 (#1588) Bumps [@fontsource/roboto-mono](https://github.com/fontsource/font-files/tree/HEAD/fonts/google/roboto-mono) from 5.0.15 to 5.0.16. - [Changelog](https://github.com/fontsource/font-files/blob/main/fonts/google/roboto-mono/CHANGELOG.md) - [Commits](https://github.com/fontsource/font-files/commits/HEAD/fonts/google/roboto-mono) --- updated-dependencies: - dependency-name: "@fontsource/roboto-mono" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump sb to 7.6.5 (#1620) * Add copy button to token addresses on Token Balances page (#1596) * Add copy button to token addresses on Token Balances page * Remove superfluous class name * Use TransactionAddressWithCopy instead * Bump tailwindcss from 3.3.6 to 3.4.0 (#1631) Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss) from 3.3.6 to 3.4.0. - [Release notes](https://github.com/tailwindlabs/tailwindcss/releases) - [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/master/CHANGELOG.md) - [Commits](tailwindlabs/tailwindcss@v3.3.6...v3.4.0) --- updated-dependencies: - dependency-name: tailwindcss dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump sb to 7.6.6 (#1633) * Bump react-helmet-async from 2.0.3 to 2.0.4 (#1627) Bumps [react-helmet-async](https://github.com/staylor/react-helmet-async) from 2.0.3 to 2.0.4. - [Release notes](https://github.com/staylor/react-helmet-async/releases) - [Commits](https://github.com/staylor/react-helmet-async/commits) --- updated-dependencies: - dependency-name: react-helmet-async dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Reactivate blocks rewarded support (#1636) * Revert "Disable tab/route for now; feature will be postponed to the next release (#1451)" This reverts commit ff4f1e0. * Rename method * Reactivate blocks rewarded support; added block fees column * Update README (#1637) * Revert "Attempt to separate amd64/arm64 builds (#1619)" (#1638) This reverts commit aac8d4d. * Bump version (#1640) * Fix typo: show as '0 contracts' * Use checksummed addresses in contract lists * Add toggle for non-view functions in Read Contract * Attempt to fix docker ga * Add setup qemu * Debug error on npm ci * Bump @types/react from 18.2.45 to 18.2.46 Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 18.2.45 to 18.2.46. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react) --- updated-dependencies: - dependency-name: "@types/react" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Bump cypress from 13.6.1 to 13.6.2 Bumps [cypress](https://github.com/cypress-io/cypress) from 13.6.1 to 13.6.2. - [Release notes](https://github.com/cypress-io/cypress/releases) - [Changelog](https://github.com/cypress-io/cypress/blob/develop/CHANGELOG.md) - [Commits](cypress-io/cypress@v13.6.1...v13.6.2) --- updated-dependencies: - dependency-name: cypress dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Bump sb to 7.6.7 * Bump @testing-library/user-event from 14.5.1 to 14.5.2 Bumps [@testing-library/user-event](https://github.com/testing-library/user-event) from 14.5.1 to 14.5.2. - [Release notes](https://github.com/testing-library/user-event/releases) - [Changelog](https://github.com/testing-library/user-event/blob/main/CHANGELOG.md) - [Commits](testing-library/user-event@v14.5.1...v14.5.2) --- updated-dependencies: - dependency-name: "@testing-library/user-event" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Bump web-vitals from 3.5.0 to 3.5.1 Bumps [web-vitals](https://github.com/GoogleChrome/web-vitals) from 3.5.0 to 3.5.1. - [Changelog](https://github.com/GoogleChrome/web-vitals/blob/main/CHANGELOG.md) - [Commits](GoogleChrome/web-vitals@v3.5.0...v3.5.1) --- updated-dependencies: - dependency-name: web-vitals dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Bump prettier-plugin-tailwindcss from 0.5.9 to 0.5.10 Bumps [prettier-plugin-tailwindcss](https://github.com/tailwindlabs/prettier-plugin-tailwindcss) from 0.5.9 to 0.5.10. - [Release notes](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/releases) - [Changelog](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/blob/main/CHANGELOG.md) - [Commits](tailwindlabs/prettier-plugin-tailwindcss@v0.5.9...v0.5.10) --- updated-dependencies: - dependency-name: prettier-plugin-tailwindcss dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Bump react-router-dom from 6.21.0 to 6.21.1 Bumps [react-router-dom](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom) from 6.21.0 to 6.21.1. - [Release notes](https://github.com/remix-run/react-router/releases) - [Changelog](https://github.com/remix-run/react-router/blob/main/packages/react-router-dom/CHANGELOG.md) - [Commits](https://github.com/remix-run/react-router/commits/[email protected]/packages/react-router-dom) --- updated-dependencies: - dependency-name: react-router-dom dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Break overflowing words in Read Contract error messages * Use 3 pending columns in Blocks Rewarded table * Bump vite-imagetools from 6.2.7 to 6.2.9 Bumps [vite-imagetools](https://github.com/JonasKruckenberg/imagetools) from 6.2.7 to 6.2.9. - [Release notes](https://github.com/JonasKruckenberg/imagetools/releases) - [Commits](https://github.com/JonasKruckenberg/imagetools/commits) --- updated-dependencies: - dependency-name: vite-imagetools dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Bump @testing-library/jest-dom from 6.1.5 to 6.2.0 Bumps [@testing-library/jest-dom](https://github.com/testing-library/jest-dom) from 6.1.5 to 6.2.0. - [Release notes](https://github.com/testing-library/jest-dom/releases) - [Changelog](https://github.com/testing-library/jest-dom/blob/main/CHANGELOG.md) - [Commits](testing-library/jest-dom@v6.1.5...v6.2.0) --- updated-dependencies: - dependency-name: "@testing-library/jest-dom" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Bump postcss from 8.4.32 to 8.4.33 Bumps [postcss](https://github.com/postcss/postcss) from 8.4.32 to 8.4.33. - [Release notes](https://github.com/postcss/postcss/releases) - [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md) - [Commits](postcss/postcss@8.4.32...8.4.33) --- updated-dependencies: - dependency-name: postcss dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Bump vite from 5.0.10 to 5.0.11 Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.0.10 to 5.0.11. - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v5.0.11/packages/vite) --- updated-dependencies: - dependency-name: vite dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Make creation tx hash responsive and truncated * Bump tailwindcss from 3.4.0 to 3.4.1 Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss) from 3.4.0 to 3.4.1. - [Release notes](https://github.com/tailwindlabs/tailwindcss/releases) - [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/v3.4.1/CHANGELOG.md) - [Commits](tailwindlabs/tailwindcss@v3.4.0...v3.4.1) --- updated-dependencies: - dependency-name: tailwindcss dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Bump prettier-plugin-tailwindcss from 0.5.10 to 0.5.11 Bumps [prettier-plugin-tailwindcss](https://github.com/tailwindlabs/prettier-plugin-tailwindcss) from 0.5.10 to 0.5.11. - [Release notes](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/releases) - [Changelog](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/blob/main/CHANGELOG.md) - [Commits](tailwindlabs/prettier-plugin-tailwindcss@v0.5.10...v0.5.11) --- updated-dependencies: - dependency-name: prettier-plugin-tailwindcss dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Prevent address tab page titles from being overwritten The AddressMainPage was overwriting the page title with the address page title. * Show user notices and dev docs in decoded functions * Add function signature and docs toggle to params table * Move dev and user docs to Transaction Action section * Add HelpButton component and apply to function docs * Simplify component return * Bump @headlessui/react from 1.7.17 to 1.7.18 Bumps [@headlessui/react](https://github.com/tailwindlabs/headlessui/tree/HEAD/packages/@headlessui-react) from 1.7.17 to 1.7.18. - [Release notes](https://github.com/tailwindlabs/headlessui/releases) - [Changelog](https://github.com/tailwindlabs/headlessui/blob/main/packages/@headlessui-react/CHANGELOG.md) - [Commits](https://github.com/tailwindlabs/headlessui/commits/@headlessui/[email protected]/packages/@headlessui-react) --- updated-dependencies: - dependency-name: "@headlessui/react" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Bump react-router-dom from 6.21.1 to 6.21.2 Bumps [react-router-dom](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom) from 6.21.1 to 6.21.2. - [Release notes](https://github.com/remix-run/react-router/releases) - [Changelog](https://github.com/remix-run/react-router/blob/main/packages/react-router-dom/CHANGELOG.md) - [Commits](https://github.com/remix-run/react-router/commits/[email protected]/packages/react-router-dom) --- updated-dependencies: - dependency-name: react-router-dom dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Bump prettier from 3.1.1 to 3.2.4 Bumps [prettier](https://github.com/prettier/prettier) from 3.1.1 to 3.2.4. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](prettier/prettier@3.1.1...3.2.4) --- updated-dependencies: - dependency-name: prettier dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Prettier 3.2 now interprets tsconfig.json as jsonc * Bump @types/react from 18.2.46 to 18.2.48 (#1693) Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 18.2.46 to 18.2.48. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react) --- updated-dependencies: - dependency-name: "@types/react" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump cypress from 13.6.2 to 13.6.3 (#1699) Bumps [cypress](https://github.com/cypress-io/cypress) from 13.6.2 to 13.6.3. - [Release notes](https://github.com/cypress-io/cypress/releases) - [Changelog](https://github.com/cypress-io/cypress/blob/develop/CHANGELOG.md) - [Commits](cypress-io/cypress@v13.6.2...v13.6.3) --- updated-dependencies: - dependency-name: cypress dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump storybook from 7.6.7 to 7.6.9 (#1694) * Bump storybook from 7.6.7 to 7.6.9 Bumps [storybook](https://github.com/storybookjs/storybook/tree/HEAD/code/lib/cli) from 7.6.7 to 7.6.9. - [Release notes](https://github.com/storybookjs/storybook/releases) - [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md) - [Commits](https://github.com/storybookjs/storybook/commits/v7.6.9/code/lib/cli) --- updated-dependencies: - dependency-name: storybook dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Bump other dependencies --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Willian Mitsuda <[email protected]> * Bump storybook from 7.6.9 to 7.6.10 (#1708) * Bump storybook from 7.6.9 to 7.6.10 Bumps [storybook](https://github.com/storybookjs/storybook/tree/HEAD/code/lib/cli) from 7.6.9 to 7.6.10. - [Release notes](https://github.com/storybookjs/storybook/releases) - [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md) - [Commits](https://github.com/storybookjs/storybook/commits/v7.6.10/code/lib/cli) --- updated-dependencies: - dependency-name: storybook dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Bump all sb components --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Willian Mitsuda <[email protected]> * Bump autoprefixer from 10.4.16 to 10.4.17 (#1709) Bumps [autoprefixer](https://github.com/postcss/autoprefixer) from 10.4.16 to 10.4.17. - [Release notes](https://github.com/postcss/autoprefixer/releases) - [Changelog](https://github.com/postcss/autoprefixer/blob/main/CHANGELOG.md) - [Commits](postcss/autoprefixer@10.4.16...10.4.17) --- updated-dependencies: - dependency-name: autoprefixer dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump vite from 5.0.11 to 5.0.12 (#1712) Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.0.11 to 5.0.12. - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/v5.0.12/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v5.0.12/packages/vite) --- updated-dependencies: - dependency-name: vite dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump react-router-dom from 6.21.2 to 6.21.3 (#1713) Bumps [react-router-dom](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom) from 6.21.2 to 6.21.3. - [Release notes](https://github.com/remix-run/react-router/releases) - [Changelog](https://github.com/remix-run/react-router/blob/main/packages/react-router-dom/CHANGELOG.md) - [Commits](https://github.com/remix-run/react-router/commits/[email protected]/packages/react-router-dom) --- updated-dependencies: - dependency-name: react-router-dom dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * New attempt to fix docker (#1714) * Try to split runners (#1715) * New attempt to fix docker * Split runners * Fix (#1716) * Docker fix 4 (#1717) * More fixes * Fix prettier * Show function signatures (#1681) * Move function signature above params table * Show function signature above input params table * Add blockquote around function docs and increase vertical spacing * Use keys in FunctionSignature param declarations * Bump ts-jest from 29.1.1 to 29.1.2 (#1719) Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 29.1.1 to 29.1.2. - [Release notes](https://github.com/kulshekhar/ts-jest/releases) - [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md) - [Commits](kulshekhar/ts-jest@v29.1.1...v29.1.2) --- updated-dependencies: - dependency-name: ts-jest dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @testing-library/jest-dom from 6.2.0 to 6.3.0 (#1721) Bumps [@testing-library/jest-dom](https://github.com/testing-library/jest-dom) from 6.2.0 to 6.3.0. - [Release notes](https://github.com/testing-library/jest-dom/releases) - [Changelog](https://github.com/testing-library/jest-dom/blob/main/CHANGELOG.md) - [Commits](testing-library/jest-dom@v6.2.0...v6.3.0) --- updated-dependencies: - dependency-name: "@testing-library/jest-dom" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Add withdrawals count to epoch page (#1724) * Add withdrawals count to epoch page * Handle pre-Capella block responses properly * Show withdrawals on slot page (#1725) * Show withdrawals on slot page * Move withdrawal details row into its own component * Use TransactionAddress to show selection highlighting * Add hex-to-zil and fix API calls (#1) * Add hex-to-zil button Fix copy button to display new address Made changes according to comments * Update image name in Docker publish action (#2) * Remove publish to GHCR (#3) * Show contract bytecode in Contract tab (#8) Co-authored-by: sealer3 <[email protected]> * Display Scilla contract source (#9) * Add ability to view DS Blocks (#13) * Changed Runtime Context to contain Zilliqa object * Reformatted code so that all Pending components are together * Added basic components for DS Blocks * Implemented polling for most recent DS Block * Added function to convert to Otterscan timestamp format * Added detailed DS Block page * Added ability to search for DS Blocks using search bar * Added DS Block List page * (fix) Make otterscan build again. * US-322: Can now decode scilla logs. (#16) * (feat) Scilla log decodes now work. * (fix) US-322: Fix package-lock.json * (fix) fix compile issues * (feat) Show raw receipts. * (feat) A bit more resilience to improperly formatted receipts. * (fix) Reverse priority of scilla and EVM log entry decodes so that we don't accidentally think any appropriately-formatted EVM log is a Scilla log (may need changing back) (feat) Now understands forwarded errors from EVM contracts that call Scilla (feat) Can now filter out empty blocks. * (fix) Remove debugging (fix) Suppress "no key" warning in decoded scilla params (fix) update package-lock.json (fix) ignore .vite directory (working dir) * (fix) Fix builds. * (fix) remove publish to github - we can't publish otterscan's images :-) * (fix) Fix use of invalid variable in AddressTransactionResults.tsx (fix) Update package-lock.json * (fix) Make otterscan compile again (fix) In-line address converter and copy icons * (fix) Better spacing for address display (fix) More API fixes * Update ethers. * (fix) the obligatory prettier run. --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: sealer3 <[email protected]> Co-authored-by: Willian Mitsuda <[email protected]> Co-authored-by: lucac-zilliqa <[email protected]> Co-authored-by: James Hinshelwood <[email protected]>
1 parent c76a2e7 commit c97b74d

File tree

130 files changed

+12724
-7972
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+12724
-7972
lines changed
+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build and Prettier
2+
on:
3+
pull_request:
4+
types: [opened, synchronize]
5+
push:
6+
branches:
7+
- develop
8+
- main
9+
workflow_dispatch:
10+
jobs:
11+
check-prettier:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
- name: Install node
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version-file: ".nvmrc"
20+
cache: "npm"
21+
- name: Install packages
22+
run: npm ci
23+
- name: Run prettier
24+
run: npx prettier -c .
25+
- name: Build Otterscan
26+
run: npm run build

.github/workflows/docker-publish.yaml

-78
This file was deleted.

.github/workflows/end-to-end.yaml

+112
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
name: End-to-End Tests
2+
on:
3+
pull_request:
4+
types: [opened, synchronize]
5+
push:
6+
branches:
7+
- develop
8+
- main
9+
workflow_dispatch:
10+
jobs:
11+
check-secrets:
12+
runs-on: ubuntu-latest
13+
outputs:
14+
e2e-erigon-url: ${{ steps.e2e-erigon-url.outputs.defined }}
15+
e2e-cypress-record-key: ${{ steps.e2e-cypress-record-key.outputs.defined }}
16+
steps:
17+
- name: Check if E2E_ERIGON_URL is available
18+
id: e2e-erigon-url
19+
env:
20+
E2E_ERIGON_URL: ${{ secrets.E2E_ERIGON_URL }}
21+
if: "${{ env.E2E_ERIGON_URL != '' }}"
22+
run: echo "defined=true" >> $GITHUB_OUTPUT
23+
- name: Check if E2E_CYPRESS_RECORD_KEY is available
24+
id: e2e-cypress-record-key
25+
env:
26+
E2E_CYPRESS_RECORD_KEY: ${{ secrets.E2E_CYPRESS_RECORD_KEY }}
27+
if: "${{ env.E2E_CYPRESS_RECORD_KEY != '' }}"
28+
run: echo "defined=true" >> $GITHUB_OUTPUT
29+
30+
e2e-test-mainnet:
31+
name: Run E2E tests on mainnet
32+
runs-on: ubuntu-latest
33+
if: ${{ needs.check-secrets.outputs.e2e-erigon-url == 'true' }}
34+
needs: [check-secrets]
35+
steps:
36+
- name: Checkout
37+
uses: actions/checkout@v4
38+
- name: Set up xvfb
39+
run: |
40+
sudo apt update
41+
sudo apt install -y libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libnss3 libxss1 libasound2 libxtst6 xauth xvfb
42+
43+
- name: Run Cypress tests on mainnet
44+
uses: cypress-io/github-action@v6
45+
with:
46+
start: npm start
47+
wait-on: "http://localhost:5173"
48+
spec: "cypress/e2e/mainnet/**/*.cy.ts,cypress/e2e/*.cy.ts"
49+
tag: ${{needs.check-secrets.outputs.e2e-cypress-record-key == 'true' && 'mainnet' || ''}}
50+
record: |
51+
${{needs.check-secrets.outputs.e2e-cypress-record-key == 'true' && 'true' || 'false'}}
52+
env:
53+
VITE_ERIGON_URL: ${{secrets.E2E_ERIGON_URL}}
54+
CYPRESS_RECORD_KEY: ${{secrets.E2E_CYPRESS_RECORD_KEY}}
55+
- name: Upload screenshots from failing tests
56+
uses: actions/upload-artifact@v4
57+
if: failure()
58+
with:
59+
name: Cypress Mainnet Screenshots
60+
path: cypress/screenshots
61+
62+
e2e-test-devnet:
63+
name: Run E2E tests on a devnet
64+
runs-on: ubuntu-latest
65+
needs: [check-secrets]
66+
steps:
67+
- name: Checkout
68+
uses: actions/checkout@v4
69+
- name: Set up xvfb
70+
run: |
71+
sudo apt update
72+
sudo apt install -y libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libnss3 libxss1 libasound2 libxtst6 xauth xvfb
73+
74+
- name: Download Erigon
75+
run: git clone --branch release/2.54 --single-branch https://github.com/ledgerwatch/erigon.git
76+
- name: Set up Go
77+
uses: actions/setup-go@v5
78+
with:
79+
go-version-file: "erigon/go.mod"
80+
cache-dependency-path: "erigon/go.sum"
81+
- name: Build Erigon
82+
run: |
83+
cd erigon
84+
make erigon
85+
- name: Load devnet config
86+
id: load-devnet-config
87+
run: |
88+
OTTERSCAN_CONFIG="$(cat cypress/support/devnet-config.json | sed 's/localhost/127.0.0.1/')"
89+
OTTERSCAN_CONFIG=$(echo $OTTERSCAN_CONFIG)
90+
echo "config=$OTTERSCAN_CONFIG" >> $GITHUB_OUTPUT
91+
- name: Run Cypress tests on devnet
92+
uses: cypress-io/github-action@v6
93+
with:
94+
start: |
95+
sh ./scripts/run-erigon-devnet-e2e-tests.sh
96+
npm run start
97+
wait-on: "http://127.0.0.1:8545, http://localhost:5173"
98+
spec: "cypress/e2e/devnet/**/*.cy.ts,cypress/e2e/*.cy.ts"
99+
tag: ${{needs.check-secrets.outputs.e2e-cypress-record-key == 'true' && 'devnet' || ''}}
100+
record: |
101+
${{needs.check-secrets.outputs.e2e-cypress-record-key == 'true' && 'true' || 'false'}}
102+
env:
103+
VITE_CONFIG_JSON: ${{steps.load-devnet-config.outputs.config}}
104+
CYPRESS_RECORD_KEY: ${{secrets.E2E_CYPRESS_RECORD_KEY}}
105+
CYPRESS_DEVNET_ERIGON_URL: "http://127.0.0.1:8545"
106+
CYPRESS_DEVNET_SOURCIFY_SOURCE: "http://127.0.0.1:7077"
107+
- name: Upload screenshots from failing tests
108+
uses: actions/upload-artifact@v4
109+
if: failure()
110+
with:
111+
name: Cypress Devnet Screenshots
112+
path: cypress/screenshots

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
# Vite cache
3+
.vite/
24

35
# emacs backups
46
*~
@@ -12,6 +14,9 @@
1214

1315
# testing
1416
/coverage
17+
/storybook-static
18+
/cypress/screenshots
19+
/cypress/videos
1520

1621
# production
1722
/build

.storybook/main.ts

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ const config: StorybookConfig = {
1717
typescript: {
1818
reactDocgen: false,
1919
},
20+
core: {
21+
disableTelemetry: true,
22+
},
2023
};
2124

2225
export default config;

.storybook/preview-head.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<script>
22
window.global = window;
3-
</script>
3+
</script>

.storybook/preview.tsx

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import React from "react";
2-
import { Decorator } from "@storybook/react";
3-
import { INITIAL_VIEWPORTS } from "@storybook/addon-viewport";
4-
import { BrowserRouter as Router } from "react-router-dom";
51
import "@fontsource/fira-code/index.css";
6-
import "@fontsource/space-grotesk/index.css";
7-
import "@fontsource/roboto/index.css";
82
import "@fontsource/roboto-mono/index.css";
3+
import "@fontsource/roboto/index.css";
94
import "@fontsource/space-grotesk/files/space-grotesk-latin-400-normal.woff2";
5+
import "@fontsource/space-grotesk/index.css";
6+
import { INITIAL_VIEWPORTS } from "@storybook/addon-viewport";
7+
import { Decorator } from "@storybook/react";
8+
import { BrowserRouter as Router } from "react-router-dom";
109
import "../src/index.css";
1110

1211
export const parameters = {

Dockerfile

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
FROM node:20.8.1-alpine3.17 AS builder
1+
FROM node:20.10.0-alpine3.17 AS builder
22
WORKDIR /otterscan-build
3-
COPY ["package.json", "package-lock.json", "/otterscan-build/"]
4-
RUN npm ci
5-
COPY ["run-nginx.sh", "tsconfig.json", "tsconfig.node.json", "postcss.config.js", "tailwind.config.js", "vite.config.ts", "index.html", "/otterscan-build/"]
6-
COPY ["public", "/otterscan-build/public/"]
7-
COPY ["src", "/otterscan-build/src/"]
3+
COPY --link ["package.json", "package-lock.json", "/otterscan-build/"]
4+
RUN npm ci --fetch-timeout 600000 --verbose
5+
COPY --link ["run-nginx.sh", "tsconfig.json", "tsconfig.node.json", "postcss.config.js", "tailwind.config.js", "vite.config.ts", "index.html", "/otterscan-build/"]
6+
COPY --link ["public", "/otterscan-build/public/"]
7+
COPY --link ["src", "/otterscan-build/src/"]
88
RUN npm run build
99

1010
# Add brotli module to official nginx image
@@ -71,14 +71,14 @@ RUN set -ex \
7171
&& rm -rf /tmp/packages
7272
RUN apk update && apk add jq
7373
WORKDIR /usr/share/nginx/html/
74-
COPY --from=otterscan/otterscan-assets:v1.1.1 /usr/share/nginx/html/chains chains/
75-
COPY --from=otterscan/otterscan-assets:v1.1.1 /usr/share/nginx/html/topic0 topic0/
76-
COPY --from=otterscan/otterscan-assets:v1.1.1 /usr/share/nginx/html/assets assets/
77-
COPY --from=otterscan/otterscan-assets:v1.1.1 /usr/share/nginx/html/signatures signatures/
78-
COPY nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf
79-
COPY nginx/nginx.conf /etc/nginx/nginx.conf
80-
COPY --from=builder /otterscan-build/dist /usr/share/nginx/html/
81-
COPY --from=builder /otterscan-build/run-nginx.sh /
74+
COPY --link --from=otterscan/otterscan-assets:v1.1.1 /usr/share/nginx/html/chains chains/
75+
COPY --link --from=otterscan/otterscan-assets:v1.1.1 /usr/share/nginx/html/topic0 topic0/
76+
COPY --link --from=otterscan/otterscan-assets:v1.1.1 /usr/share/nginx/html/assets assets/
77+
COPY --link --from=otterscan/otterscan-assets:v1.1.1 /usr/share/nginx/html/signatures signatures/
78+
COPY --link nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf
79+
COPY --link nginx/nginx.conf /etc/nginx/nginx.conf
80+
COPY --link --from=builder /otterscan-build/dist /usr/share/nginx/html/
81+
COPY --link --from=builder /otterscan-build/run-nginx.sh /
8282
WORKDIR /
8383

8484
CMD ["/run-nginx.sh"]

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,6 @@ Follow the creator on Twitter for more updates ([@wmitsuda](https://twitter.com/
118118

119119
### Donation address
120120

121-
If you like this project, feel free to send donations to `otterscan.eth` or use our gitcoin grant page: https://gitcoin.co/grants/3224/otterscan
121+
If you like this project, feel free to send donations to `otterscan.eth` on any EVM chain (it's an EOA).
122+
123+
We also participate regularly on Gitcoin Grants rounds.

cypress.config.ts

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
import { defineConfig } from "cypress";
2+
import fs from "fs";
3+
4+
export default defineConfig({
5+
e2e: {
6+
projectId: "rypdvn",
7+
setupNodeEvents(on, config) {
8+
on(
9+
"after:spec",
10+
(spec: Cypress.Spec, results: CypressCommandLine.RunResult) => {
11+
if (results && results.video) {
12+
// Do we have failures for any retry attempts?
13+
const failures = results.tests.some((test) =>
14+
test.attempts.some((attempt) => attempt.state === "failed"),
15+
);
16+
if (!failures) {
17+
// delete the video if the spec passed and no tests retried
18+
fs.unlinkSync(results.video);
19+
}
20+
}
21+
},
22+
);
23+
on("task", {
24+
// Run cy.task('log', <message>) to log something to stdout
25+
log(message) {
26+
console.log(message);
27+
return null;
28+
},
29+
});
30+
},
31+
baseUrl: "http://localhost:5173",
32+
// SyntaxHighlighter files may take several seconds to load in dev mode
33+
defaultCommandTimeout: 8_000,
34+
video: true,
35+
env: {
36+
DEVNET_ERIGON_URL: "http://localhost:8545",
37+
DEVNET_SOURCIFY_SOURCE: "http://localhost:7077",
38+
},
39+
},
40+
});

cypress/e2e/devnet/spec.cy.ts

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
describe("Devnet tests", () => {
2+
beforeEach(() => {
3+
cy.visit("/");
4+
});
5+
it("Has a warning header with the chain ID", () => {
6+
cy.get('[data-test="warning-header-network-name"]').contains(
7+
"You are on ChainID: 1337",
8+
);
9+
});
10+
it("Can navigate to a transaction's Trace tab and back", () => {
11+
cy.sendTx({
12+
to: "0x67b1d87101671b127f5f8714789C7192f7ad340e",
13+
}).then(({ txReceipt }) => {
14+
cy.visit("/tx/" + txReceipt.hash);
15+
// Click Trace button and make sure the trace loads
16+
cy.get("a").contains("Trace").click();
17+
cy.get("span").contains("<fallback>");
18+
cy.location("pathname").should(
19+
"equal",
20+
"/tx/" + txReceipt.hash + "/trace",
21+
);
22+
// Go back to the Overview tab
23+
cy.get("a").contains("Overview").click();
24+
cy.location("pathname").should("equal", "/tx/" + txReceipt.hash);
25+
cy.get('[data-test="tx-hash"]').contains(txReceipt.hash);
26+
});
27+
});
28+
});

0 commit comments

Comments
 (0)