polkadot-js/api

View on GitHub
packages/types-augment/src/lookup/types-polkadot.ts

Summary

Maintainability
F
2 mos
Test Coverage

File types-polkadot.ts has 2909 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// Auto-generated via `yarn polkadot-types-from-defs`, 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/types-augment/src/lookup/types-polkadot.ts - About 1 wk to fix

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

      interface XcmV3Instruction extends Enum {
        readonly isWithdrawAsset: boolean;
        readonly asWithdrawAsset: XcmV3MultiassetMultiAssets;
        readonly isReserveAssetDeposited: boolean;
        readonly asReserveAssetDeposited: XcmV3MultiassetMultiAssets;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 1 other location - About 1 wk to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1943..2122

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

    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

      interface StagingXcmV4Instruction extends Enum {
        readonly isWithdrawAsset: boolean;
        readonly asWithdrawAsset: StagingXcmV4AssetAssets;
        readonly isReserveAssetDeposited: boolean;
        readonly asReserveAssetDeposited: StagingXcmV4AssetAssets;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 1 other location - About 1 wk to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1591..1770

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

    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

      interface PolkadotRuntimeNposCompactSolution16 extends Struct {
        readonly votes1: Vec<ITuple<[Compact<u32>, Compact<u16>]>>;
        readonly votes2: Vec<ITuple<[Compact<u32>, ITuple<[Compact<u16>, Compact<PerU16>]>, Compact<u16>]>>;
        readonly votes3: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
        readonly votes4: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 1 other location - About 6 days to fix
    packages/types-augment/src/lookup/types-substrate.ts on lines 2748..2765

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

    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

      interface StagingXcmV4Junction extends Enum {
        readonly isParachain: boolean;
        readonly asParachain: Compact<u32>;
        readonly isAccountId32: boolean;
        readonly asAccountId32: {
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 1 other location - About 1 day to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 61..97

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

    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

      interface XcmV3Junction extends Enum {
        readonly isParachain: boolean;
        readonly asParachain: Compact<u32>;
        readonly isAccountId32: boolean;
        readonly asAccountId32: {
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 1 other location - About 1 day to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 203..239

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

    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

      interface XcmV2MultilocationJunctions extends Enum {
        readonly isHere: boolean;
        readonly isX1: boolean;
        readonly asX1: XcmV2Junction;
        readonly isX2: boolean;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 1 other location - About 1 day to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 39..58

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

    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

      interface XcmV3Junctions extends Enum {
        readonly isHere: boolean;
        readonly isX1: boolean;
        readonly asX1: XcmV3Junction;
        readonly isX2: boolean;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 1 other location - About 1 day to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 286..305

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

    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

      interface XcmV2Junction extends Enum {
        readonly isParachain: boolean;
        readonly asParachain: Compact<u32>;
        readonly isAccountId32: boolean;
        readonly asAccountId32: {
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 1 other location - About 1 day to fix
    packages/types/src/interfaces/xcm/types.ts on lines 309..340

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

    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

      interface PolkadotRuntimeCommonCrowdloanPalletError extends Enum {
        readonly isFirstPeriodInPast: boolean;
        readonly isFirstPeriodTooFarInFuture: boolean;
        readonly isLastPeriodBeforeFirstPeriod: boolean;
        readonly isLastPeriodTooFarInFuture: boolean;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 1 other location - About 1 day to fix
    packages/types-augment/src/lookup/types-substrate.ts on lines 8875..8900

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

    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

      interface PalletReferendaReferendumInfo extends Enum {
        readonly isOngoing: boolean;
        readonly asOngoing: PalletReferendaReferendumStatus;
        readonly isApproved: boolean;
        readonly asApproved: ITuple<[u32, Option<PalletReferendaDeposit>, Option<PalletReferendaDeposit>]>;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 2 other locations - About 1 day to fix
    packages/types-augment/src/lookup/types-substrate.ts on lines 8510..8524
    packages/types-augment/src/lookup/types-substrate.ts on lines 8818..8832

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

    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

      interface XcmV2BodyPart extends Enum {
        readonly isVoice: boolean;
        readonly isMembers: boolean;
        readonly asMembers: {
          readonly count: Compact<u32>;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 1 other location - About 1 day to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 141..163

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

    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

      interface XcmV3JunctionBodyPart extends Enum {
        readonly isVoice: boolean;
        readonly isMembers: boolean;
        readonly asMembers: {
          readonly count: Compact<u32>;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 1 other location - About 1 day to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 369..391

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

    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

      interface PolkadotRuntimeParachainsHrmpPalletError extends Enum {
        readonly isOpenHrmpChannelToSelf: boolean;
        readonly isOpenHrmpChannelInvalidRecipient: boolean;
        readonly isOpenHrmpChannelZeroCapacity: boolean;
        readonly isOpenHrmpChannelCapacityExceedsLimit: boolean;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 1 other location - About 1 day to fix
    packages/types-augment/src/lookup/types-substrate.ts on lines 8046..8068

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

    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

      interface XcmV3JunctionNetworkId extends Enum {
        readonly isByGenesis: boolean;
        readonly asByGenesis: U8aFixed;
        readonly isByFork: boolean;
        readonly asByFork: {
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 1 other location - About 1 day to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 242..263

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

      interface StagingXcmV4JunctionNetworkId extends Enum {
        readonly isByGenesis: boolean;
        readonly asByGenesis: U8aFixed;
        readonly isByFork: boolean;
        readonly asByFork: {
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 1 other location - About 1 day to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 100..121

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

      interface PolkadotRuntimeGovernanceOriginsPalletCustomOriginsOrigin extends Enum {
        readonly isStakingAdmin: boolean;
        readonly isTreasurer: boolean;
        readonly isFellowshipAdmin: boolean;
        readonly isGeneralAdmin: boolean;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 2 other locations - About 6 hrs to fix
    packages/types-augment/src/lookup/types-substrate.ts on lines 6988..7005
    packages/types-augment/src/lookup/types-substrate.ts on lines 8130..8147

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

    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

      interface PolkadotRuntimeCommonParasRegistrarPalletError extends Enum {
        readonly isNotRegistered: boolean;
        readonly isAlreadyRegistered: boolean;
        readonly isNotOwner: boolean;
        readonly isCodeTooLarge: boolean;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 3 other locations - About 6 hrs to fix
    packages/types-augment/src/lookup/types-substrate.ts on lines 7888..7904
    packages/types-augment/src/lookup/types-substrate.ts on lines 8377..8393
    packages/types-augment/src/lookup/types-substrate.ts on lines 8591..8607

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

      interface StagingXcmV4AssetWildAsset extends Enum {
        readonly isAll: boolean;
        readonly isAllOf: boolean;
        readonly asAllOf: {
          readonly id: StagingXcmV4AssetAssetId;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 1 other location - About 5 hrs to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1906..1922

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

    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

      interface XcmV3MultiassetWildMultiAsset extends Enum {
        readonly isAll: boolean;
        readonly isAllOf: boolean;
        readonly asAllOf: {
          readonly id: XcmV3MultiassetAssetId;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 1 other location - About 5 hrs to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 2201..2217

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

    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

      interface PalletReferendaReferendumStatus extends Struct {
        readonly track: u16;
        readonly origin: PolkadotRuntimeOriginCaller;
        readonly proposal: FrameSupportPreimagesBounded;
        readonly enactment: FrameSupportScheduleDispatchTime;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 2 other locations - About 5 hrs to fix
    packages/types-augment/src/lookup/types-substrate.ts on lines 8527..8539
    packages/types-augment/src/lookup/types-substrate.ts on lines 8835..8847

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

    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

      interface StagingXcmV4Response extends Enum {
        readonly isNull: boolean;
        readonly isAssets: boolean;
        readonly asAssets: StagingXcmV4AssetAssets;
        readonly isExecutionResult: boolean;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 1 other location - About 5 hrs to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1807..1820

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

    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

      interface XcmV3Response extends Enum {
        readonly isNull: boolean;
        readonly isAssets: boolean;
        readonly asAssets: XcmV3MultiassetMultiAssets;
        readonly isExecutionResult: boolean;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 1 other location - About 5 hrs to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 2159..2172

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

    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

      interface XcmV2BodyId extends Enum {
        readonly isUnit: boolean;
        readonly isNamed: boolean;
        readonly asNamed: Bytes;
        readonly isIndex: boolean;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 1 other location - About 5 hrs to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 124..138

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

    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

      interface XcmV3JunctionBodyId extends Enum {
        readonly isUnit: boolean;
        readonly isMoniker: boolean;
        readonly asMoniker: U8aFixed;
        readonly isIndex: boolean;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 1 other location - About 5 hrs to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 352..366

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

    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

      interface PolkadotRuntimeParachainsParasPalletError extends Enum {
        readonly isNotRegistered: boolean;
        readonly isCannotOnboard: boolean;
        readonly isCannotOffboard: boolean;
        readonly isCannotUpgrade: boolean;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 4 other locations - About 5 hrs to fix
    packages/types-augment/src/lookup/types-substrate.ts on lines 6943..6957
    packages/types-augment/src/lookup/types-substrate.ts on lines 7342..7356
    packages/types-augment/src/lookup/types-substrate.ts on lines 8425..8439
    packages/types-augment/src/lookup/types-substrate.ts on lines 8651..8665

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

    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

      interface XcmV2MultiassetAssetInstance extends Enum {
        readonly isUndefined: boolean;
        readonly isIndex: boolean;
        readonly asIndex: Compact<u128>;
        readonly isArray4: boolean;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 1 other location - About 5 hrs to fix
    packages/types/src/interfaces/xcm/types.ts on lines 38..53

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

    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

      interface StagingXcmV4AssetAssetInstance extends Enum {
        readonly isUndefined: boolean;
        readonly isIndex: boolean;
        readonly asIndex: Compact<u128>;
        readonly isArray4: boolean;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 1 other location - About 4 hrs to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1791..1804

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

    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

      interface XcmV3MultiassetAssetInstance extends Enum {
        readonly isUndefined: boolean;
        readonly isIndex: boolean;
        readonly asIndex: Compact<u128>;
        readonly isArray4: boolean;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 1 other location - About 4 hrs to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 2143..2156

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

    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

      interface StagingXcmV4TraitsOutcome extends Enum {
        readonly isComplete: boolean;
        readonly asComplete: {
          readonly used: SpWeightsWeightV2Weight;
        } & Struct;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 1 other location - About 4 hrs to fix
    packages/types-augment/src/lookup/types-substrate.ts on lines 4862..4877

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

    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

      interface PolkadotRuntimeParachainsParasInherentPalletError extends Enum {
        readonly isTooManyInclusionInherents: boolean;
        readonly isInvalidParentHeader: boolean;
        readonly isCandidateConcludedInvalid: boolean;
        readonly isInherentOverweight: boolean;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 5 other locations - About 3 hrs to fix
    packages/types-augment/src/lookup/types-kusama.ts on lines 71..82
    packages/types-augment/src/lookup/types-polkadot.ts on lines 3080..3091
    packages/types-augment/src/lookup/types-substrate.ts on lines 6753..6764
    packages/types-augment/src/lookup/types-substrate.ts on lines 8403..8414
    packages/types-augment/src/lookup/types-substrate.ts on lines 8946..8957

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

    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

      interface PolkadotRuntimeParachainsDisputesPalletError extends Enum {
        readonly isDuplicateDisputeStatementSets: boolean;
        readonly isAncientDisputeStatement: boolean;
        readonly isValidatorIndexOutOfBounds: boolean;
        readonly isInvalidSignature: boolean;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 5 other locations - About 3 hrs to fix
    packages/types-augment/src/lookup/types-kusama.ts on lines 71..82
    packages/types-augment/src/lookup/types-polkadot.ts on lines 2852..2863
    packages/types-augment/src/lookup/types-substrate.ts on lines 6753..6764
    packages/types-augment/src/lookup/types-substrate.ts on lines 8403..8414
    packages/types-augment/src/lookup/types-substrate.ts on lines 8946..8957

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

    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

      interface PolkadotRuntimeOriginCaller extends Enum {
        readonly isSystem: boolean;
        readonly asSystem: FrameSupportDispatchRawOrigin;
        readonly isVoid: boolean;
        readonly isOrigins: boolean;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 2 other locations - About 3 hrs to fix
    packages/types-augment/src/lookup/types-kusama.ts on lines 24..35
    packages/types-augment/src/lookup/types-substrate.ts on lines 2525..2536

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

    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

      interface PolkadotRuntimeCommonImplsVersionedLocatableAsset extends Enum {
        readonly isV3: boolean;
        readonly asV3: {
          readonly location: StagingXcmV3MultiLocation;
          readonly assetId: XcmV3MultiassetAssetId;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 2 other locations - About 3 hrs to fix
    packages/types-augment/src/lookup/types-kusama.ts on lines 113..125
    packages/types-augment/src/lookup/types-substrate.ts on lines 658..670

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

    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

        readonly asCreate: {
          readonly index: Compact<u32>;
          readonly cap: Compact<u128>;
          readonly firstPeriod: Compact<u32>;
          readonly lastPeriod: Compact<u32>;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 1 other location - About 3 hrs to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1199..1206

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

    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

        readonly asEdit: {
          readonly index: Compact<u32>;
          readonly cap: Compact<u128>;
          readonly firstPeriod: Compact<u32>;
          readonly lastPeriod: Compact<u32>;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 1 other location - About 3 hrs to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1171..1178

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

    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

      interface PolkadotRuntimeProxyType extends Enum {
        readonly isAny: boolean;
        readonly isNonTransfer: boolean;
        readonly isGovernance: boolean;
        readonly isStaking: boolean;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 2 other locations - About 3 hrs to fix
    packages/types-augment/src/lookup/types-substrate.ts on lines 7840..7850
    packages/types-augment/src/lookup/types-substrate.ts on lines 7867..7877

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

    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

      interface PolkadotRuntimeCommonCrowdloanFundInfo extends Struct {
        readonly depositor: AccountId32;
        readonly verifier: Option<SpRuntimeMultiSigner>;
        readonly deposit: u128;
        readonly raised: u128;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 1 other location - About 3 hrs to fix
    packages/types/src/interfaces/crowdloan/types.ts on lines 12..23

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

    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

      interface PolkadotPrimitivesV6CandidateDescriptor extends Struct {
        readonly paraId: u32;
        readonly relayParent: H256;
        readonly collator: PolkadotPrimitivesV6CollatorAppPublic;
        readonly persistedValidationDataHash: H256;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 1 other location - About 3 hrs to fix
    packages/types-augment/src/lookup/types-substrate.ts on lines 8554..8564

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

    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

        readonly type: 'UnsortedOrDuplicateValidatorIndices' | 'UnsortedOrDuplicateDisputeStatementSet' | 'UnsortedOrDuplicateBackedCandidates' | 'UnexpectedRelayParent' | 'WrongBitfieldSize' | 'BitfieldAllZeros' | 'BitfieldDuplicateOrUnordered' | 'ValidatorIndexOutOfBounds' | 'InvalidBitfieldSignature' | 'UnscheduledCandidate' | 'CandidateScheduledBeforeParaFree' | 'ScheduledOutOfOrder' | 'HeadDataTooLarge' | 'PrematureCodeUpgrade' | 'NewCodeTooLarge' | 'DisallowedRelayParent' | 'InvalidAssignment' | 'InvalidGroupIndex' | 'InsufficientBacking' | 'InvalidBacking' | 'NotCollatorSigned' | 'ValidationDataHashMismatch' | 'IncorrectDownwardMessageHandling' | 'InvalidUpwardMessages' | 'HrmpWatermarkMishandling' | 'InvalidOutboundHrmp' | 'InvalidValidationCodeHash' | 'ParaHeadMismatch' | 'BitfieldReferencesFreedCore';
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 1 other location - About 3 hrs to fix
    packages/types/src/interfaces/xcm/types.ts on lines 745..745

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

    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

      interface PolkadotRuntimeCommonAuctionsPalletError extends Enum {
        readonly isAuctionInProgress: boolean;
        readonly isLeasePeriodInPast: boolean;
        readonly isParaNotRegistered: boolean;
        readonly isNotCurrentAuction: boolean;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 7 other locations - About 2 hrs to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 2922..2931
    packages/types-augment/src/lookup/types-substrate.ts on lines 3062..3071
    packages/types-augment/src/lookup/types-substrate.ts on lines 5137..5146
    packages/types-augment/src/lookup/types-substrate.ts on lines 7298..7307
    packages/types-augment/src/lookup/types-substrate.ts on lines 7967..7976
    packages/types-augment/src/lookup/types-substrate.ts on lines 8096..8105
    packages/types-augment/src/lookup/types-substrate.ts on lines 8969..8978

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

    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

      interface PolkadotRuntimeParachainsParasParaLifecycle extends Enum {
        readonly isOnboarding: boolean;
        readonly isParathread: boolean;
        readonly isParachain: boolean;
        readonly isUpgradingParathread: boolean;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 7 other locations - About 2 hrs to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 3144..3153
    packages/types-augment/src/lookup/types-substrate.ts on lines 3062..3071
    packages/types-augment/src/lookup/types-substrate.ts on lines 5137..5146
    packages/types-augment/src/lookup/types-substrate.ts on lines 7298..7307
    packages/types-augment/src/lookup/types-substrate.ts on lines 7967..7976
    packages/types-augment/src/lookup/types-substrate.ts on lines 8096..8105
    packages/types-augment/src/lookup/types-substrate.ts on lines 8969..8978

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

    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

      interface PolkadotRuntimeParachainsHrmpHrmpChannel extends Struct {
        readonly maxCapacity: u32;
        readonly maxTotalSize: u32;
        readonly maxMessageSize: u32;
        readonly msgCount: u32;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 1 other location - About 2 hrs to fix
    packages/types-augment/src/lookup/types-substrate.ts on lines 5784..5793

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

    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

      interface StagingXcmV4PalletInfo extends Struct {
        readonly index: Compact<u32>;
        readonly name: Bytes;
        readonly moduleName: Bytes;
        readonly major: Compact<u32>;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 1 other location - About 2 hrs to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1870..1877

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

    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

      interface XcmV3PalletInfo extends Struct {
        readonly index: Compact<u32>;
        readonly name: Bytes;
        readonly moduleName: Bytes;
        readonly major: Compact<u32>;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 1 other location - About 2 hrs to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 2175..2182

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

    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

      interface PolkadotRuntimeParachainsDisputesSlashingPalletError extends Enum {
        readonly isInvalidKeyOwnershipProof: boolean;
        readonly isInvalidSessionIndex: boolean;
        readonly isInvalidCandidateHash: boolean;
        readonly isInvalidValidatorIndex: boolean;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 5 other locations - About 2 hrs to fix
    packages/types-augment/src/lookup/types-kusama.ts on lines 247..255
    packages/types-augment/src/lookup/types-polkadot.ts on lines 2721..2729
    packages/types-augment/src/lookup/types-substrate.ts on lines 756..764
    packages/types-augment/src/lookup/types-substrate.ts on lines 2300..2308
    packages/types-augment/src/lookup/types-substrate.ts on lines 8909..8917

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

    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

      interface PolkadotRuntimeCommonClaimsPalletError extends Enum {
        readonly isInvalidEthereumSignature: boolean;
        readonly isSignerHasNoClaim: boolean;
        readonly isSenderHasNoClaim: boolean;
        readonly isPotUnderflow: boolean;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 5 other locations - About 2 hrs to fix
    packages/types-augment/src/lookup/types-kusama.ts on lines 247..255
    packages/types-augment/src/lookup/types-polkadot.ts on lines 3100..3108
    packages/types-augment/src/lookup/types-substrate.ts on lines 756..764
    packages/types-augment/src/lookup/types-substrate.ts on lines 2300..2308
    packages/types-augment/src/lookup/types-substrate.ts on lines 8909..8917

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

    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

      interface XcmVersionedLocation extends Enum {
        readonly isV2: boolean;
        readonly asV2: XcmV2MultiLocation;
        readonly isV3: boolean;
        readonly asV3: StagingXcmV3MultiLocation;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 8 other locations - About 2 hrs to fix
    packages/types-augment/src/lookup/types-kusama.ts on lines 171..179
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1225..1233
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1315..1323
    packages/types-augment/src/lookup/types-polkadot.ts on lines 2227..2235
    packages/types-augment/src/lookup/types-polkadot.ts on lines 3230..3238
    packages/types-augment/src/lookup/types-substrate.ts on lines 3568..3576
    packages/types-augment/src/lookup/types-substrate.ts on lines 6660..6668
    packages/types-augment/src/lookup/types-substrate.ts on lines 6773..6781

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

    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

      interface SpRuntimeMultiSigner extends Enum {
        readonly isEd25519: boolean;
        readonly asEd25519: SpCoreEd25519Public;
        readonly isSr25519: boolean;
        readonly asSr25519: SpCoreSr25519Public;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 8 other locations - About 2 hrs to fix
    packages/types-augment/src/lookup/types-kusama.ts on lines 171..179
    packages/types-augment/src/lookup/types-polkadot.ts on lines 269..277
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1315..1323
    packages/types-augment/src/lookup/types-polkadot.ts on lines 2227..2235
    packages/types-augment/src/lookup/types-polkadot.ts on lines 3230..3238
    packages/types-augment/src/lookup/types-substrate.ts on lines 3568..3576
    packages/types-augment/src/lookup/types-substrate.ts on lines 6660..6668
    packages/types-augment/src/lookup/types-substrate.ts on lines 6773..6781

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

    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

      interface XcmVersionedAssets extends Enum {
        readonly isV2: boolean;
        readonly asV2: XcmV2MultiassetMultiAssets;
        readonly isV3: boolean;
        readonly asV3: XcmV3MultiassetMultiAssets;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 8 other locations - About 2 hrs to fix
    packages/types-augment/src/lookup/types-kusama.ts on lines 171..179
    packages/types-augment/src/lookup/types-polkadot.ts on lines 269..277
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1225..1233
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1315..1323
    packages/types-augment/src/lookup/types-polkadot.ts on lines 3230..3238
    packages/types-augment/src/lookup/types-substrate.ts on lines 3568..3576
    packages/types-augment/src/lookup/types-substrate.ts on lines 6660..6668
    packages/types-augment/src/lookup/types-substrate.ts on lines 6773..6781

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

    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

      interface XcmVersionedXcm extends Enum {
        readonly isV2: boolean;
        readonly asV2: XcmV2Xcm;
        readonly isV3: boolean;
        readonly asV3: XcmV3Xcm;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 8 other locations - About 2 hrs to fix
    packages/types-augment/src/lookup/types-kusama.ts on lines 171..179
    packages/types-augment/src/lookup/types-polkadot.ts on lines 269..277
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1225..1233
    packages/types-augment/src/lookup/types-polkadot.ts on lines 2227..2235
    packages/types-augment/src/lookup/types-polkadot.ts on lines 3230..3238
    packages/types-augment/src/lookup/types-substrate.ts on lines 3568..3576
    packages/types-augment/src/lookup/types-substrate.ts on lines 6660..6668
    packages/types-augment/src/lookup/types-substrate.ts on lines 6773..6781

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

    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

      interface XcmVersionedResponse extends Enum {
        readonly isV2: boolean;
        readonly asV2: XcmV2Response;
        readonly isV3: boolean;
        readonly asV3: XcmV3Response;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 8 other locations - About 2 hrs to fix
    packages/types-augment/src/lookup/types-kusama.ts on lines 171..179
    packages/types-augment/src/lookup/types-polkadot.ts on lines 269..277
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1225..1233
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1315..1323
    packages/types-augment/src/lookup/types-polkadot.ts on lines 2227..2235
    packages/types-augment/src/lookup/types-substrate.ts on lines 3568..3576
    packages/types-augment/src/lookup/types-substrate.ts on lines 6660..6668
    packages/types-augment/src/lookup/types-substrate.ts on lines 6773..6781

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

    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

      interface XcmV3MaybeErrorCode extends Enum {
        readonly isSuccess: boolean;
        readonly isError: boolean;
        readonly asError: Bytes;
        readonly isTruncatedError: boolean;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 2 other locations - About 1 hr to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 3170..3177
    packages/types-augment/src/lookup/types-substrate.ts on lines 673..680

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

    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

      interface PolkadotRuntimeCommonCrowdloanLastContribution extends Enum {
        readonly isNever: boolean;
        readonly isPreEnding: boolean;
        readonly asPreEnding: u32;
        readonly isEnding: boolean;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 2 other locations - About 1 hr to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1880..1887
    packages/types-augment/src/lookup/types-substrate.ts on lines 673..680

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

    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

      interface PolkadotRuntimeCommonClaimsPalletEvent extends Enum {
        readonly isClaimed: boolean;
        readonly asClaimed: {
          readonly who: AccountId32;
          readonly ethereumAddress: EthereumAddress;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 1 other location - About 1 hr to fix
    packages/types-augment/src/lookup/types-substrate.ts on lines 349..357

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

    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

      interface PolkadotRuntimeSessionKeys extends Struct {
        readonly grandpa: SpConsensusGrandpaAppPublic;
        readonly babe: SpConsensusBabeAppPublic;
        readonly paraValidator: PolkadotPrimitivesV6ValidatorAppPublic;
        readonly paraAssignment: PolkadotPrimitivesV6AssignmentAppPublic;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 8 other locations - About 1 hr to fix
    packages/types-augment/src/lookup/types-kusama.ts on lines 14..21
    packages/types-augment/src/lookup/types-polkadot.ts on lines 2996..3003
    packages/types-augment/src/lookup/types-substrate.ts on lines 2959..2966
    packages/types-augment/src/lookup/types-substrate.ts on lines 7318..7325
    packages/types-augment/src/lookup/types-substrate.ts on lines 7482..7489
    packages/types-augment/src/lookup/types-substrate.ts on lines 7907..7914
    packages/types-augment/src/lookup/types-substrate.ts on lines 8209..8216
    packages/types-augment/src/lookup/types-substrate.ts on lines 8936..8943

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

    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

      interface PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest extends Struct {
        readonly confirmed: bool;
        readonly age: u32;
        readonly senderDeposit: u128;
        readonly maxMessageSize: u32;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 8 other locations - About 1 hr to fix
    packages/types-augment/src/lookup/types-kusama.ts on lines 14..21
    packages/types-augment/src/lookup/types-polkadot.ts on lines 397..404
    packages/types-augment/src/lookup/types-substrate.ts on lines 2959..2966
    packages/types-augment/src/lookup/types-substrate.ts on lines 7318..7325
    packages/types-augment/src/lookup/types-substrate.ts on lines 7482..7489
    packages/types-augment/src/lookup/types-substrate.ts on lines 7907..7914
    packages/types-augment/src/lookup/types-substrate.ts on lines 8209..8216
    packages/types-augment/src/lookup/types-substrate.ts on lines 8936..8943

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

    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

        readonly asLeased: {
          readonly paraId: u32;
          readonly leaser: AccountId32;
          readonly periodBegin: u32;
          readonly periodCount: u32;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 4 other locations - About 1 hr to fix
    packages/types-augment/src/lookup/types-substrate.ts on lines 825..832
    packages/types-augment/src/lookup/types-substrate.ts on lines 3607..3614
    packages/types-augment/src/lookup/types-substrate.ts on lines 5333..5340
    packages/types-augment/src/lookup/types-substrate.ts on lines 5526..5533

    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

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

      interface PalletXcmVersionMigrationStage extends Enum {
        readonly isMigrateSupportedVersion: boolean;
        readonly isMigrateVersionNotifiers: boolean;
        readonly isNotifyCurrentTargets: boolean;
        readonly asNotifyCurrentTargets: Option<Bytes>;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 1 other location - About 1 hr to fix
    packages/types/src/interfaces/xcm/types.ts on lines 612..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 66.

    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

      interface XcmV2MultiassetFungibility extends Enum {
        readonly isFungible: boolean;
        readonly asFungible: Compact<u128>;
        readonly isNonFungible: boolean;
        readonly asNonFungible: XcmV2MultiassetAssetInstance;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 2 other locations - About 1 hr to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1782..1788
    packages/types-augment/src/lookup/types-polkadot.ts on lines 2134..2140

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

    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

      interface StagingXcmV4AssetFungibility extends Enum {
        readonly isFungible: boolean;
        readonly asFungible: Compact<u128>;
        readonly isNonFungible: boolean;
        readonly asNonFungible: StagingXcmV4AssetAssetInstance;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 2 other locations - About 1 hr to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1467..1473
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1782..1788

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

    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

      interface XcmV3MultiassetFungibility extends Enum {
        readonly isFungible: boolean;
        readonly asFungible: Compact<u128>;
        readonly isNonFungible: boolean;
        readonly asNonFungible: XcmV3MultiassetAssetInstance;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 2 other locations - About 1 hr to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1467..1473
    packages/types-augment/src/lookup/types-polkadot.ts on lines 2134..2140

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

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

      interface XcmV2OriginKind extends Enum {
        readonly isNative: boolean;
        readonly isSovereignAccount: boolean;
        readonly isSuperuser: boolean;
        readonly isXcm: boolean;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 9 other locations - About 1 hr to fix
    packages/types-augment/src/lookup/types-substrate.ts on lines 549..555
    packages/types-augment/src/lookup/types-substrate.ts on lines 1355..1361
    packages/types-augment/src/lookup/types-substrate.ts on lines 5449..5455
    packages/types-augment/src/lookup/types-substrate.ts on lines 6816..6822
    packages/types-augment/src/lookup/types-substrate.ts on lines 8071..8077
    packages/types-augment/src/lookup/types-substrate.ts on lines 8272..8278
    packages/types-augment/src/lookup/types-substrate.ts on lines 8339..8345
    packages/types-augment/src/lookup/types-substrate.ts on lines 8464..8470
    packages/types-augment/src/lookup/types-substrate.ts on lines 8960..8966

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

    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

      interface XcmV2MultiassetWildMultiAsset extends Enum {
        readonly isAll: boolean;
        readonly isAllOf: boolean;
        readonly asAllOf: {
          readonly id: XcmV2MultiassetAssetId;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 1 other location - About 1 hr to fix
    packages/types/src/interfaces/xcm/types.ts on lines 649..657

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

    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

      interface PolkadotRuntimeParachainsDisputesSlashingPalletCall extends Enum {
        readonly isReportDisputeLostUnsigned: boolean;
        readonly asReportDisputeLostUnsigned: {
          readonly disputeProof: PolkadotPrimitivesV6SlashingDisputeProof;
          readonly keyOwnerProof: SpSessionMembershipProof;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 5 other locations - About 1 hr to fix
    packages/types-augment/src/lookup/types-substrate.ts on lines 995..1002
    packages/types-augment/src/lookup/types-substrate.ts on lines 3421..3428
    packages/types-augment/src/lookup/types-substrate.ts on lines 5828..5835
    packages/types-augment/src/lookup/types-substrate.ts on lines 5919..5926
    packages/types-augment/src/lookup/types-substrate.ts on lines 6361..6368

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

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

      interface StagingXcmV4AssetAssetFilter extends Enum {
        readonly isDefinite: boolean;
        readonly asDefinite: StagingXcmV4AssetAssets;
        readonly isWild: boolean;
        readonly asWild: StagingXcmV4AssetWildAsset;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 17 other locations - About 1 hr to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 166..172
    packages/types-augment/src/lookup/types-polkadot.ts on lines 460..466
    packages/types-augment/src/lookup/types-polkadot.ts on lines 875..881
    packages/types-augment/src/lookup/types-polkadot.ts on lines 891..897
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1458..1464
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1553..1559
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1897..1903
    packages/types-augment/src/lookup/types-polkadot.ts on lines 3251..3257
    packages/types-augment/src/lookup/types-substrate.ts on lines 3209..3215
    packages/types-augment/src/lookup/types-substrate.ts on lines 5051..5057
    packages/types-augment/src/lookup/types-substrate.ts on lines 5267..5273
    packages/types-augment/src/lookup/types-substrate.ts on lines 5865..5871
    packages/types-augment/src/lookup/types-substrate.ts on lines 6180..6186
    packages/types-augment/src/lookup/types-substrate.ts on lines 6618..6624
    packages/types-augment/src/lookup/types-substrate.ts on lines 6642..6648
    packages/types-augment/src/lookup/types-substrate.ts on lines 6651..6657
    packages/types-augment/src/lookup/types-substrate.ts on lines 8617..8623

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

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

      interface XcmV2MultiassetMultiAssetFilter extends Enum {
        readonly isDefinite: boolean;
        readonly asDefinite: XcmV2MultiassetMultiAssets;
        readonly isWild: boolean;
        readonly asWild: XcmV2MultiassetWildMultiAsset;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 17 other locations - About 1 hr to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 166..172
    packages/types-augment/src/lookup/types-polkadot.ts on lines 460..466
    packages/types-augment/src/lookup/types-polkadot.ts on lines 875..881
    packages/types-augment/src/lookup/types-polkadot.ts on lines 891..897
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1458..1464
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1897..1903
    packages/types-augment/src/lookup/types-polkadot.ts on lines 2192..2198
    packages/types-augment/src/lookup/types-polkadot.ts on lines 3251..3257
    packages/types-augment/src/lookup/types-substrate.ts on lines 3209..3215
    packages/types-augment/src/lookup/types-substrate.ts on lines 5051..5057
    packages/types-augment/src/lookup/types-substrate.ts on lines 5267..5273
    packages/types-augment/src/lookup/types-substrate.ts on lines 5865..5871
    packages/types-augment/src/lookup/types-substrate.ts on lines 6180..6186
    packages/types-augment/src/lookup/types-substrate.ts on lines 6618..6624
    packages/types-augment/src/lookup/types-substrate.ts on lines 6642..6648
    packages/types-augment/src/lookup/types-substrate.ts on lines 6651..6657
    packages/types-augment/src/lookup/types-substrate.ts on lines 8617..8623

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

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

      interface XcmV3MultiassetAssetId extends Enum {
        readonly isConcrete: boolean;
        readonly asConcrete: StagingXcmV3MultiLocation;
        readonly isAbstract: boolean;
        readonly asAbstract: U8aFixed;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 17 other locations - About 1 hr to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 460..466
    packages/types-augment/src/lookup/types-polkadot.ts on lines 875..881
    packages/types-augment/src/lookup/types-polkadot.ts on lines 891..897
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1458..1464
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1553..1559
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1897..1903
    packages/types-augment/src/lookup/types-polkadot.ts on lines 2192..2198
    packages/types-augment/src/lookup/types-polkadot.ts on lines 3251..3257
    packages/types-augment/src/lookup/types-substrate.ts on lines 3209..3215
    packages/types-augment/src/lookup/types-substrate.ts on lines 5051..5057
    packages/types-augment/src/lookup/types-substrate.ts on lines 5267..5273
    packages/types-augment/src/lookup/types-substrate.ts on lines 5865..5871
    packages/types-augment/src/lookup/types-substrate.ts on lines 6180..6186
    packages/types-augment/src/lookup/types-substrate.ts on lines 6618..6624
    packages/types-augment/src/lookup/types-substrate.ts on lines 6642..6648
    packages/types-augment/src/lookup/types-substrate.ts on lines 6651..6657
    packages/types-augment/src/lookup/types-substrate.ts on lines 8617..8623

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

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

      interface PalletXcmOrigin extends Enum {
        readonly isXcm: boolean;
        readonly asXcm: StagingXcmV4Location;
        readonly isResponse: boolean;
        readonly asResponse: StagingXcmV4Location;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 17 other locations - About 1 hr to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 166..172
    packages/types-augment/src/lookup/types-polkadot.ts on lines 875..881
    packages/types-augment/src/lookup/types-polkadot.ts on lines 891..897
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1458..1464
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1553..1559
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1897..1903
    packages/types-augment/src/lookup/types-polkadot.ts on lines 2192..2198
    packages/types-augment/src/lookup/types-polkadot.ts on lines 3251..3257
    packages/types-augment/src/lookup/types-substrate.ts on lines 3209..3215
    packages/types-augment/src/lookup/types-substrate.ts on lines 5051..5057
    packages/types-augment/src/lookup/types-substrate.ts on lines 5267..5273
    packages/types-augment/src/lookup/types-substrate.ts on lines 5865..5871
    packages/types-augment/src/lookup/types-substrate.ts on lines 6180..6186
    packages/types-augment/src/lookup/types-substrate.ts on lines 6618..6624
    packages/types-augment/src/lookup/types-substrate.ts on lines 6642..6648
    packages/types-augment/src/lookup/types-substrate.ts on lines 6651..6657
    packages/types-augment/src/lookup/types-substrate.ts on lines 8617..8623

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

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

      interface XcmV2MultiassetAssetId extends Enum {
        readonly isConcrete: boolean;
        readonly asConcrete: XcmV2MultiLocation;
        readonly isAbstract: boolean;
        readonly asAbstract: Bytes;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 17 other locations - About 1 hr to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 166..172
    packages/types-augment/src/lookup/types-polkadot.ts on lines 460..466
    packages/types-augment/src/lookup/types-polkadot.ts on lines 875..881
    packages/types-augment/src/lookup/types-polkadot.ts on lines 891..897
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1553..1559
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1897..1903
    packages/types-augment/src/lookup/types-polkadot.ts on lines 2192..2198
    packages/types-augment/src/lookup/types-polkadot.ts on lines 3251..3257
    packages/types-augment/src/lookup/types-substrate.ts on lines 3209..3215
    packages/types-augment/src/lookup/types-substrate.ts on lines 5051..5057
    packages/types-augment/src/lookup/types-substrate.ts on lines 5267..5273
    packages/types-augment/src/lookup/types-substrate.ts on lines 5865..5871
    packages/types-augment/src/lookup/types-substrate.ts on lines 6180..6186
    packages/types-augment/src/lookup/types-substrate.ts on lines 6618..6624
    packages/types-augment/src/lookup/types-substrate.ts on lines 6642..6648
    packages/types-augment/src/lookup/types-substrate.ts on lines 6651..6657
    packages/types-augment/src/lookup/types-substrate.ts on lines 8617..8623

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

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

      interface PolkadotPrimitivesV6DisputeStatement extends Enum {
        readonly isValid: boolean;
        readonly asValid: PolkadotPrimitivesV6ValidDisputeStatementKind;
        readonly isInvalid: boolean;
        readonly asInvalid: PolkadotPrimitivesV6InvalidDisputeStatementKind;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 17 other locations - About 1 hr to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 166..172
    packages/types-augment/src/lookup/types-polkadot.ts on lines 460..466
    packages/types-augment/src/lookup/types-polkadot.ts on lines 875..881
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1458..1464
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1553..1559
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1897..1903
    packages/types-augment/src/lookup/types-polkadot.ts on lines 2192..2198
    packages/types-augment/src/lookup/types-polkadot.ts on lines 3251..3257
    packages/types-augment/src/lookup/types-substrate.ts on lines 3209..3215
    packages/types-augment/src/lookup/types-substrate.ts on lines 5051..5057
    packages/types-augment/src/lookup/types-substrate.ts on lines 5267..5273
    packages/types-augment/src/lookup/types-substrate.ts on lines 5865..5871
    packages/types-augment/src/lookup/types-substrate.ts on lines 6180..6186
    packages/types-augment/src/lookup/types-substrate.ts on lines 6618..6624
    packages/types-augment/src/lookup/types-substrate.ts on lines 6642..6648
    packages/types-augment/src/lookup/types-substrate.ts on lines 6651..6657
    packages/types-augment/src/lookup/types-substrate.ts on lines 8617..8623

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

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

      interface PolkadotPrimitivesV6ValidityAttestation extends Enum {
        readonly isImplicit: boolean;
        readonly asImplicit: PolkadotPrimitivesV6ValidatorAppSignature;
        readonly isExplicit: boolean;
        readonly asExplicit: PolkadotPrimitivesV6ValidatorAppSignature;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 17 other locations - About 1 hr to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 166..172
    packages/types-augment/src/lookup/types-polkadot.ts on lines 460..466
    packages/types-augment/src/lookup/types-polkadot.ts on lines 891..897
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1458..1464
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1553..1559
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1897..1903
    packages/types-augment/src/lookup/types-polkadot.ts on lines 2192..2198
    packages/types-augment/src/lookup/types-polkadot.ts on lines 3251..3257
    packages/types-augment/src/lookup/types-substrate.ts on lines 3209..3215
    packages/types-augment/src/lookup/types-substrate.ts on lines 5051..5057
    packages/types-augment/src/lookup/types-substrate.ts on lines 5267..5273
    packages/types-augment/src/lookup/types-substrate.ts on lines 5865..5871
    packages/types-augment/src/lookup/types-substrate.ts on lines 6180..6186
    packages/types-augment/src/lookup/types-substrate.ts on lines 6618..6624
    packages/types-augment/src/lookup/types-substrate.ts on lines 6642..6648
    packages/types-augment/src/lookup/types-substrate.ts on lines 6651..6657
    packages/types-augment/src/lookup/types-substrate.ts on lines 8617..8623

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

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

      interface XcmVersionedAssetId extends Enum {
        readonly isV3: boolean;
        readonly asV3: XcmV3MultiassetAssetId;
        readonly isV4: boolean;
        readonly asV4: StagingXcmV4AssetAssetId;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 17 other locations - About 1 hr to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 166..172
    packages/types-augment/src/lookup/types-polkadot.ts on lines 460..466
    packages/types-augment/src/lookup/types-polkadot.ts on lines 875..881
    packages/types-augment/src/lookup/types-polkadot.ts on lines 891..897
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1458..1464
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1553..1559
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1897..1903
    packages/types-augment/src/lookup/types-polkadot.ts on lines 2192..2198
    packages/types-augment/src/lookup/types-substrate.ts on lines 3209..3215
    packages/types-augment/src/lookup/types-substrate.ts on lines 5051..5057
    packages/types-augment/src/lookup/types-substrate.ts on lines 5267..5273
    packages/types-augment/src/lookup/types-substrate.ts on lines 5865..5871
    packages/types-augment/src/lookup/types-substrate.ts on lines 6180..6186
    packages/types-augment/src/lookup/types-substrate.ts on lines 6618..6624
    packages/types-augment/src/lookup/types-substrate.ts on lines 6642..6648
    packages/types-augment/src/lookup/types-substrate.ts on lines 6651..6657
    packages/types-augment/src/lookup/types-substrate.ts on lines 8617..8623

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

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

      interface XcmV3MultiassetMultiAssetFilter extends Enum {
        readonly isDefinite: boolean;
        readonly asDefinite: XcmV3MultiassetMultiAssets;
        readonly isWild: boolean;
        readonly asWild: XcmV3MultiassetWildMultiAsset;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 17 other locations - About 1 hr to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 166..172
    packages/types-augment/src/lookup/types-polkadot.ts on lines 460..466
    packages/types-augment/src/lookup/types-polkadot.ts on lines 875..881
    packages/types-augment/src/lookup/types-polkadot.ts on lines 891..897
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1458..1464
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1553..1559
    packages/types-augment/src/lookup/types-polkadot.ts on lines 2192..2198
    packages/types-augment/src/lookup/types-polkadot.ts on lines 3251..3257
    packages/types-augment/src/lookup/types-substrate.ts on lines 3209..3215
    packages/types-augment/src/lookup/types-substrate.ts on lines 5051..5057
    packages/types-augment/src/lookup/types-substrate.ts on lines 5267..5273
    packages/types-augment/src/lookup/types-substrate.ts on lines 5865..5871
    packages/types-augment/src/lookup/types-substrate.ts on lines 6180..6186
    packages/types-augment/src/lookup/types-substrate.ts on lines 6618..6624
    packages/types-augment/src/lookup/types-substrate.ts on lines 6642..6648
    packages/types-augment/src/lookup/types-substrate.ts on lines 6651..6657
    packages/types-augment/src/lookup/types-substrate.ts on lines 8617..8623

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

    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

      interface XcmV2NetworkId extends Enum {
        readonly isAny: boolean;
        readonly isNamed: boolean;
        readonly asNamed: Bytes;
        readonly isPolkadot: boolean;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 1 other location - About 1 hr to fix
    packages/types/src/interfaces/xcm/types.ts on lines 453..460

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

    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

      interface PolkadotPrimitivesV6DisputeState extends Struct {
        readonly validatorsFor: BitVec;
        readonly validatorsAgainst: BitVec;
        readonly start: u32;
        readonly concludedAt: Option<u32>;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 2 other locations - About 1 hr to fix
    packages/types-augment/src/lookup/types-substrate.ts on lines 7059..7064
    packages/types-augment/src/lookup/types-substrate.ts on lines 7880..7885

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

    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

        readonly asInvalidQuerier: {
          readonly origin: StagingXcmV4Location;
          readonly queryId: u64;
          readonly expectedQuerier: StagingXcmV4Location;
          readonly maybeActualQuerier: Option<StagingXcmV4Location>;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 7 other locations - About 1 hr to fix
    packages/types-augment/src/lookup/types-substrate.ts on lines 362..367
    packages/types-augment/src/lookup/types-substrate.ts on lines 1825..1830
    packages/types-augment/src/lookup/types-substrate.ts on lines 2012..2017
    packages/types-augment/src/lookup/types-substrate.ts on lines 4475..4480
    packages/types-augment/src/lookup/types-substrate.ts on lines 4542..4547
    packages/types-augment/src/lookup/types-substrate.ts on lines 6451..6456
    packages/types/src/interfaces/xcm/types.ts on lines 850..855

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

    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

        readonly asDepositReserveAsset: {
          readonly assets: XcmV2MultiassetMultiAssetFilter;
          readonly maxAssets: Compact<u32>;
          readonly dest: XcmV2MultiLocation;
          readonly xcm: XcmV2Xcm;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 6 other locations - About 1 hr to fix
    packages/types-augment/src/lookup/types-substrate.ts on lines 1802..1807
    packages/types-augment/src/lookup/types-substrate.ts on lines 1975..1980
    packages/types-augment/src/lookup/types-substrate.ts on lines 2075..2080
    packages/types-augment/src/lookup/types-substrate.ts on lines 3928..3933
    packages/types-augment/src/lookup/types-substrate.ts on lines 4391..4396
    packages/types-augment/src/lookup/types-substrate.ts on lines 4584..4589

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

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

        readonly asReportError: {
          readonly queryId: Compact<u64>;
          readonly dest: XcmV2MultiLocation;
          readonly maxResponseWeight: Compact<u64>;
        } & Struct;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 16 other locations - About 50 mins to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1337..1341
    packages/types-augment/src/lookup/types-substrate.ts on lines 3087..3091
    packages/types-augment/src/lookup/types-substrate.ts on lines 3949..3953
    packages/types-augment/src/lookup/types-substrate.ts on lines 4048..4052
    packages/types-augment/src/lookup/types-substrate.ts on lines 4054..4058
    packages/types-augment/src/lookup/types-substrate.ts on lines 4060..4064
    packages/types-augment/src/lookup/types-substrate.ts on lines 4066..4070
    packages/types-augment/src/lookup/types-substrate.ts on lines 4143..4147
    packages/types-augment/src/lookup/types-substrate.ts on lines 5174..5178
    packages/types/src/interfaces/xcm/types.ts on lines 134..138
    packages/types/src/interfaces/xcm/types.ts on lines 176..180
    packages/types/src/interfaces/xcm/types.ts on lines 801..805
    packages/types/src/interfaces/xcm/types.ts on lines 812..816
    packages/types/src/interfaces/xcm/types.ts on lines 818..822
    packages/types/src/interfaces/xcm/types.ts on lines 824..828
    packages/types/src/interfaces/xcm/types.ts on lines 945..949

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

    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

      interface PolkadotRuntimeParachainsParasInherentPalletCall extends Enum {
        readonly isEnter: boolean;
        readonly asEnter: {
          readonly data: PolkadotPrimitivesV6InherentData;
        } & Struct;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 5 other locations - About 50 mins to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 975..981
    packages/types-augment/src/lookup/types-substrate.ts on lines 558..564
    packages/types-augment/src/lookup/types-substrate.ts on lines 5060..5066
    packages/types-augment/src/lookup/types-substrate.ts on lines 5856..5862
    packages/types-augment/src/lookup/types-substrate.ts on lines 6671..6677

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

    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

      interface PolkadotRuntimeParachainsInitializerPalletCall extends Enum {
        readonly isForceApprove: boolean;
        readonly asForceApprove: {
          readonly upTo: u32;
        } & Struct;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 5 other locations - About 50 mins to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 797..803
    packages/types-augment/src/lookup/types-substrate.ts on lines 558..564
    packages/types-augment/src/lookup/types-substrate.ts on lines 5060..5066
    packages/types-augment/src/lookup/types-substrate.ts on lines 5856..5862
    packages/types-augment/src/lookup/types-substrate.ts on lines 6671..6677

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

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

        readonly asQueryResponse: {
          readonly queryId: Compact<u64>;
          readonly response: XcmV2Response;
          readonly maxWeight: Compact<u64>;
        } & Struct;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 16 other locations - About 50 mins to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1379..1383
    packages/types-augment/src/lookup/types-substrate.ts on lines 3087..3091
    packages/types-augment/src/lookup/types-substrate.ts on lines 3949..3953
    packages/types-augment/src/lookup/types-substrate.ts on lines 4048..4052
    packages/types-augment/src/lookup/types-substrate.ts on lines 4054..4058
    packages/types-augment/src/lookup/types-substrate.ts on lines 4060..4064
    packages/types-augment/src/lookup/types-substrate.ts on lines 4066..4070
    packages/types-augment/src/lookup/types-substrate.ts on lines 4143..4147
    packages/types-augment/src/lookup/types-substrate.ts on lines 5174..5178
    packages/types/src/interfaces/xcm/types.ts on lines 134..138
    packages/types/src/interfaces/xcm/types.ts on lines 176..180
    packages/types/src/interfaces/xcm/types.ts on lines 801..805
    packages/types/src/interfaces/xcm/types.ts on lines 812..816
    packages/types/src/interfaces/xcm/types.ts on lines 818..822
    packages/types/src/interfaces/xcm/types.ts on lines 824..828
    packages/types/src/interfaces/xcm/types.ts on lines 945..949

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

    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

      interface PolkadotRuntimeParachainsSchedulerPalletCoreOccupied extends Enum {
        readonly isFree: boolean;
        readonly isParas: boolean;
        readonly asParas: PolkadotRuntimeParachainsSchedulerPalletParasEntry;
        readonly type: 'Free' | 'Paras';
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 4 other locations - About 50 mins to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1932..1937
    packages/types-augment/src/lookup/types-substrate.ts on lines 935..940
    packages/types-augment/src/lookup/types-substrate.ts on lines 5464..5469
    packages/types-augment/src/lookup/types-substrate.ts on lines 5554..5559

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

    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

      interface XcmV3WeightLimit extends Enum {
        readonly isUnlimited: boolean;
        readonly isLimited: boolean;
        readonly asLimited: SpWeightsWeightV2Weight;
        readonly type: 'Unlimited' | 'Limited';
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 4 other locations - About 50 mins to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 2866..2871
    packages/types-augment/src/lookup/types-substrate.ts on lines 935..940
    packages/types-augment/src/lookup/types-substrate.ts on lines 5464..5469
    packages/types-augment/src/lookup/types-substrate.ts on lines 5554..5559

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

    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

      interface PolkadotPrimitivesV6SlashingDisputeProof extends Struct {
        readonly timeSlot: PolkadotPrimitivesV6SlashingDisputesTimeSlot;
        readonly kind: PolkadotPrimitivesV6SlashingSlashingOffenceKind;
        readonly validatorIndex: u32;
        readonly validatorId: PolkadotPrimitivesV6ValidatorAppPublic;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 12 other locations - About 45 mins to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 967..972
    packages/types-augment/src/lookup/types-substrate.ts on lines 26..31
    packages/types-augment/src/lookup/types-substrate.ts on lines 1176..1181
    packages/types-augment/src/lookup/types-substrate.ts on lines 2580..2585
    packages/types-augment/src/lookup/types-substrate.ts on lines 3431..3436
    packages/types-augment/src/lookup/types-substrate.ts on lines 4758..4763
    packages/types-augment/src/lookup/types-substrate.ts on lines 5838..5843
    packages/types-augment/src/lookup/types-substrate.ts on lines 6980..6985
    packages/types-augment/src/lookup/types-substrate.ts on lines 7310..7315
    packages/types-augment/src/lookup/types-substrate.ts on lines 8003..8008
    packages/types-augment/src/lookup/types-substrate.ts on lines 8331..8336
    packages/types-augment/src/lookup/types-substrate.ts on lines 8417..8422

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

    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

      interface PolkadotPrimitivesV6PvfCheckStatement extends Struct {
        readonly accept: bool;
        readonly subject: H256;
        readonly sessionIndex: u32;
        readonly validatorIndex: u32;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 12 other locations - About 45 mins to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1061..1066
    packages/types-augment/src/lookup/types-substrate.ts on lines 26..31
    packages/types-augment/src/lookup/types-substrate.ts on lines 1176..1181
    packages/types-augment/src/lookup/types-substrate.ts on lines 2580..2585
    packages/types-augment/src/lookup/types-substrate.ts on lines 3431..3436
    packages/types-augment/src/lookup/types-substrate.ts on lines 4758..4763
    packages/types-augment/src/lookup/types-substrate.ts on lines 5838..5843
    packages/types-augment/src/lookup/types-substrate.ts on lines 6980..6985
    packages/types-augment/src/lookup/types-substrate.ts on lines 7310..7315
    packages/types-augment/src/lookup/types-substrate.ts on lines 8003..8008
    packages/types-augment/src/lookup/types-substrate.ts on lines 8331..8336
    packages/types-augment/src/lookup/types-substrate.ts on lines 8417..8422

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

    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

      interface PolkadotPrimitivesV6DisputeStatementSet extends Struct {
        readonly candidateHash: H256;
        readonly session: u32;
        readonly statements: Vec<ITuple<[PolkadotPrimitivesV6DisputeStatement, u32, PolkadotPrimitivesV6ValidatorAppSignature]>>;
      }
    Severity: Minor
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 1 other location - About 45 mins to fix
    packages/types/src/interfaces/parachains/types.ts on lines 279..283

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

    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

      interface XcmV3QueryResponseInfo extends Struct {
        readonly destination: StagingXcmV3MultiLocation;
        readonly queryId: Compact<u64>;
        readonly maxWeight: SpWeightsWeightV2Weight;
      }
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 5 other locations - About 35 mins to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 827..831
    packages/types-augment/src/lookup/types-polkadot.ts on lines 2185..2189
    packages/types-augment/src/lookup/types-substrate.ts on lines 2600..2604
    packages/types-augment/src/lookup/types-substrate.ts on lines 4692..4696
    packages/types-augment/src/lookup/types-substrate.ts on lines 5663..5667

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

    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

      interface PolkadotPrimitivesV6BackedCandidate extends Struct {
        readonly candidate: PolkadotPrimitivesV6CommittedCandidateReceipt;
        readonly validityVotes: Vec<PolkadotPrimitivesV6ValidityAttestation>;
        readonly validatorIndices: BitVec;
      }
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 5 other locations - About 35 mins to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1890..1894
    packages/types-augment/src/lookup/types-polkadot.ts on lines 2185..2189
    packages/types-augment/src/lookup/types-substrate.ts on lines 2600..2604
    packages/types-augment/src/lookup/types-substrate.ts on lines 4692..4696
    packages/types-augment/src/lookup/types-substrate.ts on lines 5663..5667

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

    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

      interface PolkadotRuntimeCommonParasRegistrarParaInfo extends Struct {
        readonly manager: AccountId32;
        readonly deposit: u128;
        readonly locked: Option<bool>;
      }
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 5 other locations - About 35 mins to fix
    packages/types-augment/src/lookup/types-substrate.ts on lines 66..70
    packages/types-augment/src/lookup/types-substrate.ts on lines 5846..5850
    packages/types-augment/src/lookup/types-substrate.ts on lines 7730..7734
    packages/types-augment/src/lookup/types-substrate.ts on lines 9037..9041
    packages/types-augment/src/lookup/types-substrate.ts on lines 9056..9060

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

    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

      interface StagingXcmV4QueryResponseInfo extends Struct {
        readonly destination: StagingXcmV4Location;
        readonly queryId: Compact<u64>;
        readonly maxWeight: SpWeightsWeightV2Weight;
      }
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 5 other locations - About 35 mins to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 827..831
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1890..1894
    packages/types-augment/src/lookup/types-substrate.ts on lines 2600..2604
    packages/types-augment/src/lookup/types-substrate.ts on lines 4692..4696
    packages/types-augment/src/lookup/types-substrate.ts on lines 5663..5667

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

    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

        readonly type: 'Send' | 'TeleportAssets' | 'ReserveTransferAssets' | 'Execute' | 'ForceXcmVersion' | 'ForceDefaultXcmVersion' | 'ForceSubscribeVersionNotify' | 'ForceUnsubscribeVersionNotify' | 'LimitedReserveTransferAssets' | 'LimitedTeleportAssets' | 'ForceSuspension' | 'TransferAssets' | 'ClaimAssets';
    Severity: Minor
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 2 other locations - About 35 mins to fix
    packages/types-augment/src/lookup/types-substrate.ts on lines 6034..6034
    packages/types/src/interfaces/system/types.ts on lines 129..129

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

    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

        readonly asDepositAsset: {
          readonly assets: XcmV2MultiassetMultiAssetFilter;
          readonly maxAssets: Compact<u32>;
          readonly beneficiary: XcmV2MultiLocation;
        } & Struct;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 8 other locations - About 35 mins to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1354..1358
    packages/types-augment/src/lookup/types-substrate.ts on lines 390..394
    packages/types-augment/src/lookup/types-substrate.ts on lines 1809..1813
    packages/types-augment/src/lookup/types-substrate.ts on lines 3093..3097
    packages/types-augment/src/lookup/types-substrate.ts on lines 3847..3851
    packages/types-augment/src/lookup/types-substrate.ts on lines 4398..4402
    packages/types-augment/src/lookup/types-substrate.ts on lines 4921..4925
    packages/types-augment/src/lookup/types-substrate.ts on lines 5180..5184

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

    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

        readonly asTransact: {
          readonly originType: XcmV2OriginKind;
          readonly requireWeightAtMost: Compact<u64>;
          readonly call: XcmDoubleEncoded;
        } & Struct;
    Severity: Major
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 8 other locations - About 35 mins to fix
    packages/types-augment/src/lookup/types-polkadot.ts on lines 1385..1389
    packages/types-augment/src/lookup/types-substrate.ts on lines 390..394
    packages/types-augment/src/lookup/types-substrate.ts on lines 1809..1813
    packages/types-augment/src/lookup/types-substrate.ts on lines 3093..3097
    packages/types-augment/src/lookup/types-substrate.ts on lines 3847..3851
    packages/types-augment/src/lookup/types-substrate.ts on lines 4398..4402
    packages/types-augment/src/lookup/types-substrate.ts on lines 4921..4925
    packages/types-augment/src/lookup/types-substrate.ts on lines 5180..5184

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

    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

      interface XcmV2WeightLimit extends Enum {
        readonly isUnlimited: boolean;
        readonly isLimited: boolean;
        readonly asLimited: Compact<u64>;
        readonly type: 'Unlimited' | 'Limited';
    Severity: Minor
    Found in packages/types-augment/src/lookup/types-polkadot.ts and 1 other location - About 35 mins to fix
    packages/types/src/interfaces/xcm/types.ts on lines 622..627

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

    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