synapsecns/sanguine

View on GitHub

Showing 13,422 of 13,422 total issues

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

    mux.Handle("POST", pattern_ScribeService_Check_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
        ctx, cancel := context.WithCancel(req.Context())
        defer cancel()
        var stream runtime.ServerTransportStream
        ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
Severity: Major
Found in services/scribe/grpc/types/types/v1/service.pb.gw.go and 1 other location - About 4 hrs to fix
services/scribe/grpc/types/types/v1/service.pb.gw.go on lines 190..213

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

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

func (_m *ILightInbox) SubmitAttestationReport(opts *bind.TransactOpts, attPayload []byte, arSignature []byte, attSignature []byte) (*types.Transaction, error) {
    ret := _m.Called(opts, attPayload, arSignature, attSignature)

    var r0 *types.Transaction
    if rf, ok := ret.Get(0).(func(*bind.TransactOpts, []byte, []byte, []byte) *types.Transaction); ok {
Severity: Major
Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 1 other location - About 4 hrs to fix
agents/contracts/inbox/mocks/i_inbox.go on lines 993..1013

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

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

func (_m *IInbox) SubmitReceiptReport(opts *bind.TransactOpts, rcptPayload []byte, rcptSignature []byte, rrSignature []byte) (*types.Transaction, error) {
    ret := _m.Called(opts, rcptPayload, rcptSignature, rrSignature)

    var r0 *types.Transaction
    if rf, ok := ret.Get(0).(func(*bind.TransactOpts, []byte, []byte, []byte) *types.Transaction); ok {
Severity: Major
Found in agents/contracts/inbox/mocks/i_inbox.go and 1 other location - About 4 hrs to fix
agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 786..806

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

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

    mux.Handle("POST", pattern_ScribeService_FilterLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
        ctx, cancel := context.WithCancel(req.Context())
        defer cancel()
        var stream runtime.ServerTransportStream
        ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
Severity: Major
Found in services/scribe/grpc/types/types/v1/service.pb.gw.go and 1 other location - About 4 hrs to fix
services/scribe/grpc/types/types/v1/service.pb.gw.go on lines 158..181

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

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 DFK: Chain = {
  priorityRank: 75,
  id: 53935,
  chainSymbol: 'DFK',
  name: 'DFK Chain',
Severity: Major
Found in packages/synapse-interface/constants/chains/master.tsx and 15 other locations - About 4 hrs to fix
packages/synapse-interface/constants/chains/master.tsx on lines 63..87
packages/synapse-interface/constants/chains/master.tsx on lines 115..138
packages/synapse-interface/constants/chains/master.tsx on lines 140..163
packages/synapse-interface/constants/chains/master.tsx on lines 165..189
packages/synapse-interface/constants/chains/master.tsx on lines 191..215
packages/synapse-interface/constants/chains/master.tsx on lines 242..265
packages/synapse-interface/constants/chains/master.tsx on lines 267..290
packages/synapse-interface/constants/chains/master.tsx on lines 292..315
packages/synapse-interface/constants/chains/master.tsx on lines 317..340
packages/synapse-interface/constants/chains/master.tsx on lines 342..365
packages/synapse-interface/constants/chains/master.tsx on lines 367..390
packages/synapse-interface/constants/chains/master.tsx on lines 392..415
packages/synapse-interface/constants/chains/master.tsx on lines 417..440
packages/synapse-interface/constants/chains/master.tsx on lines 442..465
packages/synapse-interface/constants/chains/master.tsx on lines 467..490

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

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 BOBA: Chain = {
  priorityRank: 10,
  id: 288,
  chainSymbol: 'BOBA',
  name: 'Boba Chain',
Severity: Major
Found in packages/synapse-interface/constants/chains/master.tsx and 15 other locations - About 4 hrs to fix
packages/synapse-interface/constants/chains/master.tsx on lines 63..87
packages/synapse-interface/constants/chains/master.tsx on lines 115..138
packages/synapse-interface/constants/chains/master.tsx on lines 140..163
packages/synapse-interface/constants/chains/master.tsx on lines 165..189
packages/synapse-interface/constants/chains/master.tsx on lines 191..215
packages/synapse-interface/constants/chains/master.tsx on lines 217..240
packages/synapse-interface/constants/chains/master.tsx on lines 242..265
packages/synapse-interface/constants/chains/master.tsx on lines 267..290
packages/synapse-interface/constants/chains/master.tsx on lines 292..315
packages/synapse-interface/constants/chains/master.tsx on lines 342..365
packages/synapse-interface/constants/chains/master.tsx on lines 367..390
packages/synapse-interface/constants/chains/master.tsx on lines 392..415
packages/synapse-interface/constants/chains/master.tsx on lines 417..440
packages/synapse-interface/constants/chains/master.tsx on lines 442..465
packages/synapse-interface/constants/chains/master.tsx on lines 467..490

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

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

export const WORLDCHAIN: Chain = {
  priorityRank: 99,
  id: 480,
  chainSymbol: 'WORLDCHAIN',
  name: 'World Chain',
Severity: Major
Found in packages/synapse-interface/constants/chains/master.tsx and 4 other locations - About 4 hrs to fix
packages/synapse-interface/constants/chains/master.tsx on lines 37..61
packages/synapse-interface/constants/chains/master.tsx on lines 492..516
packages/synapse-interface/constants/chains/master.tsx on lines 518..542
packages/synapse-interface/constants/chains/master.tsx on lines 544..567

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

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-interface/constants/chains/master.tsx and 15 other locations - About 4 hrs to fix
packages/synapse-interface/constants/chains/master.tsx on lines 63..87
packages/synapse-interface/constants/chains/master.tsx on lines 140..163
packages/synapse-interface/constants/chains/master.tsx on lines 165..189
packages/synapse-interface/constants/chains/master.tsx on lines 191..215
packages/synapse-interface/constants/chains/master.tsx on lines 217..240
packages/synapse-interface/constants/chains/master.tsx on lines 242..265
packages/synapse-interface/constants/chains/master.tsx on lines 267..290
packages/synapse-interface/constants/chains/master.tsx on lines 292..315
packages/synapse-interface/constants/chains/master.tsx on lines 317..340
packages/synapse-interface/constants/chains/master.tsx on lines 342..365
packages/synapse-interface/constants/chains/master.tsx on lines 367..390
packages/synapse-interface/constants/chains/master.tsx on lines 392..415
packages/synapse-interface/constants/chains/master.tsx on lines 417..440
packages/synapse-interface/constants/chains/master.tsx on lines 442..465
packages/synapse-interface/constants/chains/master.tsx on lines 467..490

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

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-interface/constants/chains/master.tsx and 15 other locations - About 4 hrs to fix
packages/synapse-interface/constants/chains/master.tsx on lines 63..87
packages/synapse-interface/constants/chains/master.tsx on lines 115..138
packages/synapse-interface/constants/chains/master.tsx on lines 140..163
packages/synapse-interface/constants/chains/master.tsx on lines 165..189
packages/synapse-interface/constants/chains/master.tsx on lines 191..215
packages/synapse-interface/constants/chains/master.tsx on lines 217..240
packages/synapse-interface/constants/chains/master.tsx on lines 242..265
packages/synapse-interface/constants/chains/master.tsx on lines 267..290
packages/synapse-interface/constants/chains/master.tsx on lines 292..315
packages/synapse-interface/constants/chains/master.tsx on lines 317..340
packages/synapse-interface/constants/chains/master.tsx on lines 342..365
packages/synapse-interface/constants/chains/master.tsx on lines 367..390
packages/synapse-interface/constants/chains/master.tsx on lines 417..440
packages/synapse-interface/constants/chains/master.tsx on lines 442..465
packages/synapse-interface/constants/chains/master.tsx on lines 467..490

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

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-interface/constants/chains/master.tsx and 15 other locations - About 4 hrs to fix
packages/synapse-interface/constants/chains/master.tsx on lines 115..138
packages/synapse-interface/constants/chains/master.tsx on lines 140..163
packages/synapse-interface/constants/chains/master.tsx on lines 165..189
packages/synapse-interface/constants/chains/master.tsx on lines 191..215
packages/synapse-interface/constants/chains/master.tsx on lines 217..240
packages/synapse-interface/constants/chains/master.tsx on lines 242..265
packages/synapse-interface/constants/chains/master.tsx on lines 267..290
packages/synapse-interface/constants/chains/master.tsx on lines 292..315
packages/synapse-interface/constants/chains/master.tsx on lines 317..340
packages/synapse-interface/constants/chains/master.tsx on lines 342..365
packages/synapse-interface/constants/chains/master.tsx on lines 367..390
packages/synapse-interface/constants/chains/master.tsx on lines 392..415
packages/synapse-interface/constants/chains/master.tsx on lines 417..440
packages/synapse-interface/constants/chains/master.tsx on lines 442..465
packages/synapse-interface/constants/chains/master.tsx on lines 467..490

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

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 OPTIMISM: Chain = {
  priorityRank: 91,
  id: 10,
  chainSymbol: 'OPTIMISM',
  name: 'Optimism',
Severity: Major
Found in packages/synapse-interface/constants/chains/master.tsx and 15 other locations - About 4 hrs to fix
packages/synapse-interface/constants/chains/master.tsx on lines 63..87
packages/synapse-interface/constants/chains/master.tsx on lines 115..138
packages/synapse-interface/constants/chains/master.tsx on lines 140..163
packages/synapse-interface/constants/chains/master.tsx on lines 191..215
packages/synapse-interface/constants/chains/master.tsx on lines 217..240
packages/synapse-interface/constants/chains/master.tsx on lines 242..265
packages/synapse-interface/constants/chains/master.tsx on lines 267..290
packages/synapse-interface/constants/chains/master.tsx on lines 292..315
packages/synapse-interface/constants/chains/master.tsx on lines 317..340
packages/synapse-interface/constants/chains/master.tsx on lines 342..365
packages/synapse-interface/constants/chains/master.tsx on lines 367..390
packages/synapse-interface/constants/chains/master.tsx on lines 392..415
packages/synapse-interface/constants/chains/master.tsx on lines 417..440
packages/synapse-interface/constants/chains/master.tsx on lines 442..465
packages/synapse-interface/constants/chains/master.tsx on lines 467..490

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

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

export const ETH: Chain = {
  priorityRank: 100,
  id: 1,
  chainSymbol: 'ETH',
  name: 'Ethereum',
Severity: Major
Found in packages/synapse-interface/constants/chains/master.tsx and 4 other locations - About 4 hrs to fix
packages/synapse-interface/constants/chains/master.tsx on lines 492..516
packages/synapse-interface/constants/chains/master.tsx on lines 518..542
packages/synapse-interface/constants/chains/master.tsx on lines 544..567
packages/synapse-interface/constants/chains/master.tsx on lines 595..619

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

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

export const BASE: Chain = {
  priorityRank: 90,
  id: 8453,
  chainSymbol: 'BASE',
  name: 'Base',
Severity: Major
Found in packages/synapse-interface/constants/chains/master.tsx and 4 other locations - About 4 hrs to fix
packages/synapse-interface/constants/chains/master.tsx on lines 37..61
packages/synapse-interface/constants/chains/master.tsx on lines 518..542
packages/synapse-interface/constants/chains/master.tsx on lines 544..567
packages/synapse-interface/constants/chains/master.tsx on lines 595..619

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

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 POLYGON: Chain = {
  priorityRank: 80,
  id: 137,
  chainSymbol: 'POLYGON',
  name: 'Polygon',
Severity: Major
Found in packages/synapse-interface/constants/chains/master.tsx and 15 other locations - About 4 hrs to fix
packages/synapse-interface/constants/chains/master.tsx on lines 63..87
packages/synapse-interface/constants/chains/master.tsx on lines 115..138
packages/synapse-interface/constants/chains/master.tsx on lines 140..163
packages/synapse-interface/constants/chains/master.tsx on lines 165..189
packages/synapse-interface/constants/chains/master.tsx on lines 217..240
packages/synapse-interface/constants/chains/master.tsx on lines 242..265
packages/synapse-interface/constants/chains/master.tsx on lines 267..290
packages/synapse-interface/constants/chains/master.tsx on lines 292..315
packages/synapse-interface/constants/chains/master.tsx on lines 317..340
packages/synapse-interface/constants/chains/master.tsx on lines 342..365
packages/synapse-interface/constants/chains/master.tsx on lines 367..390
packages/synapse-interface/constants/chains/master.tsx on lines 392..415
packages/synapse-interface/constants/chains/master.tsx on lines 417..440
packages/synapse-interface/constants/chains/master.tsx on lines 442..465
packages/synapse-interface/constants/chains/master.tsx on lines 467..490

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

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 CANTO: Chain = {
  priorityRank: 70,
  id: 7700,
  chainSymbol: 'CANTO',
  name: 'Canto',
Severity: Major
Found in packages/synapse-interface/constants/chains/master.tsx and 15 other locations - About 4 hrs to fix
packages/synapse-interface/constants/chains/master.tsx on lines 63..87
packages/synapse-interface/constants/chains/master.tsx on lines 115..138
packages/synapse-interface/constants/chains/master.tsx on lines 165..189
packages/synapse-interface/constants/chains/master.tsx on lines 191..215
packages/synapse-interface/constants/chains/master.tsx on lines 217..240
packages/synapse-interface/constants/chains/master.tsx on lines 242..265
packages/synapse-interface/constants/chains/master.tsx on lines 267..290
packages/synapse-interface/constants/chains/master.tsx on lines 292..315
packages/synapse-interface/constants/chains/master.tsx on lines 317..340
packages/synapse-interface/constants/chains/master.tsx on lines 342..365
packages/synapse-interface/constants/chains/master.tsx on lines 367..390
packages/synapse-interface/constants/chains/master.tsx on lines 392..415
packages/synapse-interface/constants/chains/master.tsx on lines 417..440
packages/synapse-interface/constants/chains/master.tsx on lines 442..465
packages/synapse-interface/constants/chains/master.tsx on lines 467..490

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

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 KLAYTN: Chain = {
  priorityRank: 70,
  id: 8217,
  chainSymbol: 'KLAYTN',
  name: 'Klaytn',
Severity: Major
Found in packages/synapse-interface/constants/chains/master.tsx and 15 other locations - About 4 hrs to fix
packages/synapse-interface/constants/chains/master.tsx on lines 63..87
packages/synapse-interface/constants/chains/master.tsx on lines 115..138
packages/synapse-interface/constants/chains/master.tsx on lines 140..163
packages/synapse-interface/constants/chains/master.tsx on lines 165..189
packages/synapse-interface/constants/chains/master.tsx on lines 191..215
packages/synapse-interface/constants/chains/master.tsx on lines 217..240
packages/synapse-interface/constants/chains/master.tsx on lines 267..290
packages/synapse-interface/constants/chains/master.tsx on lines 292..315
packages/synapse-interface/constants/chains/master.tsx on lines 317..340
packages/synapse-interface/constants/chains/master.tsx on lines 342..365
packages/synapse-interface/constants/chains/master.tsx on lines 367..390
packages/synapse-interface/constants/chains/master.tsx on lines 392..415
packages/synapse-interface/constants/chains/master.tsx on lines 417..440
packages/synapse-interface/constants/chains/master.tsx on lines 442..465
packages/synapse-interface/constants/chains/master.tsx on lines 467..490

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

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-interface/constants/chains/master.tsx and 15 other locations - About 4 hrs to fix
packages/synapse-interface/constants/chains/master.tsx on lines 63..87
packages/synapse-interface/constants/chains/master.tsx on lines 115..138
packages/synapse-interface/constants/chains/master.tsx on lines 140..163
packages/synapse-interface/constants/chains/master.tsx on lines 165..189
packages/synapse-interface/constants/chains/master.tsx on lines 191..215
packages/synapse-interface/constants/chains/master.tsx on lines 217..240
packages/synapse-interface/constants/chains/master.tsx on lines 242..265
packages/synapse-interface/constants/chains/master.tsx on lines 267..290
packages/synapse-interface/constants/chains/master.tsx on lines 292..315
packages/synapse-interface/constants/chains/master.tsx on lines 317..340
packages/synapse-interface/constants/chains/master.tsx on lines 342..365
packages/synapse-interface/constants/chains/master.tsx on lines 367..390
packages/synapse-interface/constants/chains/master.tsx on lines 392..415
packages/synapse-interface/constants/chains/master.tsx on lines 417..440
packages/synapse-interface/constants/chains/master.tsx on lines 442..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 119.

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-interface/constants/chains/master.tsx and 15 other locations - About 4 hrs to fix
packages/synapse-interface/constants/chains/master.tsx on lines 63..87
packages/synapse-interface/constants/chains/master.tsx on lines 115..138
packages/synapse-interface/constants/chains/master.tsx on lines 140..163
packages/synapse-interface/constants/chains/master.tsx on lines 165..189
packages/synapse-interface/constants/chains/master.tsx on lines 191..215
packages/synapse-interface/constants/chains/master.tsx on lines 217..240
packages/synapse-interface/constants/chains/master.tsx on lines 242..265
packages/synapse-interface/constants/chains/master.tsx on lines 267..290
packages/synapse-interface/constants/chains/master.tsx on lines 292..315
packages/synapse-interface/constants/chains/master.tsx on lines 317..340
packages/synapse-interface/constants/chains/master.tsx on lines 342..365
packages/synapse-interface/constants/chains/master.tsx on lines 367..390
packages/synapse-interface/constants/chains/master.tsx on lines 392..415
packages/synapse-interface/constants/chains/master.tsx on lines 417..440
packages/synapse-interface/constants/chains/master.tsx on lines 467..490

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

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-interface/constants/chains/master.tsx and 15 other locations - About 4 hrs to fix
packages/synapse-interface/constants/chains/master.tsx on lines 63..87
packages/synapse-interface/constants/chains/master.tsx on lines 115..138
packages/synapse-interface/constants/chains/master.tsx on lines 140..163
packages/synapse-interface/constants/chains/master.tsx on lines 165..189
packages/synapse-interface/constants/chains/master.tsx on lines 191..215
packages/synapse-interface/constants/chains/master.tsx on lines 217..240
packages/synapse-interface/constants/chains/master.tsx on lines 242..265
packages/synapse-interface/constants/chains/master.tsx on lines 292..315
packages/synapse-interface/constants/chains/master.tsx on lines 317..340
packages/synapse-interface/constants/chains/master.tsx on lines 342..365
packages/synapse-interface/constants/chains/master.tsx on lines 367..390
packages/synapse-interface/constants/chains/master.tsx on lines 392..415
packages/synapse-interface/constants/chains/master.tsx on lines 417..440
packages/synapse-interface/constants/chains/master.tsx on lines 442..465
packages/synapse-interface/constants/chains/master.tsx on lines 467..490

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

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-interface/constants/chains/master.tsx and 15 other locations - About 4 hrs to fix
packages/synapse-interface/constants/chains/master.tsx on lines 63..87
packages/synapse-interface/constants/chains/master.tsx on lines 115..138
packages/synapse-interface/constants/chains/master.tsx on lines 140..163
packages/synapse-interface/constants/chains/master.tsx on lines 165..189
packages/synapse-interface/constants/chains/master.tsx on lines 191..215
packages/synapse-interface/constants/chains/master.tsx on lines 217..240
packages/synapse-interface/constants/chains/master.tsx on lines 242..265
packages/synapse-interface/constants/chains/master.tsx on lines 267..290
packages/synapse-interface/constants/chains/master.tsx on lines 292..315
packages/synapse-interface/constants/chains/master.tsx on lines 317..340
packages/synapse-interface/constants/chains/master.tsx on lines 342..365
packages/synapse-interface/constants/chains/master.tsx on lines 367..390
packages/synapse-interface/constants/chains/master.tsx on lines 392..415
packages/synapse-interface/constants/chains/master.tsx on lines 442..465
packages/synapse-interface/constants/chains/master.tsx on lines 467..490

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

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