synapsecns/sanguine

View on GitHub
packages/widget/src/constants/chains.ts

Summary

Maintainability
F
1 wk
Test Coverage

File chains.ts has 490 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import _ from 'lodash'
import { Chain } from 'types'

export const ETHEREUM: Chain = {
  id: 1,
Severity: Minor
Found in packages/widget/src/constants/chains.ts - About 7 hrs to fix

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    export const CHAINS = {
      ETHEREUM,
      ARBITRUM,
      BNBCHAIN,
      AVALANCHE,
    Severity: Major
    Found in packages/widget/src/constants/chains.ts and 1 other location - About 4 hrs to fix
    packages/rest-api/src/constants/chains.ts on lines 490..514

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 126.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 23 locations. Consider refactoring.
    Open

    export const AVALANCHE: Chain = {
      id: 43114,
      name: 'Avalanche',
      rpcUrls: {
        primary: 'https://api.avax.network/ext/bc/C/rpc',
    Severity: Major
    Found in packages/widget/src/constants/chains.ts and 22 other locations - About 2 hrs to fix
    packages/widget/src/constants/chains.ts on lines 4..23
    packages/widget/src/constants/chains.ts on lines 25..44
    packages/widget/src/constants/chains.ts on lines 46..65
    packages/widget/src/constants/chains.ts on lines 88..107
    packages/widget/src/constants/chains.ts on lines 109..128
    packages/widget/src/constants/chains.ts on lines 130..149
    packages/widget/src/constants/chains.ts on lines 151..170
    packages/widget/src/constants/chains.ts on lines 172..191
    packages/widget/src/constants/chains.ts on lines 193..212
    packages/widget/src/constants/chains.ts on lines 214..233
    packages/widget/src/constants/chains.ts on lines 235..254
    packages/widget/src/constants/chains.ts on lines 256..275
    packages/widget/src/constants/chains.ts on lines 277..296
    packages/widget/src/constants/chains.ts on lines 298..317
    packages/widget/src/constants/chains.ts on lines 319..338
    packages/widget/src/constants/chains.ts on lines 340..359
    packages/widget/src/constants/chains.ts on lines 361..380
    packages/widget/src/constants/chains.ts on lines 382..401
    packages/widget/src/constants/chains.ts on lines 403..423
    packages/widget/src/constants/chains.ts on lines 425..444
    packages/widget/src/constants/chains.ts on lines 446..465
    packages/widget/src/constants/chains.ts on lines 467..486

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 94.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 23 locations. Consider refactoring.
    Open

    export const FANTOM: Chain = {
      id: 250,
      name: 'Fantom',
      rpcUrls: {
        primary: 'https://rpc.ftm.tools',
    Severity: Major
    Found in packages/widget/src/constants/chains.ts and 22 other locations - About 2 hrs to fix
    packages/widget/src/constants/chains.ts on lines 4..23
    packages/widget/src/constants/chains.ts on lines 25..44
    packages/widget/src/constants/chains.ts on lines 46..65
    packages/widget/src/constants/chains.ts on lines 67..86
    packages/widget/src/constants/chains.ts on lines 88..107
    packages/widget/src/constants/chains.ts on lines 109..128
    packages/widget/src/constants/chains.ts on lines 130..149
    packages/widget/src/constants/chains.ts on lines 151..170
    packages/widget/src/constants/chains.ts on lines 172..191
    packages/widget/src/constants/chains.ts on lines 214..233
    packages/widget/src/constants/chains.ts on lines 235..254
    packages/widget/src/constants/chains.ts on lines 256..275
    packages/widget/src/constants/chains.ts on lines 277..296
    packages/widget/src/constants/chains.ts on lines 298..317
    packages/widget/src/constants/chains.ts on lines 319..338
    packages/widget/src/constants/chains.ts on lines 340..359
    packages/widget/src/constants/chains.ts on lines 361..380
    packages/widget/src/constants/chains.ts on lines 382..401
    packages/widget/src/constants/chains.ts on lines 403..423
    packages/widget/src/constants/chains.ts on lines 425..444
    packages/widget/src/constants/chains.ts on lines 446..465
    packages/widget/src/constants/chains.ts on lines 467..486

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 94.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 23 locations. Consider refactoring.
    Open

    export const DFK: Chain = {
      id: 53935,
      name: 'DFK Chain',
      rpcUrls: {
        primary: 'https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc',
    Severity: Major
    Found in packages/widget/src/constants/chains.ts and 22 other locations - About 2 hrs to fix
    packages/widget/src/constants/chains.ts on lines 4..23
    packages/widget/src/constants/chains.ts on lines 25..44
    packages/widget/src/constants/chains.ts on lines 46..65
    packages/widget/src/constants/chains.ts on lines 67..86
    packages/widget/src/constants/chains.ts on lines 88..107
    packages/widget/src/constants/chains.ts on lines 109..128
    packages/widget/src/constants/chains.ts on lines 130..149
    packages/widget/src/constants/chains.ts on lines 172..191
    packages/widget/src/constants/chains.ts on lines 193..212
    packages/widget/src/constants/chains.ts on lines 214..233
    packages/widget/src/constants/chains.ts on lines 235..254
    packages/widget/src/constants/chains.ts on lines 256..275
    packages/widget/src/constants/chains.ts on lines 277..296
    packages/widget/src/constants/chains.ts on lines 298..317
    packages/widget/src/constants/chains.ts on lines 319..338
    packages/widget/src/constants/chains.ts on lines 340..359
    packages/widget/src/constants/chains.ts on lines 361..380
    packages/widget/src/constants/chains.ts on lines 382..401
    packages/widget/src/constants/chains.ts on lines 403..423
    packages/widget/src/constants/chains.ts on lines 425..444
    packages/widget/src/constants/chains.ts on lines 446..465
    packages/widget/src/constants/chains.ts on lines 467..486

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 94.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 23 locations. Consider refactoring.
    Open

    export const OPTIMISM: Chain = {
      id: 10,
      name: 'Optimism',
      rpcUrls: {
        primary: 'https://mainnet.optimism.io',
    Severity: Major
    Found in packages/widget/src/constants/chains.ts and 22 other locations - About 2 hrs to fix
    packages/widget/src/constants/chains.ts on lines 4..23
    packages/widget/src/constants/chains.ts on lines 25..44
    packages/widget/src/constants/chains.ts on lines 46..65
    packages/widget/src/constants/chains.ts on lines 67..86
    packages/widget/src/constants/chains.ts on lines 88..107
    packages/widget/src/constants/chains.ts on lines 130..149
    packages/widget/src/constants/chains.ts on lines 151..170
    packages/widget/src/constants/chains.ts on lines 172..191
    packages/widget/src/constants/chains.ts on lines 193..212
    packages/widget/src/constants/chains.ts on lines 214..233
    packages/widget/src/constants/chains.ts on lines 235..254
    packages/widget/src/constants/chains.ts on lines 256..275
    packages/widget/src/constants/chains.ts on lines 277..296
    packages/widget/src/constants/chains.ts on lines 298..317
    packages/widget/src/constants/chains.ts on lines 319..338
    packages/widget/src/constants/chains.ts on lines 340..359
    packages/widget/src/constants/chains.ts on lines 361..380
    packages/widget/src/constants/chains.ts on lines 382..401
    packages/widget/src/constants/chains.ts on lines 403..423
    packages/widget/src/constants/chains.ts on lines 425..444
    packages/widget/src/constants/chains.ts on lines 446..465
    packages/widget/src/constants/chains.ts on lines 467..486

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 94.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 23 locations. Consider refactoring.
    Open

    export const METIS: Chain = {
      id: 1088,
      name: 'Metis',
      rpcUrls: {
        primary: 'https://andromeda.metis.io/?owner=1088',
    Severity: Major
    Found in packages/widget/src/constants/chains.ts and 22 other locations - About 2 hrs to fix
    packages/widget/src/constants/chains.ts on lines 4..23
    packages/widget/src/constants/chains.ts on lines 25..44
    packages/widget/src/constants/chains.ts on lines 46..65
    packages/widget/src/constants/chains.ts on lines 67..86
    packages/widget/src/constants/chains.ts on lines 88..107
    packages/widget/src/constants/chains.ts on lines 109..128
    packages/widget/src/constants/chains.ts on lines 130..149
    packages/widget/src/constants/chains.ts on lines 151..170
    packages/widget/src/constants/chains.ts on lines 172..191
    packages/widget/src/constants/chains.ts on lines 193..212
    packages/widget/src/constants/chains.ts on lines 214..233
    packages/widget/src/constants/chains.ts on lines 235..254
    packages/widget/src/constants/chains.ts on lines 277..296
    packages/widget/src/constants/chains.ts on lines 298..317
    packages/widget/src/constants/chains.ts on lines 319..338
    packages/widget/src/constants/chains.ts on lines 340..359
    packages/widget/src/constants/chains.ts on lines 361..380
    packages/widget/src/constants/chains.ts on lines 382..401
    packages/widget/src/constants/chains.ts on lines 403..423
    packages/widget/src/constants/chains.ts on lines 425..444
    packages/widget/src/constants/chains.ts on lines 446..465
    packages/widget/src/constants/chains.ts on lines 467..486

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 94.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 23 locations. Consider refactoring.
    Open

    export const ETHEREUM: Chain = {
      id: 1,
      name: 'Ethereum',
      rpcUrls: {
        primary: 'https://ethereum.blockpi.network/v1/rpc/public',
    Severity: Major
    Found in packages/widget/src/constants/chains.ts and 22 other locations - About 2 hrs to fix
    packages/widget/src/constants/chains.ts on lines 25..44
    packages/widget/src/constants/chains.ts on lines 46..65
    packages/widget/src/constants/chains.ts on lines 67..86
    packages/widget/src/constants/chains.ts on lines 88..107
    packages/widget/src/constants/chains.ts on lines 109..128
    packages/widget/src/constants/chains.ts on lines 130..149
    packages/widget/src/constants/chains.ts on lines 151..170
    packages/widget/src/constants/chains.ts on lines 172..191
    packages/widget/src/constants/chains.ts on lines 193..212
    packages/widget/src/constants/chains.ts on lines 214..233
    packages/widget/src/constants/chains.ts on lines 235..254
    packages/widget/src/constants/chains.ts on lines 256..275
    packages/widget/src/constants/chains.ts on lines 277..296
    packages/widget/src/constants/chains.ts on lines 298..317
    packages/widget/src/constants/chains.ts on lines 319..338
    packages/widget/src/constants/chains.ts on lines 340..359
    packages/widget/src/constants/chains.ts on lines 361..380
    packages/widget/src/constants/chains.ts on lines 382..401
    packages/widget/src/constants/chains.ts on lines 403..423
    packages/widget/src/constants/chains.ts on lines 425..444
    packages/widget/src/constants/chains.ts on lines 446..465
    packages/widget/src/constants/chains.ts on lines 467..486

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 94.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 23 locations. Consider refactoring.
    Open

    export const SCROLL: Chain = {
      id: 534352,
      name: 'Scroll',
      rpcUrls: {
        primary: 'https://rpc.scroll.io/',
    Severity: Major
    Found in packages/widget/src/constants/chains.ts and 22 other locations - About 2 hrs to fix
    packages/widget/src/constants/chains.ts on lines 4..23
    packages/widget/src/constants/chains.ts on lines 25..44
    packages/widget/src/constants/chains.ts on lines 46..65
    packages/widget/src/constants/chains.ts on lines 67..86
    packages/widget/src/constants/chains.ts on lines 88..107
    packages/widget/src/constants/chains.ts on lines 109..128
    packages/widget/src/constants/chains.ts on lines 130..149
    packages/widget/src/constants/chains.ts on lines 151..170
    packages/widget/src/constants/chains.ts on lines 172..191
    packages/widget/src/constants/chains.ts on lines 193..212
    packages/widget/src/constants/chains.ts on lines 214..233
    packages/widget/src/constants/chains.ts on lines 235..254
    packages/widget/src/constants/chains.ts on lines 256..275
    packages/widget/src/constants/chains.ts on lines 277..296
    packages/widget/src/constants/chains.ts on lines 298..317
    packages/widget/src/constants/chains.ts on lines 319..338
    packages/widget/src/constants/chains.ts on lines 340..359
    packages/widget/src/constants/chains.ts on lines 361..380
    packages/widget/src/constants/chains.ts on lines 382..401
    packages/widget/src/constants/chains.ts on lines 403..423
    packages/widget/src/constants/chains.ts on lines 446..465
    packages/widget/src/constants/chains.ts on lines 467..486

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 94.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 23 locations. Consider refactoring.
    Open

    export const BLAST: Chain = {
      id: 81457,
      name: 'Blast',
      rpcUrls: {
        primary:
    Severity: Major
    Found in packages/widget/src/constants/chains.ts and 22 other locations - About 2 hrs to fix
    packages/widget/src/constants/chains.ts on lines 4..23
    packages/widget/src/constants/chains.ts on lines 25..44
    packages/widget/src/constants/chains.ts on lines 46..65
    packages/widget/src/constants/chains.ts on lines 67..86
    packages/widget/src/constants/chains.ts on lines 88..107
    packages/widget/src/constants/chains.ts on lines 109..128
    packages/widget/src/constants/chains.ts on lines 130..149
    packages/widget/src/constants/chains.ts on lines 151..170
    packages/widget/src/constants/chains.ts on lines 172..191
    packages/widget/src/constants/chains.ts on lines 193..212
    packages/widget/src/constants/chains.ts on lines 214..233
    packages/widget/src/constants/chains.ts on lines 235..254
    packages/widget/src/constants/chains.ts on lines 256..275
    packages/widget/src/constants/chains.ts on lines 277..296
    packages/widget/src/constants/chains.ts on lines 298..317
    packages/widget/src/constants/chains.ts on lines 319..338
    packages/widget/src/constants/chains.ts on lines 340..359
    packages/widget/src/constants/chains.ts on lines 361..380
    packages/widget/src/constants/chains.ts on lines 382..401
    packages/widget/src/constants/chains.ts on lines 425..444
    packages/widget/src/constants/chains.ts on lines 446..465
    packages/widget/src/constants/chains.ts on lines 467..486

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 94.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 23 locations. Consider refactoring.
    Open

    export const KLAYTN: Chain = {
      id: 8217,
      name: 'Klaytn',
      rpcUrls: {
        primary: 'https://kaia.blockpi.network/v1/rpc/public',
    Severity: Major
    Found in packages/widget/src/constants/chains.ts and 22 other locations - About 2 hrs to fix
    packages/widget/src/constants/chains.ts on lines 4..23
    packages/widget/src/constants/chains.ts on lines 25..44
    packages/widget/src/constants/chains.ts on lines 46..65
    packages/widget/src/constants/chains.ts on lines 67..86
    packages/widget/src/constants/chains.ts on lines 88..107
    packages/widget/src/constants/chains.ts on lines 109..128
    packages/widget/src/constants/chains.ts on lines 130..149
    packages/widget/src/constants/chains.ts on lines 151..170
    packages/widget/src/constants/chains.ts on lines 193..212
    packages/widget/src/constants/chains.ts on lines 214..233
    packages/widget/src/constants/chains.ts on lines 235..254
    packages/widget/src/constants/chains.ts on lines 256..275
    packages/widget/src/constants/chains.ts on lines 277..296
    packages/widget/src/constants/chains.ts on lines 298..317
    packages/widget/src/constants/chains.ts on lines 319..338
    packages/widget/src/constants/chains.ts on lines 340..359
    packages/widget/src/constants/chains.ts on lines 361..380
    packages/widget/src/constants/chains.ts on lines 382..401
    packages/widget/src/constants/chains.ts on lines 403..423
    packages/widget/src/constants/chains.ts on lines 425..444
    packages/widget/src/constants/chains.ts on lines 446..465
    packages/widget/src/constants/chains.ts on lines 467..486

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 94.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 23 locations. Consider refactoring.
    Open

    export const CRONOS: Chain = {
      id: 25,
      name: 'Cronos',
      rpcUrls: {
        primary: 'https://evm-cronos.crypto.org',
    Severity: Major
    Found in packages/widget/src/constants/chains.ts and 22 other locations - About 2 hrs to fix
    packages/widget/src/constants/chains.ts on lines 4..23
    packages/widget/src/constants/chains.ts on lines 25..44
    packages/widget/src/constants/chains.ts on lines 46..65
    packages/widget/src/constants/chains.ts on lines 67..86
    packages/widget/src/constants/chains.ts on lines 88..107
    packages/widget/src/constants/chains.ts on lines 109..128
    packages/widget/src/constants/chains.ts on lines 130..149
    packages/widget/src/constants/chains.ts on lines 151..170
    packages/widget/src/constants/chains.ts on lines 172..191
    packages/widget/src/constants/chains.ts on lines 193..212
    packages/widget/src/constants/chains.ts on lines 235..254
    packages/widget/src/constants/chains.ts on lines 256..275
    packages/widget/src/constants/chains.ts on lines 277..296
    packages/widget/src/constants/chains.ts on lines 298..317
    packages/widget/src/constants/chains.ts on lines 319..338
    packages/widget/src/constants/chains.ts on lines 340..359
    packages/widget/src/constants/chains.ts on lines 361..380
    packages/widget/src/constants/chains.ts on lines 382..401
    packages/widget/src/constants/chains.ts on lines 403..423
    packages/widget/src/constants/chains.ts on lines 425..444
    packages/widget/src/constants/chains.ts on lines 446..465
    packages/widget/src/constants/chains.ts on lines 467..486

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 94.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 23 locations. Consider refactoring.
    Open

    export const LINEA: Chain = {
      id: 59144,
      name: 'Linea',
      rpcUrls: {
        primary: 'https://rpc.linea.build',
    Severity: Major
    Found in packages/widget/src/constants/chains.ts and 22 other locations - About 2 hrs to fix
    packages/widget/src/constants/chains.ts on lines 4..23
    packages/widget/src/constants/chains.ts on lines 25..44
    packages/widget/src/constants/chains.ts on lines 46..65
    packages/widget/src/constants/chains.ts on lines 67..86
    packages/widget/src/constants/chains.ts on lines 88..107
    packages/widget/src/constants/chains.ts on lines 109..128
    packages/widget/src/constants/chains.ts on lines 130..149
    packages/widget/src/constants/chains.ts on lines 151..170
    packages/widget/src/constants/chains.ts on lines 172..191
    packages/widget/src/constants/chains.ts on lines 193..212
    packages/widget/src/constants/chains.ts on lines 214..233
    packages/widget/src/constants/chains.ts on lines 235..254
    packages/widget/src/constants/chains.ts on lines 256..275
    packages/widget/src/constants/chains.ts on lines 277..296
    packages/widget/src/constants/chains.ts on lines 298..317
    packages/widget/src/constants/chains.ts on lines 319..338
    packages/widget/src/constants/chains.ts on lines 340..359
    packages/widget/src/constants/chains.ts on lines 361..380
    packages/widget/src/constants/chains.ts on lines 382..401
    packages/widget/src/constants/chains.ts on lines 403..423
    packages/widget/src/constants/chains.ts on lines 425..444
    packages/widget/src/constants/chains.ts on lines 467..486

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 94.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 23 locations. Consider refactoring.
    Open

    export const ARBITRUM: Chain = {
      id: 42161,
      name: 'Arbitrum',
      rpcUrls: {
        primary: 'https://arbitrum.blockpi.network/v1/rpc/public',
    Severity: Major
    Found in packages/widget/src/constants/chains.ts and 22 other locations - About 2 hrs to fix
    packages/widget/src/constants/chains.ts on lines 4..23
    packages/widget/src/constants/chains.ts on lines 46..65
    packages/widget/src/constants/chains.ts on lines 67..86
    packages/widget/src/constants/chains.ts on lines 88..107
    packages/widget/src/constants/chains.ts on lines 109..128
    packages/widget/src/constants/chains.ts on lines 130..149
    packages/widget/src/constants/chains.ts on lines 151..170
    packages/widget/src/constants/chains.ts on lines 172..191
    packages/widget/src/constants/chains.ts on lines 193..212
    packages/widget/src/constants/chains.ts on lines 214..233
    packages/widget/src/constants/chains.ts on lines 235..254
    packages/widget/src/constants/chains.ts on lines 256..275
    packages/widget/src/constants/chains.ts on lines 277..296
    packages/widget/src/constants/chains.ts on lines 298..317
    packages/widget/src/constants/chains.ts on lines 319..338
    packages/widget/src/constants/chains.ts on lines 340..359
    packages/widget/src/constants/chains.ts on lines 361..380
    packages/widget/src/constants/chains.ts on lines 382..401
    packages/widget/src/constants/chains.ts on lines 403..423
    packages/widget/src/constants/chains.ts on lines 425..444
    packages/widget/src/constants/chains.ts on lines 446..465
    packages/widget/src/constants/chains.ts on lines 467..486

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 94.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 23 locations. Consider refactoring.
    Open

    export const MOONBEAM: Chain = {
      id: 1284,
      name: 'Moonbeam',
      rpcUrls: {
        primary: 'https://rpc.api.moonbeam.network',
    Severity: Major
    Found in packages/widget/src/constants/chains.ts and 22 other locations - About 2 hrs to fix
    packages/widget/src/constants/chains.ts on lines 4..23
    packages/widget/src/constants/chains.ts on lines 25..44
    packages/widget/src/constants/chains.ts on lines 46..65
    packages/widget/src/constants/chains.ts on lines 67..86
    packages/widget/src/constants/chains.ts on lines 88..107
    packages/widget/src/constants/chains.ts on lines 109..128
    packages/widget/src/constants/chains.ts on lines 130..149
    packages/widget/src/constants/chains.ts on lines 151..170
    packages/widget/src/constants/chains.ts on lines 172..191
    packages/widget/src/constants/chains.ts on lines 193..212
    packages/widget/src/constants/chains.ts on lines 214..233
    packages/widget/src/constants/chains.ts on lines 235..254
    packages/widget/src/constants/chains.ts on lines 256..275
    packages/widget/src/constants/chains.ts on lines 277..296
    packages/widget/src/constants/chains.ts on lines 298..317
    packages/widget/src/constants/chains.ts on lines 340..359
    packages/widget/src/constants/chains.ts on lines 361..380
    packages/widget/src/constants/chains.ts on lines 382..401
    packages/widget/src/constants/chains.ts on lines 403..423
    packages/widget/src/constants/chains.ts on lines 425..444
    packages/widget/src/constants/chains.ts on lines 446..465
    packages/widget/src/constants/chains.ts on lines 467..486

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 94.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 23 locations. Consider refactoring.
    Open

    export const POLYGON: Chain = {
      id: 137,
      name: 'Polygon',
      rpcUrls: {
        primary: 'https://polygon-bor.publicnode.com',
    Severity: Major
    Found in packages/widget/src/constants/chains.ts and 22 other locations - About 2 hrs to fix
    packages/widget/src/constants/chains.ts on lines 4..23
    packages/widget/src/constants/chains.ts on lines 25..44
    packages/widget/src/constants/chains.ts on lines 46..65
    packages/widget/src/constants/chains.ts on lines 67..86
    packages/widget/src/constants/chains.ts on lines 88..107
    packages/widget/src/constants/chains.ts on lines 109..128
    packages/widget/src/constants/chains.ts on lines 151..170
    packages/widget/src/constants/chains.ts on lines 172..191
    packages/widget/src/constants/chains.ts on lines 193..212
    packages/widget/src/constants/chains.ts on lines 214..233
    packages/widget/src/constants/chains.ts on lines 235..254
    packages/widget/src/constants/chains.ts on lines 256..275
    packages/widget/src/constants/chains.ts on lines 277..296
    packages/widget/src/constants/chains.ts on lines 298..317
    packages/widget/src/constants/chains.ts on lines 319..338
    packages/widget/src/constants/chains.ts on lines 340..359
    packages/widget/src/constants/chains.ts on lines 361..380
    packages/widget/src/constants/chains.ts on lines 382..401
    packages/widget/src/constants/chains.ts on lines 403..423
    packages/widget/src/constants/chains.ts on lines 425..444
    packages/widget/src/constants/chains.ts on lines 446..465
    packages/widget/src/constants/chains.ts on lines 467..486

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 94.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 23 locations. Consider refactoring.
    Open

    export const WORLDCHAIN: Chain = {
      id: 480,
      name: 'World Chain',
      rpcUrls: {
        primary: 'https://worldchain-mainnet.g.alchemy.com/public',
    Severity: Major
    Found in packages/widget/src/constants/chains.ts and 22 other locations - About 2 hrs to fix
    packages/widget/src/constants/chains.ts on lines 4..23
    packages/widget/src/constants/chains.ts on lines 25..44
    packages/widget/src/constants/chains.ts on lines 46..65
    packages/widget/src/constants/chains.ts on lines 67..86
    packages/widget/src/constants/chains.ts on lines 88..107
    packages/widget/src/constants/chains.ts on lines 109..128
    packages/widget/src/constants/chains.ts on lines 130..149
    packages/widget/src/constants/chains.ts on lines 151..170
    packages/widget/src/constants/chains.ts on lines 172..191
    packages/widget/src/constants/chains.ts on lines 193..212
    packages/widget/src/constants/chains.ts on lines 214..233
    packages/widget/src/constants/chains.ts on lines 235..254
    packages/widget/src/constants/chains.ts on lines 256..275
    packages/widget/src/constants/chains.ts on lines 277..296
    packages/widget/src/constants/chains.ts on lines 298..317
    packages/widget/src/constants/chains.ts on lines 319..338
    packages/widget/src/constants/chains.ts on lines 340..359
    packages/widget/src/constants/chains.ts on lines 361..380
    packages/widget/src/constants/chains.ts on lines 382..401
    packages/widget/src/constants/chains.ts on lines 403..423
    packages/widget/src/constants/chains.ts on lines 425..444
    packages/widget/src/constants/chains.ts on lines 446..465

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 94.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 23 locations. Consider refactoring.
    Open

    export const CANTO: Chain = {
      id: 7700,
      name: 'Canto',
      rpcUrls: {
        primary: 'https://mainnode.plexnode.org:8545',
    Severity: Major
    Found in packages/widget/src/constants/chains.ts and 22 other locations - About 2 hrs to fix
    packages/widget/src/constants/chains.ts on lines 4..23
    packages/widget/src/constants/chains.ts on lines 25..44
    packages/widget/src/constants/chains.ts on lines 46..65
    packages/widget/src/constants/chains.ts on lines 67..86
    packages/widget/src/constants/chains.ts on lines 109..128
    packages/widget/src/constants/chains.ts on lines 130..149
    packages/widget/src/constants/chains.ts on lines 151..170
    packages/widget/src/constants/chains.ts on lines 172..191
    packages/widget/src/constants/chains.ts on lines 193..212
    packages/widget/src/constants/chains.ts on lines 214..233
    packages/widget/src/constants/chains.ts on lines 235..254
    packages/widget/src/constants/chains.ts on lines 256..275
    packages/widget/src/constants/chains.ts on lines 277..296
    packages/widget/src/constants/chains.ts on lines 298..317
    packages/widget/src/constants/chains.ts on lines 319..338
    packages/widget/src/constants/chains.ts on lines 340..359
    packages/widget/src/constants/chains.ts on lines 361..380
    packages/widget/src/constants/chains.ts on lines 382..401
    packages/widget/src/constants/chains.ts on lines 403..423
    packages/widget/src/constants/chains.ts on lines 425..444
    packages/widget/src/constants/chains.ts on lines 446..465
    packages/widget/src/constants/chains.ts on lines 467..486

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 94.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 23 locations. Consider refactoring.
    Open

    export const DOGE: Chain = {
      id: 2000,
      name: 'Dogechain',
      rpcUrls: {
        primary: 'https://rpc.dogechain.dog',
    Severity: Major
    Found in packages/widget/src/constants/chains.ts and 22 other locations - About 2 hrs to fix
    packages/widget/src/constants/chains.ts on lines 4..23
    packages/widget/src/constants/chains.ts on lines 25..44
    packages/widget/src/constants/chains.ts on lines 46..65
    packages/widget/src/constants/chains.ts on lines 67..86
    packages/widget/src/constants/chains.ts on lines 88..107
    packages/widget/src/constants/chains.ts on lines 109..128
    packages/widget/src/constants/chains.ts on lines 130..149
    packages/widget/src/constants/chains.ts on lines 151..170
    packages/widget/src/constants/chains.ts on lines 172..191
    packages/widget/src/constants/chains.ts on lines 193..212
    packages/widget/src/constants/chains.ts on lines 214..233
    packages/widget/src/constants/chains.ts on lines 235..254
    packages/widget/src/constants/chains.ts on lines 256..275
    packages/widget/src/constants/chains.ts on lines 277..296
    packages/widget/src/constants/chains.ts on lines 298..317
    packages/widget/src/constants/chains.ts on lines 319..338
    packages/widget/src/constants/chains.ts on lines 340..359
    packages/widget/src/constants/chains.ts on lines 382..401
    packages/widget/src/constants/chains.ts on lines 403..423
    packages/widget/src/constants/chains.ts on lines 425..444
    packages/widget/src/constants/chains.ts on lines 446..465
    packages/widget/src/constants/chains.ts on lines 467..486

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 94.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 23 locations. Consider refactoring.
    Open

    export const BOBA: Chain = {
      id: 288,
      name: 'Boba Chain',
      rpcUrls: {
        primary: 'https://mainnet.boba.network',
    Severity: Major
    Found in packages/widget/src/constants/chains.ts and 22 other locations - About 2 hrs to fix
    packages/widget/src/constants/chains.ts on lines 4..23
    packages/widget/src/constants/chains.ts on lines 25..44
    packages/widget/src/constants/chains.ts on lines 46..65
    packages/widget/src/constants/chains.ts on lines 67..86
    packages/widget/src/constants/chains.ts on lines 88..107
    packages/widget/src/constants/chains.ts on lines 109..128
    packages/widget/src/constants/chains.ts on lines 130..149
    packages/widget/src/constants/chains.ts on lines 151..170
    packages/widget/src/constants/chains.ts on lines 172..191
    packages/widget/src/constants/chains.ts on lines 193..212
    packages/widget/src/constants/chains.ts on lines 214..233
    packages/widget/src/constants/chains.ts on lines 256..275
    packages/widget/src/constants/chains.ts on lines 277..296
    packages/widget/src/constants/chains.ts on lines 298..317
    packages/widget/src/constants/chains.ts on lines 319..338
    packages/widget/src/constants/chains.ts on lines 340..359
    packages/widget/src/constants/chains.ts on lines 361..380
    packages/widget/src/constants/chains.ts on lines 382..401
    packages/widget/src/constants/chains.ts on lines 403..423
    packages/widget/src/constants/chains.ts on lines 425..444
    packages/widget/src/constants/chains.ts on lines 446..465
    packages/widget/src/constants/chains.ts on lines 467..486

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 94.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 23 locations. Consider refactoring.
    Open

    export const AURORA: Chain = {
      id: 1313161554,
      name: 'Aurora',
      rpcUrls: {
        primary: 'https://mainnet.aurora.dev',
    Severity: Major
    Found in packages/widget/src/constants/chains.ts and 22 other locations - About 2 hrs to fix
    packages/widget/src/constants/chains.ts on lines 4..23
    packages/widget/src/constants/chains.ts on lines 25..44
    packages/widget/src/constants/chains.ts on lines 46..65
    packages/widget/src/constants/chains.ts on lines 67..86
    packages/widget/src/constants/chains.ts on lines 88..107
    packages/widget/src/constants/chains.ts on lines 109..128
    packages/widget/src/constants/chains.ts on lines 130..149
    packages/widget/src/constants/chains.ts on lines 151..170
    packages/widget/src/constants/chains.ts on lines 172..191
    packages/widget/src/constants/chains.ts on lines 193..212
    packages/widget/src/constants/chains.ts on lines 214..233
    packages/widget/src/constants/chains.ts on lines 235..254
    packages/widget/src/constants/chains.ts on lines 256..275
    packages/widget/src/constants/chains.ts on lines 298..317
    packages/widget/src/constants/chains.ts on lines 319..338
    packages/widget/src/constants/chains.ts on lines 340..359
    packages/widget/src/constants/chains.ts on lines 361..380
    packages/widget/src/constants/chains.ts on lines 382..401
    packages/widget/src/constants/chains.ts on lines 403..423
    packages/widget/src/constants/chains.ts on lines 425..444
    packages/widget/src/constants/chains.ts on lines 446..465
    packages/widget/src/constants/chains.ts on lines 467..486

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 94.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 23 locations. Consider refactoring.
    Open

    export const BASE: Chain = {
      id: 8453,
      name: 'Base',
      rpcUrls: {
        primary: 'https://base.blockpi.network/v1/rpc/public',
    Severity: Major
    Found in packages/widget/src/constants/chains.ts and 22 other locations - About 2 hrs to fix
    packages/widget/src/constants/chains.ts on lines 4..23
    packages/widget/src/constants/chains.ts on lines 25..44
    packages/widget/src/constants/chains.ts on lines 46..65
    packages/widget/src/constants/chains.ts on lines 67..86
    packages/widget/src/constants/chains.ts on lines 88..107
    packages/widget/src/constants/chains.ts on lines 109..128
    packages/widget/src/constants/chains.ts on lines 130..149
    packages/widget/src/constants/chains.ts on lines 151..170
    packages/widget/src/constants/chains.ts on lines 172..191
    packages/widget/src/constants/chains.ts on lines 193..212
    packages/widget/src/constants/chains.ts on lines 214..233
    packages/widget/src/constants/chains.ts on lines 235..254
    packages/widget/src/constants/chains.ts on lines 256..275
    packages/widget/src/constants/chains.ts on lines 277..296
    packages/widget/src/constants/chains.ts on lines 298..317
    packages/widget/src/constants/chains.ts on lines 319..338
    packages/widget/src/constants/chains.ts on lines 340..359
    packages/widget/src/constants/chains.ts on lines 361..380
    packages/widget/src/constants/chains.ts on lines 403..423
    packages/widget/src/constants/chains.ts on lines 425..444
    packages/widget/src/constants/chains.ts on lines 446..465
    packages/widget/src/constants/chains.ts on lines 467..486

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 94.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 23 locations. Consider refactoring.
    Open

    export const BNBCHAIN: Chain = {
      id: 56,
      name: 'BNB Chain',
      rpcUrls: {
        primary: 'https://bsc-dataseed1.ninicoin.io/',
    Severity: Major
    Found in packages/widget/src/constants/chains.ts and 22 other locations - About 2 hrs to fix
    packages/widget/src/constants/chains.ts on lines 4..23
    packages/widget/src/constants/chains.ts on lines 25..44
    packages/widget/src/constants/chains.ts on lines 67..86
    packages/widget/src/constants/chains.ts on lines 88..107
    packages/widget/src/constants/chains.ts on lines 109..128
    packages/widget/src/constants/chains.ts on lines 130..149
    packages/widget/src/constants/chains.ts on lines 151..170
    packages/widget/src/constants/chains.ts on lines 172..191
    packages/widget/src/constants/chains.ts on lines 193..212
    packages/widget/src/constants/chains.ts on lines 214..233
    packages/widget/src/constants/chains.ts on lines 235..254
    packages/widget/src/constants/chains.ts on lines 256..275
    packages/widget/src/constants/chains.ts on lines 277..296
    packages/widget/src/constants/chains.ts on lines 298..317
    packages/widget/src/constants/chains.ts on lines 319..338
    packages/widget/src/constants/chains.ts on lines 340..359
    packages/widget/src/constants/chains.ts on lines 361..380
    packages/widget/src/constants/chains.ts on lines 382..401
    packages/widget/src/constants/chains.ts on lines 403..423
    packages/widget/src/constants/chains.ts on lines 425..444
    packages/widget/src/constants/chains.ts on lines 446..465
    packages/widget/src/constants/chains.ts on lines 467..486

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 94.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 23 locations. Consider refactoring.
    Open

    export const HARMONY: Chain = {
      id: 1666600000,
      name: 'Harmony',
      rpcUrls: {
        primary: 'https://api.harmony.one',
    Severity: Major
    Found in packages/widget/src/constants/chains.ts and 22 other locations - About 2 hrs to fix
    packages/widget/src/constants/chains.ts on lines 4..23
    packages/widget/src/constants/chains.ts on lines 25..44
    packages/widget/src/constants/chains.ts on lines 46..65
    packages/widget/src/constants/chains.ts on lines 67..86
    packages/widget/src/constants/chains.ts on lines 88..107
    packages/widget/src/constants/chains.ts on lines 109..128
    packages/widget/src/constants/chains.ts on lines 130..149
    packages/widget/src/constants/chains.ts on lines 151..170
    packages/widget/src/constants/chains.ts on lines 172..191
    packages/widget/src/constants/chains.ts on lines 193..212
    packages/widget/src/constants/chains.ts on lines 214..233
    packages/widget/src/constants/chains.ts on lines 235..254
    packages/widget/src/constants/chains.ts on lines 256..275
    packages/widget/src/constants/chains.ts on lines 277..296
    packages/widget/src/constants/chains.ts on lines 319..338
    packages/widget/src/constants/chains.ts on lines 340..359
    packages/widget/src/constants/chains.ts on lines 361..380
    packages/widget/src/constants/chains.ts on lines 382..401
    packages/widget/src/constants/chains.ts on lines 403..423
    packages/widget/src/constants/chains.ts on lines 425..444
    packages/widget/src/constants/chains.ts on lines 446..465
    packages/widget/src/constants/chains.ts on lines 467..486

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 94.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 23 locations. Consider refactoring.
    Open

    export const MOONRIVER: Chain = {
      id: 1285,
      name: 'Moonriver',
      rpcUrls: {
        primary: 'https://rpc.api.moonriver.moonbeam.network',
    Severity: Major
    Found in packages/widget/src/constants/chains.ts and 22 other locations - About 2 hrs to fix
    packages/widget/src/constants/chains.ts on lines 4..23
    packages/widget/src/constants/chains.ts on lines 25..44
    packages/widget/src/constants/chains.ts on lines 46..65
    packages/widget/src/constants/chains.ts on lines 67..86
    packages/widget/src/constants/chains.ts on lines 88..107
    packages/widget/src/constants/chains.ts on lines 109..128
    packages/widget/src/constants/chains.ts on lines 130..149
    packages/widget/src/constants/chains.ts on lines 151..170
    packages/widget/src/constants/chains.ts on lines 172..191
    packages/widget/src/constants/chains.ts on lines 193..212
    packages/widget/src/constants/chains.ts on lines 214..233
    packages/widget/src/constants/chains.ts on lines 235..254
    packages/widget/src/constants/chains.ts on lines 256..275
    packages/widget/src/constants/chains.ts on lines 277..296
    packages/widget/src/constants/chains.ts on lines 298..317
    packages/widget/src/constants/chains.ts on lines 319..338
    packages/widget/src/constants/chains.ts on lines 361..380
    packages/widget/src/constants/chains.ts on lines 382..401
    packages/widget/src/constants/chains.ts on lines 403..423
    packages/widget/src/constants/chains.ts on lines 425..444
    packages/widget/src/constants/chains.ts on lines 446..465
    packages/widget/src/constants/chains.ts on lines 467..486

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 94.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    There are no issues that match your filters.

    Category
    Status