polkadot-js/api

View on GitHub
packages/api-augment/src/polkadot/errors.ts

Summary

Maintainability
F
1 mo
Test Coverage

File errors.ts has 550 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
/* eslint-disable */

// import type lookup before we augment - in some environments
// this is required to allow for ambient/previous definitions
Severity: Major
Found in packages/api-augment/src/polkadot/errors.ts - About 1 day to fix

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

        nominationPools: {
          /**
           * An account is already delegating in another pool. An account may only belong to one
           * pool at a time.
           **/
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 4 other locations - About 3 days to fix
    packages/api-augment/src/kusama/errors.ts on lines 1153..1294
    packages/api-augment/src/kusama/errors.ts on lines 1946..2079
    packages/api-augment/src/substrate/errors.ts on lines 1885..2026
    packages/api-augment/src/substrate/errors.ts on lines 2591..2724

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

    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

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

        paraInclusion: {
          /**
           * Bitfield consists of zeros only.
           **/
          BitfieldAllZeros: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 1 other location - About 3 days to fix
    packages/api-augment/src/kusama/errors.ts on lines 1315..1441

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

    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

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

        staking: {
          /**
           * Stash is already bonded.
           **/
          AlreadyBonded: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 1 other location - About 3 days to fix
    packages/api-augment/src/kusama/errors.ts on lines 2080..2197

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

    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

    Identical blocks of code found in 3 locations. Consider refactoring.
    Open

        identity: {
          /**
           * Account ID is already named.
           **/
          AlreadyClaimed: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 2 other locations - About 3 days to fix
    packages/api-augment/src/kusama/errors.ts on lines 786..895
    packages/api-augment/src/substrate/errors.ts on lines 1306..1415

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

    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

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

        xcmPallet: {
          /**
           * The given account is not an identifiable sovereign account for any location.
           **/
          AccountNotSovereign: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 1 other location - About 2 days to fix
    packages/api-augment/src/kusama/errors.ts on lines 2404..2512

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

    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

        crowdloan: {
          /**
           * The fund is already in `NewRaise`
           **/
          AlreadyInNewRaise: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 2 other locations - About 2 days to fix
    packages/api-augment/src/kusama/errors.ts on lines 363..461
    packages/api-augment/src/substrate/errors.ts on lines 167..267

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

    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

        hrmp: {
          /**
           * The channel is already confirmed.
           **/
          AcceptHrmpChannelAlreadyConfirmed: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 3 other locations - About 2 days to fix
    packages/api-augment/src/kusama/errors.ts on lines 700..785
    packages/api-augment/src/substrate/errors.ts on lines 286..374
    packages/api-augment/src/substrate/errors.ts on lines 2027..2115

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

    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

        electionProviderMultiPhase: {
          /**
           * Some bound not met
           **/
          BoundNotMet: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 4 other locations - About 1 day to fix
    packages/api-augment/src/kusama/errors.ts on lines 462..527
    packages/api-augment/src/kusama/errors.ts on lines 1032..1098
    packages/api-augment/src/substrate/errors.ts on lines 1082..1147
    packages/api-augment/src/substrate/errors.ts on lines 1818..1884

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

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

        registrar: {
          /**
           * The ID is already registered.
           **/
          AlreadyRegistered: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 6 other locations - About 1 day to fix
    packages/api-augment/src/kusama/errors.ts on lines 970..1031
    packages/api-augment/src/kusama/errors.ts on lines 1816..1879
    packages/api-augment/src/polkadot/errors.ts on lines 828..889
    packages/api-augment/src/substrate/errors.ts on lines 1548..1609
    packages/api-augment/src/substrate/errors.ts on lines 2238..2299
    packages/api-augment/src/substrate/errors.ts on lines 2370..2431

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

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

        multisig: {
          /**
           * Call is already approved by this signatory.
           **/
          AlreadyApproved: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 6 other locations - About 1 day to fix
    packages/api-augment/src/kusama/errors.ts on lines 970..1031
    packages/api-augment/src/kusama/errors.ts on lines 1816..1879
    packages/api-augment/src/polkadot/errors.ts on lines 1463..1526
    packages/api-augment/src/substrate/errors.ts on lines 1548..1609
    packages/api-augment/src/substrate/errors.ts on lines 2238..2299
    packages/api-augment/src/substrate/errors.ts on lines 2370..2431

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

    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

        referenda: {
          /**
           * The referendum index provided is invalid in this context.
           **/
          BadReferendum: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 2 other locations - About 1 day to fix
    packages/api-augment/src/kusama/errors.ts on lines 606..663
    packages/api-augment/src/kusama/errors.ts on lines 1758..1815

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

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

        paras: {
          /**
           * Para cannot be downgraded to an on-demand parachain.
           **/
          CannotDowngrade: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 12 other locations - About 1 day to fix
    packages/api-augment/src/kusama/errors.ts on lines 84..137
    packages/api-augment/src/kusama/errors.ts on lines 270..324
    packages/api-augment/src/kusama/errors.ts on lines 1099..1152
    packages/api-augment/src/kusama/errors.ts on lines 1485..1538
    packages/api-augment/src/kusama/errors.ts on lines 2276..2330
    packages/api-augment/src/polkadot/errors.ts on lines 84..137
    packages/api-augment/src/polkadot/errors.ts on lines 270..324
    packages/api-augment/src/polkadot/errors.ts on lines 1753..1807
    packages/api-augment/src/substrate/errors.ts on lines 397..450
    packages/api-augment/src/substrate/errors.ts on lines 830..884
    packages/api-augment/src/substrate/errors.ts on lines 3051..3104
    packages/api-augment/src/substrate/errors.ts on lines 3105..3159

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

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

        treasury: {
          /**
           * The payment has already been attempted.
           **/
          AlreadyAttempted: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 12 other locations - About 1 day to fix
    packages/api-augment/src/kusama/errors.ts on lines 84..137
    packages/api-augment/src/kusama/errors.ts on lines 270..324
    packages/api-augment/src/kusama/errors.ts on lines 1099..1152
    packages/api-augment/src/kusama/errors.ts on lines 1485..1538
    packages/api-augment/src/kusama/errors.ts on lines 2276..2330
    packages/api-augment/src/polkadot/errors.ts on lines 84..137
    packages/api-augment/src/polkadot/errors.ts on lines 270..324
    packages/api-augment/src/polkadot/errors.ts on lines 1202..1255
    packages/api-augment/src/substrate/errors.ts on lines 397..450
    packages/api-augment/src/substrate/errors.ts on lines 830..884
    packages/api-augment/src/substrate/errors.ts on lines 3051..3104
    packages/api-augment/src/substrate/errors.ts on lines 3105..3159

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

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

        balances: {
          /**
           * Beneficiary account must pre-exist.
           **/
          DeadAccount: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 12 other locations - About 1 day to fix
    packages/api-augment/src/kusama/errors.ts on lines 84..137
    packages/api-augment/src/kusama/errors.ts on lines 270..324
    packages/api-augment/src/kusama/errors.ts on lines 1099..1152
    packages/api-augment/src/kusama/errors.ts on lines 1485..1538
    packages/api-augment/src/kusama/errors.ts on lines 2276..2330
    packages/api-augment/src/polkadot/errors.ts on lines 270..324
    packages/api-augment/src/polkadot/errors.ts on lines 1202..1255
    packages/api-augment/src/polkadot/errors.ts on lines 1753..1807
    packages/api-augment/src/substrate/errors.ts on lines 397..450
    packages/api-augment/src/substrate/errors.ts on lines 830..884
    packages/api-augment/src/substrate/errors.ts on lines 3051..3104
    packages/api-augment/src/substrate/errors.ts on lines 3105..3159

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

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

        convictionVoting: {
          /**
           * The account is already delegating.
           **/
          AlreadyDelegating: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 12 other locations - About 1 day to fix
    packages/api-augment/src/kusama/errors.ts on lines 84..137
    packages/api-augment/src/kusama/errors.ts on lines 270..324
    packages/api-augment/src/kusama/errors.ts on lines 1099..1152
    packages/api-augment/src/kusama/errors.ts on lines 1485..1538
    packages/api-augment/src/kusama/errors.ts on lines 2276..2330
    packages/api-augment/src/polkadot/errors.ts on lines 84..137
    packages/api-augment/src/polkadot/errors.ts on lines 1202..1255
    packages/api-augment/src/polkadot/errors.ts on lines 1753..1807
    packages/api-augment/src/substrate/errors.ts on lines 397..450
    packages/api-augment/src/substrate/errors.ts on lines 830..884
    packages/api-augment/src/substrate/errors.ts on lines 3051..3104
    packages/api-augment/src/substrate/errors.ts on lines 3105..3159

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

    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

        bounties: {
          /**
           * The bounty cannot be closed because it has active child bounties.
           **/
          HasActiveChildBounty: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 5 other locations - About 1 day to fix
    packages/api-augment/src/kusama/errors.ts on lines 160..210
    packages/api-augment/src/substrate/errors.ts on lines 117..166
    packages/api-augment/src/substrate/errors.ts on lines 473..523
    packages/api-augment/src/substrate/errors.ts on lines 929..978
    packages/api-augment/src/substrate/errors.ts on lines 2949..2998

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

    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

        paraInherent: {
          /**
           * A candidate was backed by a disabled validator
           **/
          BackedByDisabled: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 8 other locations - About 1 day to fix
    packages/api-augment/src/kusama/errors.ts on lines 922..969
    packages/api-augment/src/kusama/errors.ts on lines 1442..1484
    packages/api-augment/src/kusama/errors.ts on lines 1539..1580
    packages/api-augment/src/polkadot/errors.ts on lines 780..827
    packages/api-augment/src/polkadot/errors.ts on lines 1256..1297
    packages/api-augment/src/substrate/errors.ts on lines 885..928
    packages/api-augment/src/substrate/errors.ts on lines 1490..1537
    packages/api-augment/src/substrate/errors.ts on lines 2893..2938

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

    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

        parasDisputes: {
          /**
           * Ancient dispute statement provided.
           **/
          AncientDisputeStatement: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 8 other locations - About 1 day to fix
    packages/api-augment/src/kusama/errors.ts on lines 922..969
    packages/api-augment/src/kusama/errors.ts on lines 1442..1484
    packages/api-augment/src/kusama/errors.ts on lines 1539..1580
    packages/api-augment/src/polkadot/errors.ts on lines 780..827
    packages/api-augment/src/polkadot/errors.ts on lines 1159..1201
    packages/api-augment/src/substrate/errors.ts on lines 885..928
    packages/api-augment/src/substrate/errors.ts on lines 1490..1537
    packages/api-augment/src/substrate/errors.ts on lines 2893..2938

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

    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

        messageQueue: {
          /**
           * The message was already processed and cannot be processed again.
           **/
          AlreadyProcessed: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 8 other locations - About 1 day to fix
    packages/api-augment/src/kusama/errors.ts on lines 922..969
    packages/api-augment/src/kusama/errors.ts on lines 1442..1484
    packages/api-augment/src/kusama/errors.ts on lines 1539..1580
    packages/api-augment/src/polkadot/errors.ts on lines 1159..1201
    packages/api-augment/src/polkadot/errors.ts on lines 1256..1297
    packages/api-augment/src/substrate/errors.ts on lines 885..928
    packages/api-augment/src/substrate/errors.ts on lines 1490..1537
    packages/api-augment/src/substrate/errors.ts on lines 2893..2938

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

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

        preimage: {
          /**
           * Preimage has already been noted on-chain.
           **/
          AlreadyNoted: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 7 other locations - About 7 hrs to fix
    packages/api-augment/src/kusama/errors.ts on lines 1612..1649
    packages/api-augment/src/kusama/errors.ts on lines 1650..1687
    packages/api-augment/src/kusama/errors.ts on lines 2234..2275
    packages/api-augment/src/polkadot/errors.ts on lines 1367..1404
    packages/api-augment/src/polkadot/errors.ts on lines 1711..1752
    packages/api-augment/src/substrate/errors.ts on lines 2116..2153
    packages/api-augment/src/substrate/errors.ts on lines 2154..2191

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

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

        system: {
          /**
           * The origin filter prevent the call to be dispatched.
           **/
          CallFiltered: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 7 other locations - About 7 hrs to fix
    packages/api-augment/src/kusama/errors.ts on lines 1612..1649
    packages/api-augment/src/kusama/errors.ts on lines 1650..1687
    packages/api-augment/src/kusama/errors.ts on lines 2234..2275
    packages/api-augment/src/polkadot/errors.ts on lines 1329..1366
    packages/api-augment/src/polkadot/errors.ts on lines 1367..1404
    packages/api-augment/src/substrate/errors.ts on lines 2116..2153
    packages/api-augment/src/substrate/errors.ts on lines 2154..2191

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

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

        proxy: {
          /**
           * Account is already a proxy.
           **/
          Duplicate: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 7 other locations - About 7 hrs to fix
    packages/api-augment/src/kusama/errors.ts on lines 1612..1649
    packages/api-augment/src/kusama/errors.ts on lines 1650..1687
    packages/api-augment/src/kusama/errors.ts on lines 2234..2275
    packages/api-augment/src/polkadot/errors.ts on lines 1329..1366
    packages/api-augment/src/polkadot/errors.ts on lines 1711..1752
    packages/api-augment/src/substrate/errors.ts on lines 2116..2153
    packages/api-augment/src/substrate/errors.ts on lines 2154..2191

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

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

        auctions: {
          /**
           * The para is already leased out for part of this range.
           **/
          AlreadyLeasedOut: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 7 other locations - About 6 hrs to fix
    packages/api-augment/src/kusama/errors.ts on lines 28..61
    packages/api-augment/src/kusama/errors.ts on lines 664..699
    packages/api-augment/src/polkadot/errors.ts on lines 522..557
    packages/api-augment/src/substrate/errors.ts on lines 1270..1305
    packages/api-augment/src/substrate/errors.ts on lines 1456..1489
    packages/api-augment/src/substrate/errors.ts on lines 2446..2479
    packages/api-augment/src/substrate/errors.ts on lines 3017..3050

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

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

        grandpa: {
          /**
           * Attempt to signal GRANDPA change with one already pending.
           **/
          ChangePending: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 7 other locations - About 6 hrs to fix
    packages/api-augment/src/kusama/errors.ts on lines 28..61
    packages/api-augment/src/kusama/errors.ts on lines 664..699
    packages/api-augment/src/polkadot/errors.ts on lines 28..61
    packages/api-augment/src/substrate/errors.ts on lines 1270..1305
    packages/api-augment/src/substrate/errors.ts on lines 1456..1489
    packages/api-augment/src/substrate/errors.ts on lines 2446..2479
    packages/api-augment/src/substrate/errors.ts on lines 3017..3050

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

    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

        parasSlashing: {
          /**
           * The given slashing report is valid but already previously reported.
           **/
          DuplicateSlashingReport: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 8 other locations - About 5 hrs to fix
    packages/api-augment/src/kusama/errors.ts on lines 229..259
    packages/api-augment/src/kusama/errors.ts on lines 528..559
    packages/api-augment/src/kusama/errors.ts on lines 1581..1611
    packages/api-augment/src/kusama/errors.ts on lines 2198..2233
    packages/api-augment/src/polkadot/errors.ts on lines 229..259
    packages/api-augment/src/polkadot/errors.ts on lines 490..521
    packages/api-augment/src/substrate/errors.ts on lines 1222..1253
    packages/api-augment/src/substrate/errors.ts on lines 2847..2882

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

    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

        fastUnstake: {
          /**
           * The provided un-staker is already in Head, and cannot deregister.
           **/
          AlreadyHead: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 8 other locations - About 5 hrs to fix
    packages/api-augment/src/kusama/errors.ts on lines 229..259
    packages/api-augment/src/kusama/errors.ts on lines 528..559
    packages/api-augment/src/kusama/errors.ts on lines 1581..1611
    packages/api-augment/src/kusama/errors.ts on lines 2198..2233
    packages/api-augment/src/polkadot/errors.ts on lines 229..259
    packages/api-augment/src/polkadot/errors.ts on lines 1298..1328
    packages/api-augment/src/substrate/errors.ts on lines 1222..1253
    packages/api-augment/src/substrate/errors.ts on lines 2847..2882

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

    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

        claims: {
          /**
           * Invalid Ethereum signature.
           **/
          InvalidEthereumSignature: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 8 other locations - About 5 hrs to fix
    packages/api-augment/src/kusama/errors.ts on lines 229..259
    packages/api-augment/src/kusama/errors.ts on lines 528..559
    packages/api-augment/src/kusama/errors.ts on lines 1581..1611
    packages/api-augment/src/kusama/errors.ts on lines 2198..2233
    packages/api-augment/src/polkadot/errors.ts on lines 490..521
    packages/api-augment/src/polkadot/errors.ts on lines 1298..1328
    packages/api-augment/src/substrate/errors.ts on lines 1222..1253
    packages/api-augment/src/substrate/errors.ts on lines 2847..2882

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

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

        indices: {
          /**
           * The index was not available.
           **/
          InUse: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 14 other locations - About 4 hrs to fix
    packages/api-augment/src/kusama/errors.ts on lines 896..921
    packages/api-augment/src/kusama/errors.ts on lines 1880..1905
    packages/api-augment/src/kusama/errors.ts on lines 1906..1931
    packages/api-augment/src/kusama/errors.ts on lines 2341..2367
    packages/api-augment/src/kusama/errors.ts on lines 2378..2403
    packages/api-augment/src/polkadot/errors.ts on lines 1527..1552
    packages/api-augment/src/polkadot/errors.ts on lines 1553..1578
    packages/api-augment/src/polkadot/errors.ts on lines 1818..1844
    packages/api-augment/src/polkadot/errors.ts on lines 1855..1880
    packages/api-augment/src/substrate/errors.ts on lines 1430..1455
    packages/api-augment/src/substrate/errors.ts on lines 2539..2564
    packages/api-augment/src/substrate/errors.ts on lines 2565..2590
    packages/api-augment/src/substrate/errors.ts on lines 3267..3293
    packages/api-augment/src/substrate/errors.ts on lines 3304..3329

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

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

        scheduler: {
          /**
           * Failed to schedule a call
           **/
          FailedToSchedule: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 14 other locations - About 4 hrs to fix
    packages/api-augment/src/kusama/errors.ts on lines 896..921
    packages/api-augment/src/kusama/errors.ts on lines 1880..1905
    packages/api-augment/src/kusama/errors.ts on lines 1906..1931
    packages/api-augment/src/kusama/errors.ts on lines 2341..2367
    packages/api-augment/src/kusama/errors.ts on lines 2378..2403
    packages/api-augment/src/polkadot/errors.ts on lines 754..779
    packages/api-augment/src/polkadot/errors.ts on lines 1553..1578
    packages/api-augment/src/polkadot/errors.ts on lines 1818..1844
    packages/api-augment/src/polkadot/errors.ts on lines 1855..1880
    packages/api-augment/src/substrate/errors.ts on lines 1430..1455
    packages/api-augment/src/substrate/errors.ts on lines 2539..2564
    packages/api-augment/src/substrate/errors.ts on lines 2565..2590
    packages/api-augment/src/substrate/errors.ts on lines 3267..3293
    packages/api-augment/src/substrate/errors.ts on lines 3304..3329

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

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

        session: {
          /**
           * Registered duplicate key.
           **/
          DuplicatedKey: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 14 other locations - About 4 hrs to fix
    packages/api-augment/src/kusama/errors.ts on lines 896..921
    packages/api-augment/src/kusama/errors.ts on lines 1880..1905
    packages/api-augment/src/kusama/errors.ts on lines 1906..1931
    packages/api-augment/src/kusama/errors.ts on lines 2341..2367
    packages/api-augment/src/kusama/errors.ts on lines 2378..2403
    packages/api-augment/src/polkadot/errors.ts on lines 754..779
    packages/api-augment/src/polkadot/errors.ts on lines 1527..1552
    packages/api-augment/src/polkadot/errors.ts on lines 1818..1844
    packages/api-augment/src/polkadot/errors.ts on lines 1855..1880
    packages/api-augment/src/substrate/errors.ts on lines 1430..1455
    packages/api-augment/src/substrate/errors.ts on lines 2539..2564
    packages/api-augment/src/substrate/errors.ts on lines 2565..2590
    packages/api-augment/src/substrate/errors.ts on lines 3267..3293
    packages/api-augment/src/substrate/errors.ts on lines 3304..3329

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

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

        whitelist: {
          /**
           * The call was already whitelisted; No-Op.
           **/
          CallAlreadyWhitelisted: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 14 other locations - About 4 hrs to fix
    packages/api-augment/src/kusama/errors.ts on lines 896..921
    packages/api-augment/src/kusama/errors.ts on lines 1880..1905
    packages/api-augment/src/kusama/errors.ts on lines 1906..1931
    packages/api-augment/src/kusama/errors.ts on lines 2341..2367
    packages/api-augment/src/kusama/errors.ts on lines 2378..2403
    packages/api-augment/src/polkadot/errors.ts on lines 754..779
    packages/api-augment/src/polkadot/errors.ts on lines 1527..1552
    packages/api-augment/src/polkadot/errors.ts on lines 1553..1578
    packages/api-augment/src/polkadot/errors.ts on lines 1818..1844
    packages/api-augment/src/substrate/errors.ts on lines 1430..1455
    packages/api-augment/src/substrate/errors.ts on lines 2539..2564
    packages/api-augment/src/substrate/errors.ts on lines 2565..2590
    packages/api-augment/src/substrate/errors.ts on lines 3267..3293
    packages/api-augment/src/substrate/errors.ts on lines 3304..3329

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

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

        vesting: {
          /**
           * Amount being transferred is too low to create a vesting schedule.
           **/
          AmountLow: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 14 other locations - About 4 hrs to fix
    packages/api-augment/src/kusama/errors.ts on lines 896..921
    packages/api-augment/src/kusama/errors.ts on lines 1880..1905
    packages/api-augment/src/kusama/errors.ts on lines 1906..1931
    packages/api-augment/src/kusama/errors.ts on lines 2341..2367
    packages/api-augment/src/kusama/errors.ts on lines 2378..2403
    packages/api-augment/src/polkadot/errors.ts on lines 754..779
    packages/api-augment/src/polkadot/errors.ts on lines 1527..1552
    packages/api-augment/src/polkadot/errors.ts on lines 1553..1578
    packages/api-augment/src/polkadot/errors.ts on lines 1855..1880
    packages/api-augment/src/substrate/errors.ts on lines 1430..1455
    packages/api-augment/src/substrate/errors.ts on lines 2539..2564
    packages/api-augment/src/substrate/errors.ts on lines 2565..2590
    packages/api-augment/src/substrate/errors.ts on lines 3267..3293
    packages/api-augment/src/substrate/errors.ts on lines 3304..3329

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

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

        babe: {
          /**
           * A given equivocation report is valid but already previously reported.
           **/
          DuplicateOffenceReport: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 6 other locations - About 3 hrs to fix
    packages/api-augment/src/kusama/errors.ts on lines 62..83
    packages/api-augment/src/kusama/errors.ts on lines 138..159
    packages/api-augment/src/polkadot/errors.ts on lines 138..159
    packages/api-augment/src/substrate/errors.ts on lines 375..396
    packages/api-augment/src/substrate/errors.ts on lines 451..472
    packages/api-augment/src/substrate/errors.ts on lines 1610..1631

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

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

        beefy: {
          /**
           * A given equivocation report is valid but already previously reported.
           **/
          DuplicateOffenceReport: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 6 other locations - About 3 hrs to fix
    packages/api-augment/src/kusama/errors.ts on lines 62..83
    packages/api-augment/src/kusama/errors.ts on lines 138..159
    packages/api-augment/src/polkadot/errors.ts on lines 62..83
    packages/api-augment/src/substrate/errors.ts on lines 375..396
    packages/api-augment/src/substrate/errors.ts on lines 451..472
    packages/api-augment/src/substrate/errors.ts on lines 1610..1631

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

    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

        childBounties: {
          /**
           * The bounty balance is not enough to add new child-bounty.
           **/
          InsufficientBountyBalance: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 5 other locations - About 2 hrs to fix
    packages/api-augment/src/kusama/errors.ts on lines 211..228
    packages/api-augment/src/kusama/errors.ts on lines 1295..1314
    packages/api-augment/src/substrate/errors.ts on lines 268..285
    packages/api-augment/src/substrate/errors.ts on lines 645..662
    packages/api-augment/src/substrate/errors.ts on lines 2999..3016

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

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

        slots: {
          /**
           * There was an error with the lease.
           **/
          LeaseError: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 6 other locations - About 1 hr to fix
    packages/api-augment/src/kusama/errors.ts on lines 14..27
    packages/api-augment/src/kusama/errors.ts on lines 1932..1945
    packages/api-augment/src/polkadot/errors.ts on lines 14..27
    packages/api-augment/src/substrate/errors.ts on lines 1254..1269
    packages/api-augment/src/substrate/errors.ts on lines 1416..1429
    packages/api-augment/src/substrate/errors.ts on lines 2432..2445

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

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

        assetRate: {
          /**
           * The given asset ID already has an assigned conversion rate and cannot be re-created.
           **/
          AlreadyExists: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 6 other locations - About 1 hr to fix
    packages/api-augment/src/kusama/errors.ts on lines 14..27
    packages/api-augment/src/kusama/errors.ts on lines 1932..1945
    packages/api-augment/src/polkadot/errors.ts on lines 1579..1592
    packages/api-augment/src/substrate/errors.ts on lines 1254..1269
    packages/api-augment/src/substrate/errors.ts on lines 1416..1429
    packages/api-augment/src/substrate/errors.ts on lines 2432..2445

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

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

        utility: {
          /**
           * Too many calls batched.
           **/
          TooManyCalls: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 11 other locations - About 40 mins to fix
    packages/api-augment/src/kusama/errors.ts on lines 260..269
    packages/api-augment/src/kusama/errors.ts on lines 325..334
    packages/api-augment/src/kusama/errors.ts on lines 2331..2340
    packages/api-augment/src/kusama/errors.ts on lines 2368..2377
    packages/api-augment/src/polkadot/errors.ts on lines 260..269
    packages/api-augment/src/polkadot/errors.ts on lines 1845..1854
    packages/api-augment/src/substrate/errors.ts on lines 1538..1547
    packages/api-augment/src/substrate/errors.ts on lines 2883..2892
    packages/api-augment/src/substrate/errors.ts on lines 2939..2948
    packages/api-augment/src/substrate/errors.ts on lines 3257..3266
    packages/api-augment/src/substrate/errors.ts on lines 3294..3303

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

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

        voterList: {
          /**
           * A error in the list interface implementation.
           **/
          List: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 11 other locations - About 40 mins to fix
    packages/api-augment/src/kusama/errors.ts on lines 260..269
    packages/api-augment/src/kusama/errors.ts on lines 325..334
    packages/api-augment/src/kusama/errors.ts on lines 2331..2340
    packages/api-augment/src/kusama/errors.ts on lines 2368..2377
    packages/api-augment/src/polkadot/errors.ts on lines 260..269
    packages/api-augment/src/polkadot/errors.ts on lines 1808..1817
    packages/api-augment/src/substrate/errors.ts on lines 1538..1547
    packages/api-augment/src/substrate/errors.ts on lines 2883..2892
    packages/api-augment/src/substrate/errors.ts on lines 2939..2948
    packages/api-augment/src/substrate/errors.ts on lines 3257..3266
    packages/api-augment/src/substrate/errors.ts on lines 3294..3303

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

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

        configuration: {
          /**
           * The new value for a configuration parameter is invalid.
           **/
          InvalidNewValue: AugmentedError<ApiType>;
    Severity: Major
    Found in packages/api-augment/src/polkadot/errors.ts and 11 other locations - About 40 mins to fix
    packages/api-augment/src/kusama/errors.ts on lines 260..269
    packages/api-augment/src/kusama/errors.ts on lines 325..334
    packages/api-augment/src/kusama/errors.ts on lines 2331..2340
    packages/api-augment/src/kusama/errors.ts on lines 2368..2377
    packages/api-augment/src/polkadot/errors.ts on lines 1808..1817
    packages/api-augment/src/polkadot/errors.ts on lines 1845..1854
    packages/api-augment/src/substrate/errors.ts on lines 1538..1547
    packages/api-augment/src/substrate/errors.ts on lines 2883..2892
    packages/api-augment/src/substrate/errors.ts on lines 2939..2948
    packages/api-augment/src/substrate/errors.ts on lines 3257..3266
    packages/api-augment/src/substrate/errors.ts on lines 3294..3303

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

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

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

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

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

    Refactorings

    Further Reading

    There are no issues that match your filters.

    Category
    Status