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

cartesi / rollups-explorer / 10930828877

18 Sep 2024 10:06PM UTC coverage: 86.208% (-0.5%) from 86.665%
10930828877

push

github

brunomenezes
feat: Add support for decoding Voucher payload when available to remotely retrieve the destination contract ABI.

1133 of 1373 branches covered (82.52%)

Branch coverage included in aggregate %.

91 of 158 new or added lines in 6 files covered. (57.59%)

10 existing lines in 1 file now uncovered.

8343 of 9619 relevant lines covered (86.73%)

45.91 hits per line

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

86.67
/apps/web/src/lib/getSupportedChainInformation.ts
1
import {
1✔
2
    base,
3
    baseSepolia,
4
    foundry,
5
    mainnet,
6
    optimism,
7
    optimismSepolia,
8
    sepolia,
9
} from "viem/chains";
1✔
10

11
export const supportedChains = {
1✔
12
    [mainnet.id]: mainnet,
1✔
13
    [sepolia.id]: sepolia,
1✔
14
    [base.id]: base,
1✔
15
    [baseSepolia.id]: baseSepolia,
1✔
16
    [optimism.id]: optimism,
1✔
17
    [optimismSepolia.id]: optimismSepolia,
1✔
18
    [foundry.id]: foundry,
1✔
19
} as const;
1✔
20

21
export type SupportedChainId = keyof typeof supportedChains;
22

23
/**
24
 * Return information about a supported chain. Otherwise undefined is returned
25
 * @param { SupportedChainId } chainId
26
 * @returns
27
 */
28
const getSupportedChainInfo = (chainId: SupportedChainId) => {
1✔
NEW
29
    return supportedChains[chainId];
×
NEW
30
};
×
31

32
export default getSupportedChainInfo;
1✔
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