• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cartesi / rollups-explorer / 11826960107

13 Nov 2024 10:31PM UTC coverage: 85.956% (-0.6%) from 86.605%
11826960107

Pull #256

github

nevendyulgerov
test(apps/web): Tweak layout for tuple inputs
Pull Request #256: #251 Add ABI encoding for raw input form

1368 of 1630 branches covered (83.93%)

Branch coverage included in aggregate %.

793 of 984 new or added lines in 13 files covered. (80.59%)

9465 of 10973 relevant lines covered (86.26%)

47.16 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/apps/web/src/components/entriesSummary.tsx
1
"use client";
×
2

3
import { Summary } from "@cartesi/rollups-explorer-ui";
×
4
import { FC } from "react";
5
import { useAccount } from "wagmi";
×
6
import {
7
    useStatsApplicationsOwnerQuery,
8
    useStatsQuery,
9
} from "../graphql/explorer/hooks/queries";
×
10
import getConfiguredChainId from "../lib/getConfiguredChain";
×
11

12
const EntriesSummary: FC = () => {
×
13
    const chainId = getConfiguredChainId();
×
14
    const { address, isConnected } = useAccount();
×
15
    const [{ data: stats }] = useStatsQuery({
×
16
        variables: {
×
17
            chainId,
×
18
        },
×
19
    });
×
20
    const [{ data: applicationsOwned }] = useStatsApplicationsOwnerQuery({
×
21
        variables: {
×
22
            ownerAddress: address?.toLowerCase(),
×
23
            chainId,
×
24
        },
×
25
        pause: !isConnected,
×
26
    });
×
27
    const applicationsOwnedCount = isConnected
×
28
        ? applicationsOwned?.applicationsConnection?.totalCount ?? 0
×
29
        : 0;
×
30

31
    return (
×
32
        <Summary
×
33
            inputs={stats?.inputsConnection?.totalCount ?? 0}
×
34
            applications={stats?.applicationsConnection?.totalCount ?? 0}
×
35
            applicationsOwned={applicationsOwnedCount}
×
36
            data-testid="entries-summary"
×
37
        />
×
38
    );
39
};
×
40

41
export default EntriesSummary;
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc