synapsecns/sanguine

View on GitHub

Showing 13,422 of 13,422 total issues

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

func (ec *executionContext) _HistoricalResult_type(ctx context.Context, field graphql.CollectedField, obj *model.HistoricalResult) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_HistoricalResult_type(ctx, field)
    if err != nil {
        return graphql.Null
    }
Severity: Major
Found in services/explorer/graphql/server/graph/resolver/server.go and 8 other locations - About 4 hrs to fix
services/explorer/graphql/server/graph/resolver/server.go on lines 3255..3281
services/explorer/graphql/server/graph/resolver/server.go on lines 3337..3363
services/explorer/graphql/server/graph/resolver/server.go on lines 3408..3434
services/explorer/graphql/server/graph/resolver/server.go on lines 3643..3669
services/explorer/graphql/server/graph/resolver/server.go on lines 3755..3781
services/explorer/graphql/server/graph/resolver/server.go on lines 3837..3863
services/explorer/graphql/server/graph/resolver/server.go on lines 5489..5515
services/explorer/graphql/server/graph/resolver/server.go on lines 5556..5582

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

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 9 locations. Consider refactoring.
Open

func (ec *executionContext) _BridgeWatcherTx_kappaStatus(ctx context.Context, field graphql.CollectedField, obj *model.BridgeWatcherTx) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_BridgeWatcherTx_kappaStatus(ctx, field)
    if err != nil {
        return graphql.Null
    }
Severity: Major
Found in services/explorer/graphql/server/graph/resolver/server.go and 8 other locations - About 4 hrs to fix
services/explorer/graphql/server/graph/resolver/server.go on lines 3255..3281
services/explorer/graphql/server/graph/resolver/server.go on lines 3337..3363
services/explorer/graphql/server/graph/resolver/server.go on lines 3408..3434
services/explorer/graphql/server/graph/resolver/server.go on lines 3643..3669
services/explorer/graphql/server/graph/resolver/server.go on lines 3755..3781
services/explorer/graphql/server/graph/resolver/server.go on lines 5202..5228
services/explorer/graphql/server/graph/resolver/server.go on lines 5489..5515
services/explorer/graphql/server/graph/resolver/server.go on lines 5556..5582

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

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 9 locations. Consider refactoring.
Open

func (ec *executionContext) _BridgeTransaction_fromInfo(ctx context.Context, field graphql.CollectedField, obj *model.BridgeTransaction) (ret graphql.Marshaler) {
    fc, err := ec.fieldContext_BridgeTransaction_fromInfo(ctx, field)
    if err != nil {
        return graphql.Null
    }
Severity: Major
Found in services/explorer/graphql/server/graph/resolver/server.go and 8 other locations - About 4 hrs to fix
services/explorer/graphql/server/graph/resolver/server.go on lines 3255..3281
services/explorer/graphql/server/graph/resolver/server.go on lines 3408..3434
services/explorer/graphql/server/graph/resolver/server.go on lines 3643..3669
services/explorer/graphql/server/graph/resolver/server.go on lines 3755..3781
services/explorer/graphql/server/graph/resolver/server.go on lines 3837..3863
services/explorer/graphql/server/graph/resolver/server.go on lines 5202..5228
services/explorer/graphql/server/graph/resolver/server.go on lines 5489..5515
services/explorer/graphql/server/graph/resolver/server.go on lines 5556..5582

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

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 3 locations. Consider refactoring.
Open

  describe('#divide', () => {
    it('returns a percent', () => {
      expect(new Percent(1, 100).divide(new Percent(2, 100))).toEqual(
        new Percent(100, 200)
      )
Severity: Major
Found in packages/sdk-router/src/entities/fractions/percent.test.ts and 2 other locations - About 4 hrs to fix
packages/sdk-router/src/entities/fractions/percent.test.ts on lines 9..20
packages/sdk-router/src/entities/fractions/percent.test.ts on lines 33..44

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

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 3 locations. Consider refactoring.
Open

  describe('#multiply', () => {
    it('returns a percent', () => {
      expect(new Percent(1, 100).multiply(new Percent(2, 100))).toEqual(
        new Percent(2, 10000)
      )
Severity: Major
Found in packages/sdk-router/src/entities/fractions/percent.test.ts and 2 other locations - About 4 hrs to fix
packages/sdk-router/src/entities/fractions/percent.test.ts on lines 9..20
packages/sdk-router/src/entities/fractions/percent.test.ts on lines 45..56

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

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 3 locations. Consider refactoring.
Open

  describe('#add', () => {
    it('returns a percent', () => {
      expect(new Percent(1, 100).add(new Percent(2, 100))).toEqual(
        new Percent(3, 100)
      )
Severity: Major
Found in packages/sdk-router/src/entities/fractions/percent.test.ts and 2 other locations - About 4 hrs to fix
packages/sdk-router/src/entities/fractions/percent.test.ts on lines 33..44
packages/sdk-router/src/entities/fractions/percent.test.ts on lines 45..56

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

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

Function LandingNav has 99 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const LandingNav = () => {
  const topBarBtns = <TopBarButtons />
  const mobileBarBtns = <MobileBarButtons />
  const moreInfoBtns = <MoreInfoButtons />
  const socialBtns = <SocialButtons />
Severity: Major
Found in packages/explorer-ui/components/layouts/MainLayout/index.tsx - About 3 hrs to fix

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

    export const KLAYTN: Chain = {
      priorityRank: 70,
      id: 8217,
      chainSymbol: 'KLAYTN',
      name: 'Klaytn',
    Severity: Major
    Found in packages/synapse-constants/src/constants/chains/master.ts and 15 other locations - About 3 hrs to fix
    packages/synapse-constants/src/constants/chains/master.ts on lines 29..49
    packages/synapse-constants/src/constants/chains/master.ts on lines 74..94
    packages/synapse-constants/src/constants/chains/master.ts on lines 96..116
    packages/synapse-constants/src/constants/chains/master.ts on lines 118..138
    packages/synapse-constants/src/constants/chains/master.ts on lines 140..160
    packages/synapse-constants/src/constants/chains/master.ts on lines 162..182
    packages/synapse-constants/src/constants/chains/master.ts on lines 206..226
    packages/synapse-constants/src/constants/chains/master.ts on lines 228..248
    packages/synapse-constants/src/constants/chains/master.ts on lines 250..270
    packages/synapse-constants/src/constants/chains/master.ts on lines 272..292
    packages/synapse-constants/src/constants/chains/master.ts on lines 294..314
    packages/synapse-constants/src/constants/chains/master.ts on lines 316..336
    packages/synapse-constants/src/constants/chains/master.ts on lines 338..358
    packages/synapse-constants/src/constants/chains/master.ts on lines 360..380
    packages/synapse-constants/src/constants/chains/master.ts on lines 382..402

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

    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 16 locations. Consider refactoring.
    Open

    export const AVALANCHE: Chain = {
      priorityRank: 90,
      id: 43114,
      chainSymbol: 'AVALANCHE',
      name: 'Avalanche',
    Severity: Major
    Found in packages/synapse-constants/src/constants/chains/master.ts and 15 other locations - About 3 hrs to fix
    packages/synapse-constants/src/constants/chains/master.ts on lines 29..49
    packages/synapse-constants/src/constants/chains/master.ts on lines 96..116
    packages/synapse-constants/src/constants/chains/master.ts on lines 118..138
    packages/synapse-constants/src/constants/chains/master.ts on lines 140..160
    packages/synapse-constants/src/constants/chains/master.ts on lines 162..182
    packages/synapse-constants/src/constants/chains/master.ts on lines 184..204
    packages/synapse-constants/src/constants/chains/master.ts on lines 206..226
    packages/synapse-constants/src/constants/chains/master.ts on lines 228..248
    packages/synapse-constants/src/constants/chains/master.ts on lines 250..270
    packages/synapse-constants/src/constants/chains/master.ts on lines 272..292
    packages/synapse-constants/src/constants/chains/master.ts on lines 294..314
    packages/synapse-constants/src/constants/chains/master.ts on lines 316..336
    packages/synapse-constants/src/constants/chains/master.ts on lines 338..358
    packages/synapse-constants/src/constants/chains/master.ts on lines 360..380
    packages/synapse-constants/src/constants/chains/master.ts on lines 382..402

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

    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 16 locations. Consider refactoring.
    Open

    export const METIS: Chain = {
      priorityRank: 10,
      id: 1088,
      chainSymbol: 'METIS',
      name: 'Metis',
    Severity: Major
    Found in packages/synapse-constants/src/constants/chains/master.ts and 15 other locations - About 3 hrs to fix
    packages/synapse-constants/src/constants/chains/master.ts on lines 29..49
    packages/synapse-constants/src/constants/chains/master.ts on lines 74..94
    packages/synapse-constants/src/constants/chains/master.ts on lines 96..116
    packages/synapse-constants/src/constants/chains/master.ts on lines 118..138
    packages/synapse-constants/src/constants/chains/master.ts on lines 140..160
    packages/synapse-constants/src/constants/chains/master.ts on lines 162..182
    packages/synapse-constants/src/constants/chains/master.ts on lines 184..204
    packages/synapse-constants/src/constants/chains/master.ts on lines 206..226
    packages/synapse-constants/src/constants/chains/master.ts on lines 228..248
    packages/synapse-constants/src/constants/chains/master.ts on lines 250..270
    packages/synapse-constants/src/constants/chains/master.ts on lines 294..314
    packages/synapse-constants/src/constants/chains/master.ts on lines 316..336
    packages/synapse-constants/src/constants/chains/master.ts on lines 338..358
    packages/synapse-constants/src/constants/chains/master.ts on lines 360..380
    packages/synapse-constants/src/constants/chains/master.ts on lines 382..402

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

    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 6 locations. Consider refactoring.
    Open

    export const SCROLL: Chain = {
      priorityRank: 90,
      id: 534352,
      chainSymbol: 'SCROLL',
      name: 'Scroll',
    Severity: Major
    Found in packages/synapse-constants/src/constants/chains/master.ts and 5 other locations - About 3 hrs to fix
    packages/synapse-constants/src/constants/chains/master.ts on lines 3..27
    packages/synapse-constants/src/constants/chains/master.ts on lines 404..428
    packages/synapse-constants/src/constants/chains/master.ts on lines 430..454
    packages/synapse-constants/src/constants/chains/master.ts on lines 482..506
    packages/synapse-constants/src/constants/chains/master.ts on lines 508..532

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

    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 16 locations. Consider refactoring.
    Open

    export const ARBITRUM: Chain = {
      priorityRank: 90,
      id: 42161,
      chainSymbol: 'ARBITRUM',
      name: 'Arbitrum',
    Severity: Major
    Found in packages/synapse-constants/src/constants/chains/master.ts and 15 other locations - About 3 hrs to fix
    packages/synapse-constants/src/constants/chains/master.ts on lines 74..94
    packages/synapse-constants/src/constants/chains/master.ts on lines 96..116
    packages/synapse-constants/src/constants/chains/master.ts on lines 118..138
    packages/synapse-constants/src/constants/chains/master.ts on lines 140..160
    packages/synapse-constants/src/constants/chains/master.ts on lines 162..182
    packages/synapse-constants/src/constants/chains/master.ts on lines 184..204
    packages/synapse-constants/src/constants/chains/master.ts on lines 206..226
    packages/synapse-constants/src/constants/chains/master.ts on lines 228..248
    packages/synapse-constants/src/constants/chains/master.ts on lines 250..270
    packages/synapse-constants/src/constants/chains/master.ts on lines 272..292
    packages/synapse-constants/src/constants/chains/master.ts on lines 294..314
    packages/synapse-constants/src/constants/chains/master.ts on lines 316..336
    packages/synapse-constants/src/constants/chains/master.ts on lines 338..358
    packages/synapse-constants/src/constants/chains/master.ts on lines 360..380
    packages/synapse-constants/src/constants/chains/master.ts on lines 382..402

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

    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 16 locations. Consider refactoring.
    Open

    export const MOONBEAM: Chain = {
      priorityRank: 0,
      id: 1284,
      chainSymbol: 'MOONBEAM',
      name: 'Moonbeam',
    Severity: Major
    Found in packages/synapse-constants/src/constants/chains/master.ts and 15 other locations - About 3 hrs to fix
    packages/synapse-constants/src/constants/chains/master.ts on lines 29..49
    packages/synapse-constants/src/constants/chains/master.ts on lines 74..94
    packages/synapse-constants/src/constants/chains/master.ts on lines 96..116
    packages/synapse-constants/src/constants/chains/master.ts on lines 118..138
    packages/synapse-constants/src/constants/chains/master.ts on lines 140..160
    packages/synapse-constants/src/constants/chains/master.ts on lines 162..182
    packages/synapse-constants/src/constants/chains/master.ts on lines 184..204
    packages/synapse-constants/src/constants/chains/master.ts on lines 206..226
    packages/synapse-constants/src/constants/chains/master.ts on lines 228..248
    packages/synapse-constants/src/constants/chains/master.ts on lines 250..270
    packages/synapse-constants/src/constants/chains/master.ts on lines 272..292
    packages/synapse-constants/src/constants/chains/master.ts on lines 294..314
    packages/synapse-constants/src/constants/chains/master.ts on lines 316..336
    packages/synapse-constants/src/constants/chains/master.ts on lines 360..380
    packages/synapse-constants/src/constants/chains/master.ts on lines 382..402

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

    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 6 locations. Consider refactoring.
    Open

    export const BLAST: Chain = {
      priorityRank: 90,
      id: 81457,
      chainSymbol: 'ETH',
      name: 'Blast',
    Severity: Major
    Found in packages/synapse-constants/src/constants/chains/master.ts and 5 other locations - About 3 hrs to fix
    packages/synapse-constants/src/constants/chains/master.ts on lines 3..27
    packages/synapse-constants/src/constants/chains/master.ts on lines 404..428
    packages/synapse-constants/src/constants/chains/master.ts on lines 456..480
    packages/synapse-constants/src/constants/chains/master.ts on lines 482..506
    packages/synapse-constants/src/constants/chains/master.ts on lines 508..532

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

    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 16 locations. Consider refactoring.
    Open

    export const DOGE: Chain = {
      priorityRank: 0,
      id: 2000,
      chainSymbol: 'DOGE',
      name: 'Dogechain',
    Severity: Major
    Found in packages/synapse-constants/src/constants/chains/master.ts and 15 other locations - About 3 hrs to fix
    packages/synapse-constants/src/constants/chains/master.ts on lines 29..49
    packages/synapse-constants/src/constants/chains/master.ts on lines 74..94
    packages/synapse-constants/src/constants/chains/master.ts on lines 96..116
    packages/synapse-constants/src/constants/chains/master.ts on lines 118..138
    packages/synapse-constants/src/constants/chains/master.ts on lines 140..160
    packages/synapse-constants/src/constants/chains/master.ts on lines 162..182
    packages/synapse-constants/src/constants/chains/master.ts on lines 184..204
    packages/synapse-constants/src/constants/chains/master.ts on lines 206..226
    packages/synapse-constants/src/constants/chains/master.ts on lines 228..248
    packages/synapse-constants/src/constants/chains/master.ts on lines 250..270
    packages/synapse-constants/src/constants/chains/master.ts on lines 272..292
    packages/synapse-constants/src/constants/chains/master.ts on lines 294..314
    packages/synapse-constants/src/constants/chains/master.ts on lines 316..336
    packages/synapse-constants/src/constants/chains/master.ts on lines 338..358
    packages/synapse-constants/src/constants/chains/master.ts on lines 360..380

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

    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 16 locations. Consider refactoring.
    Open

    export const FANTOM: Chain = {
      priorityRank: 70,
      id: 250,
      chainSymbol: 'FANTOM',
      name: 'Fantom',
    Severity: Major
    Found in packages/synapse-constants/src/constants/chains/master.ts and 15 other locations - About 3 hrs to fix
    packages/synapse-constants/src/constants/chains/master.ts on lines 29..49
    packages/synapse-constants/src/constants/chains/master.ts on lines 74..94
    packages/synapse-constants/src/constants/chains/master.ts on lines 96..116
    packages/synapse-constants/src/constants/chains/master.ts on lines 118..138
    packages/synapse-constants/src/constants/chains/master.ts on lines 140..160
    packages/synapse-constants/src/constants/chains/master.ts on lines 162..182
    packages/synapse-constants/src/constants/chains/master.ts on lines 184..204
    packages/synapse-constants/src/constants/chains/master.ts on lines 228..248
    packages/synapse-constants/src/constants/chains/master.ts on lines 250..270
    packages/synapse-constants/src/constants/chains/master.ts on lines 272..292
    packages/synapse-constants/src/constants/chains/master.ts on lines 294..314
    packages/synapse-constants/src/constants/chains/master.ts on lines 316..336
    packages/synapse-constants/src/constants/chains/master.ts on lines 338..358
    packages/synapse-constants/src/constants/chains/master.ts on lines 360..380
    packages/synapse-constants/src/constants/chains/master.ts on lines 382..402

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

    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 16 locations. Consider refactoring.
    Open

    export const MOONRIVER: Chain = {
      priorityRank: 0,
      id: 1285,
      chainSymbol: 'MOONRIVER',
      name: 'Moonriver',
    Severity: Major
    Found in packages/synapse-constants/src/constants/chains/master.ts and 15 other locations - About 3 hrs to fix
    packages/synapse-constants/src/constants/chains/master.ts on lines 29..49
    packages/synapse-constants/src/constants/chains/master.ts on lines 74..94
    packages/synapse-constants/src/constants/chains/master.ts on lines 96..116
    packages/synapse-constants/src/constants/chains/master.ts on lines 118..138
    packages/synapse-constants/src/constants/chains/master.ts on lines 140..160
    packages/synapse-constants/src/constants/chains/master.ts on lines 162..182
    packages/synapse-constants/src/constants/chains/master.ts on lines 184..204
    packages/synapse-constants/src/constants/chains/master.ts on lines 206..226
    packages/synapse-constants/src/constants/chains/master.ts on lines 228..248
    packages/synapse-constants/src/constants/chains/master.ts on lines 250..270
    packages/synapse-constants/src/constants/chains/master.ts on lines 272..292
    packages/synapse-constants/src/constants/chains/master.ts on lines 294..314
    packages/synapse-constants/src/constants/chains/master.ts on lines 316..336
    packages/synapse-constants/src/constants/chains/master.ts on lines 338..358
    packages/synapse-constants/src/constants/chains/master.ts on lines 382..402

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

    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 6 locations. Consider refactoring.
    Open

    export const BASE: Chain = {
      priorityRank: 90,
      id: 8453,
      chainSymbol: 'ETH',
      name: 'Base',
    Severity: Major
    Found in packages/synapse-constants/src/constants/chains/master.ts and 5 other locations - About 3 hrs to fix
    packages/synapse-constants/src/constants/chains/master.ts on lines 3..27
    packages/synapse-constants/src/constants/chains/master.ts on lines 430..454
    packages/synapse-constants/src/constants/chains/master.ts on lines 456..480
    packages/synapse-constants/src/constants/chains/master.ts on lines 482..506
    packages/synapse-constants/src/constants/chains/master.ts on lines 508..532

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

    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 4 locations. Consider refactoring.
    Open

      {
        inputs: [
          {
            internalType: 'address',
            name: 'pool',
    Severity: Major
    Found in packages/synapse-interface/constants/abis/synapseRouter.ts and 3 other locations - About 3 hrs to fix
    packages/synapse-interface/constants/abis/avSwapWrapper.ts on lines 243..276
    packages/synapse-interface/constants/abis/swap.ts on lines 797..830
    packages/synapse-interface/constants/abis/swapEthWrapper.ts on lines 261..294

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

    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 16 locations. Consider refactoring.
    Open

    export const HARMONY: Chain = {
      priorityRank: 10,
      id: 1666600000,
      chainSymbol: 'HARMONY',
      name: 'Harmony',
    Severity: Major
    Found in packages/synapse-constants/src/constants/chains/master.ts and 15 other locations - About 3 hrs to fix
    packages/synapse-constants/src/constants/chains/master.ts on lines 29..49
    packages/synapse-constants/src/constants/chains/master.ts on lines 74..94
    packages/synapse-constants/src/constants/chains/master.ts on lines 96..116
    packages/synapse-constants/src/constants/chains/master.ts on lines 118..138
    packages/synapse-constants/src/constants/chains/master.ts on lines 140..160
    packages/synapse-constants/src/constants/chains/master.ts on lines 162..182
    packages/synapse-constants/src/constants/chains/master.ts on lines 184..204
    packages/synapse-constants/src/constants/chains/master.ts on lines 206..226
    packages/synapse-constants/src/constants/chains/master.ts on lines 228..248
    packages/synapse-constants/src/constants/chains/master.ts on lines 250..270
    packages/synapse-constants/src/constants/chains/master.ts on lines 272..292
    packages/synapse-constants/src/constants/chains/master.ts on lines 294..314
    packages/synapse-constants/src/constants/chains/master.ts on lines 338..358
    packages/synapse-constants/src/constants/chains/master.ts on lines 360..380
    packages/synapse-constants/src/constants/chains/master.ts on lines 382..402

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

    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

    Severity
    Category
    Status
    Source
    Language