olehmell/subsocial-sdk

View on GitHub
packages/definitions/src/interfaces/augment-api-events.ts

Summary

Maintainability
F
1 wk
Test Coverage

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

    spaceFollows: {
      SpaceFollowed: AugmentedEvent<ApiType, [follower: AccountId32, spaceId: u64], { follower: AccountId32, spaceId: u64 }>;
      SpaceUnfollowed: AugmentedEvent<ApiType, [follower: AccountId32, spaceId: u64], { follower: AccountId32, spaceId: u64 }>;
    };
Severity: Major
Found in packages/definitions/src/interfaces/augment-api-events.ts and 2 other locations - About 3 hrs to fix
packages/definitions/src/interfaces/augment-api-events.ts on lines 17..20
packages/definitions/src/interfaces/augment-api-events.ts on lines 354..357

Duplicated Code

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

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

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

Tuning

This issue has a mass of 110.

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

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

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

See codeclimate-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

    accountFollows: {
      AccountFollowed: AugmentedEvent<ApiType, [follower: AccountId32, account: AccountId32], { follower: AccountId32, account: AccountId32 }>;
      AccountUnfollowed: AugmentedEvent<ApiType, [follower: AccountId32, account: AccountId32], { follower: AccountId32, account: AccountId32 }>;
    };
Severity: Major
Found in packages/definitions/src/interfaces/augment-api-events.ts and 2 other locations - About 3 hrs to fix
packages/definitions/src/interfaces/augment-api-events.ts on lines 345..348
packages/definitions/src/interfaces/augment-api-events.ts on lines 354..357

Duplicated Code

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

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

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

Tuning

This issue has a mass of 110.

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

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

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

See codeclimate-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

    spaces: {
      SpaceCreated: AugmentedEvent<ApiType, [account: AccountId32, spaceId: u64], { account: AccountId32, spaceId: u64 }>;
      SpaceUpdated: AugmentedEvent<ApiType, [account: AccountId32, spaceId: u64], { account: AccountId32, spaceId: u64 }>;
    };
Severity: Major
Found in packages/definitions/src/interfaces/augment-api-events.ts and 2 other locations - About 3 hrs to fix
packages/definitions/src/interfaces/augment-api-events.ts on lines 17..20
packages/definitions/src/interfaces/augment-api-events.ts on lines 345..348

Duplicated Code

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

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

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

Tuning

This issue has a mass of 110.

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

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

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

See codeclimate-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

      ReserveRepatriated: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128, destinationStatus: FrameSupportTokensMiscBalanceStatus], { from: AccountId32, to: AccountId32, amount: u128, destinationStatus: FrameSupportTokensMiscBalanceStatus }>;
Severity: Major
Found in packages/definitions/src/interfaces/augment-api-events.ts and 2 other locations - About 2 hrs to fix
packages/definitions/src/interfaces/augment-api-events.ts on lines 312..312
packages/definitions/src/interfaces/augment-api-events.ts on lines 316..316

Duplicated Code

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

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

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

Tuning

This issue has a mass of 87.

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

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

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

See codeclimate-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

      AnonymousCreated: AugmentedEvent<ApiType, [anonymous: AccountId32, who: AccountId32, proxyType: SubsocialParachainRuntimeProxyType, disambiguationIndex: u16], { anonymous: AccountId32, who: AccountId32, proxyType: SubsocialParachainRuntimeProxyType, disambiguationIndex: u16 }>;
Severity: Major
Found in packages/definitions/src/interfaces/augment-api-events.ts and 2 other locations - About 2 hrs to fix
packages/definitions/src/interfaces/augment-api-events.ts on lines 47..47
packages/definitions/src/interfaces/augment-api-events.ts on lines 316..316

Duplicated Code

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

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

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

Tuning

This issue has a mass of 87.

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

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

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

See codeclimate-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

      ProxyAdded: AugmentedEvent<ApiType, [delegator: AccountId32, delegatee: AccountId32, proxyType: SubsocialParachainRuntimeProxyType, delay: u32], { delegator: AccountId32, delegatee: AccountId32, proxyType: SubsocialParachainRuntimeProxyType, delay: u32 }>;
Severity: Major
Found in packages/definitions/src/interfaces/augment-api-events.ts and 2 other locations - About 2 hrs to fix
packages/definitions/src/interfaces/augment-api-events.ts on lines 47..47
packages/definitions/src/interfaces/augment-api-events.ts on lines 312..312

Duplicated Code

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

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

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

Tuning

This issue has a mass of 87.

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

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

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

See codeclimate-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

      PostReactionDeleted: AugmentedEvent<ApiType, [account: AccountId32, postId: u64, reactionId: u64, reactionKind: PalletReactionsReactionKind], { account: AccountId32, postId: u64, reactionId: u64, reactionKind: PalletReactionsReactionKind }>;
Severity: Major
Found in packages/definitions/src/interfaces/augment-api-events.ts and 2 other locations - About 2 hrs to fix
packages/definitions/src/interfaces/augment-api-events.ts on lines 327..327
packages/definitions/src/interfaces/augment-api-events.ts on lines 329..329

Duplicated Code

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

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

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

Tuning

This issue has a mass of 83.

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

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

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

See codeclimate-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

      PostReactionUpdated: AugmentedEvent<ApiType, [account: AccountId32, postId: u64, reactionId: u64, reactionKind: PalletReactionsReactionKind], { account: AccountId32, postId: u64, reactionId: u64, reactionKind: PalletReactionsReactionKind }>;
Severity: Major
Found in packages/definitions/src/interfaces/augment-api-events.ts and 2 other locations - About 2 hrs to fix
packages/definitions/src/interfaces/augment-api-events.ts on lines 327..327
packages/definitions/src/interfaces/augment-api-events.ts on lines 328..328

Duplicated Code

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

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

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

Tuning

This issue has a mass of 83.

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

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

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

See codeclimate-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

      PostReactionCreated: AugmentedEvent<ApiType, [account: AccountId32, postId: u64, reactionId: u64, reactionKind: PalletReactionsReactionKind], { account: AccountId32, postId: u64, reactionId: u64, reactionKind: PalletReactionsReactionKind }>;
Severity: Major
Found in packages/definitions/src/interfaces/augment-api-events.ts and 2 other locations - About 2 hrs to fix
packages/definitions/src/interfaces/augment-api-events.ts on lines 328..328
packages/definitions/src/interfaces/augment-api-events.ts on lines 329..329

Duplicated Code

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

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

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

Tuning

This issue has a mass of 83.

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

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

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

See codeclimate-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

      RoleRevoked: AugmentedEvent<ApiType, [account: AccountId32, roleId: u64, users: Vec<SubsocialSupportUser>], { account: AccountId32, roleId: u64, users: Vec<SubsocialSupportUser> }>;
Severity: Major
Found in packages/definitions/src/interfaces/augment-api-events.ts and 1 other location - About 2 hrs to fix
packages/definitions/src/interfaces/augment-api-events.ts on lines 334..334

Duplicated Code

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

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

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

      RoleGranted: AugmentedEvent<ApiType, [account: AccountId32, roleId: u64, users: Vec<SubsocialSupportUser>], { account: AccountId32, roleId: u64, users: Vec<SubsocialSupportUser> }>;
Severity: Major
Found in packages/definitions/src/interfaces/augment-api-events.ts and 1 other location - About 2 hrs to fix
packages/definitions/src/interfaces/augment-api-events.ts on lines 335..335

Duplicated Code

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

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

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

      OverweightEnqueued: AugmentedEvent<ApiType, [messageId: U8aFixed, overweightIndex: u64, requiredWeight: u64], { messageId: U8aFixed, overweightIndex: u64, requiredWeight: u64 }>;
Severity: Major
Found in packages/definitions/src/interfaces/augment-api-events.ts and 4 other locations - About 1 hr to fix
packages/definitions/src/interfaces/augment-api-events.ts on lines 25..25
packages/definitions/src/interfaces/augment-api-events.ts on lines 55..55
packages/definitions/src/interfaces/augment-api-events.ts on lines 142..142
packages/definitions/src/interfaces/augment-api-events.ts on lines 307..307

Duplicated Code

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

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

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

Tuning

This issue has a mass of 71.

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

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

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

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

Refactorings

Further Reading

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

      Transfer: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128], { from: AccountId32, to: AccountId32, amount: u128 }>;
Severity: Major
Found in packages/definitions/src/interfaces/augment-api-events.ts and 4 other locations - About 1 hr to fix
packages/definitions/src/interfaces/augment-api-events.ts on lines 25..25
packages/definitions/src/interfaces/augment-api-events.ts on lines 101..101
packages/definitions/src/interfaces/augment-api-events.ts on lines 142..142
packages/definitions/src/interfaces/augment-api-events.ts on lines 307..307

Duplicated Code

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

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

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

Tuning

This issue has a mass of 71.

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

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

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

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

Refactorings

Further Reading

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

      BalanceSet: AugmentedEvent<ApiType, [who: AccountId32, free: u128, reserved: u128], { who: AccountId32, free: u128, reserved: u128 }>;
Severity: Major
Found in packages/definitions/src/interfaces/augment-api-events.ts and 4 other locations - About 1 hr to fix
packages/definitions/src/interfaces/augment-api-events.ts on lines 55..55
packages/definitions/src/interfaces/augment-api-events.ts on lines 101..101
packages/definitions/src/interfaces/augment-api-events.ts on lines 142..142
packages/definitions/src/interfaces/augment-api-events.ts on lines 307..307

Duplicated Code

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

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

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

Tuning

This issue has a mass of 71.

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

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

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

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

Refactorings

Further Reading

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

      Announced: AugmentedEvent<ApiType, [real: AccountId32, proxy: AccountId32, callHash: H256], { real: AccountId32, proxy: AccountId32, callHash: H256 }>;
Severity: Major
Found in packages/definitions/src/interfaces/augment-api-events.ts and 4 other locations - About 1 hr to fix
packages/definitions/src/interfaces/augment-api-events.ts on lines 25..25
packages/definitions/src/interfaces/augment-api-events.ts on lines 55..55
packages/definitions/src/interfaces/augment-api-events.ts on lines 101..101
packages/definitions/src/interfaces/augment-api-events.ts on lines 142..142

Duplicated Code

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

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

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

Tuning

This issue has a mass of 71.

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

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

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

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

Refactorings

Further Reading

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

      EnergyGenerated: AugmentedEvent<ApiType, [generator: AccountId32, receiver: AccountId32, balanceBurned: u128], { generator: AccountId32, receiver: AccountId32, balanceBurned: u128 }>;
Severity: Major
Found in packages/definitions/src/interfaces/augment-api-events.ts and 4 other locations - About 1 hr to fix
packages/definitions/src/interfaces/augment-api-events.ts on lines 25..25
packages/definitions/src/interfaces/augment-api-events.ts on lines 55..55
packages/definitions/src/interfaces/augment-api-events.ts on lines 101..101
packages/definitions/src/interfaces/augment-api-events.ts on lines 307..307

Duplicated Code

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

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

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

Tuning

This issue has a mass of 71.

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

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

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

See codeclimate-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

      RoleCreated: AugmentedEvent<ApiType, [account: AccountId32, spaceId: u64, roleId: u64], { account: AccountId32, spaceId: u64, roleId: u64 }>;
Severity: Major
Found in packages/definitions/src/interfaces/augment-api-events.ts and 1 other location - About 1 hr to fix
packages/definitions/src/interfaces/augment-api-events.ts on lines 351..351

Duplicated Code

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

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

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

Tuning

This issue has a mass of 67.

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

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

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

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

Refactorings

Further Reading

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

      SpaceOwnershipTransferCreated: AugmentedEvent<ApiType, [currentOwner: AccountId32, spaceId: u64, newOwner: AccountId32], { currentOwner: AccountId32, spaceId: u64, newOwner: AccountId32 }>;
Severity: Major
Found in packages/definitions/src/interfaces/augment-api-events.ts and 1 other location - About 1 hr to fix
packages/definitions/src/interfaces/augment-api-events.ts on lines 332..332

Duplicated Code

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

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

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

Tuning

This issue has a mass of 67.

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

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

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

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

Refactorings

Further Reading

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

      ProxyExecuted: AugmentedEvent<ApiType, [result: Result<Null, SpRuntimeDispatchError>], { result: Result<Null, SpRuntimeDispatchError> }>;
Severity: Major
Found in packages/definitions/src/interfaces/augment-api-events.ts and 2 other locations - About 1 hr to fix
packages/definitions/src/interfaces/augment-api-events.ts on lines 366..366
packages/definitions/src/interfaces/augment-api-events.ts on lines 415..415

Duplicated Code

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

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

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

      DispatchedAs: AugmentedEvent<ApiType, [result: Result<Null, SpRuntimeDispatchError>], { result: Result<Null, SpRuntimeDispatchError> }>;
Severity: Major
Found in packages/definitions/src/interfaces/augment-api-events.ts and 2 other locations - About 1 hr to fix
packages/definitions/src/interfaces/augment-api-events.ts on lines 320..320
packages/definitions/src/interfaces/augment-api-events.ts on lines 366..366

Duplicated Code

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

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

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

Tuning

This issue has a mass of 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 3 locations. Consider refactoring.
Open

      Sudid: AugmentedEvent<ApiType, [sudoResult: Result<Null, SpRuntimeDispatchError>], { sudoResult: Result<Null, SpRuntimeDispatchError> }>;
Severity: Major
Found in packages/definitions/src/interfaces/augment-api-events.ts and 2 other locations - About 1 hr to fix
packages/definitions/src/interfaces/augment-api-events.ts on lines 320..320
packages/definitions/src/interfaces/augment-api-events.ts on lines 415..415

Duplicated Code

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

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

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

      Reserved: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
Severity: Major
Found in packages/definitions/src/interfaces/augment-api-events.ts and 13 other locations - About 1 hr to fix
packages/definitions/src/interfaces/augment-api-events.ts on lines 29..29
packages/definitions/src/interfaces/augment-api-events.ts on lines 34..34
packages/definitions/src/interfaces/augment-api-events.ts on lines 38..38
packages/definitions/src/interfaces/augment-api-events.ts on lines 51..51
packages/definitions/src/interfaces/augment-api-events.ts on lines 59..59
packages/definitions/src/interfaces/augment-api-events.ts on lines 93..93
packages/definitions/src/interfaces/augment-api-events.ts on lines 105..105
packages/definitions/src/interfaces/augment-api-events.ts on lines 119..119
packages/definitions/src/interfaces/augment-api-events.ts on lines 123..123
packages/definitions/src/interfaces/augment-api-events.ts on lines 138..138
packages/definitions/src/interfaces/augment-api-events.ts on lines 152..152
packages/definitions/src/interfaces/augment-api-events.ts on lines 380..380
packages/definitions/src/interfaces/augment-api-events.ts on lines 411..411

Duplicated Code

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

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

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

Tuning

This issue has a mass of 55.

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

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

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

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

Refactorings

Further Reading

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

      DustLost: AugmentedEvent<ApiType, [account: AccountId32, amount: u128], { account: AccountId32, amount: u128 }>;
Severity: Major
Found in packages/definitions/src/interfaces/augment-api-events.ts and 13 other locations - About 1 hr to fix
packages/definitions/src/interfaces/augment-api-events.ts on lines 29..29
packages/definitions/src/interfaces/augment-api-events.ts on lines 38..38
packages/definitions/src/interfaces/augment-api-events.ts on lines 42..42
packages/definitions/src/interfaces/augment-api-events.ts on lines 51..51
packages/definitions/src/interfaces/augment-api-events.ts on lines 59..59
packages/definitions/src/interfaces/augment-api-events.ts on lines 93..93
packages/definitions/src/interfaces/augment-api-events.ts on lines 105..105
packages/definitions/src/interfaces/augment-api-events.ts on lines 119..119
packages/definitions/src/interfaces/augment-api-events.ts on lines 123..123
packages/definitions/src/interfaces/augment-api-events.ts on lines 138..138
packages/definitions/src/interfaces/augment-api-events.ts on lines 152..152
packages/definitions/src/interfaces/augment-api-events.ts on lines 380..380
packages/definitions/src/interfaces/augment-api-events.ts on lines 411..411

Duplicated Code

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

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

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

Tuning

This issue has a mass of 55.

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

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

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

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

Refactorings

Further Reading

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

      Slashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
Severity: Major
Found in packages/definitions/src/interfaces/augment-api-events.ts and 13 other locations - About 1 hr to fix
packages/definitions/src/interfaces/augment-api-events.ts on lines 29..29
packages/definitions/src/interfaces/augment-api-events.ts on lines 34..34
packages/definitions/src/interfaces/augment-api-events.ts on lines 38..38
packages/definitions/src/interfaces/augment-api-events.ts on lines 42..42
packages/definitions/src/interfaces/augment-api-events.ts on lines 59..59
packages/definitions/src/interfaces/augment-api-events.ts on lines 93..93
packages/definitions/src/interfaces/augment-api-events.ts on lines 105..105
packages/definitions/src/interfaces/augment-api-events.ts on lines 119..119
packages/definitions/src/interfaces/augment-api-events.ts on lines 123..123
packages/definitions/src/interfaces/augment-api-events.ts on lines 138..138
packages/definitions/src/interfaces/augment-api-events.ts on lines 152..152
packages/definitions/src/interfaces/augment-api-events.ts on lines 380..380
packages/definitions/src/interfaces/augment-api-events.ts on lines 411..411

Duplicated Code

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

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

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

Tuning

This issue has a mass of 55.

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

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

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

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

Refactorings

Further Reading

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

      DownwardMessagesProcessed: AugmentedEvent<ApiType, [weightUsed: u64, dmqHead: H256], { weightUsed: u64, dmqHead: H256 }>;
Severity: Major
Found in packages/definitions/src/interfaces/augment-api-events.ts and 13 other locations - About 1 hr to fix
packages/definitions/src/interfaces/augment-api-events.ts on lines 29..29
packages/definitions/src/interfaces/augment-api-events.ts on lines 34..34
packages/definitions/src/interfaces/augment-api-events.ts on lines 38..38
packages/definitions/src/interfaces/augment-api-events.ts on lines 42..42
packages/definitions/src/interfaces/augment-api-events.ts on lines 51..51
packages/definitions/src/interfaces/augment-api-events.ts on lines 59..59
packages/definitions/src/interfaces/augment-api-events.ts on lines 93..93
packages/definitions/src/interfaces/augment-api-events.ts on lines 105..105
packages/definitions/src/interfaces/augment-api-events.ts on lines 119..119
packages/definitions/src/interfaces/augment-api-events.ts on lines 123..123
packages/definitions/src/interfaces/augment-api-events.ts on lines 138..138
packages/definitions/src/interfaces/augment-api-events.ts on lines 380..380
packages/definitions/src/interfaces/augment-api-events.ts on lines 411..411

Duplicated Code

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

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

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

Tuning

This issue has a mass of 55.

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

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

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

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

Refactorings

Further Reading

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

      Deposit: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
Severity: Major
Found in packages/definitions/src/interfaces/augment-api-events.ts and 13 other locations - About 1 hr to fix
packages/definitions/src/interfaces/augment-api-events.ts on lines 34..34
packages/definitions/src/interfaces/augment-api-events.ts on lines 38..38
packages/definitions/src/interfaces/augment-api-events.ts on lines 42..42
packages/definitions/src/interfaces/augment-api-events.ts on lines 51..51
packages/definitions/src/interfaces/augment-api-events.ts on lines 59..59
packages/definitions/src/interfaces/augment-api-events.ts on lines 93..93
packages/definitions/src/interfaces/augment-api-events.ts on lines 105..105
packages/definitions/src/interfaces/augment-api-events.ts on lines 119..119
packages/definitions/src/interfaces/augment-api-events.ts on lines 123..123
packages/definitions/src/interfaces/augment-api-events.ts on lines 138..138
packages/definitions/src/interfaces/augment-api-events.ts on lines 152..152
packages/definitions/src/interfaces/augment-api-events.ts on lines 380..380
packages/definitions/src/interfaces/augment-api-events.ts on lines 411..411

Duplicated Code

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

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

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

Tuning

This issue has a mass of 55.

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

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

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

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

Refactorings

Further Reading

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

      DomainMetaUpdated: AugmentedEvent<ApiType, [who: AccountId32, domain: Bytes], { who: AccountId32, domain: Bytes }>;
Severity: Major
Found in packages/definitions/src/interfaces/augment-api-events.ts and 13 other locations - About 1 hr to fix
packages/definitions/src/interfaces/augment-api-events.ts on lines 29..29
packages/definitions/src/interfaces/augment-api-events.ts on lines 34..34
packages/definitions/src/interfaces/augment-api-events.ts on lines 38..38
packages/definitions/src/interfaces/augment-api-events.ts on lines 42..42
packages/definitions/src/interfaces/augment-api-events.ts on lines 51..51
packages/definitions/src/interfaces/augment-api-events.ts on lines 59..59
packages/definitions/src/interfaces/augment-api-events.ts on lines 93..93
packages/definitions/src/interfaces/augment-api-events.ts on lines 105..105
packages/definitions/src/interfaces/augment-api-events.ts on lines 123..123
packages/definitions/src/interfaces/augment-api-events.ts on lines 138..138
packages/definitions/src/interfaces/augment-api-events.ts on lines 152..152
packages/definitions/src/interfaces/augment-api-events.ts on lines 380..380
packages/definitions/src/interfaces/augment-api-events.ts on lines 411..411

Duplicated Code

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

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

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

Tuning

This issue has a mass of 55.

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

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

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

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

Refactorings

Further Reading

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

      BatchInterrupted: AugmentedEvent<ApiType, [index: u32, error: SpRuntimeDispatchError], { index: u32, error: SpRuntimeDispatchError }>;
Severity: Major
Found in packages/definitions/src/interfaces/augment-api-events.ts and 13 other locations - About 1 hr to fix
packages/definitions/src/interfaces/augment-api-events.ts on lines 29..29
packages/definitions/src/interfaces/augment-api-events.ts on lines 34..34
packages/definitions/src/interfaces/augment-api-events.ts on lines 38..38
packages/definitions/src/interfaces/augment-api-events.ts on lines 42..42
packages/definitions/src/interfaces/augment-api-events.ts on lines 51..51
packages/definitions/src/interfaces/augment-api-events.ts on lines 59..59
packages/definitions/src/interfaces/augment-api-events.ts on lines 93..93
packages/definitions/src/interfaces/augment-api-events.ts on lines 105..105
packages/definitions/src/interfaces/augment-api-events.ts on lines 119..119
packages/definitions/src/interfaces/augment-api-events.ts on lines 123..123
packages/definitions/src/interfaces/augment-api-events.ts on lines 138..138
packages/definitions/src/interfaces/augment-api-events.ts on lines 152..152
packages/definitions/src/interfaces/augment-api-events.ts on lines 380..380

Duplicated Code

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

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

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

Tuning

This issue has a mass of 55.

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

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

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

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

Refactorings

Further Reading

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

      ExtrinsicFailed: AugmentedEvent<ApiType, [dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSupportWeightsDispatchInfo], { dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSupportWeightsDispatchInfo }>;
Severity: Major
Found in packages/definitions/src/interfaces/augment-api-events.ts and 13 other locations - About 1 hr to fix
packages/definitions/src/interfaces/augment-api-events.ts on lines 29..29
packages/definitions/src/interfaces/augment-api-events.ts on lines 34..34
packages/definitions/src/interfaces/augment-api-events.ts on lines 38..38
packages/definitions/src/interfaces/augment-api-events.ts on lines 42..42
packages/definitions/src/interfaces/augment-api-events.ts on lines 51..51
packages/definitions/src/interfaces/augment-api-events.ts on lines 59..59
packages/definitions/src/interfaces/augment-api-events.ts on lines 93..93
packages/definitions/src/interfaces/augment-api-events.ts on lines 105..105
packages/definitions/src/interfaces/augment-api-events.ts on lines 119..119
packages/definitions/src/interfaces/augment-api-events.ts on lines 123..123
packages/definitions/src/interfaces/augment-api-events.ts on lines 138..138
packages/definitions/src/interfaces/augment-api-events.ts on lines 152..152
packages/definitions/src/interfaces/augment-api-events.ts on lines 411..411

Duplicated Code

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

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

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

Tuning

This issue has a mass of 55.

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

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

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

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

Refactorings

Further Reading

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

      DustLost: AugmentedEvent<ApiType, [account: AccountId32, amount: u128], { account: AccountId32, amount: u128 }>;
Severity: Major
Found in packages/definitions/src/interfaces/augment-api-events.ts and 13 other locations - About 1 hr to fix
packages/definitions/src/interfaces/augment-api-events.ts on lines 29..29
packages/definitions/src/interfaces/augment-api-events.ts on lines 34..34
packages/definitions/src/interfaces/augment-api-events.ts on lines 38..38
packages/definitions/src/interfaces/augment-api-events.ts on lines 42..42
packages/definitions/src/interfaces/augment-api-events.ts on lines 51..51
packages/definitions/src/interfaces/augment-api-events.ts on lines 59..59
packages/definitions/src/interfaces/augment-api-events.ts on lines 93..93
packages/definitions/src/interfaces/augment-api-events.ts on lines 105..105
packages/definitions/src/interfaces/augment-api-events.ts on lines 119..119
packages/definitions/src/interfaces/augment-api-events.ts on lines 123..123
packages/definitions/src/interfaces/augment-api-events.ts on lines 152..152
packages/definitions/src/interfaces/augment-api-events.ts on lines 380..380
packages/definitions/src/interfaces/augment-api-events.ts on lines 411..411

Duplicated Code

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

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

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

Tuning

This issue has a mass of 55.

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

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

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

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

Refactorings

Further Reading

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

      ExecutedDownward: AugmentedEvent<ApiType, [messageId: U8aFixed, outcome: XcmV2TraitsOutcome], { messageId: U8aFixed, outcome: XcmV2TraitsOutcome }>;
Severity: Major
Found in packages/definitions/src/interfaces/augment-api-events.ts and 13 other locations - About 1 hr to fix
packages/definitions/src/interfaces/augment-api-events.ts on lines 29..29
packages/definitions/src/interfaces/augment-api-events.ts on lines 34..34
packages/definitions/src/interfaces/augment-api-events.ts on lines 38..38
packages/definitions/src/interfaces/augment-api-events.ts on lines 42..42
packages/definitions/src/interfaces/augment-api-events.ts on lines 51..51
packages/definitions/src/interfaces/augment-api-events.ts on lines 59..59
packages/definitions/src/interfaces/augment-api-events.ts on lines 105..105
packages/definitions/src/interfaces/augment-api-events.ts on lines 119..119
packages/definitions/src/interfaces/augment-api-events.ts on lines 123..123
packages/definitions/src/interfaces/augment-api-events.ts on lines 138..138
packages/definitions/src/interfaces/augment-api-events.ts on lines 152..152
packages/definitions/src/interfaces/augment-api-events.ts on lines 380..380
packages/definitions/src/interfaces/augment-api-events.ts on lines 411..411

Duplicated Code

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

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

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

Tuning

This issue has a mass of 55.

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

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

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

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

Refactorings

Further Reading

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

      Unreserved: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
Severity: Major
Found in packages/definitions/src/interfaces/augment-api-events.ts and 13 other locations - About 1 hr to fix
packages/definitions/src/interfaces/augment-api-events.ts on lines 29..29
packages/definitions/src/interfaces/augment-api-events.ts on lines 34..34
packages/definitions/src/interfaces/augment-api-events.ts on lines 38..38
packages/definitions/src/interfaces/augment-api-events.ts on lines 42..42
packages/definitions/src/interfaces/augment-api-events.ts on lines 51..51
packages/definitions/src/interfaces/augment-api-events.ts on lines 93..93
packages/definitions/src/interfaces/augment-api-events.ts on lines 105..105
packages/definitions/src/interfaces/augment-api-events.ts on lines 119..119
packages/definitions/src/interfaces/augment-api-events.ts on lines 123..123
packages/definitions/src/interfaces/augment-api-events.ts on lines 138..138
packages/definitions/src/interfaces/augment-api-events.ts on lines 152..152
packages/definitions/src/interfaces/augment-api-events.ts on lines 380..380
packages/definitions/src/interfaces/augment-api-events.ts on lines 411..411

Duplicated Code

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

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

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

Tuning

This issue has a mass of 55.

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

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

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

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

Refactorings

Further Reading

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

      DomainRegistered: AugmentedEvent<ApiType, [who: AccountId32, domain: Bytes], { who: AccountId32, domain: Bytes }>;
Severity: Major
Found in packages/definitions/src/interfaces/augment-api-events.ts and 13 other locations - About 1 hr to fix
packages/definitions/src/interfaces/augment-api-events.ts on lines 29..29
packages/definitions/src/interfaces/augment-api-events.ts on lines 34..34
packages/definitions/src/interfaces/augment-api-events.ts on lines 38..38
packages/definitions/src/interfaces/augment-api-events.ts on lines 42..42
packages/definitions/src/interfaces/augment-api-events.ts on lines 51..51
packages/definitions/src/interfaces/augment-api-events.ts on lines 59..59
packages/definitions/src/interfaces/augment-api-events.ts on lines 93..93
packages/definitions/src/interfaces/augment-api-events.ts on lines 105..105
packages/definitions/src/interfaces/augment-api-events.ts on lines 119..119
packages/definitions/src/interfaces/augment-api-events.ts on lines 138..138
packages/definitions/src/interfaces/augment-api-events.ts on lines 152..152
packages/definitions/src/interfaces/augment-api-events.ts on lines 380..380
packages/definitions/src/interfaces/augment-api-events.ts on lines 411..411

Duplicated Code

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

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

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

Tuning

This issue has a mass of 55.

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

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

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

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

Refactorings

Further Reading

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

      Endowed: AugmentedEvent<ApiType, [account: AccountId32, freeBalance: u128], { account: AccountId32, freeBalance: u128 }>;
Severity: Major
Found in packages/definitions/src/interfaces/augment-api-events.ts and 13 other locations - About 1 hr to fix
packages/definitions/src/interfaces/augment-api-events.ts on lines 29..29
packages/definitions/src/interfaces/augment-api-events.ts on lines 34..34
packages/definitions/src/interfaces/augment-api-events.ts on lines 42..42
packages/definitions/src/interfaces/augment-api-events.ts on lines 51..51
packages/definitions/src/interfaces/augment-api-events.ts on lines 59..59
packages/definitions/src/interfaces/augment-api-events.ts on lines 93..93
packages/definitions/src/interfaces/augment-api-events.ts on lines 105..105
packages/definitions/src/interfaces/augment-api-events.ts on lines 119..119
packages/definitions/src/interfaces/augment-api-events.ts on lines 123..123
packages/definitions/src/interfaces/augment-api-events.ts on lines 138..138
packages/definitions/src/interfaces/augment-api-events.ts on lines 152..152
packages/definitions/src/interfaces/augment-api-events.ts on lines 380..380
packages/definitions/src/interfaces/augment-api-events.ts on lines 411..411

Duplicated Code

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

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

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

Tuning

This issue has a mass of 55.

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

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

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

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

Refactorings

Further Reading

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

      OverweightServiced: AugmentedEvent<ApiType, [overweightIndex: u64, weightUsed: u64], { overweightIndex: u64, weightUsed: u64 }>;
Severity: Major
Found in packages/definitions/src/interfaces/augment-api-events.ts and 13 other locations - About 1 hr to fix
packages/definitions/src/interfaces/augment-api-events.ts on lines 29..29
packages/definitions/src/interfaces/augment-api-events.ts on lines 34..34
packages/definitions/src/interfaces/augment-api-events.ts on lines 38..38
packages/definitions/src/interfaces/augment-api-events.ts on lines 42..42
packages/definitions/src/interfaces/augment-api-events.ts on lines 51..51
packages/definitions/src/interfaces/augment-api-events.ts on lines 59..59
packages/definitions/src/interfaces/augment-api-events.ts on lines 93..93
packages/definitions/src/interfaces/augment-api-events.ts on lines 119..119
packages/definitions/src/interfaces/augment-api-events.ts on lines 123..123
packages/definitions/src/interfaces/augment-api-events.ts on lines 138..138
packages/definitions/src/interfaces/augment-api-events.ts on lines 152..152
packages/definitions/src/interfaces/augment-api-events.ts on lines 380..380
packages/definitions/src/interfaces/augment-api-events.ts on lines 411..411

Duplicated Code

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

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

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

Tuning

This issue has a mass of 55.

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

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

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

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

Refactorings

Further Reading

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

      Remarked: AugmentedEvent<ApiType, [sender: AccountId32, hash_: H256], { sender: AccountId32, hash_: H256 }>;
Severity: Major
Found in packages/definitions/src/interfaces/augment-api-events.ts and 2 other locations - About 55 mins to fix
packages/definitions/src/interfaces/augment-api-events.ts on lines 63..63
packages/definitions/src/interfaces/augment-api-events.ts on lines 434..434

Duplicated Code

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

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

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

      Withdraw: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
Severity: Major
Found in packages/definitions/src/interfaces/augment-api-events.ts and 2 other locations - About 55 mins to fix
packages/definitions/src/interfaces/augment-api-events.ts on lines 396..396
packages/definitions/src/interfaces/augment-api-events.ts on lines 434..434

Duplicated Code

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

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

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

      VestingUpdated: AugmentedEvent<ApiType, [account: AccountId32, unvested: u128], { account: AccountId32, unvested: u128 }>;
Severity: Major
Found in packages/definitions/src/interfaces/augment-api-events.ts and 2 other locations - About 55 mins to fix
packages/definitions/src/interfaces/augment-api-events.ts on lines 63..63
packages/definitions/src/interfaces/augment-api-events.ts on lines 396..396

Duplicated Code

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

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

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

      PostMoved: AugmentedEvent<ApiType, [account: AccountId32, postId: u64, fromSpace: Option<u64>, toSpace: Option<u64>], { account: AccountId32, postId: u64, fromSpace: Option<u64>, toSpace: Option<u64> }>;
Severity: Minor
Found in packages/definitions/src/interfaces/augment-api-events.ts and 1 other location - About 45 mins to fix
packages/definitions/src/interfaces/types-lookup.ts on lines 1151..1156

Duplicated Code

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

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

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

There are no issues that match your filters.

Category
Status