olehmell/subsocial-sdk

View on GitHub
packages/definitions/src/interfaces/types-lookup.ts

Summary

Maintainability
F
1 mo
Test Coverage

File types-lookup.ts has 2579 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/definitions/src/interfaces/types-lookup.ts - About 1 wk to fix

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

      interface XcmV0MultiLocation extends Enum {
        readonly isNull: boolean;
        readonly isX1: boolean;
        readonly asX1: XcmV0Junction;
        readonly isX2: boolean;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 1 other location - About 1 day to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 478..497

    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 XcmV1MultilocationJunctions extends Enum {
        readonly isHere: boolean;
        readonly isX1: boolean;
        readonly asX1: XcmV1Junction;
        readonly isX2: boolean;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 1 other location - About 1 day to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 866..885

    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

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

      interface PalletPermissionsSpacePermission extends Enum {
        readonly isManageRoles: boolean;
        readonly isRepresentSpaceInternally: boolean;
        readonly isRepresentSpaceExternally: boolean;
        readonly isUpdateSpace: boolean;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 1 other location - About 1 day to fix
    packages/definitions/src/interfaces/subsocial/types.ts on lines 223..256

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

    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 PalletSpaceFollowsCall extends Enum {
        readonly isFollowSpace: boolean;
        readonly asFollowSpace: {
          readonly spaceId: u64;
        } & Struct;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 1 other location - About 4 hrs to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 2388..2403

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

      interface PalletAccountFollowsCall extends Enum {
        readonly isFollowAccount: boolean;
        readonly asFollowAccount: {
          readonly account: AccountId32;
        } & Struct;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 1 other location - About 4 hrs to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 2421..2436

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

      interface PalletCollatorSelectionError extends Enum {
        readonly isTooManyCandidates: boolean;
        readonly isTooFewCandidates: boolean;
        readonly isUnknown: boolean;
        readonly isPermission: boolean;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 1 other location - About 3 hrs to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 2796..2807

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

      interface PalletRolesError extends Enum {
        readonly isRoleNotFound: boolean;
        readonly isRoleIdOverflow: boolean;
        readonly isNoPermissionToManageRoles: boolean;
        readonly isNoUpdatesProvided: boolean;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 1 other location - About 3 hrs to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 1602..1613

    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 PalletAccountFollowsEvent extends Enum {
        readonly isAccountFollowed: boolean;
        readonly asAccountFollowed: {
          readonly follower: AccountId32;
          readonly account: AccountId32;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 2 other locations - About 3 hrs to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 1088..1100
    packages/definitions/src/interfaces/types-lookup.ts on lines 1124..1136

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

      interface PalletSpacesEvent extends Enum {
        readonly isSpaceCreated: boolean;
        readonly asSpaceCreated: {
          readonly account: AccountId32;
          readonly spaceId: u64;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 2 other locations - About 3 hrs to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 1063..1075
    packages/definitions/src/interfaces/types-lookup.ts on lines 1088..1100

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

      interface PalletSpaceFollowsEvent extends Enum {
        readonly isSpaceFollowed: boolean;
        readonly asSpaceFollowed: {
          readonly follower: AccountId32;
          readonly spaceId: u64;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 2 other locations - About 3 hrs to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 1063..1075
    packages/definitions/src/interfaces/types-lookup.ts on lines 1124..1136

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

      interface PalletBalancesError extends Enum {
        readonly isVestingBalance: boolean;
        readonly isLiquidityRestrictions: boolean;
        readonly isInsufficientBalance: boolean;
        readonly isExistentialDeposit: boolean;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 3 other locations - About 3 hrs to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 1428..1438
    packages/definitions/src/interfaces/types-lookup.ts on lines 2626..2636
    packages/definitions/src/interfaces/types-lookup.ts on lines 2857..2867

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

      interface CumulusPalletParachainSystemError extends Enum {
        readonly isOverlappingUpgrades: boolean;
        readonly isProhibitedByPolkadot: boolean;
        readonly isTooBig: boolean;
        readonly isValidationDataNotAvailable: boolean;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 3 other locations - About 3 hrs to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 1515..1525
    packages/definitions/src/interfaces/types-lookup.ts on lines 2626..2636
    packages/definitions/src/interfaces/types-lookup.ts on lines 2857..2867

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

      interface PalletSpacesError extends Enum {
        readonly isSpaceNotFound: boolean;
        readonly isNoUpdatesForSpace: boolean;
        readonly isNotASpaceOwner: boolean;
        readonly isNoPermissionToUpdateSpace: boolean;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 3 other locations - About 3 hrs to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 1428..1438
    packages/definitions/src/interfaces/types-lookup.ts on lines 1515..1525
    packages/definitions/src/interfaces/types-lookup.ts on lines 2626..2636

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

      interface PalletProxyError extends Enum {
        readonly isTooMany: boolean;
        readonly isNotFound: boolean;
        readonly isNotProxy: boolean;
        readonly isUnproxyable: boolean;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 3 other locations - About 3 hrs to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 1428..1438
    packages/definitions/src/interfaces/types-lookup.ts on lines 1515..1525
    packages/definitions/src/interfaces/types-lookup.ts on lines 2857..2867

    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 PalletPostsPost extends Struct {
        readonly id: u64;
        readonly created: SubsocialSupportWhoAndWhen;
        readonly edited: bool;
        readonly owner: AccountId32;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 1 other location - About 3 hrs to fix
    packages/definitions/src/interfaces/subsocial/types.ts on lines 89..100

    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 SpRuntimeTokenError extends Enum {
        readonly isNoFunds: boolean;
        readonly isWouldDie: boolean;
        readonly isBelowMinimum: boolean;
        readonly isCannotCreate: boolean;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 1 other location - About 2 hrs to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 1565..1574

    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 PalletAuthorshipError extends Enum {
        readonly isInvalidUncleParent: boolean;
        readonly isUnclesAlreadySet: boolean;
        readonly isTooManyUncles: boolean;
        readonly isGenesisUncle: boolean;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 1 other location - About 2 hrs to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 140..149

    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 FrameSystemError extends Enum {
        readonly isInvalidSpecName: boolean;
        readonly isSpecVersionNeedsToIncrease: boolean;
        readonly isFailedToExtractRuntimeVersion: boolean;
        readonly isNonDefaultComposite: boolean;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 1 other location - About 2 hrs to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 2810..2818

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

      interface PalletAccountFollowsError extends Enum {
        readonly isFollowerAccountNotFound: boolean;
        readonly isFollowedAccountNotFound: boolean;
        readonly isAccountCannotFollowItself: boolean;
        readonly isAccountCannotUnfollowItself: boolean;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 1 other location - About 2 hrs to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 1320..1328

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

      interface XcmVersionedXcm extends Enum {
        readonly isV0: boolean;
        readonly asV0: XcmV0Xcm;
        readonly isV1: boolean;
        readonly asV1: XcmV1Xcm;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 2 other locations - About 2 hrs to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 2264..2272
    packages/definitions/src/interfaces/types-lookup.ts on lines 2941..2949

    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 SpRuntimeMultiSignature extends Enum {
        readonly isEd25519: boolean;
        readonly asEd25519: SpCoreEd25519Signature;
        readonly isSr25519: boolean;
        readonly asSr25519: SpCoreSr25519Signature;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 2 other locations - About 2 hrs to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 1941..1949
    packages/definitions/src/interfaces/types-lookup.ts on lines 2264..2272

    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 PalletDomainsInnerValue extends Enum {
        readonly isAccount: boolean;
        readonly asAccount: AccountId32;
        readonly isSpace: boolean;
        readonly asSpace: u64;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 2 other locations - About 2 hrs to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 1941..1949
    packages/definitions/src/interfaces/types-lookup.ts on lines 2941..2949

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

        readonly asForceCreateRole: {
          readonly created: SubsocialSupportWhoAndWhen;
          readonly roleId: u64;
          readonly spaceId: u64;
          readonly disabled: bool;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 1 other location - About 1 hr to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 2469..2476

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

    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 asForceCreateSpace: {
          readonly spaceId: u64;
          readonly created: SubsocialSupportWhoAndWhen;
          readonly owner: AccountId32;
          readonly content: SubsocialSupportContent;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 1 other location - About 1 hr to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 2317..2324

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

    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 PalletSpaceOwnershipError extends Enum {
        readonly isCannotTransferToCurrentOwner: boolean;
        readonly isAlreadyASpaceOwner: boolean;
        readonly isNoPendingTransferOnSpace: boolean;
        readonly isNotAllowedToAcceptOwnershipTransfer: boolean;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 3 other locations - About 1 hr to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 1641..1648
    packages/definitions/src/interfaces/types-lookup.ts on lines 1691..1698
    packages/definitions/src/interfaces/types-lookup.ts on lines 2693..2700

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

    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 CumulusPalletXcmpQueueError extends Enum {
        readonly isFailedToSend: boolean;
        readonly isBadXcmOrigin: boolean;
        readonly isBadXcm: boolean;
        readonly isBadOverweightIndex: boolean;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 3 other locations - About 1 hr to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 1641..1648
    packages/definitions/src/interfaces/types-lookup.ts on lines 1691..1698
    packages/definitions/src/interfaces/types-lookup.ts on lines 2836..2843

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

    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 PalletSessionError extends Enum {
        readonly isInvalidProof: boolean;
        readonly isNoAssociatedValidatorId: boolean;
        readonly isDuplicatedKey: boolean;
        readonly isNoKeys: boolean;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 3 other locations - About 1 hr to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 1691..1698
    packages/definitions/src/interfaces/types-lookup.ts on lines 2693..2700
    packages/definitions/src/interfaces/types-lookup.ts on lines 2836..2843

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

    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 PalletVestingError extends Enum {
        readonly isNotVesting: boolean;
        readonly isAtMaxVestingSchedules: boolean;
        readonly isAmountLow: boolean;
        readonly isScheduleIndexOutOfBounds: boolean;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 3 other locations - About 1 hr to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 1641..1648
    packages/definitions/src/interfaces/types-lookup.ts on lines 2693..2700
    packages/definitions/src/interfaces/types-lookup.ts on lines 2836..2843

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

    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 SubsocialSupportContent extends Enum {
        readonly isNone: boolean;
        readonly isOther: boolean;
        readonly asOther: Bytes;
        readonly isIpfs: boolean;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 1 other location - About 1 hr to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 2541..2548

    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 PalletPostsPostExtension extends Enum {
        readonly isRegularPost: boolean;
        readonly isComment: boolean;
        readonly asComment: PalletPostsComment;
        readonly isSharedPost: boolean;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 1 other location - About 1 hr to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 2254..2261

    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 XcmV1MultiassetFungibility extends Enum {
        readonly isFungible: boolean;
        readonly asFungible: Compact<u128>;
        readonly isNonFungible: boolean;
        readonly asNonFungible: XcmV1MultiassetAssetInstance;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 1 other location - About 1 hr to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 812..818

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

      interface XcmVersionedMultiAssets extends Enum {
        readonly isV0: boolean;
        readonly asV0: Vec<XcmV0MultiAsset>;
        readonly isV1: boolean;
        readonly asV1: XcmV1MultiassetMultiAssets;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 1 other location - About 1 hr to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 724..730

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

      interface PalletSpacesSpaceUpdate extends Struct {
        readonly content: Option<SubsocialSupportContent>;
        readonly hidden: Option<bool>;
        readonly permissions: Option<Option<PalletPermissionsSpacePermissions>>;
      }
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 1 other location - About 1 hr to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 2374..2378

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

    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 PalletRolesRoleUpdate extends Struct {
        readonly disabled: Option<bool>;
        readonly content: Option<SubsocialSupportContent>;
        readonly permissions: Option<BTreeSet<PalletPermissionsSpacePermission>>;
      }
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 1 other location - About 1 hr to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 2493..2497

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

    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 asBuyExecution: {
          readonly fees: XcmV1MultiAsset;
          readonly weight: u64;
          readonly debt: u64;
          readonly haltOnError: bool;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 1 other location - About 1 hr to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 2052..2058

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

    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 asBuyExecution: {
          readonly fees: XcmV0MultiAsset;
          readonly weight: u64;
          readonly debt: u64;
          readonly haltOnError: bool;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 1 other location - About 1 hr to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 2178..2184

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

    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 XcmV1MultiassetMultiAssetFilter extends Enum {
        readonly isDefinite: boolean;
        readonly asDefinite: XcmV1MultiassetMultiAssets;
        readonly isWild: boolean;
        readonly asWild: XcmV1MultiassetWildMultiAsset;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 5 other locations - About 1 hr to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 715..721
    packages/definitions/src/interfaces/types-lookup.ts on lines 923..929
    packages/definitions/src/interfaces/types-lookup.ts on lines 1054..1060
    packages/definitions/src/interfaces/types-lookup.ts on lines 1823..1829
    packages/definitions/src/interfaces/types-lookup.ts on lines 2189..2195

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

      interface XcmV1Response extends Enum {
        readonly isAssets: boolean;
        readonly asAssets: XcmV1MultiassetMultiAssets;
        readonly isVersion: boolean;
        readonly asVersion: u32;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 5 other locations - About 1 hr to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 715..721
    packages/definitions/src/interfaces/types-lookup.ts on lines 777..783
    packages/definitions/src/interfaces/types-lookup.ts on lines 923..929
    packages/definitions/src/interfaces/types-lookup.ts on lines 1054..1060
    packages/definitions/src/interfaces/types-lookup.ts on lines 1823..1829

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

      interface XcmVersionedMultiLocation extends Enum {
        readonly isV0: boolean;
        readonly asV0: XcmV0MultiLocation;
        readonly isV1: boolean;
        readonly asV1: XcmV1MultiLocation;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 5 other locations - About 1 hr to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 715..721
    packages/definitions/src/interfaces/types-lookup.ts on lines 777..783
    packages/definitions/src/interfaces/types-lookup.ts on lines 1054..1060
    packages/definitions/src/interfaces/types-lookup.ts on lines 1823..1829
    packages/definitions/src/interfaces/types-lookup.ts on lines 2189..2195

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

      interface PalletXcmOrigin extends Enum {
        readonly isXcm: boolean;
        readonly asXcm: XcmV1MultiLocation;
        readonly isResponse: boolean;
        readonly asResponse: XcmV1MultiLocation;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 5 other locations - About 1 hr to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 715..721
    packages/definitions/src/interfaces/types-lookup.ts on lines 777..783
    packages/definitions/src/interfaces/types-lookup.ts on lines 923..929
    packages/definitions/src/interfaces/types-lookup.ts on lines 1054..1060
    packages/definitions/src/interfaces/types-lookup.ts on lines 2189..2195

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

      interface SubsocialSupportUser extends Enum {
        readonly isAccount: boolean;
        readonly asAccount: AccountId32;
        readonly isSpace: boolean;
        readonly asSpace: u64;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 5 other locations - About 1 hr to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 715..721
    packages/definitions/src/interfaces/types-lookup.ts on lines 777..783
    packages/definitions/src/interfaces/types-lookup.ts on lines 923..929
    packages/definitions/src/interfaces/types-lookup.ts on lines 1823..1829
    packages/definitions/src/interfaces/types-lookup.ts on lines 2189..2195

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

      interface XcmV1MultiassetAssetId extends Enum {
        readonly isConcrete: boolean;
        readonly asConcrete: XcmV1MultiLocation;
        readonly isAbstract: boolean;
        readonly asAbstract: Bytes;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 5 other locations - About 1 hr to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 777..783
    packages/definitions/src/interfaces/types-lookup.ts on lines 923..929
    packages/definitions/src/interfaces/types-lookup.ts on lines 1054..1060
    packages/definitions/src/interfaces/types-lookup.ts on lines 1823..1829
    packages/definitions/src/interfaces/types-lookup.ts on lines 2189..2195

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

      interface CumulusPalletXcmpQueueOutboundChannelDetails extends Struct {
        readonly recipient: u32;
        readonly state: CumulusPalletXcmpQueueOutboundState;
        readonly signalsExist: bool;
        readonly firstIndex: u16;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 1 other location - About 1 hr to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 15..21

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

    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 FrameSystemAccountInfo extends Struct {
        readonly nonce: u32;
        readonly consumers: u32;
        readonly providers: u32;
        readonly sufficients: u32;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 1 other location - About 1 hr to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 2667..2673

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

    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

        readonly asHrmpNewChannelOpenRequest: {
          readonly sender: Compact<u32>;
          readonly maxMessageSize: Compact<u32>;
          readonly maxCapacity: Compact<u32>;
        } & Struct;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 5 other locations - About 1 hr to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 627..631
    packages/definitions/src/interfaces/types-lookup.ts on lines 1991..1995
    packages/definitions/src/interfaces/types-lookup.ts on lines 2001..2005
    packages/definitions/src/interfaces/types-lookup.ts on lines 2109..2113
    packages/definitions/src/interfaces/types-lookup.ts on lines 2119..2123

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

    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

        readonly asHrmpChannelClosing: {
          readonly initiator: Compact<u32>;
          readonly sender: Compact<u32>;
          readonly recipient: Compact<u32>;
        } & Struct;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 5 other locations - About 1 hr to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 617..621
    packages/definitions/src/interfaces/types-lookup.ts on lines 627..631
    packages/definitions/src/interfaces/types-lookup.ts on lines 1991..1995
    packages/definitions/src/interfaces/types-lookup.ts on lines 2109..2113
    packages/definitions/src/interfaces/types-lookup.ts on lines 2119..2123

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

    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

        readonly asHrmpNewChannelOpenRequest: {
          readonly sender: Compact<u32>;
          readonly maxMessageSize: Compact<u32>;
          readonly maxCapacity: Compact<u32>;
        } & Struct;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 5 other locations - About 1 hr to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 617..621
    packages/definitions/src/interfaces/types-lookup.ts on lines 627..631
    packages/definitions/src/interfaces/types-lookup.ts on lines 1991..1995
    packages/definitions/src/interfaces/types-lookup.ts on lines 2001..2005
    packages/definitions/src/interfaces/types-lookup.ts on lines 2119..2123

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

    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 PalletAuthorshipCall extends Enum {
        readonly isSetUncles: boolean;
        readonly asSetUncles: {
          readonly newUncles: Vec<SpRuntimeHeader>;
        } & Struct;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 1 other location - About 1 hr to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 1441..1447

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

    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 asLimitedReserveTransferAssets: {
          readonly dest: XcmVersionedMultiLocation;
          readonly beneficiary: XcmVersionedMultiLocation;
          readonly assets: XcmVersionedMultiAssets;
          readonly feeAssetItem: u32;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 2 other locations - About 1 hr to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 1930..1936
    packages/definitions/src/interfaces/types-lookup.ts on lines 2582..2588

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

    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 asForceCreatePostReaction: {
          readonly who: AccountId32;
          readonly postId: u64;
          readonly reactionId: u64;
          readonly created: SubsocialSupportWhoAndWhen;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 2 other locations - About 1 hr to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 1922..1928
    packages/definitions/src/interfaces/types-lookup.ts on lines 1930..1936

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

    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

        readonly asHrmpChannelClosing: {
          readonly initiator: Compact<u32>;
          readonly sender: Compact<u32>;
          readonly recipient: Compact<u32>;
        } & Struct;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 5 other locations - About 1 hr to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 617..621
    packages/definitions/src/interfaces/types-lookup.ts on lines 627..631
    packages/definitions/src/interfaces/types-lookup.ts on lines 1991..1995
    packages/definitions/src/interfaces/types-lookup.ts on lines 2001..2005
    packages/definitions/src/interfaces/types-lookup.ts on lines 2109..2113

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

    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

        readonly asHrmpChannelClosing: {
          readonly initiator: Compact<u32>;
          readonly sender: Compact<u32>;
          readonly recipient: Compact<u32>;
        } & Struct;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 5 other locations - About 1 hr to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 617..621
    packages/definitions/src/interfaces/types-lookup.ts on lines 1991..1995
    packages/definitions/src/interfaces/types-lookup.ts on lines 2001..2005
    packages/definitions/src/interfaces/types-lookup.ts on lines 2109..2113
    packages/definitions/src/interfaces/types-lookup.ts on lines 2119..2123

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

    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

        readonly asHrmpNewChannelOpenRequest: {
          readonly sender: Compact<u32>;
          readonly maxMessageSize: Compact<u32>;
          readonly maxCapacity: Compact<u32>;
        } & Struct;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 5 other locations - About 1 hr to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 617..621
    packages/definitions/src/interfaces/types-lookup.ts on lines 627..631
    packages/definitions/src/interfaces/types-lookup.ts on lines 2001..2005
    packages/definitions/src/interfaces/types-lookup.ts on lines 2109..2113
    packages/definitions/src/interfaces/types-lookup.ts on lines 2119..2123

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

    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 asLimitedTeleportAssets: {
          readonly dest: XcmVersionedMultiLocation;
          readonly beneficiary: XcmVersionedMultiLocation;
          readonly assets: XcmVersionedMultiAssets;
          readonly feeAssetItem: u32;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 2 other locations - About 1 hr to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 1922..1928
    packages/definitions/src/interfaces/types-lookup.ts on lines 2582..2588

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

    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 PalletTimestampCall extends Enum {
        readonly isSet: boolean;
        readonly asSet: {
          readonly now: Compact<u64>;
        } & Struct;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 1 other location - About 1 hr to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 1544..1550

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

    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 CumulusPalletXcmpQueueQueueConfigData extends Struct {
        readonly suspendThreshold: u32;
        readonly dropThreshold: u32;
        readonly resumeThreshold: u32;
        readonly thresholdWeight: u64;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 1 other location - About 1 hr to fix
    packages/definitions/src/interfaces/subsocial/types.ts on lines 53..60

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

    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: 'DomainContentNotChanged' | 'TooManyDomainsPerAccount' | 'DomainContainsInvalidChar' | 'DomainIsTooShort' | 'DomainHasExpired' | 'DomainNotFound' | 'DomainIsReserved' | 'DomainAlreadyOwned' | 'InnerValueNotChanged' | 'SubdomainsNotAllowed' | 'NotDomainOwner' | 'OuterValueNotChanged' | 'ZeroReservationPeriod' | 'TooBigRegistrationPeriod' | 'TldNotSpecified' | 'TldNotSupported';
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 1 other location - About 1 hr to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 457..457

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

        readonly type: 'Attempted' | 'Sent' | 'UnexpectedResponse' | 'ResponseReady' | 'Notified' | 'NotifyOverweight' | 'NotifyDispatchError' | 'NotifyDecodeFailed' | 'InvalidResponder' | 'InvalidResponderVersion' | 'ResponseTaken' | 'AssetsTrapped' | 'VersionChangeNotified' | 'SupportedVersionChanged' | 'NotifyTargetSendFail' | 'NotifyTargetMigrationFail';
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 1 other location - About 1 hr to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 2773..2773

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

        readonly asReportError: {
          readonly queryId: Compact<u64>;
          readonly dest: XcmV1MultiLocation;
          readonly maxResponseWeight: Compact<u64>;
        } & Struct;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 6 other locations - About 50 mins to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 594..598
    packages/definitions/src/interfaces/types-lookup.ts on lines 1979..1983
    packages/definitions/src/interfaces/types-lookup.ts on lines 2023..2027
    packages/definitions/src/interfaces/types-lookup.ts on lines 2034..2038
    packages/definitions/src/interfaces/types-lookup.ts on lines 2040..2044
    packages/definitions/src/interfaces/types-lookup.ts on lines 2046..2050

    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 PolkadotParachainPrimitivesXcmpMessageFormat extends Enum {
        readonly isConcatenatedVersionedXcm: boolean;
        readonly isConcatenatedEncodedBlob: boolean;
        readonly isSignals: boolean;
        readonly type: 'ConcatenatedVersionedXcm' | 'ConcatenatedEncodedBlob' | 'Signals';
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 5 other locations - About 50 mins to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 100..105
    packages/definitions/src/interfaces/types-lookup.ts on lines 152..157
    packages/definitions/src/interfaces/types-lookup.ts on lines 1457..1462
    packages/definitions/src/interfaces/types-lookup.ts on lines 2777..2782
    packages/definitions/src/interfaces/types-lookup.ts on lines 2828..2833

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

        readonly asInitiateReserveWithdraw: {
          readonly assets: Vec<XcmV0MultiAsset>;
          readonly reserve: XcmV0MultiLocation;
          readonly effects: Vec<XcmV0Order>;
        } & Struct;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 6 other locations - About 50 mins to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 594..598
    packages/definitions/src/interfaces/types-lookup.ts on lines 636..640
    packages/definitions/src/interfaces/types-lookup.ts on lines 1979..1983
    packages/definitions/src/interfaces/types-lookup.ts on lines 2023..2027
    packages/definitions/src/interfaces/types-lookup.ts on lines 2040..2044
    packages/definitions/src/interfaces/types-lookup.ts on lines 2046..2050

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

        readonly asInitiateTeleport: {
          readonly assets: Vec<XcmV0MultiAsset>;
          readonly dest: XcmV0MultiLocation;
          readonly effects: Vec<XcmV0Order>;
        } & Struct;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 6 other locations - About 50 mins to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 594..598
    packages/definitions/src/interfaces/types-lookup.ts on lines 636..640
    packages/definitions/src/interfaces/types-lookup.ts on lines 1979..1983
    packages/definitions/src/interfaces/types-lookup.ts on lines 2023..2027
    packages/definitions/src/interfaces/types-lookup.ts on lines 2034..2038
    packages/definitions/src/interfaces/types-lookup.ts on lines 2046..2050

    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 FrameSupportWeightsDispatchClass extends Enum {
        readonly isNormal: boolean;
        readonly isOperational: boolean;
        readonly isMandatory: boolean;
        readonly type: 'Normal' | 'Operational' | 'Mandatory';
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 5 other locations - About 50 mins to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 152..157
    packages/definitions/src/interfaces/types-lookup.ts on lines 1457..1462
    packages/definitions/src/interfaces/types-lookup.ts on lines 2659..2664
    packages/definitions/src/interfaces/types-lookup.ts on lines 2777..2782
    packages/definitions/src/interfaces/types-lookup.ts on lines 2828..2833

    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 PalletEnergyError extends Enum {
        readonly isNotEnoughBalance: boolean;
        readonly isValueCoefficientIsNotPositive: boolean;
        readonly isBalanceBelowExistentialDeposit: boolean;
        readonly type: 'NotEnoughBalance' | 'ValueCoefficientIsNotPositive' | 'BalanceBelowExistentialDeposit';
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 5 other locations - About 50 mins to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 100..105
    packages/definitions/src/interfaces/types-lookup.ts on lines 152..157
    packages/definitions/src/interfaces/types-lookup.ts on lines 1457..1462
    packages/definitions/src/interfaces/types-lookup.ts on lines 2659..2664
    packages/definitions/src/interfaces/types-lookup.ts on lines 2828..2833

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

        readonly asDepositReserveAsset: {
          readonly assets: Vec<XcmV0MultiAsset>;
          readonly dest: XcmV0MultiLocation;
          readonly effects: Vec<XcmV0Order>;
        } & Struct;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 6 other locations - About 50 mins to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 594..598
    packages/definitions/src/interfaces/types-lookup.ts on lines 636..640
    packages/definitions/src/interfaces/types-lookup.ts on lines 1979..1983
    packages/definitions/src/interfaces/types-lookup.ts on lines 2034..2038
    packages/definitions/src/interfaces/types-lookup.ts on lines 2040..2044
    packages/definitions/src/interfaces/types-lookup.ts on lines 2046..2050

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

        readonly asTransferReserveAsset: {
          readonly assets: Vec<XcmV0MultiAsset>;
          readonly dest: XcmV0MultiLocation;
          readonly effects: Vec<XcmV0Order>;
        } & Struct;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 6 other locations - About 50 mins to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 594..598
    packages/definitions/src/interfaces/types-lookup.ts on lines 636..640
    packages/definitions/src/interfaces/types-lookup.ts on lines 2023..2027
    packages/definitions/src/interfaces/types-lookup.ts on lines 2034..2038
    packages/definitions/src/interfaces/types-lookup.ts on lines 2040..2044
    packages/definitions/src/interfaces/types-lookup.ts on lines 2046..2050

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

        readonly asQueryHolding: {
          readonly queryId: Compact<u64>;
          readonly dest: XcmV0MultiLocation;
          readonly assets: Vec<XcmV0MultiAsset>;
        } & Struct;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 6 other locations - About 50 mins to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 594..598
    packages/definitions/src/interfaces/types-lookup.ts on lines 636..640
    packages/definitions/src/interfaces/types-lookup.ts on lines 1979..1983
    packages/definitions/src/interfaces/types-lookup.ts on lines 2023..2027
    packages/definitions/src/interfaces/types-lookup.ts on lines 2034..2038
    packages/definitions/src/interfaces/types-lookup.ts on lines 2040..2044

    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 PalletSpaceFollowsError extends Enum {
        readonly isAlreadySpaceFollower: boolean;
        readonly isNotSpaceFollower: boolean;
        readonly isCannotFollowHiddenSpace: boolean;
        readonly type: 'AlreadySpaceFollower' | 'NotSpaceFollower' | 'CannotFollowHiddenSpace';
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 5 other locations - About 50 mins to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 100..105
    packages/definitions/src/interfaces/types-lookup.ts on lines 152..157
    packages/definitions/src/interfaces/types-lookup.ts on lines 1457..1462
    packages/definitions/src/interfaces/types-lookup.ts on lines 2659..2664
    packages/definitions/src/interfaces/types-lookup.ts on lines 2777..2782

    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 SpRuntimeArithmeticError extends Enum {
        readonly isUnderflow: boolean;
        readonly isOverflow: boolean;
        readonly isDivisionByZero: boolean;
        readonly type: 'Underflow' | 'Overflow' | 'DivisionByZero';
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 5 other locations - About 50 mins to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 100..105
    packages/definitions/src/interfaces/types-lookup.ts on lines 1457..1462
    packages/definitions/src/interfaces/types-lookup.ts on lines 2659..2664
    packages/definitions/src/interfaces/types-lookup.ts on lines 2777..2782
    packages/definitions/src/interfaces/types-lookup.ts on lines 2828..2833

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

        readonly asQueryResponse: {
          readonly queryId: Compact<u64>;
          readonly response: XcmV2Response;
          readonly maxWeight: Compact<u64>;
        } & Struct;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 6 other locations - About 50 mins to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 636..640
    packages/definitions/src/interfaces/types-lookup.ts on lines 1979..1983
    packages/definitions/src/interfaces/types-lookup.ts on lines 2023..2027
    packages/definitions/src/interfaces/types-lookup.ts on lines 2034..2038
    packages/definitions/src/interfaces/types-lookup.ts on lines 2040..2044
    packages/definitions/src/interfaces/types-lookup.ts on lines 2046..2050

    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 PalletBalancesReasons extends Enum {
        readonly isFee: boolean;
        readonly isMisc: boolean;
        readonly isAll: boolean;
        readonly type: 'Fee' | 'Misc' | 'All';
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 5 other locations - About 50 mins to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 100..105
    packages/definitions/src/interfaces/types-lookup.ts on lines 152..157
    packages/definitions/src/interfaces/types-lookup.ts on lines 2659..2664
    packages/definitions/src/interfaces/types-lookup.ts on lines 2777..2782
    packages/definitions/src/interfaces/types-lookup.ts on lines 2828..2833

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

        readonly asPostMoved: {
          readonly account: AccountId32;
          readonly postId: u64;
          readonly fromSpace: Option<u64>;
          readonly toSpace: Option<u64>;
    Severity: Minor
    Found in packages/definitions/src/interfaces/types-lookup.ts and 1 other location - About 45 mins to fix
    packages/definitions/src/interfaces/augment-api-events.ts on lines 294..294

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 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 PolkadotPrimitivesV2PersistedValidationData extends Struct {
        readonly parentHead: Bytes;
        readonly relayParentNumber: u32;
        readonly relayParentStorageRoot: H256;
        readonly maxPovSize: u32;
    Severity: Minor
    Found in packages/definitions/src/interfaces/types-lookup.ts and 1 other location - About 45 mins to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 24..29

    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 PalletBalancesAccountData extends Struct {
        readonly free: u128;
        readonly reserved: u128;
        readonly miscFrozen: u128;
        readonly feeFrozen: u128;
    Severity: Minor
    Found in packages/definitions/src/interfaces/types-lookup.ts and 1 other location - About 45 mins to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 1331..1336

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

        readonly asAnonymousCreated: {
          readonly anonymous: AccountId32;
          readonly who: AccountId32;
          readonly proxyType: SubsocialParachainRuntimeProxyType;
          readonly disambiguationIndex: u16;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 9 other locations - About 40 mins to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 225..230
    packages/definitions/src/interfaces/types-lookup.ts on lines 325..330
    packages/definitions/src/interfaces/types-lookup.ts on lines 332..337
    packages/definitions/src/interfaces/types-lookup.ts on lines 1163..1168
    packages/definitions/src/interfaces/types-lookup.ts on lines 1170..1175
    packages/definitions/src/interfaces/types-lookup.ts on lines 1177..1182
    packages/definitions/src/interfaces/types-lookup.ts on lines 1886..1891
    packages/definitions/src/interfaces/types-lookup.ts on lines 1893..1898
    packages/definitions/src/interfaces/types-lookup.ts on lines 2216..2221

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

    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

        readonly asProxyAdded: {
          readonly delegator: AccountId32;
          readonly delegatee: AccountId32;
          readonly proxyType: SubsocialParachainRuntimeProxyType;
          readonly delay: u32;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 9 other locations - About 40 mins to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 225..230
    packages/definitions/src/interfaces/types-lookup.ts on lines 312..317
    packages/definitions/src/interfaces/types-lookup.ts on lines 332..337
    packages/definitions/src/interfaces/types-lookup.ts on lines 1163..1168
    packages/definitions/src/interfaces/types-lookup.ts on lines 1170..1175
    packages/definitions/src/interfaces/types-lookup.ts on lines 1177..1182
    packages/definitions/src/interfaces/types-lookup.ts on lines 1886..1891
    packages/definitions/src/interfaces/types-lookup.ts on lines 1893..1898
    packages/definitions/src/interfaces/types-lookup.ts on lines 2216..2221

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

    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

        readonly asReserveTransferAssets: {
          readonly dest: XcmVersionedMultiLocation;
          readonly beneficiary: XcmVersionedMultiLocation;
          readonly assets: XcmVersionedMultiAssets;
          readonly feeAssetItem: u32;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 9 other locations - About 40 mins to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 225..230
    packages/definitions/src/interfaces/types-lookup.ts on lines 312..317
    packages/definitions/src/interfaces/types-lookup.ts on lines 325..330
    packages/definitions/src/interfaces/types-lookup.ts on lines 332..337
    packages/definitions/src/interfaces/types-lookup.ts on lines 1163..1168
    packages/definitions/src/interfaces/types-lookup.ts on lines 1170..1175
    packages/definitions/src/interfaces/types-lookup.ts on lines 1177..1182
    packages/definitions/src/interfaces/types-lookup.ts on lines 1886..1891
    packages/definitions/src/interfaces/types-lookup.ts on lines 2216..2221

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

    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

        readonly asForceRegisterDomain: {
          readonly target: MultiAddress;
          readonly fullDomain: Bytes;
          readonly content: SubsocialSupportContent;
          readonly expiresIn: u32;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 9 other locations - About 40 mins to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 225..230
    packages/definitions/src/interfaces/types-lookup.ts on lines 312..317
    packages/definitions/src/interfaces/types-lookup.ts on lines 325..330
    packages/definitions/src/interfaces/types-lookup.ts on lines 332..337
    packages/definitions/src/interfaces/types-lookup.ts on lines 1163..1168
    packages/definitions/src/interfaces/types-lookup.ts on lines 1170..1175
    packages/definitions/src/interfaces/types-lookup.ts on lines 1177..1182
    packages/definitions/src/interfaces/types-lookup.ts on lines 1886..1891
    packages/definitions/src/interfaces/types-lookup.ts on lines 1893..1898

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

    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

        readonly asProxyRemoved: {
          readonly delegator: AccountId32;
          readonly delegatee: AccountId32;
          readonly proxyType: SubsocialParachainRuntimeProxyType;
          readonly delay: u32;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 9 other locations - About 40 mins to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 225..230
    packages/definitions/src/interfaces/types-lookup.ts on lines 312..317
    packages/definitions/src/interfaces/types-lookup.ts on lines 325..330
    packages/definitions/src/interfaces/types-lookup.ts on lines 1163..1168
    packages/definitions/src/interfaces/types-lookup.ts on lines 1170..1175
    packages/definitions/src/interfaces/types-lookup.ts on lines 1177..1182
    packages/definitions/src/interfaces/types-lookup.ts on lines 1886..1891
    packages/definitions/src/interfaces/types-lookup.ts on lines 1893..1898
    packages/definitions/src/interfaces/types-lookup.ts on lines 2216..2221

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

    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

        readonly asPostReactionCreated: {
          readonly account: AccountId32;
          readonly postId: u64;
          readonly reactionId: u64;
          readonly reactionKind: PalletReactionsReactionKind;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 9 other locations - About 40 mins to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 225..230
    packages/definitions/src/interfaces/types-lookup.ts on lines 312..317
    packages/definitions/src/interfaces/types-lookup.ts on lines 325..330
    packages/definitions/src/interfaces/types-lookup.ts on lines 332..337
    packages/definitions/src/interfaces/types-lookup.ts on lines 1170..1175
    packages/definitions/src/interfaces/types-lookup.ts on lines 1177..1182
    packages/definitions/src/interfaces/types-lookup.ts on lines 1886..1891
    packages/definitions/src/interfaces/types-lookup.ts on lines 1893..1898
    packages/definitions/src/interfaces/types-lookup.ts on lines 2216..2221

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

    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

        readonly asPostReactionUpdated: {
          readonly account: AccountId32;
          readonly postId: u64;
          readonly reactionId: u64;
          readonly reactionKind: PalletReactionsReactionKind;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 9 other locations - About 40 mins to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 225..230
    packages/definitions/src/interfaces/types-lookup.ts on lines 312..317
    packages/definitions/src/interfaces/types-lookup.ts on lines 325..330
    packages/definitions/src/interfaces/types-lookup.ts on lines 332..337
    packages/definitions/src/interfaces/types-lookup.ts on lines 1163..1168
    packages/definitions/src/interfaces/types-lookup.ts on lines 1177..1182
    packages/definitions/src/interfaces/types-lookup.ts on lines 1886..1891
    packages/definitions/src/interfaces/types-lookup.ts on lines 1893..1898
    packages/definitions/src/interfaces/types-lookup.ts on lines 2216..2221

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

    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

        readonly asPostReactionDeleted: {
          readonly account: AccountId32;
          readonly postId: u64;
          readonly reactionId: u64;
          readonly reactionKind: PalletReactionsReactionKind;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 9 other locations - About 40 mins to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 225..230
    packages/definitions/src/interfaces/types-lookup.ts on lines 312..317
    packages/definitions/src/interfaces/types-lookup.ts on lines 325..330
    packages/definitions/src/interfaces/types-lookup.ts on lines 332..337
    packages/definitions/src/interfaces/types-lookup.ts on lines 1163..1168
    packages/definitions/src/interfaces/types-lookup.ts on lines 1170..1175
    packages/definitions/src/interfaces/types-lookup.ts on lines 1886..1891
    packages/definitions/src/interfaces/types-lookup.ts on lines 1893..1898
    packages/definitions/src/interfaces/types-lookup.ts on lines 2216..2221

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

    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

        readonly asReserveRepatriated: {
          readonly from: AccountId32;
          readonly to: AccountId32;
          readonly amount: u128;
          readonly destinationStatus: FrameSupportTokensMiscBalanceStatus;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 9 other locations - About 40 mins to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 312..317
    packages/definitions/src/interfaces/types-lookup.ts on lines 325..330
    packages/definitions/src/interfaces/types-lookup.ts on lines 332..337
    packages/definitions/src/interfaces/types-lookup.ts on lines 1163..1168
    packages/definitions/src/interfaces/types-lookup.ts on lines 1170..1175
    packages/definitions/src/interfaces/types-lookup.ts on lines 1177..1182
    packages/definitions/src/interfaces/types-lookup.ts on lines 1886..1891
    packages/definitions/src/interfaces/types-lookup.ts on lines 1893..1898
    packages/definitions/src/interfaces/types-lookup.ts on lines 2216..2221

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

    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

        readonly asTeleportAssets: {
          readonly dest: XcmVersionedMultiLocation;
          readonly beneficiary: XcmVersionedMultiLocation;
          readonly assets: XcmVersionedMultiAssets;
          readonly feeAssetItem: u32;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 9 other locations - About 40 mins to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 225..230
    packages/definitions/src/interfaces/types-lookup.ts on lines 312..317
    packages/definitions/src/interfaces/types-lookup.ts on lines 325..330
    packages/definitions/src/interfaces/types-lookup.ts on lines 332..337
    packages/definitions/src/interfaces/types-lookup.ts on lines 1163..1168
    packages/definitions/src/interfaces/types-lookup.ts on lines 1170..1175
    packages/definitions/src/interfaces/types-lookup.ts on lines 1177..1182
    packages/definitions/src/interfaces/types-lookup.ts on lines 1893..1898
    packages/definitions/src/interfaces/types-lookup.ts on lines 2216..2221

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

    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: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom' | 'SubscribeVersion' | 'UnsubscribeVersion';
    Severity: Minor
    Found in packages/definitions/src/interfaces/types-lookup.ts and 1 other location - About 35 mins to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 2717..2717

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

        readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed';
    Severity: Minor
    Found in packages/definitions/src/interfaces/types-lookup.ts and 1 other location - About 35 mins to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 2135..2135

    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

        readonly asInitiateTeleport: {
          readonly assets: XcmV1MultiassetMultiAssetFilter;
          readonly dest: XcmV1MultiLocation;
          readonly effects: Vec<XcmV1Order>;
        } & Struct;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 5 other locations - About 35 mins to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 1039..1043
    packages/definitions/src/interfaces/types-lookup.ts on lines 1045..1049
    packages/definitions/src/interfaces/types-lookup.ts on lines 1491..1495
    packages/definitions/src/interfaces/types-lookup.ts on lines 2097..2101
    packages/definitions/src/interfaces/types-lookup.ts on lines 2160..2164

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

        readonly asForceTransfer: {
          readonly source: MultiAddress;
          readonly dest: MultiAddress;
          readonly value: Compact<u128>;
        } & Struct;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 5 other locations - About 35 mins to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 1039..1043
    packages/definitions/src/interfaces/types-lookup.ts on lines 1045..1049
    packages/definitions/src/interfaces/types-lookup.ts on lines 2097..2101
    packages/definitions/src/interfaces/types-lookup.ts on lines 2160..2164
    packages/definitions/src/interfaces/types-lookup.ts on lines 2166..2170

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

        readonly asTransferReserveAsset: {
          readonly assets: XcmV1MultiassetMultiAssets;
          readonly dest: XcmV1MultiLocation;
          readonly effects: Vec<XcmV1Order>;
        } & Struct;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 5 other locations - About 35 mins to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 1039..1043
    packages/definitions/src/interfaces/types-lookup.ts on lines 1045..1049
    packages/definitions/src/interfaces/types-lookup.ts on lines 1491..1495
    packages/definitions/src/interfaces/types-lookup.ts on lines 2160..2164
    packages/definitions/src/interfaces/types-lookup.ts on lines 2166..2170

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

        readonly asProxy: {
          readonly real: AccountId32;
          readonly forceProxyType: Option<SubsocialParachainRuntimeProxyType>;
          readonly call: Call;
        } & Struct;
    Severity: Minor
    Found in packages/definitions/src/interfaces/types-lookup.ts and 2 other locations - About 35 mins to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 611..615
    packages/definitions/src/interfaces/types-lookup.ts on lines 642..646

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

        readonly asTransact: {
          readonly originType: XcmV0OriginKind;
          readonly requireWeightAtMost: Compact<u64>;
          readonly call: XcmDoubleEncoded;
        } & Struct;
    Severity: Minor
    Found in packages/definitions/src/interfaces/types-lookup.ts and 2 other locations - About 35 mins to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 642..646
    packages/definitions/src/interfaces/types-lookup.ts on lines 1717..1721

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

        readonly asQueryHolding: {
          readonly queryId: Compact<u64>;
          readonly dest: XcmV1MultiLocation;
          readonly assets: XcmV1MultiassetMultiAssetFilter;
        } & Struct;
    Severity: Minor
    Found in packages/definitions/src/interfaces/types-lookup.ts and 1 other location - About 35 mins to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 2502..2506

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

        readonly asRoleGranted: {
          readonly account: AccountId32;
          readonly roleId: u64;
          readonly users: Vec<SubsocialSupportUser>;
        } & Struct;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 5 other locations - About 35 mins to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 1045..1049
    packages/definitions/src/interfaces/types-lookup.ts on lines 1491..1495
    packages/definitions/src/interfaces/types-lookup.ts on lines 2097..2101
    packages/definitions/src/interfaces/types-lookup.ts on lines 2160..2164
    packages/definitions/src/interfaces/types-lookup.ts on lines 2166..2170

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

        readonly asRoleRevoked: {
          readonly account: AccountId32;
          readonly roleId: u64;
          readonly users: Vec<SubsocialSupportUser>;
        } & Struct;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 5 other locations - About 35 mins to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 1039..1043
    packages/definitions/src/interfaces/types-lookup.ts on lines 1491..1495
    packages/definitions/src/interfaces/types-lookup.ts on lines 2097..2101
    packages/definitions/src/interfaces/types-lookup.ts on lines 2160..2164
    packages/definitions/src/interfaces/types-lookup.ts on lines 2166..2170

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

        readonly asDepositAsset: {
          readonly assets: XcmV1MultiassetMultiAssetFilter;
          readonly maxAssets: Compact<u32>;
          readonly beneficiary: XcmV1MultiLocation;
        } & Struct;
    Severity: Minor
    Found in packages/definitions/src/interfaces/types-lookup.ts and 2 other locations - About 35 mins to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 611..615
    packages/definitions/src/interfaces/types-lookup.ts on lines 1717..1721

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

        readonly asCreatePost: {
          readonly spaceIdOpt: Option<u64>;
          readonly extension: PalletPostsPostExtension;
          readonly content: SubsocialSupportContent;
        } & Struct;
    Severity: Minor
    Found in packages/definitions/src/interfaces/types-lookup.ts and 1 other location - About 35 mins to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 2172..2176

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

        readonly asInitiateReserveWithdraw: {
          readonly assets: XcmV1MultiassetMultiAssetFilter;
          readonly reserve: XcmV1MultiLocation;
          readonly effects: Vec<XcmV1Order>;
        } & Struct;
    Severity: Major
    Found in packages/definitions/src/interfaces/types-lookup.ts and 5 other locations - About 35 mins to fix
    packages/definitions/src/interfaces/types-lookup.ts on lines 1039..1043
    packages/definitions/src/interfaces/types-lookup.ts on lines 1045..1049
    packages/definitions/src/interfaces/types-lookup.ts on lines 1491..1495
    packages/definitions/src/interfaces/types-lookup.ts on lines 2097..2101
    packages/definitions/src/interfaces/types-lookup.ts on lines 2166..2170

    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