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

cartesi / rollups-explorer / 10946891476

19 Sep 2024 06:35PM UTC coverage: 86.213% (+0.005%) from 86.208%
10946891476

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 %.

95 of 162 new or added lines in 6 files covered. (58.64%)

32 existing lines in 2 files now uncovered.

8347 of 9623 relevant lines covered (86.74%)

45.89 hits per line

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

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

13
export const supportedChains = Object.freeze({
1✔
14
    [mainnet.id]: mainnet,
1✔
15
    [sepolia.id]: sepolia,
1✔
16
    [base.id]: base,
1✔
17
    [baseSepolia.id]: baseSepolia,
1✔
18
    [optimism.id]: optimism,
1✔
19
    [optimismSepolia.id]: optimismSepolia,
1✔
20
    [foundry.id]: foundry,
1✔
21
    [arbitrum.id]: arbitrum,
1✔
22
    [arbitrumSepolia.id]: arbitrumSepolia,
1✔
23
});
1✔
24

25
export type SupportedChainId = keyof typeof supportedChains;
26

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

36
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