polkadot-js/api

View on GitHub

Showing 2,427 of 2,612 total issues

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

  PolkadotPrimitivesV6CandidateDescriptor: {
    paraId: 'u32',
    relayParent: 'H256',
    collator: 'PolkadotPrimitivesV6CollatorAppPublic',
    persistedValidationDataHash: 'H256',
Severity: Major
Found in packages/types-augment/src/lookup/polkadot.ts and 3 other locations - About 55 mins to fix
packages/types-augment/src/lookup/kusama.ts on lines 313..323
packages/types-augment/src/lookup/substrate.ts on lines 3305..3315
packages/types-augment/src/lookup/substrate.ts on lines 7936..7946

Duplicated Code

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

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

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

Tuning

This issue has a mass of 53.

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

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

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

      unappliedSlashes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[SessionIndex, CandidateHash, PendingSlashes]>>>>;
Severity: Major
Found in packages/api-augment/src/polkadot/runtime.ts and 3 other locations - About 55 mins to fix
packages/api-augment/src/kusama/runtime.ts on lines 356..356
packages/api-augment/src/kusama/runtime.ts on lines 416..416
packages/api-augment/src/polkadot/runtime.ts on lines 321..321

Duplicated Code

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

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

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

Tuning

This issue has a mass of 53.

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

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

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

export interface ExitSucceed extends Enum {
  readonly isStopped: boolean;
  readonly isReturned: boolean;
  readonly isSuicided: boolean;
  readonly type: 'Stopped' | 'Returned' | 'Suicided';
Severity: Minor
Found in packages/types/src/interfaces/evm/types.ts and 1 other location - About 55 mins to fix
packages/types/src/interfaces/elections/types.ts on lines 45..50

Duplicated Code

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

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

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

Tuning

This issue has a mass of 53.

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

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

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

    {
      methods: {
        initialise_block: {
          description: 'Initialize a block with the given header.',
          params: [
Severity: Minor
Found in packages/types/src/interfaces/runtime/runtime.ts and 1 other location - About 55 mins to fix
packages/types/src/interfaces/blockbuilder/runtime.ts on lines 66..82

Duplicated Code

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

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

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

Tuning

This issue has a mass of 53.

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

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

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

    {
      methods: {
        apply_extrinsic: {
          description: 'Apply the given extrinsic.',
          params: [
Severity: Minor
Found in packages/types/src/interfaces/blockbuilder/runtime.ts and 1 other location - About 55 mins to fix
packages/types/src/interfaces/runtime/runtime.ts on lines 99..115

Duplicated Code

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

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

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

Tuning

This issue has a mass of 53.

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

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

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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 PalletElectionProviderMultiPhaseRoundSnapshot extends Struct {
    readonly voters: Vec<ITuple<[AccountId32, u64, Vec<AccountId32>]>>;
    readonly targets: Vec<AccountId32>;
  }
Severity: Minor
Found in packages/types-augment/src/lookup/types-substrate.ts and 1 other location - About 55 mins to fix
packages/types/src/interfaces/staking/types.ts on lines 256..259

Duplicated Code

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

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

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

Tuning

This issue has a mass of 53.

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

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

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

export interface RoundSnapshot extends Struct {
  readonly voters: Vec<ITuple<[AccountId, VoteWeight, Vec<AccountId>]>>;
  readonly targets: Vec<AccountId>;
}
Severity: Minor
Found in packages/types/src/interfaces/staking/types.ts and 1 other location - About 55 mins to fix
packages/types-augment/src/lookup/types-substrate.ts on lines 7048..7051

Duplicated Code

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

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

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

Tuning

This issue has a mass of 53.

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

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

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

export interface VoteThreshold extends Enum {
  readonly isSuperMajorityApprove: boolean;
  readonly isSuperMajorityAgainst: boolean;
  readonly isSimpleMajority: boolean;
  readonly type: 'SuperMajorityApprove' | 'SuperMajorityAgainst' | 'SimpleMajority';
Severity: Minor
Found in packages/types/src/interfaces/elections/types.ts and 1 other location - About 55 mins to fix
packages/types/src/interfaces/evm/types.ts on lines 119..124

Duplicated Code

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

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

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

Tuning

This issue has a mass of 53.

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

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

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

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

Refactorings

Further Reading

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

  interface PalletNftsItemSetting extends Enum {
    readonly isTransferable: boolean;
    readonly isUnlockedMetadata: boolean;
    readonly isUnlockedAttributes: boolean;
    readonly type: 'Transferable' | 'UnlockedMetadata' | 'UnlockedAttributes';
Severity: Major
Found in packages/types-augment/src/lookup/types-substrate.ts and 14 other locations - About 50 mins to fix
packages/types-augment/src/lookup/types-kusama.ts on lines 630..635
packages/types-augment/src/lookup/types-substrate.ts on lines 113..118
packages/types-augment/src/lookup/types-substrate.ts on lines 172..177
packages/types-augment/src/lookup/types-substrate.ts on lines 650..655
packages/types-augment/src/lookup/types-substrate.ts on lines 2624..2629
packages/types-augment/src/lookup/types-substrate.ts on lines 5482..5487
packages/types-augment/src/lookup/types-substrate.ts on lines 6916..6921
packages/types-augment/src/lookup/types-substrate.ts on lines 7342..7347
packages/types-augment/src/lookup/types-substrate.ts on lines 7435..7440
packages/types-augment/src/lookup/types-substrate.ts on lines 8006..8011
packages/types-augment/src/lookup/types-substrate.ts on lines 8022..8027
packages/types-augment/src/lookup/types-substrate.ts on lines 8234..8239
packages/types-augment/src/lookup/types-substrate.ts on lines 8517..8522
packages/types-augment/src/lookup/types-substrate.ts on lines 8693..8698

Duplicated Code

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

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

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 15 locations. Consider refactoring.
Open

  interface SpArithmeticArithmeticError extends Enum {
    readonly isUnderflow: boolean;
    readonly isOverflow: boolean;
    readonly isDivisionByZero: boolean;
    readonly type: 'Underflow' | 'Overflow' | 'DivisionByZero';
Severity: Major
Found in packages/types-augment/src/lookup/types-substrate.ts and 14 other locations - About 50 mins to fix
packages/types-augment/src/lookup/types-kusama.ts on lines 630..635
packages/types-augment/src/lookup/types-substrate.ts on lines 113..118
packages/types-augment/src/lookup/types-substrate.ts on lines 650..655
packages/types-augment/src/lookup/types-substrate.ts on lines 2624..2629
packages/types-augment/src/lookup/types-substrate.ts on lines 4774..4779
packages/types-augment/src/lookup/types-substrate.ts on lines 5482..5487
packages/types-augment/src/lookup/types-substrate.ts on lines 6916..6921
packages/types-augment/src/lookup/types-substrate.ts on lines 7342..7347
packages/types-augment/src/lookup/types-substrate.ts on lines 7435..7440
packages/types-augment/src/lookup/types-substrate.ts on lines 8006..8011
packages/types-augment/src/lookup/types-substrate.ts on lines 8022..8027
packages/types-augment/src/lookup/types-substrate.ts on lines 8234..8239
packages/types-augment/src/lookup/types-substrate.ts on lines 8517..8522
packages/types-augment/src/lookup/types-substrate.ts on lines 8693..8698

Duplicated Code

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

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

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 15 locations. Consider refactoring.
Open

  interface PalletAssetRateError extends Enum {
    readonly isUnknownAssetKind: boolean;
    readonly isAlreadyExists: boolean;
    readonly isOverflow: boolean;
    readonly type: 'UnknownAssetKind' | 'AlreadyExists' | 'Overflow';
Severity: Major
Found in packages/types-augment/src/lookup/types-substrate.ts and 14 other locations - About 50 mins to fix
packages/types-augment/src/lookup/types-kusama.ts on lines 630..635
packages/types-augment/src/lookup/types-substrate.ts on lines 113..118
packages/types-augment/src/lookup/types-substrate.ts on lines 172..177
packages/types-augment/src/lookup/types-substrate.ts on lines 650..655
packages/types-augment/src/lookup/types-substrate.ts on lines 2624..2629
packages/types-augment/src/lookup/types-substrate.ts on lines 4774..4779
packages/types-augment/src/lookup/types-substrate.ts on lines 5482..5487
packages/types-augment/src/lookup/types-substrate.ts on lines 6916..6921
packages/types-augment/src/lookup/types-substrate.ts on lines 7342..7347
packages/types-augment/src/lookup/types-substrate.ts on lines 8006..8011
packages/types-augment/src/lookup/types-substrate.ts on lines 8022..8027
packages/types-augment/src/lookup/types-substrate.ts on lines 8234..8239
packages/types-augment/src/lookup/types-substrate.ts on lines 8517..8522
packages/types-augment/src/lookup/types-substrate.ts on lines 8693..8698

Duplicated Code

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

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

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 15 locations. Consider refactoring.
Open

  interface SpConsensusBabeAllowedSlots extends Enum {
    readonly isPrimarySlots: boolean;
    readonly isPrimaryAndSecondaryPlainSlots: boolean;
    readonly isPrimaryAndSecondaryVRFSlots: boolean;
    readonly type: 'PrimarySlots' | 'PrimaryAndSecondaryPlainSlots' | 'PrimaryAndSecondaryVRFSlots';
Severity: Major
Found in packages/types-augment/src/lookup/types-substrate.ts and 14 other locations - About 50 mins to fix
packages/types-augment/src/lookup/types-kusama.ts on lines 630..635
packages/types-augment/src/lookup/types-substrate.ts on lines 113..118
packages/types-augment/src/lookup/types-substrate.ts on lines 172..177
packages/types-augment/src/lookup/types-substrate.ts on lines 650..655
packages/types-augment/src/lookup/types-substrate.ts on lines 4774..4779
packages/types-augment/src/lookup/types-substrate.ts on lines 5482..5487
packages/types-augment/src/lookup/types-substrate.ts on lines 6916..6921
packages/types-augment/src/lookup/types-substrate.ts on lines 7342..7347
packages/types-augment/src/lookup/types-substrate.ts on lines 7435..7440
packages/types-augment/src/lookup/types-substrate.ts on lines 8006..8011
packages/types-augment/src/lookup/types-substrate.ts on lines 8022..8027
packages/types-augment/src/lookup/types-substrate.ts on lines 8234..8239
packages/types-augment/src/lookup/types-substrate.ts on lines 8517..8522
packages/types-augment/src/lookup/types-substrate.ts on lines 8693..8698

Duplicated Code

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

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

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 15 locations. Consider refactoring.
Open

  interface PalletChildBountiesError extends Enum {
    readonly isParentBountyNotActive: boolean;
    readonly isInsufficientBountyBalance: boolean;
    readonly isTooManyChildBounties: boolean;
    readonly type: 'ParentBountyNotActive' | 'InsufficientBountyBalance' | 'TooManyChildBounties';
Severity: Major
Found in packages/types-augment/src/lookup/types-substrate.ts and 14 other locations - About 50 mins to fix
packages/types-augment/src/lookup/types-kusama.ts on lines 630..635
packages/types-augment/src/lookup/types-substrate.ts on lines 113..118
packages/types-augment/src/lookup/types-substrate.ts on lines 172..177
packages/types-augment/src/lookup/types-substrate.ts on lines 650..655
packages/types-augment/src/lookup/types-substrate.ts on lines 2624..2629
packages/types-augment/src/lookup/types-substrate.ts on lines 4774..4779
packages/types-augment/src/lookup/types-substrate.ts on lines 5482..5487
packages/types-augment/src/lookup/types-substrate.ts on lines 6916..6921
packages/types-augment/src/lookup/types-substrate.ts on lines 7342..7347
packages/types-augment/src/lookup/types-substrate.ts on lines 7435..7440
packages/types-augment/src/lookup/types-substrate.ts on lines 8006..8011
packages/types-augment/src/lookup/types-substrate.ts on lines 8022..8027
packages/types-augment/src/lookup/types-substrate.ts on lines 8234..8239
packages/types-augment/src/lookup/types-substrate.ts on lines 8693..8698

Duplicated Code

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

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

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 15 locations. Consider refactoring.
Open

  interface PalletAllianceMemberRole extends Enum {
    readonly isFellow: boolean;
    readonly isAlly: boolean;
    readonly isRetiring: boolean;
    readonly type: 'Fellow' | 'Ally' | 'Retiring';
Severity: Major
Found in packages/types-augment/src/lookup/types-substrate.ts and 14 other locations - About 50 mins to fix
packages/types-augment/src/lookup/types-kusama.ts on lines 630..635
packages/types-augment/src/lookup/types-substrate.ts on lines 113..118
packages/types-augment/src/lookup/types-substrate.ts on lines 172..177
packages/types-augment/src/lookup/types-substrate.ts on lines 650..655
packages/types-augment/src/lookup/types-substrate.ts on lines 2624..2629
packages/types-augment/src/lookup/types-substrate.ts on lines 4774..4779
packages/types-augment/src/lookup/types-substrate.ts on lines 5482..5487
packages/types-augment/src/lookup/types-substrate.ts on lines 6916..6921
packages/types-augment/src/lookup/types-substrate.ts on lines 7342..7347
packages/types-augment/src/lookup/types-substrate.ts on lines 7435..7440
packages/types-augment/src/lookup/types-substrate.ts on lines 8006..8011
packages/types-augment/src/lookup/types-substrate.ts on lines 8022..8027
packages/types-augment/src/lookup/types-substrate.ts on lines 8234..8239
packages/types-augment/src/lookup/types-substrate.ts on lines 8517..8522

Duplicated Code

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

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

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 15 locations. Consider refactoring.
Open

  interface PolkadotRuntimeParachainsCoretimePalletError extends Enum {
    readonly isNotBroker: boolean;
    readonly isRequestedFutureRevenue: boolean;
    readonly isAssetTransferFailed: boolean;
    readonly type: 'NotBroker' | 'RequestedFutureRevenue' | 'AssetTransferFailed';
Severity: Major
Found in packages/types-augment/src/lookup/types-kusama.ts and 14 other locations - About 50 mins to fix
packages/types-augment/src/lookup/types-substrate.ts on lines 113..118
packages/types-augment/src/lookup/types-substrate.ts on lines 172..177
packages/types-augment/src/lookup/types-substrate.ts on lines 650..655
packages/types-augment/src/lookup/types-substrate.ts on lines 2624..2629
packages/types-augment/src/lookup/types-substrate.ts on lines 4774..4779
packages/types-augment/src/lookup/types-substrate.ts on lines 5482..5487
packages/types-augment/src/lookup/types-substrate.ts on lines 6916..6921
packages/types-augment/src/lookup/types-substrate.ts on lines 7342..7347
packages/types-augment/src/lookup/types-substrate.ts on lines 7435..7440
packages/types-augment/src/lookup/types-substrate.ts on lines 8006..8011
packages/types-augment/src/lookup/types-substrate.ts on lines 8022..8027
packages/types-augment/src/lookup/types-substrate.ts on lines 8234..8239
packages/types-augment/src/lookup/types-substrate.ts on lines 8517..8522
packages/types-augment/src/lookup/types-substrate.ts on lines 8693..8698

Duplicated Code

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

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

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 15 locations. Consider refactoring.
Open

  interface PalletNftsCollectionRole extends Enum {
    readonly isIssuer: boolean;
    readonly isFreezer: boolean;
    readonly isAdmin: boolean;
    readonly type: 'Issuer' | 'Freezer' | 'Admin';
Severity: Major
Found in packages/types-augment/src/lookup/types-substrate.ts and 14 other locations - About 50 mins to fix
packages/types-augment/src/lookup/types-kusama.ts on lines 630..635
packages/types-augment/src/lookup/types-substrate.ts on lines 113..118
packages/types-augment/src/lookup/types-substrate.ts on lines 172..177
packages/types-augment/src/lookup/types-substrate.ts on lines 650..655
packages/types-augment/src/lookup/types-substrate.ts on lines 2624..2629
packages/types-augment/src/lookup/types-substrate.ts on lines 4774..4779
packages/types-augment/src/lookup/types-substrate.ts on lines 5482..5487
packages/types-augment/src/lookup/types-substrate.ts on lines 6916..6921
packages/types-augment/src/lookup/types-substrate.ts on lines 7342..7347
packages/types-augment/src/lookup/types-substrate.ts on lines 7435..7440
packages/types-augment/src/lookup/types-substrate.ts on lines 8006..8011
packages/types-augment/src/lookup/types-substrate.ts on lines 8022..8027
packages/types-augment/src/lookup/types-substrate.ts on lines 8517..8522
packages/types-augment/src/lookup/types-substrate.ts on lines 8693..8698

Duplicated Code

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

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

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 15 locations. Consider refactoring.
Open

  interface PalletDemocracyVoteThreshold extends Enum {
    readonly isSuperMajorityApprove: boolean;
    readonly isSuperMajorityAgainst: boolean;
    readonly isSimpleMajority: boolean;
    readonly type: 'SuperMajorityApprove' | 'SuperMajorityAgainst' | 'SimpleMajority';
Severity: Major
Found in packages/types-augment/src/lookup/types-substrate.ts and 14 other locations - About 50 mins to fix
packages/types-augment/src/lookup/types-kusama.ts on lines 630..635
packages/types-augment/src/lookup/types-substrate.ts on lines 113..118
packages/types-augment/src/lookup/types-substrate.ts on lines 172..177
packages/types-augment/src/lookup/types-substrate.ts on lines 2624..2629
packages/types-augment/src/lookup/types-substrate.ts on lines 4774..4779
packages/types-augment/src/lookup/types-substrate.ts on lines 5482..5487
packages/types-augment/src/lookup/types-substrate.ts on lines 6916..6921
packages/types-augment/src/lookup/types-substrate.ts on lines 7342..7347
packages/types-augment/src/lookup/types-substrate.ts on lines 7435..7440
packages/types-augment/src/lookup/types-substrate.ts on lines 8006..8011
packages/types-augment/src/lookup/types-substrate.ts on lines 8022..8027
packages/types-augment/src/lookup/types-substrate.ts on lines 8234..8239
packages/types-augment/src/lookup/types-substrate.ts on lines 8517..8522
packages/types-augment/src/lookup/types-substrate.ts on lines 8693..8698

Duplicated Code

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

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

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 15 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/types-augment/src/lookup/types-substrate.ts and 14 other locations - About 50 mins to fix
packages/types-augment/src/lookup/types-kusama.ts on lines 630..635
packages/types-augment/src/lookup/types-substrate.ts on lines 113..118
packages/types-augment/src/lookup/types-substrate.ts on lines 172..177
packages/types-augment/src/lookup/types-substrate.ts on lines 650..655
packages/types-augment/src/lookup/types-substrate.ts on lines 2624..2629
packages/types-augment/src/lookup/types-substrate.ts on lines 4774..4779
packages/types-augment/src/lookup/types-substrate.ts on lines 5482..5487
packages/types-augment/src/lookup/types-substrate.ts on lines 7342..7347
packages/types-augment/src/lookup/types-substrate.ts on lines 7435..7440
packages/types-augment/src/lookup/types-substrate.ts on lines 8006..8011
packages/types-augment/src/lookup/types-substrate.ts on lines 8022..8027
packages/types-augment/src/lookup/types-substrate.ts on lines 8234..8239
packages/types-augment/src/lookup/types-substrate.ts on lines 8517..8522
packages/types-augment/src/lookup/types-substrate.ts on lines 8693..8698

Duplicated Code

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

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

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 15 locations. Consider refactoring.
Open

  interface PalletMembershipError extends Enum {
    readonly isAlreadyMember: boolean;
    readonly isNotMember: boolean;
    readonly isTooManyMembers: boolean;
    readonly type: 'AlreadyMember' | 'NotMember' | 'TooManyMembers';
Severity: Major
Found in packages/types-augment/src/lookup/types-substrate.ts and 14 other locations - About 50 mins to fix
packages/types-augment/src/lookup/types-kusama.ts on lines 630..635
packages/types-augment/src/lookup/types-substrate.ts on lines 113..118
packages/types-augment/src/lookup/types-substrate.ts on lines 172..177
packages/types-augment/src/lookup/types-substrate.ts on lines 650..655
packages/types-augment/src/lookup/types-substrate.ts on lines 2624..2629
packages/types-augment/src/lookup/types-substrate.ts on lines 4774..4779
packages/types-augment/src/lookup/types-substrate.ts on lines 5482..5487
packages/types-augment/src/lookup/types-substrate.ts on lines 6916..6921
packages/types-augment/src/lookup/types-substrate.ts on lines 7435..7440
packages/types-augment/src/lookup/types-substrate.ts on lines 8006..8011
packages/types-augment/src/lookup/types-substrate.ts on lines 8022..8027
packages/types-augment/src/lookup/types-substrate.ts on lines 8234..8239
packages/types-augment/src/lookup/types-substrate.ts on lines 8517..8522
packages/types-augment/src/lookup/types-substrate.ts on lines 8693..8698

Duplicated Code

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

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

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 15 locations. Consider refactoring.
Open

  interface PalletNominationPoolsPoolState extends Enum {
    readonly isOpen: boolean;
    readonly isBlocked: boolean;
    readonly isDestroying: boolean;
    readonly type: 'Open' | 'Blocked' | 'Destroying';
Severity: Major
Found in packages/types-augment/src/lookup/types-substrate.ts and 14 other locations - About 50 mins to fix
packages/types-augment/src/lookup/types-kusama.ts on lines 630..635
packages/types-augment/src/lookup/types-substrate.ts on lines 113..118
packages/types-augment/src/lookup/types-substrate.ts on lines 172..177
packages/types-augment/src/lookup/types-substrate.ts on lines 650..655
packages/types-augment/src/lookup/types-substrate.ts on lines 2624..2629
packages/types-augment/src/lookup/types-substrate.ts on lines 4774..4779
packages/types-augment/src/lookup/types-substrate.ts on lines 6916..6921
packages/types-augment/src/lookup/types-substrate.ts on lines 7342..7347
packages/types-augment/src/lookup/types-substrate.ts on lines 7435..7440
packages/types-augment/src/lookup/types-substrate.ts on lines 8006..8011
packages/types-augment/src/lookup/types-substrate.ts on lines 8022..8027
packages/types-augment/src/lookup/types-substrate.ts on lines 8234..8239
packages/types-augment/src/lookup/types-substrate.ts on lines 8517..8522
packages/types-augment/src/lookup/types-substrate.ts on lines 8693..8698

Duplicated Code

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

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

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

Severity
Category
Status
Source
Language