AugurProject/augur-core

View on GitHub

Showing 833 of 833 total issues

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

        public approve = async(spender: string, value: BN, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [spender, value], "approve", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 52 other locations - About 7 hrs to fix
source/libraries/ContractInterfaces.ts on lines 491..496
source/libraries/ContractInterfaces.ts on lines 890..895
source/libraries/ContractInterfaces.ts on lines 974..979
source/libraries/ContractInterfaces.ts on lines 1023..1028
source/libraries/ContractInterfaces.ts on lines 1037..1042
source/libraries/ContractInterfaces.ts on lines 1086..1091
source/libraries/ContractInterfaces.ts on lines 1177..1182
source/libraries/ContractInterfaces.ts on lines 1191..1196
source/libraries/ContractInterfaces.ts on lines 1289..1294
source/libraries/ContractInterfaces.ts on lines 1317..1322
source/libraries/ContractInterfaces.ts on lines 1366..1371
source/libraries/ContractInterfaces.ts on lines 2150..2155
source/libraries/ContractInterfaces.ts on lines 2234..2239
source/libraries/ContractInterfaces.ts on lines 2255..2260
source/libraries/ContractInterfaces.ts on lines 2325..2330
source/libraries/ContractInterfaces.ts on lines 2367..2372
source/libraries/ContractInterfaces.ts on lines 2507..2512
source/libraries/ContractInterfaces.ts on lines 2549..2554
source/libraries/ContractInterfaces.ts on lines 2563..2568
source/libraries/ContractInterfaces.ts on lines 2598..2603
source/libraries/ContractInterfaces.ts on lines 2633..2638
source/libraries/ContractInterfaces.ts on lines 2661..2666
source/libraries/ContractInterfaces.ts on lines 2745..2750
source/libraries/ContractInterfaces.ts on lines 2766..2771
source/libraries/ContractInterfaces.ts on lines 2857..2862
source/libraries/ContractInterfaces.ts on lines 2934..2939
source/libraries/ContractInterfaces.ts on lines 2955..2960
source/libraries/ContractInterfaces.ts on lines 3921..3926
source/libraries/ContractInterfaces.ts on lines 3998..4003
source/libraries/ContractInterfaces.ts on lines 4012..4017
source/libraries/ContractInterfaces.ts on lines 4110..4115
source/libraries/ContractInterfaces.ts on lines 4138..4143
source/libraries/ContractInterfaces.ts on lines 4187..4192
source/libraries/ContractInterfaces.ts on lines 4992..4997
source/libraries/ContractInterfaces.ts on lines 5013..5018
source/libraries/ContractInterfaces.ts on lines 5090..5095
source/libraries/ContractInterfaces.ts on lines 5146..5151
source/libraries/ContractInterfaces.ts on lines 5167..5172
source/libraries/ContractInterfaces.ts on lines 5195..5200
source/libraries/ContractInterfaces.ts on lines 5230..5235
source/libraries/ContractInterfaces.ts on lines 5300..5305
source/libraries/ContractInterfaces.ts on lines 5335..5340
source/libraries/ContractInterfaces.ts on lines 5391..5396
source/libraries/ContractInterfaces.ts on lines 5545..5550
source/libraries/ContractInterfaces.ts on lines 5706..5711
source/libraries/ContractInterfaces.ts on lines 5846..5851
source/libraries/ContractInterfaces.ts on lines 5860..5865
source/libraries/ContractInterfaces.ts on lines 5930..5935
source/libraries/ContractInterfaces.ts on lines 6007..6012
source/libraries/ContractInterfaces.ts on lines 6028..6033
source/libraries/ContractInterfaces.ts on lines 6042..6047
source/libraries/ContractInterfaces.ts on lines 6056..6061

Duplicated Code

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

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

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

Tuning

This issue has a mass of 182.

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

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

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

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

Refactorings

Further Reading

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

        public transfer = async(to: string, value: BN, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [to, value], "transfer", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 52 other locations - About 7 hrs to fix
source/libraries/ContractInterfaces.ts on lines 491..496
source/libraries/ContractInterfaces.ts on lines 890..895
source/libraries/ContractInterfaces.ts on lines 974..979
source/libraries/ContractInterfaces.ts on lines 1023..1028
source/libraries/ContractInterfaces.ts on lines 1037..1042
source/libraries/ContractInterfaces.ts on lines 1086..1091
source/libraries/ContractInterfaces.ts on lines 1177..1182
source/libraries/ContractInterfaces.ts on lines 1191..1196
source/libraries/ContractInterfaces.ts on lines 1289..1294
source/libraries/ContractInterfaces.ts on lines 1317..1322
source/libraries/ContractInterfaces.ts on lines 1366..1371
source/libraries/ContractInterfaces.ts on lines 2150..2155
source/libraries/ContractInterfaces.ts on lines 2234..2239
source/libraries/ContractInterfaces.ts on lines 2255..2260
source/libraries/ContractInterfaces.ts on lines 2325..2330
source/libraries/ContractInterfaces.ts on lines 2367..2372
source/libraries/ContractInterfaces.ts on lines 2451..2456
source/libraries/ContractInterfaces.ts on lines 2507..2512
source/libraries/ContractInterfaces.ts on lines 2549..2554
source/libraries/ContractInterfaces.ts on lines 2563..2568
source/libraries/ContractInterfaces.ts on lines 2598..2603
source/libraries/ContractInterfaces.ts on lines 2633..2638
source/libraries/ContractInterfaces.ts on lines 2661..2666
source/libraries/ContractInterfaces.ts on lines 2745..2750
source/libraries/ContractInterfaces.ts on lines 2766..2771
source/libraries/ContractInterfaces.ts on lines 2857..2862
source/libraries/ContractInterfaces.ts on lines 2934..2939
source/libraries/ContractInterfaces.ts on lines 2955..2960
source/libraries/ContractInterfaces.ts on lines 3921..3926
source/libraries/ContractInterfaces.ts on lines 3998..4003
source/libraries/ContractInterfaces.ts on lines 4012..4017
source/libraries/ContractInterfaces.ts on lines 4110..4115
source/libraries/ContractInterfaces.ts on lines 4138..4143
source/libraries/ContractInterfaces.ts on lines 4187..4192
source/libraries/ContractInterfaces.ts on lines 4992..4997
source/libraries/ContractInterfaces.ts on lines 5013..5018
source/libraries/ContractInterfaces.ts on lines 5090..5095
source/libraries/ContractInterfaces.ts on lines 5146..5151
source/libraries/ContractInterfaces.ts on lines 5167..5172
source/libraries/ContractInterfaces.ts on lines 5195..5200
source/libraries/ContractInterfaces.ts on lines 5230..5235
source/libraries/ContractInterfaces.ts on lines 5300..5305
source/libraries/ContractInterfaces.ts on lines 5335..5340
source/libraries/ContractInterfaces.ts on lines 5391..5396
source/libraries/ContractInterfaces.ts on lines 5545..5550
source/libraries/ContractInterfaces.ts on lines 5706..5711
source/libraries/ContractInterfaces.ts on lines 5846..5851
source/libraries/ContractInterfaces.ts on lines 5860..5865
source/libraries/ContractInterfaces.ts on lines 5930..5935
source/libraries/ContractInterfaces.ts on lines 6028..6033
source/libraries/ContractInterfaces.ts on lines 6042..6047
source/libraries/ContractInterfaces.ts on lines 6056..6061

Duplicated Code

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

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

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

Tuning

This issue has a mass of 182.

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

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

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

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

Refactorings

Further Reading

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

        public approve = async(spender: string, value: BN, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [spender, value], "approve", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 52 other locations - About 7 hrs to fix
source/libraries/ContractInterfaces.ts on lines 491..496
source/libraries/ContractInterfaces.ts on lines 974..979
source/libraries/ContractInterfaces.ts on lines 1023..1028
source/libraries/ContractInterfaces.ts on lines 1037..1042
source/libraries/ContractInterfaces.ts on lines 1086..1091
source/libraries/ContractInterfaces.ts on lines 1177..1182
source/libraries/ContractInterfaces.ts on lines 1191..1196
source/libraries/ContractInterfaces.ts on lines 1289..1294
source/libraries/ContractInterfaces.ts on lines 1317..1322
source/libraries/ContractInterfaces.ts on lines 1366..1371
source/libraries/ContractInterfaces.ts on lines 2150..2155
source/libraries/ContractInterfaces.ts on lines 2234..2239
source/libraries/ContractInterfaces.ts on lines 2255..2260
source/libraries/ContractInterfaces.ts on lines 2325..2330
source/libraries/ContractInterfaces.ts on lines 2367..2372
source/libraries/ContractInterfaces.ts on lines 2451..2456
source/libraries/ContractInterfaces.ts on lines 2507..2512
source/libraries/ContractInterfaces.ts on lines 2549..2554
source/libraries/ContractInterfaces.ts on lines 2563..2568
source/libraries/ContractInterfaces.ts on lines 2598..2603
source/libraries/ContractInterfaces.ts on lines 2633..2638
source/libraries/ContractInterfaces.ts on lines 2661..2666
source/libraries/ContractInterfaces.ts on lines 2745..2750
source/libraries/ContractInterfaces.ts on lines 2766..2771
source/libraries/ContractInterfaces.ts on lines 2857..2862
source/libraries/ContractInterfaces.ts on lines 2934..2939
source/libraries/ContractInterfaces.ts on lines 2955..2960
source/libraries/ContractInterfaces.ts on lines 3921..3926
source/libraries/ContractInterfaces.ts on lines 3998..4003
source/libraries/ContractInterfaces.ts on lines 4012..4017
source/libraries/ContractInterfaces.ts on lines 4110..4115
source/libraries/ContractInterfaces.ts on lines 4138..4143
source/libraries/ContractInterfaces.ts on lines 4187..4192
source/libraries/ContractInterfaces.ts on lines 4992..4997
source/libraries/ContractInterfaces.ts on lines 5013..5018
source/libraries/ContractInterfaces.ts on lines 5090..5095
source/libraries/ContractInterfaces.ts on lines 5146..5151
source/libraries/ContractInterfaces.ts on lines 5167..5172
source/libraries/ContractInterfaces.ts on lines 5195..5200
source/libraries/ContractInterfaces.ts on lines 5230..5235
source/libraries/ContractInterfaces.ts on lines 5300..5305
source/libraries/ContractInterfaces.ts on lines 5335..5340
source/libraries/ContractInterfaces.ts on lines 5391..5396
source/libraries/ContractInterfaces.ts on lines 5545..5550
source/libraries/ContractInterfaces.ts on lines 5706..5711
source/libraries/ContractInterfaces.ts on lines 5846..5851
source/libraries/ContractInterfaces.ts on lines 5860..5865
source/libraries/ContractInterfaces.ts on lines 5930..5935
source/libraries/ContractInterfaces.ts on lines 6007..6012
source/libraries/ContractInterfaces.ts on lines 6028..6033
source/libraries/ContractInterfaces.ts on lines 6042..6047
source/libraries/ContractInterfaces.ts on lines 6056..6061

Duplicated Code

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

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

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

Tuning

This issue has a mass of 182.

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

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

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

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

Refactorings

Further Reading

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

        public decreaseApproval = async(spender: string, subtractedValue: BN, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_subtractedValue","type":"uint256"}],"name":"decreaseApproval","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [spender, subtractedValue], "decreaseApproval", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 52 other locations - About 7 hrs to fix
source/libraries/ContractInterfaces.ts on lines 491..496
source/libraries/ContractInterfaces.ts on lines 890..895
source/libraries/ContractInterfaces.ts on lines 974..979
source/libraries/ContractInterfaces.ts on lines 1023..1028
source/libraries/ContractInterfaces.ts on lines 1037..1042
source/libraries/ContractInterfaces.ts on lines 1086..1091
source/libraries/ContractInterfaces.ts on lines 1177..1182
source/libraries/ContractInterfaces.ts on lines 1191..1196
source/libraries/ContractInterfaces.ts on lines 1289..1294
source/libraries/ContractInterfaces.ts on lines 1317..1322
source/libraries/ContractInterfaces.ts on lines 1366..1371
source/libraries/ContractInterfaces.ts on lines 2150..2155
source/libraries/ContractInterfaces.ts on lines 2234..2239
source/libraries/ContractInterfaces.ts on lines 2255..2260
source/libraries/ContractInterfaces.ts on lines 2325..2330
source/libraries/ContractInterfaces.ts on lines 2367..2372
source/libraries/ContractInterfaces.ts on lines 2451..2456
source/libraries/ContractInterfaces.ts on lines 2507..2512
source/libraries/ContractInterfaces.ts on lines 2549..2554
source/libraries/ContractInterfaces.ts on lines 2563..2568
source/libraries/ContractInterfaces.ts on lines 2598..2603
source/libraries/ContractInterfaces.ts on lines 2633..2638
source/libraries/ContractInterfaces.ts on lines 2661..2666
source/libraries/ContractInterfaces.ts on lines 2745..2750
source/libraries/ContractInterfaces.ts on lines 2766..2771
source/libraries/ContractInterfaces.ts on lines 2857..2862
source/libraries/ContractInterfaces.ts on lines 2934..2939
source/libraries/ContractInterfaces.ts on lines 2955..2960
source/libraries/ContractInterfaces.ts on lines 3921..3926
source/libraries/ContractInterfaces.ts on lines 4012..4017
source/libraries/ContractInterfaces.ts on lines 4110..4115
source/libraries/ContractInterfaces.ts on lines 4138..4143
source/libraries/ContractInterfaces.ts on lines 4187..4192
source/libraries/ContractInterfaces.ts on lines 4992..4997
source/libraries/ContractInterfaces.ts on lines 5013..5018
source/libraries/ContractInterfaces.ts on lines 5090..5095
source/libraries/ContractInterfaces.ts on lines 5146..5151
source/libraries/ContractInterfaces.ts on lines 5167..5172
source/libraries/ContractInterfaces.ts on lines 5195..5200
source/libraries/ContractInterfaces.ts on lines 5230..5235
source/libraries/ContractInterfaces.ts on lines 5300..5305
source/libraries/ContractInterfaces.ts on lines 5335..5340
source/libraries/ContractInterfaces.ts on lines 5391..5396
source/libraries/ContractInterfaces.ts on lines 5545..5550
source/libraries/ContractInterfaces.ts on lines 5706..5711
source/libraries/ContractInterfaces.ts on lines 5846..5851
source/libraries/ContractInterfaces.ts on lines 5860..5865
source/libraries/ContractInterfaces.ts on lines 5930..5935
source/libraries/ContractInterfaces.ts on lines 6007..6012
source/libraries/ContractInterfaces.ts on lines 6028..6033
source/libraries/ContractInterfaces.ts on lines 6042..6047
source/libraries/ContractInterfaces.ts on lines 6056..6061

Duplicated Code

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

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

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

Tuning

This issue has a mass of 182.

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

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

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

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

Refactorings

Further Reading

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

        public transfer = async(to: string, value: BN, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [to, value], "transfer", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 52 other locations - About 7 hrs to fix
source/libraries/ContractInterfaces.ts on lines 491..496
source/libraries/ContractInterfaces.ts on lines 890..895
source/libraries/ContractInterfaces.ts on lines 974..979
source/libraries/ContractInterfaces.ts on lines 1023..1028
source/libraries/ContractInterfaces.ts on lines 1037..1042
source/libraries/ContractInterfaces.ts on lines 1086..1091
source/libraries/ContractInterfaces.ts on lines 1177..1182
source/libraries/ContractInterfaces.ts on lines 1191..1196
source/libraries/ContractInterfaces.ts on lines 1289..1294
source/libraries/ContractInterfaces.ts on lines 1317..1322
source/libraries/ContractInterfaces.ts on lines 1366..1371
source/libraries/ContractInterfaces.ts on lines 2150..2155
source/libraries/ContractInterfaces.ts on lines 2234..2239
source/libraries/ContractInterfaces.ts on lines 2255..2260
source/libraries/ContractInterfaces.ts on lines 2325..2330
source/libraries/ContractInterfaces.ts on lines 2367..2372
source/libraries/ContractInterfaces.ts on lines 2451..2456
source/libraries/ContractInterfaces.ts on lines 2507..2512
source/libraries/ContractInterfaces.ts on lines 2549..2554
source/libraries/ContractInterfaces.ts on lines 2563..2568
source/libraries/ContractInterfaces.ts on lines 2598..2603
source/libraries/ContractInterfaces.ts on lines 2633..2638
source/libraries/ContractInterfaces.ts on lines 2661..2666
source/libraries/ContractInterfaces.ts on lines 2745..2750
source/libraries/ContractInterfaces.ts on lines 2766..2771
source/libraries/ContractInterfaces.ts on lines 2857..2862
source/libraries/ContractInterfaces.ts on lines 2934..2939
source/libraries/ContractInterfaces.ts on lines 2955..2960
source/libraries/ContractInterfaces.ts on lines 3921..3926
source/libraries/ContractInterfaces.ts on lines 3998..4003
source/libraries/ContractInterfaces.ts on lines 4012..4017
source/libraries/ContractInterfaces.ts on lines 4110..4115
source/libraries/ContractInterfaces.ts on lines 4138..4143
source/libraries/ContractInterfaces.ts on lines 4187..4192
source/libraries/ContractInterfaces.ts on lines 4992..4997
source/libraries/ContractInterfaces.ts on lines 5013..5018
source/libraries/ContractInterfaces.ts on lines 5090..5095
source/libraries/ContractInterfaces.ts on lines 5167..5172
source/libraries/ContractInterfaces.ts on lines 5195..5200
source/libraries/ContractInterfaces.ts on lines 5230..5235
source/libraries/ContractInterfaces.ts on lines 5300..5305
source/libraries/ContractInterfaces.ts on lines 5335..5340
source/libraries/ContractInterfaces.ts on lines 5391..5396
source/libraries/ContractInterfaces.ts on lines 5545..5550
source/libraries/ContractInterfaces.ts on lines 5706..5711
source/libraries/ContractInterfaces.ts on lines 5846..5851
source/libraries/ContractInterfaces.ts on lines 5860..5865
source/libraries/ContractInterfaces.ts on lines 5930..5935
source/libraries/ContractInterfaces.ts on lines 6007..6012
source/libraries/ContractInterfaces.ts on lines 6028..6033
source/libraries/ContractInterfaces.ts on lines 6042..6047
source/libraries/ContractInterfaces.ts on lines 6056..6061

Duplicated Code

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

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

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

Tuning

This issue has a mass of 182.

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

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

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

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

Refactorings

Further Reading

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

        public publicBuyCompleteSetsWithCash = async(market: string, amount: BN, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_market","type":"address"},{"name":"_amount","type":"uint256"}],"name":"publicBuyCompleteSetsWithCash","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [market, amount], "publicBuyCompleteSetsWithCash", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 52 other locations - About 7 hrs to fix
source/libraries/ContractInterfaces.ts on lines 491..496
source/libraries/ContractInterfaces.ts on lines 890..895
source/libraries/ContractInterfaces.ts on lines 974..979
source/libraries/ContractInterfaces.ts on lines 1023..1028
source/libraries/ContractInterfaces.ts on lines 1037..1042
source/libraries/ContractInterfaces.ts on lines 1086..1091
source/libraries/ContractInterfaces.ts on lines 1177..1182
source/libraries/ContractInterfaces.ts on lines 1191..1196
source/libraries/ContractInterfaces.ts on lines 1289..1294
source/libraries/ContractInterfaces.ts on lines 1317..1322
source/libraries/ContractInterfaces.ts on lines 1366..1371
source/libraries/ContractInterfaces.ts on lines 2150..2155
source/libraries/ContractInterfaces.ts on lines 2234..2239
source/libraries/ContractInterfaces.ts on lines 2255..2260
source/libraries/ContractInterfaces.ts on lines 2325..2330
source/libraries/ContractInterfaces.ts on lines 2367..2372
source/libraries/ContractInterfaces.ts on lines 2451..2456
source/libraries/ContractInterfaces.ts on lines 2507..2512
source/libraries/ContractInterfaces.ts on lines 2549..2554
source/libraries/ContractInterfaces.ts on lines 2563..2568
source/libraries/ContractInterfaces.ts on lines 2598..2603
source/libraries/ContractInterfaces.ts on lines 2633..2638
source/libraries/ContractInterfaces.ts on lines 2661..2666
source/libraries/ContractInterfaces.ts on lines 2745..2750
source/libraries/ContractInterfaces.ts on lines 2766..2771
source/libraries/ContractInterfaces.ts on lines 2857..2862
source/libraries/ContractInterfaces.ts on lines 2934..2939
source/libraries/ContractInterfaces.ts on lines 2955..2960
source/libraries/ContractInterfaces.ts on lines 3921..3926
source/libraries/ContractInterfaces.ts on lines 3998..4003
source/libraries/ContractInterfaces.ts on lines 4012..4017
source/libraries/ContractInterfaces.ts on lines 4110..4115
source/libraries/ContractInterfaces.ts on lines 4138..4143
source/libraries/ContractInterfaces.ts on lines 4187..4192
source/libraries/ContractInterfaces.ts on lines 4992..4997
source/libraries/ContractInterfaces.ts on lines 5013..5018
source/libraries/ContractInterfaces.ts on lines 5090..5095
source/libraries/ContractInterfaces.ts on lines 5146..5151
source/libraries/ContractInterfaces.ts on lines 5167..5172
source/libraries/ContractInterfaces.ts on lines 5195..5200
source/libraries/ContractInterfaces.ts on lines 5230..5235
source/libraries/ContractInterfaces.ts on lines 5335..5340
source/libraries/ContractInterfaces.ts on lines 5391..5396
source/libraries/ContractInterfaces.ts on lines 5545..5550
source/libraries/ContractInterfaces.ts on lines 5706..5711
source/libraries/ContractInterfaces.ts on lines 5846..5851
source/libraries/ContractInterfaces.ts on lines 5860..5865
source/libraries/ContractInterfaces.ts on lines 5930..5935
source/libraries/ContractInterfaces.ts on lines 6007..6012
source/libraries/ContractInterfaces.ts on lines 6028..6033
source/libraries/ContractInterfaces.ts on lines 6042..6047
source/libraries/ContractInterfaces.ts on lines 6056..6061

Duplicated Code

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

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

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

Tuning

This issue has a mass of 182.

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

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

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

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

Refactorings

Further Reading

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

        public transfer = async(to: string, value: BN, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [to, value], "transfer", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 52 other locations - About 7 hrs to fix
source/libraries/ContractInterfaces.ts on lines 491..496
source/libraries/ContractInterfaces.ts on lines 890..895
source/libraries/ContractInterfaces.ts on lines 974..979
source/libraries/ContractInterfaces.ts on lines 1023..1028
source/libraries/ContractInterfaces.ts on lines 1037..1042
source/libraries/ContractInterfaces.ts on lines 1086..1091
source/libraries/ContractInterfaces.ts on lines 1177..1182
source/libraries/ContractInterfaces.ts on lines 1191..1196
source/libraries/ContractInterfaces.ts on lines 1289..1294
source/libraries/ContractInterfaces.ts on lines 1366..1371
source/libraries/ContractInterfaces.ts on lines 2150..2155
source/libraries/ContractInterfaces.ts on lines 2234..2239
source/libraries/ContractInterfaces.ts on lines 2255..2260
source/libraries/ContractInterfaces.ts on lines 2325..2330
source/libraries/ContractInterfaces.ts on lines 2367..2372
source/libraries/ContractInterfaces.ts on lines 2451..2456
source/libraries/ContractInterfaces.ts on lines 2507..2512
source/libraries/ContractInterfaces.ts on lines 2549..2554
source/libraries/ContractInterfaces.ts on lines 2563..2568
source/libraries/ContractInterfaces.ts on lines 2598..2603
source/libraries/ContractInterfaces.ts on lines 2633..2638
source/libraries/ContractInterfaces.ts on lines 2661..2666
source/libraries/ContractInterfaces.ts on lines 2745..2750
source/libraries/ContractInterfaces.ts on lines 2766..2771
source/libraries/ContractInterfaces.ts on lines 2857..2862
source/libraries/ContractInterfaces.ts on lines 2934..2939
source/libraries/ContractInterfaces.ts on lines 2955..2960
source/libraries/ContractInterfaces.ts on lines 3921..3926
source/libraries/ContractInterfaces.ts on lines 3998..4003
source/libraries/ContractInterfaces.ts on lines 4012..4017
source/libraries/ContractInterfaces.ts on lines 4110..4115
source/libraries/ContractInterfaces.ts on lines 4138..4143
source/libraries/ContractInterfaces.ts on lines 4187..4192
source/libraries/ContractInterfaces.ts on lines 4992..4997
source/libraries/ContractInterfaces.ts on lines 5013..5018
source/libraries/ContractInterfaces.ts on lines 5090..5095
source/libraries/ContractInterfaces.ts on lines 5146..5151
source/libraries/ContractInterfaces.ts on lines 5167..5172
source/libraries/ContractInterfaces.ts on lines 5195..5200
source/libraries/ContractInterfaces.ts on lines 5230..5235
source/libraries/ContractInterfaces.ts on lines 5300..5305
source/libraries/ContractInterfaces.ts on lines 5335..5340
source/libraries/ContractInterfaces.ts on lines 5391..5396
source/libraries/ContractInterfaces.ts on lines 5545..5550
source/libraries/ContractInterfaces.ts on lines 5706..5711
source/libraries/ContractInterfaces.ts on lines 5846..5851
source/libraries/ContractInterfaces.ts on lines 5860..5865
source/libraries/ContractInterfaces.ts on lines 5930..5935
source/libraries/ContractInterfaces.ts on lines 6007..6012
source/libraries/ContractInterfaces.ts on lines 6028..6033
source/libraries/ContractInterfaces.ts on lines 6042..6047
source/libraries/ContractInterfaces.ts on lines 6056..6061

Duplicated Code

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

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

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

Tuning

This issue has a mass of 182.

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

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

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

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

Refactorings

Further Reading

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

        public migrateIn = async(reporter: string, attotokens: BN, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_reporter","type":"address"},{"name":"_attotokens","type":"uint256"}],"name":"migrateIn","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [reporter, attotokens], "migrateIn", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 52 other locations - About 7 hrs to fix
source/libraries/ContractInterfaces.ts on lines 491..496
source/libraries/ContractInterfaces.ts on lines 890..895
source/libraries/ContractInterfaces.ts on lines 974..979
source/libraries/ContractInterfaces.ts on lines 1023..1028
source/libraries/ContractInterfaces.ts on lines 1037..1042
source/libraries/ContractInterfaces.ts on lines 1086..1091
source/libraries/ContractInterfaces.ts on lines 1177..1182
source/libraries/ContractInterfaces.ts on lines 1191..1196
source/libraries/ContractInterfaces.ts on lines 1289..1294
source/libraries/ContractInterfaces.ts on lines 1317..1322
source/libraries/ContractInterfaces.ts on lines 1366..1371
source/libraries/ContractInterfaces.ts on lines 2150..2155
source/libraries/ContractInterfaces.ts on lines 2234..2239
source/libraries/ContractInterfaces.ts on lines 2255..2260
source/libraries/ContractInterfaces.ts on lines 2325..2330
source/libraries/ContractInterfaces.ts on lines 2367..2372
source/libraries/ContractInterfaces.ts on lines 2451..2456
source/libraries/ContractInterfaces.ts on lines 2507..2512
source/libraries/ContractInterfaces.ts on lines 2549..2554
source/libraries/ContractInterfaces.ts on lines 2563..2568
source/libraries/ContractInterfaces.ts on lines 2598..2603
source/libraries/ContractInterfaces.ts on lines 2633..2638
source/libraries/ContractInterfaces.ts on lines 2661..2666
source/libraries/ContractInterfaces.ts on lines 2745..2750
source/libraries/ContractInterfaces.ts on lines 2766..2771
source/libraries/ContractInterfaces.ts on lines 2857..2862
source/libraries/ContractInterfaces.ts on lines 2934..2939
source/libraries/ContractInterfaces.ts on lines 2955..2960
source/libraries/ContractInterfaces.ts on lines 3921..3926
source/libraries/ContractInterfaces.ts on lines 3998..4003
source/libraries/ContractInterfaces.ts on lines 4012..4017
source/libraries/ContractInterfaces.ts on lines 4138..4143
source/libraries/ContractInterfaces.ts on lines 4187..4192
source/libraries/ContractInterfaces.ts on lines 4992..4997
source/libraries/ContractInterfaces.ts on lines 5013..5018
source/libraries/ContractInterfaces.ts on lines 5090..5095
source/libraries/ContractInterfaces.ts on lines 5146..5151
source/libraries/ContractInterfaces.ts on lines 5167..5172
source/libraries/ContractInterfaces.ts on lines 5195..5200
source/libraries/ContractInterfaces.ts on lines 5230..5235
source/libraries/ContractInterfaces.ts on lines 5300..5305
source/libraries/ContractInterfaces.ts on lines 5335..5340
source/libraries/ContractInterfaces.ts on lines 5391..5396
source/libraries/ContractInterfaces.ts on lines 5545..5550
source/libraries/ContractInterfaces.ts on lines 5706..5711
source/libraries/ContractInterfaces.ts on lines 5846..5851
source/libraries/ContractInterfaces.ts on lines 5860..5865
source/libraries/ContractInterfaces.ts on lines 5930..5935
source/libraries/ContractInterfaces.ts on lines 6007..6012
source/libraries/ContractInterfaces.ts on lines 6028..6033
source/libraries/ContractInterfaces.ts on lines 6042..6047
source/libraries/ContractInterfaces.ts on lines 6056..6061

Duplicated Code

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

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

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

Tuning

This issue has a mass of 182.

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

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

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

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

Refactorings

Further Reading

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

        public decreaseApproval = async(spender: string, subtractedValue: BN, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_subtractedValue","type":"uint256"}],"name":"decreaseApproval","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [spender, subtractedValue], "decreaseApproval", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 52 other locations - About 7 hrs to fix
source/libraries/ContractInterfaces.ts on lines 491..496
source/libraries/ContractInterfaces.ts on lines 890..895
source/libraries/ContractInterfaces.ts on lines 974..979
source/libraries/ContractInterfaces.ts on lines 1023..1028
source/libraries/ContractInterfaces.ts on lines 1037..1042
source/libraries/ContractInterfaces.ts on lines 1086..1091
source/libraries/ContractInterfaces.ts on lines 1177..1182
source/libraries/ContractInterfaces.ts on lines 1191..1196
source/libraries/ContractInterfaces.ts on lines 1289..1294
source/libraries/ContractInterfaces.ts on lines 1317..1322
source/libraries/ContractInterfaces.ts on lines 1366..1371
source/libraries/ContractInterfaces.ts on lines 2150..2155
source/libraries/ContractInterfaces.ts on lines 2234..2239
source/libraries/ContractInterfaces.ts on lines 2255..2260
source/libraries/ContractInterfaces.ts on lines 2325..2330
source/libraries/ContractInterfaces.ts on lines 2367..2372
source/libraries/ContractInterfaces.ts on lines 2451..2456
source/libraries/ContractInterfaces.ts on lines 2507..2512
source/libraries/ContractInterfaces.ts on lines 2549..2554
source/libraries/ContractInterfaces.ts on lines 2563..2568
source/libraries/ContractInterfaces.ts on lines 2598..2603
source/libraries/ContractInterfaces.ts on lines 2633..2638
source/libraries/ContractInterfaces.ts on lines 2661..2666
source/libraries/ContractInterfaces.ts on lines 2745..2750
source/libraries/ContractInterfaces.ts on lines 2766..2771
source/libraries/ContractInterfaces.ts on lines 2857..2862
source/libraries/ContractInterfaces.ts on lines 2934..2939
source/libraries/ContractInterfaces.ts on lines 2955..2960
source/libraries/ContractInterfaces.ts on lines 3921..3926
source/libraries/ContractInterfaces.ts on lines 3998..4003
source/libraries/ContractInterfaces.ts on lines 4012..4017
source/libraries/ContractInterfaces.ts on lines 4110..4115
source/libraries/ContractInterfaces.ts on lines 4138..4143
source/libraries/ContractInterfaces.ts on lines 4187..4192
source/libraries/ContractInterfaces.ts on lines 4992..4997
source/libraries/ContractInterfaces.ts on lines 5013..5018
source/libraries/ContractInterfaces.ts on lines 5146..5151
source/libraries/ContractInterfaces.ts on lines 5167..5172
source/libraries/ContractInterfaces.ts on lines 5195..5200
source/libraries/ContractInterfaces.ts on lines 5230..5235
source/libraries/ContractInterfaces.ts on lines 5300..5305
source/libraries/ContractInterfaces.ts on lines 5335..5340
source/libraries/ContractInterfaces.ts on lines 5391..5396
source/libraries/ContractInterfaces.ts on lines 5545..5550
source/libraries/ContractInterfaces.ts on lines 5706..5711
source/libraries/ContractInterfaces.ts on lines 5846..5851
source/libraries/ContractInterfaces.ts on lines 5860..5865
source/libraries/ContractInterfaces.ts on lines 5930..5935
source/libraries/ContractInterfaces.ts on lines 6007..6012
source/libraries/ContractInterfaces.ts on lines 6028..6033
source/libraries/ContractInterfaces.ts on lines 6042..6047
source/libraries/ContractInterfaces.ts on lines 6056..6061

Duplicated Code

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

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

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

Tuning

This issue has a mass of 182.

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

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

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

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

Refactorings

Further Reading

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

        public initialize = async(market: string, outcome: BN, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_market","type":"address"},{"name":"_outcome","type":"uint256"}],"name":"initialize","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [market, outcome], "initialize", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 52 other locations - About 7 hrs to fix
source/libraries/ContractInterfaces.ts on lines 491..496
source/libraries/ContractInterfaces.ts on lines 890..895
source/libraries/ContractInterfaces.ts on lines 974..979
source/libraries/ContractInterfaces.ts on lines 1023..1028
source/libraries/ContractInterfaces.ts on lines 1037..1042
source/libraries/ContractInterfaces.ts on lines 1086..1091
source/libraries/ContractInterfaces.ts on lines 1177..1182
source/libraries/ContractInterfaces.ts on lines 1191..1196
source/libraries/ContractInterfaces.ts on lines 1289..1294
source/libraries/ContractInterfaces.ts on lines 1317..1322
source/libraries/ContractInterfaces.ts on lines 1366..1371
source/libraries/ContractInterfaces.ts on lines 2150..2155
source/libraries/ContractInterfaces.ts on lines 2234..2239
source/libraries/ContractInterfaces.ts on lines 2255..2260
source/libraries/ContractInterfaces.ts on lines 2325..2330
source/libraries/ContractInterfaces.ts on lines 2367..2372
source/libraries/ContractInterfaces.ts on lines 2451..2456
source/libraries/ContractInterfaces.ts on lines 2507..2512
source/libraries/ContractInterfaces.ts on lines 2549..2554
source/libraries/ContractInterfaces.ts on lines 2563..2568
source/libraries/ContractInterfaces.ts on lines 2598..2603
source/libraries/ContractInterfaces.ts on lines 2633..2638
source/libraries/ContractInterfaces.ts on lines 2661..2666
source/libraries/ContractInterfaces.ts on lines 2745..2750
source/libraries/ContractInterfaces.ts on lines 2766..2771
source/libraries/ContractInterfaces.ts on lines 2857..2862
source/libraries/ContractInterfaces.ts on lines 2934..2939
source/libraries/ContractInterfaces.ts on lines 2955..2960
source/libraries/ContractInterfaces.ts on lines 3921..3926
source/libraries/ContractInterfaces.ts on lines 3998..4003
source/libraries/ContractInterfaces.ts on lines 4012..4017
source/libraries/ContractInterfaces.ts on lines 4110..4115
source/libraries/ContractInterfaces.ts on lines 4138..4143
source/libraries/ContractInterfaces.ts on lines 4187..4192
source/libraries/ContractInterfaces.ts on lines 4992..4997
source/libraries/ContractInterfaces.ts on lines 5013..5018
source/libraries/ContractInterfaces.ts on lines 5090..5095
source/libraries/ContractInterfaces.ts on lines 5146..5151
source/libraries/ContractInterfaces.ts on lines 5167..5172
source/libraries/ContractInterfaces.ts on lines 5195..5200
source/libraries/ContractInterfaces.ts on lines 5230..5235
source/libraries/ContractInterfaces.ts on lines 5300..5305
source/libraries/ContractInterfaces.ts on lines 5335..5340
source/libraries/ContractInterfaces.ts on lines 5391..5396
source/libraries/ContractInterfaces.ts on lines 5545..5550
source/libraries/ContractInterfaces.ts on lines 5706..5711
source/libraries/ContractInterfaces.ts on lines 5846..5851
source/libraries/ContractInterfaces.ts on lines 5860..5865
source/libraries/ContractInterfaces.ts on lines 5930..5935
source/libraries/ContractInterfaces.ts on lines 6007..6012
source/libraries/ContractInterfaces.ts on lines 6042..6047
source/libraries/ContractInterfaces.ts on lines 6056..6061

Duplicated Code

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

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

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

Tuning

This issue has a mass of 182.

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

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

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

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

Refactorings

Further Reading

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

        public decreaseApproval = async(spender: string, subtractedValue: BN, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_subtractedValue","type":"uint256"}],"name":"decreaseApproval","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [spender, subtractedValue], "decreaseApproval", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 52 other locations - About 7 hrs to fix
source/libraries/ContractInterfaces.ts on lines 491..496
source/libraries/ContractInterfaces.ts on lines 890..895
source/libraries/ContractInterfaces.ts on lines 974..979
source/libraries/ContractInterfaces.ts on lines 1023..1028
source/libraries/ContractInterfaces.ts on lines 1037..1042
source/libraries/ContractInterfaces.ts on lines 1086..1091
source/libraries/ContractInterfaces.ts on lines 1177..1182
source/libraries/ContractInterfaces.ts on lines 1191..1196
source/libraries/ContractInterfaces.ts on lines 1289..1294
source/libraries/ContractInterfaces.ts on lines 1317..1322
source/libraries/ContractInterfaces.ts on lines 1366..1371
source/libraries/ContractInterfaces.ts on lines 2150..2155
source/libraries/ContractInterfaces.ts on lines 2255..2260
source/libraries/ContractInterfaces.ts on lines 2325..2330
source/libraries/ContractInterfaces.ts on lines 2367..2372
source/libraries/ContractInterfaces.ts on lines 2451..2456
source/libraries/ContractInterfaces.ts on lines 2507..2512
source/libraries/ContractInterfaces.ts on lines 2549..2554
source/libraries/ContractInterfaces.ts on lines 2563..2568
source/libraries/ContractInterfaces.ts on lines 2598..2603
source/libraries/ContractInterfaces.ts on lines 2633..2638
source/libraries/ContractInterfaces.ts on lines 2661..2666
source/libraries/ContractInterfaces.ts on lines 2745..2750
source/libraries/ContractInterfaces.ts on lines 2766..2771
source/libraries/ContractInterfaces.ts on lines 2857..2862
source/libraries/ContractInterfaces.ts on lines 2934..2939
source/libraries/ContractInterfaces.ts on lines 2955..2960
source/libraries/ContractInterfaces.ts on lines 3921..3926
source/libraries/ContractInterfaces.ts on lines 3998..4003
source/libraries/ContractInterfaces.ts on lines 4012..4017
source/libraries/ContractInterfaces.ts on lines 4110..4115
source/libraries/ContractInterfaces.ts on lines 4138..4143
source/libraries/ContractInterfaces.ts on lines 4187..4192
source/libraries/ContractInterfaces.ts on lines 4992..4997
source/libraries/ContractInterfaces.ts on lines 5013..5018
source/libraries/ContractInterfaces.ts on lines 5090..5095
source/libraries/ContractInterfaces.ts on lines 5146..5151
source/libraries/ContractInterfaces.ts on lines 5167..5172
source/libraries/ContractInterfaces.ts on lines 5195..5200
source/libraries/ContractInterfaces.ts on lines 5230..5235
source/libraries/ContractInterfaces.ts on lines 5300..5305
source/libraries/ContractInterfaces.ts on lines 5335..5340
source/libraries/ContractInterfaces.ts on lines 5391..5396
source/libraries/ContractInterfaces.ts on lines 5545..5550
source/libraries/ContractInterfaces.ts on lines 5706..5711
source/libraries/ContractInterfaces.ts on lines 5846..5851
source/libraries/ContractInterfaces.ts on lines 5860..5865
source/libraries/ContractInterfaces.ts on lines 5930..5935
source/libraries/ContractInterfaces.ts on lines 6007..6012
source/libraries/ContractInterfaces.ts on lines 6028..6033
source/libraries/ContractInterfaces.ts on lines 6042..6047
source/libraries/ContractInterfaces.ts on lines 6056..6061

Duplicated Code

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

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

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

Tuning

This issue has a mass of 182.

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

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

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

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

Refactorings

Further Reading

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

        public contribute = async(participant: string, amount: BN, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_participant","type":"address"},{"name":"_amount","type":"uint256"}],"name":"contribute","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [participant, amount], "contribute", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 52 other locations - About 7 hrs to fix
source/libraries/ContractInterfaces.ts on lines 491..496
source/libraries/ContractInterfaces.ts on lines 890..895
source/libraries/ContractInterfaces.ts on lines 974..979
source/libraries/ContractInterfaces.ts on lines 1023..1028
source/libraries/ContractInterfaces.ts on lines 1037..1042
source/libraries/ContractInterfaces.ts on lines 1086..1091
source/libraries/ContractInterfaces.ts on lines 1177..1182
source/libraries/ContractInterfaces.ts on lines 1191..1196
source/libraries/ContractInterfaces.ts on lines 1289..1294
source/libraries/ContractInterfaces.ts on lines 1317..1322
source/libraries/ContractInterfaces.ts on lines 1366..1371
source/libraries/ContractInterfaces.ts on lines 2150..2155
source/libraries/ContractInterfaces.ts on lines 2234..2239
source/libraries/ContractInterfaces.ts on lines 2325..2330
source/libraries/ContractInterfaces.ts on lines 2367..2372
source/libraries/ContractInterfaces.ts on lines 2451..2456
source/libraries/ContractInterfaces.ts on lines 2507..2512
source/libraries/ContractInterfaces.ts on lines 2549..2554
source/libraries/ContractInterfaces.ts on lines 2563..2568
source/libraries/ContractInterfaces.ts on lines 2598..2603
source/libraries/ContractInterfaces.ts on lines 2633..2638
source/libraries/ContractInterfaces.ts on lines 2661..2666
source/libraries/ContractInterfaces.ts on lines 2745..2750
source/libraries/ContractInterfaces.ts on lines 2766..2771
source/libraries/ContractInterfaces.ts on lines 2857..2862
source/libraries/ContractInterfaces.ts on lines 2934..2939
source/libraries/ContractInterfaces.ts on lines 2955..2960
source/libraries/ContractInterfaces.ts on lines 3921..3926
source/libraries/ContractInterfaces.ts on lines 3998..4003
source/libraries/ContractInterfaces.ts on lines 4012..4017
source/libraries/ContractInterfaces.ts on lines 4110..4115
source/libraries/ContractInterfaces.ts on lines 4138..4143
source/libraries/ContractInterfaces.ts on lines 4187..4192
source/libraries/ContractInterfaces.ts on lines 4992..4997
source/libraries/ContractInterfaces.ts on lines 5013..5018
source/libraries/ContractInterfaces.ts on lines 5090..5095
source/libraries/ContractInterfaces.ts on lines 5146..5151
source/libraries/ContractInterfaces.ts on lines 5167..5172
source/libraries/ContractInterfaces.ts on lines 5195..5200
source/libraries/ContractInterfaces.ts on lines 5230..5235
source/libraries/ContractInterfaces.ts on lines 5300..5305
source/libraries/ContractInterfaces.ts on lines 5335..5340
source/libraries/ContractInterfaces.ts on lines 5391..5396
source/libraries/ContractInterfaces.ts on lines 5545..5550
source/libraries/ContractInterfaces.ts on lines 5706..5711
source/libraries/ContractInterfaces.ts on lines 5846..5851
source/libraries/ContractInterfaces.ts on lines 5860..5865
source/libraries/ContractInterfaces.ts on lines 5930..5935
source/libraries/ContractInterfaces.ts on lines 6007..6012
source/libraries/ContractInterfaces.ts on lines 6028..6033
source/libraries/ContractInterfaces.ts on lines 6042..6047
source/libraries/ContractInterfaces.ts on lines 6056..6061

Duplicated Code

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

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

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

Tuning

This issue has a mass of 182.

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

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

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

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

Refactorings

Further Reading

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

        public increaseApproval = async(spender: string, addedValue: BN, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_addedValue","type":"uint256"}],"name":"increaseApproval","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [spender, addedValue], "increaseApproval", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 52 other locations - About 7 hrs to fix
source/libraries/ContractInterfaces.ts on lines 491..496
source/libraries/ContractInterfaces.ts on lines 890..895
source/libraries/ContractInterfaces.ts on lines 974..979
source/libraries/ContractInterfaces.ts on lines 1023..1028
source/libraries/ContractInterfaces.ts on lines 1037..1042
source/libraries/ContractInterfaces.ts on lines 1086..1091
source/libraries/ContractInterfaces.ts on lines 1177..1182
source/libraries/ContractInterfaces.ts on lines 1191..1196
source/libraries/ContractInterfaces.ts on lines 1289..1294
source/libraries/ContractInterfaces.ts on lines 1317..1322
source/libraries/ContractInterfaces.ts on lines 1366..1371
source/libraries/ContractInterfaces.ts on lines 2150..2155
source/libraries/ContractInterfaces.ts on lines 2234..2239
source/libraries/ContractInterfaces.ts on lines 2255..2260
source/libraries/ContractInterfaces.ts on lines 2325..2330
source/libraries/ContractInterfaces.ts on lines 2367..2372
source/libraries/ContractInterfaces.ts on lines 2451..2456
source/libraries/ContractInterfaces.ts on lines 2507..2512
source/libraries/ContractInterfaces.ts on lines 2549..2554
source/libraries/ContractInterfaces.ts on lines 2563..2568
source/libraries/ContractInterfaces.ts on lines 2598..2603
source/libraries/ContractInterfaces.ts on lines 2633..2638
source/libraries/ContractInterfaces.ts on lines 2661..2666
source/libraries/ContractInterfaces.ts on lines 2745..2750
source/libraries/ContractInterfaces.ts on lines 2766..2771
source/libraries/ContractInterfaces.ts on lines 2857..2862
source/libraries/ContractInterfaces.ts on lines 2934..2939
source/libraries/ContractInterfaces.ts on lines 3921..3926
source/libraries/ContractInterfaces.ts on lines 3998..4003
source/libraries/ContractInterfaces.ts on lines 4012..4017
source/libraries/ContractInterfaces.ts on lines 4110..4115
source/libraries/ContractInterfaces.ts on lines 4138..4143
source/libraries/ContractInterfaces.ts on lines 4187..4192
source/libraries/ContractInterfaces.ts on lines 4992..4997
source/libraries/ContractInterfaces.ts on lines 5013..5018
source/libraries/ContractInterfaces.ts on lines 5090..5095
source/libraries/ContractInterfaces.ts on lines 5146..5151
source/libraries/ContractInterfaces.ts on lines 5167..5172
source/libraries/ContractInterfaces.ts on lines 5195..5200
source/libraries/ContractInterfaces.ts on lines 5230..5235
source/libraries/ContractInterfaces.ts on lines 5300..5305
source/libraries/ContractInterfaces.ts on lines 5335..5340
source/libraries/ContractInterfaces.ts on lines 5391..5396
source/libraries/ContractInterfaces.ts on lines 5545..5550
source/libraries/ContractInterfaces.ts on lines 5706..5711
source/libraries/ContractInterfaces.ts on lines 5846..5851
source/libraries/ContractInterfaces.ts on lines 5860..5865
source/libraries/ContractInterfaces.ts on lines 5930..5935
source/libraries/ContractInterfaces.ts on lines 6007..6012
source/libraries/ContractInterfaces.ts on lines 6028..6033
source/libraries/ContractInterfaces.ts on lines 6042..6047
source/libraries/ContractInterfaces.ts on lines 6056..6061

Duplicated Code

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

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

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

Tuning

This issue has a mass of 182.

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

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

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

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

Refactorings

Further Reading

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

        public approve = async(spender: string, value: BN, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [spender, value], "approve", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 52 other locations - About 7 hrs to fix
source/libraries/ContractInterfaces.ts on lines 491..496
source/libraries/ContractInterfaces.ts on lines 890..895
source/libraries/ContractInterfaces.ts on lines 974..979
source/libraries/ContractInterfaces.ts on lines 1023..1028
source/libraries/ContractInterfaces.ts on lines 1037..1042
source/libraries/ContractInterfaces.ts on lines 1086..1091
source/libraries/ContractInterfaces.ts on lines 1177..1182
source/libraries/ContractInterfaces.ts on lines 1191..1196
source/libraries/ContractInterfaces.ts on lines 1289..1294
source/libraries/ContractInterfaces.ts on lines 1317..1322
source/libraries/ContractInterfaces.ts on lines 1366..1371
source/libraries/ContractInterfaces.ts on lines 2150..2155
source/libraries/ContractInterfaces.ts on lines 2234..2239
source/libraries/ContractInterfaces.ts on lines 2255..2260
source/libraries/ContractInterfaces.ts on lines 2325..2330
source/libraries/ContractInterfaces.ts on lines 2367..2372
source/libraries/ContractInterfaces.ts on lines 2451..2456
source/libraries/ContractInterfaces.ts on lines 2507..2512
source/libraries/ContractInterfaces.ts on lines 2549..2554
source/libraries/ContractInterfaces.ts on lines 2563..2568
source/libraries/ContractInterfaces.ts on lines 2598..2603
source/libraries/ContractInterfaces.ts on lines 2633..2638
source/libraries/ContractInterfaces.ts on lines 2661..2666
source/libraries/ContractInterfaces.ts on lines 2745..2750
source/libraries/ContractInterfaces.ts on lines 2766..2771
source/libraries/ContractInterfaces.ts on lines 2857..2862
source/libraries/ContractInterfaces.ts on lines 2934..2939
source/libraries/ContractInterfaces.ts on lines 2955..2960
source/libraries/ContractInterfaces.ts on lines 3998..4003
source/libraries/ContractInterfaces.ts on lines 4012..4017
source/libraries/ContractInterfaces.ts on lines 4110..4115
source/libraries/ContractInterfaces.ts on lines 4138..4143
source/libraries/ContractInterfaces.ts on lines 4187..4192
source/libraries/ContractInterfaces.ts on lines 4992..4997
source/libraries/ContractInterfaces.ts on lines 5013..5018
source/libraries/ContractInterfaces.ts on lines 5090..5095
source/libraries/ContractInterfaces.ts on lines 5146..5151
source/libraries/ContractInterfaces.ts on lines 5167..5172
source/libraries/ContractInterfaces.ts on lines 5195..5200
source/libraries/ContractInterfaces.ts on lines 5230..5235
source/libraries/ContractInterfaces.ts on lines 5300..5305
source/libraries/ContractInterfaces.ts on lines 5335..5340
source/libraries/ContractInterfaces.ts on lines 5391..5396
source/libraries/ContractInterfaces.ts on lines 5545..5550
source/libraries/ContractInterfaces.ts on lines 5706..5711
source/libraries/ContractInterfaces.ts on lines 5846..5851
source/libraries/ContractInterfaces.ts on lines 5860..5865
source/libraries/ContractInterfaces.ts on lines 5930..5935
source/libraries/ContractInterfaces.ts on lines 6007..6012
source/libraries/ContractInterfaces.ts on lines 6028..6033
source/libraries/ContractInterfaces.ts on lines 6042..6047
source/libraries/ContractInterfaces.ts on lines 6056..6061

Duplicated Code

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

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

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

Tuning

This issue has a mass of 182.

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

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

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

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

Refactorings

Further Reading

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

        public decreaseApproval = async(spender: string, subtractedValue: BN, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_subtractedValue","type":"uint256"}],"name":"decreaseApproval","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [spender, subtractedValue], "decreaseApproval", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 52 other locations - About 7 hrs to fix
source/libraries/ContractInterfaces.ts on lines 491..496
source/libraries/ContractInterfaces.ts on lines 890..895
source/libraries/ContractInterfaces.ts on lines 1023..1028
source/libraries/ContractInterfaces.ts on lines 1037..1042
source/libraries/ContractInterfaces.ts on lines 1086..1091
source/libraries/ContractInterfaces.ts on lines 1177..1182
source/libraries/ContractInterfaces.ts on lines 1191..1196
source/libraries/ContractInterfaces.ts on lines 1289..1294
source/libraries/ContractInterfaces.ts on lines 1317..1322
source/libraries/ContractInterfaces.ts on lines 1366..1371
source/libraries/ContractInterfaces.ts on lines 2150..2155
source/libraries/ContractInterfaces.ts on lines 2234..2239
source/libraries/ContractInterfaces.ts on lines 2255..2260
source/libraries/ContractInterfaces.ts on lines 2325..2330
source/libraries/ContractInterfaces.ts on lines 2367..2372
source/libraries/ContractInterfaces.ts on lines 2451..2456
source/libraries/ContractInterfaces.ts on lines 2507..2512
source/libraries/ContractInterfaces.ts on lines 2549..2554
source/libraries/ContractInterfaces.ts on lines 2563..2568
source/libraries/ContractInterfaces.ts on lines 2598..2603
source/libraries/ContractInterfaces.ts on lines 2633..2638
source/libraries/ContractInterfaces.ts on lines 2661..2666
source/libraries/ContractInterfaces.ts on lines 2745..2750
source/libraries/ContractInterfaces.ts on lines 2766..2771
source/libraries/ContractInterfaces.ts on lines 2857..2862
source/libraries/ContractInterfaces.ts on lines 2934..2939
source/libraries/ContractInterfaces.ts on lines 2955..2960
source/libraries/ContractInterfaces.ts on lines 3921..3926
source/libraries/ContractInterfaces.ts on lines 3998..4003
source/libraries/ContractInterfaces.ts on lines 4012..4017
source/libraries/ContractInterfaces.ts on lines 4110..4115
source/libraries/ContractInterfaces.ts on lines 4138..4143
source/libraries/ContractInterfaces.ts on lines 4187..4192
source/libraries/ContractInterfaces.ts on lines 4992..4997
source/libraries/ContractInterfaces.ts on lines 5013..5018
source/libraries/ContractInterfaces.ts on lines 5090..5095
source/libraries/ContractInterfaces.ts on lines 5146..5151
source/libraries/ContractInterfaces.ts on lines 5167..5172
source/libraries/ContractInterfaces.ts on lines 5195..5200
source/libraries/ContractInterfaces.ts on lines 5230..5235
source/libraries/ContractInterfaces.ts on lines 5300..5305
source/libraries/ContractInterfaces.ts on lines 5335..5340
source/libraries/ContractInterfaces.ts on lines 5391..5396
source/libraries/ContractInterfaces.ts on lines 5545..5550
source/libraries/ContractInterfaces.ts on lines 5706..5711
source/libraries/ContractInterfaces.ts on lines 5846..5851
source/libraries/ContractInterfaces.ts on lines 5860..5865
source/libraries/ContractInterfaces.ts on lines 5930..5935
source/libraries/ContractInterfaces.ts on lines 6007..6012
source/libraries/ContractInterfaces.ts on lines 6028..6033
source/libraries/ContractInterfaces.ts on lines 6042..6047
source/libraries/ContractInterfaces.ts on lines 6056..6061

Duplicated Code

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

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

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

Tuning

This issue has a mass of 182.

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

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

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

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

Refactorings

Further Reading

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

        public decreaseApproval = async(spender: string, subtractedValue: BN, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_subtractedValue","type":"uint256"}],"name":"decreaseApproval","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [spender, subtractedValue], "decreaseApproval", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 52 other locations - About 7 hrs to fix
source/libraries/ContractInterfaces.ts on lines 491..496
source/libraries/ContractInterfaces.ts on lines 890..895
source/libraries/ContractInterfaces.ts on lines 974..979
source/libraries/ContractInterfaces.ts on lines 1023..1028
source/libraries/ContractInterfaces.ts on lines 1037..1042
source/libraries/ContractInterfaces.ts on lines 1086..1091
source/libraries/ContractInterfaces.ts on lines 1191..1196
source/libraries/ContractInterfaces.ts on lines 1289..1294
source/libraries/ContractInterfaces.ts on lines 1317..1322
source/libraries/ContractInterfaces.ts on lines 1366..1371
source/libraries/ContractInterfaces.ts on lines 2150..2155
source/libraries/ContractInterfaces.ts on lines 2234..2239
source/libraries/ContractInterfaces.ts on lines 2255..2260
source/libraries/ContractInterfaces.ts on lines 2325..2330
source/libraries/ContractInterfaces.ts on lines 2367..2372
source/libraries/ContractInterfaces.ts on lines 2451..2456
source/libraries/ContractInterfaces.ts on lines 2507..2512
source/libraries/ContractInterfaces.ts on lines 2549..2554
source/libraries/ContractInterfaces.ts on lines 2563..2568
source/libraries/ContractInterfaces.ts on lines 2598..2603
source/libraries/ContractInterfaces.ts on lines 2633..2638
source/libraries/ContractInterfaces.ts on lines 2661..2666
source/libraries/ContractInterfaces.ts on lines 2745..2750
source/libraries/ContractInterfaces.ts on lines 2766..2771
source/libraries/ContractInterfaces.ts on lines 2857..2862
source/libraries/ContractInterfaces.ts on lines 2934..2939
source/libraries/ContractInterfaces.ts on lines 2955..2960
source/libraries/ContractInterfaces.ts on lines 3921..3926
source/libraries/ContractInterfaces.ts on lines 3998..4003
source/libraries/ContractInterfaces.ts on lines 4012..4017
source/libraries/ContractInterfaces.ts on lines 4110..4115
source/libraries/ContractInterfaces.ts on lines 4138..4143
source/libraries/ContractInterfaces.ts on lines 4187..4192
source/libraries/ContractInterfaces.ts on lines 4992..4997
source/libraries/ContractInterfaces.ts on lines 5013..5018
source/libraries/ContractInterfaces.ts on lines 5090..5095
source/libraries/ContractInterfaces.ts on lines 5146..5151
source/libraries/ContractInterfaces.ts on lines 5167..5172
source/libraries/ContractInterfaces.ts on lines 5195..5200
source/libraries/ContractInterfaces.ts on lines 5230..5235
source/libraries/ContractInterfaces.ts on lines 5300..5305
source/libraries/ContractInterfaces.ts on lines 5335..5340
source/libraries/ContractInterfaces.ts on lines 5391..5396
source/libraries/ContractInterfaces.ts on lines 5545..5550
source/libraries/ContractInterfaces.ts on lines 5706..5711
source/libraries/ContractInterfaces.ts on lines 5846..5851
source/libraries/ContractInterfaces.ts on lines 5860..5865
source/libraries/ContractInterfaces.ts on lines 5930..5935
source/libraries/ContractInterfaces.ts on lines 6007..6012
source/libraries/ContractInterfaces.ts on lines 6028..6033
source/libraries/ContractInterfaces.ts on lines 6042..6047
source/libraries/ContractInterfaces.ts on lines 6056..6061

Duplicated Code

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

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

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

Tuning

This issue has a mass of 182.

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

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

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

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

Refactorings

Further Reading

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

        public mintForReportingParticipant = async(target: string, amount: BN, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_target","type":"address"},{"name":"_amount","type":"uint256"}],"name":"mintForReportingParticipant","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [target, amount], "mintForReportingParticipant", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 52 other locations - About 7 hrs to fix
source/libraries/ContractInterfaces.ts on lines 491..496
source/libraries/ContractInterfaces.ts on lines 890..895
source/libraries/ContractInterfaces.ts on lines 974..979
source/libraries/ContractInterfaces.ts on lines 1023..1028
source/libraries/ContractInterfaces.ts on lines 1037..1042
source/libraries/ContractInterfaces.ts on lines 1086..1091
source/libraries/ContractInterfaces.ts on lines 1177..1182
source/libraries/ContractInterfaces.ts on lines 1191..1196
source/libraries/ContractInterfaces.ts on lines 1289..1294
source/libraries/ContractInterfaces.ts on lines 1317..1322
source/libraries/ContractInterfaces.ts on lines 1366..1371
source/libraries/ContractInterfaces.ts on lines 2150..2155
source/libraries/ContractInterfaces.ts on lines 2234..2239
source/libraries/ContractInterfaces.ts on lines 2255..2260
source/libraries/ContractInterfaces.ts on lines 2325..2330
source/libraries/ContractInterfaces.ts on lines 2367..2372
source/libraries/ContractInterfaces.ts on lines 2451..2456
source/libraries/ContractInterfaces.ts on lines 2507..2512
source/libraries/ContractInterfaces.ts on lines 2563..2568
source/libraries/ContractInterfaces.ts on lines 2598..2603
source/libraries/ContractInterfaces.ts on lines 2633..2638
source/libraries/ContractInterfaces.ts on lines 2661..2666
source/libraries/ContractInterfaces.ts on lines 2745..2750
source/libraries/ContractInterfaces.ts on lines 2766..2771
source/libraries/ContractInterfaces.ts on lines 2857..2862
source/libraries/ContractInterfaces.ts on lines 2934..2939
source/libraries/ContractInterfaces.ts on lines 2955..2960
source/libraries/ContractInterfaces.ts on lines 3921..3926
source/libraries/ContractInterfaces.ts on lines 3998..4003
source/libraries/ContractInterfaces.ts on lines 4012..4017
source/libraries/ContractInterfaces.ts on lines 4110..4115
source/libraries/ContractInterfaces.ts on lines 4138..4143
source/libraries/ContractInterfaces.ts on lines 4187..4192
source/libraries/ContractInterfaces.ts on lines 4992..4997
source/libraries/ContractInterfaces.ts on lines 5013..5018
source/libraries/ContractInterfaces.ts on lines 5090..5095
source/libraries/ContractInterfaces.ts on lines 5146..5151
source/libraries/ContractInterfaces.ts on lines 5167..5172
source/libraries/ContractInterfaces.ts on lines 5195..5200
source/libraries/ContractInterfaces.ts on lines 5230..5235
source/libraries/ContractInterfaces.ts on lines 5300..5305
source/libraries/ContractInterfaces.ts on lines 5335..5340
source/libraries/ContractInterfaces.ts on lines 5391..5396
source/libraries/ContractInterfaces.ts on lines 5545..5550
source/libraries/ContractInterfaces.ts on lines 5706..5711
source/libraries/ContractInterfaces.ts on lines 5846..5851
source/libraries/ContractInterfaces.ts on lines 5860..5865
source/libraries/ContractInterfaces.ts on lines 5930..5935
source/libraries/ContractInterfaces.ts on lines 6007..6012
source/libraries/ContractInterfaces.ts on lines 6028..6033
source/libraries/ContractInterfaces.ts on lines 6042..6047
source/libraries/ContractInterfaces.ts on lines 6056..6061

Duplicated Code

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

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

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

Tuning

This issue has a mass of 182.

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

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

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

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

Refactorings

Further Reading

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

        public trustedUniverseBuy = async(buyer: string, attotokens: BN, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_buyer","type":"address"},{"name":"_attotokens","type":"uint256"}],"name":"trustedUniverseBuy","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [buyer, attotokens], "trustedUniverseBuy", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 52 other locations - About 7 hrs to fix
source/libraries/ContractInterfaces.ts on lines 491..496
source/libraries/ContractInterfaces.ts on lines 890..895
source/libraries/ContractInterfaces.ts on lines 974..979
source/libraries/ContractInterfaces.ts on lines 1023..1028
source/libraries/ContractInterfaces.ts on lines 1037..1042
source/libraries/ContractInterfaces.ts on lines 1086..1091
source/libraries/ContractInterfaces.ts on lines 1177..1182
source/libraries/ContractInterfaces.ts on lines 1191..1196
source/libraries/ContractInterfaces.ts on lines 1289..1294
source/libraries/ContractInterfaces.ts on lines 1317..1322
source/libraries/ContractInterfaces.ts on lines 1366..1371
source/libraries/ContractInterfaces.ts on lines 2150..2155
source/libraries/ContractInterfaces.ts on lines 2234..2239
source/libraries/ContractInterfaces.ts on lines 2255..2260
source/libraries/ContractInterfaces.ts on lines 2325..2330
source/libraries/ContractInterfaces.ts on lines 2367..2372
source/libraries/ContractInterfaces.ts on lines 2451..2456
source/libraries/ContractInterfaces.ts on lines 2507..2512
source/libraries/ContractInterfaces.ts on lines 2549..2554
source/libraries/ContractInterfaces.ts on lines 2563..2568
source/libraries/ContractInterfaces.ts on lines 2598..2603
source/libraries/ContractInterfaces.ts on lines 2633..2638
source/libraries/ContractInterfaces.ts on lines 2661..2666
source/libraries/ContractInterfaces.ts on lines 2745..2750
source/libraries/ContractInterfaces.ts on lines 2857..2862
source/libraries/ContractInterfaces.ts on lines 2934..2939
source/libraries/ContractInterfaces.ts on lines 2955..2960
source/libraries/ContractInterfaces.ts on lines 3921..3926
source/libraries/ContractInterfaces.ts on lines 3998..4003
source/libraries/ContractInterfaces.ts on lines 4012..4017
source/libraries/ContractInterfaces.ts on lines 4110..4115
source/libraries/ContractInterfaces.ts on lines 4138..4143
source/libraries/ContractInterfaces.ts on lines 4187..4192
source/libraries/ContractInterfaces.ts on lines 4992..4997
source/libraries/ContractInterfaces.ts on lines 5013..5018
source/libraries/ContractInterfaces.ts on lines 5090..5095
source/libraries/ContractInterfaces.ts on lines 5146..5151
source/libraries/ContractInterfaces.ts on lines 5167..5172
source/libraries/ContractInterfaces.ts on lines 5195..5200
source/libraries/ContractInterfaces.ts on lines 5230..5235
source/libraries/ContractInterfaces.ts on lines 5300..5305
source/libraries/ContractInterfaces.ts on lines 5335..5340
source/libraries/ContractInterfaces.ts on lines 5391..5396
source/libraries/ContractInterfaces.ts on lines 5545..5550
source/libraries/ContractInterfaces.ts on lines 5706..5711
source/libraries/ContractInterfaces.ts on lines 5846..5851
source/libraries/ContractInterfaces.ts on lines 5860..5865
source/libraries/ContractInterfaces.ts on lines 5930..5935
source/libraries/ContractInterfaces.ts on lines 6007..6012
source/libraries/ContractInterfaces.ts on lines 6028..6033
source/libraries/ContractInterfaces.ts on lines 6042..6047
source/libraries/ContractInterfaces.ts on lines 6056..6061

Duplicated Code

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

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

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

Tuning

This issue has a mass of 182.

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

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

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

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

Refactorings

Further Reading

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

        public decrementTotalEscrowed = async(market: string, amount: BN, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_market","type":"address"},{"name":"_amount","type":"uint256"}],"name":"decrementTotalEscrowed","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [market, amount], "decrementTotalEscrowed", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 52 other locations - About 7 hrs to fix
source/libraries/ContractInterfaces.ts on lines 491..496
source/libraries/ContractInterfaces.ts on lines 890..895
source/libraries/ContractInterfaces.ts on lines 974..979
source/libraries/ContractInterfaces.ts on lines 1023..1028
source/libraries/ContractInterfaces.ts on lines 1037..1042
source/libraries/ContractInterfaces.ts on lines 1086..1091
source/libraries/ContractInterfaces.ts on lines 1177..1182
source/libraries/ContractInterfaces.ts on lines 1191..1196
source/libraries/ContractInterfaces.ts on lines 1289..1294
source/libraries/ContractInterfaces.ts on lines 1317..1322
source/libraries/ContractInterfaces.ts on lines 1366..1371
source/libraries/ContractInterfaces.ts on lines 2150..2155
source/libraries/ContractInterfaces.ts on lines 2234..2239
source/libraries/ContractInterfaces.ts on lines 2255..2260
source/libraries/ContractInterfaces.ts on lines 2325..2330
source/libraries/ContractInterfaces.ts on lines 2367..2372
source/libraries/ContractInterfaces.ts on lines 2451..2456
source/libraries/ContractInterfaces.ts on lines 2507..2512
source/libraries/ContractInterfaces.ts on lines 2549..2554
source/libraries/ContractInterfaces.ts on lines 2563..2568
source/libraries/ContractInterfaces.ts on lines 2598..2603
source/libraries/ContractInterfaces.ts on lines 2633..2638
source/libraries/ContractInterfaces.ts on lines 2661..2666
source/libraries/ContractInterfaces.ts on lines 2745..2750
source/libraries/ContractInterfaces.ts on lines 2766..2771
source/libraries/ContractInterfaces.ts on lines 2857..2862
source/libraries/ContractInterfaces.ts on lines 2934..2939
source/libraries/ContractInterfaces.ts on lines 2955..2960
source/libraries/ContractInterfaces.ts on lines 3921..3926
source/libraries/ContractInterfaces.ts on lines 3998..4003
source/libraries/ContractInterfaces.ts on lines 4012..4017
source/libraries/ContractInterfaces.ts on lines 4110..4115
source/libraries/ContractInterfaces.ts on lines 4138..4143
source/libraries/ContractInterfaces.ts on lines 4187..4192
source/libraries/ContractInterfaces.ts on lines 4992..4997
source/libraries/ContractInterfaces.ts on lines 5013..5018
source/libraries/ContractInterfaces.ts on lines 5090..5095
source/libraries/ContractInterfaces.ts on lines 5146..5151
source/libraries/ContractInterfaces.ts on lines 5167..5172
source/libraries/ContractInterfaces.ts on lines 5195..5200
source/libraries/ContractInterfaces.ts on lines 5230..5235
source/libraries/ContractInterfaces.ts on lines 5300..5305
source/libraries/ContractInterfaces.ts on lines 5335..5340
source/libraries/ContractInterfaces.ts on lines 5391..5396
source/libraries/ContractInterfaces.ts on lines 5545..5550
source/libraries/ContractInterfaces.ts on lines 5846..5851
source/libraries/ContractInterfaces.ts on lines 5860..5865
source/libraries/ContractInterfaces.ts on lines 5930..5935
source/libraries/ContractInterfaces.ts on lines 6007..6012
source/libraries/ContractInterfaces.ts on lines 6028..6033
source/libraries/ContractInterfaces.ts on lines 6042..6047
source/libraries/ContractInterfaces.ts on lines 6056..6061

Duplicated Code

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

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

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

Tuning

This issue has a mass of 182.

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

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

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

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

Refactorings

Further Reading

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

        public approve = async(spender: string, value: BN, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [spender, value], "approve", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 52 other locations - About 7 hrs to fix
source/libraries/ContractInterfaces.ts on lines 491..496
source/libraries/ContractInterfaces.ts on lines 890..895
source/libraries/ContractInterfaces.ts on lines 974..979
source/libraries/ContractInterfaces.ts on lines 1023..1028
source/libraries/ContractInterfaces.ts on lines 1037..1042
source/libraries/ContractInterfaces.ts on lines 1086..1091
source/libraries/ContractInterfaces.ts on lines 1177..1182
source/libraries/ContractInterfaces.ts on lines 1191..1196
source/libraries/ContractInterfaces.ts on lines 1289..1294
source/libraries/ContractInterfaces.ts on lines 1317..1322
source/libraries/ContractInterfaces.ts on lines 1366..1371
source/libraries/ContractInterfaces.ts on lines 2234..2239
source/libraries/ContractInterfaces.ts on lines 2255..2260
source/libraries/ContractInterfaces.ts on lines 2325..2330
source/libraries/ContractInterfaces.ts on lines 2367..2372
source/libraries/ContractInterfaces.ts on lines 2451..2456
source/libraries/ContractInterfaces.ts on lines 2507..2512
source/libraries/ContractInterfaces.ts on lines 2549..2554
source/libraries/ContractInterfaces.ts on lines 2563..2568
source/libraries/ContractInterfaces.ts on lines 2598..2603
source/libraries/ContractInterfaces.ts on lines 2633..2638
source/libraries/ContractInterfaces.ts on lines 2661..2666
source/libraries/ContractInterfaces.ts on lines 2745..2750
source/libraries/ContractInterfaces.ts on lines 2766..2771
source/libraries/ContractInterfaces.ts on lines 2857..2862
source/libraries/ContractInterfaces.ts on lines 2934..2939
source/libraries/ContractInterfaces.ts on lines 2955..2960
source/libraries/ContractInterfaces.ts on lines 3921..3926
source/libraries/ContractInterfaces.ts on lines 3998..4003
source/libraries/ContractInterfaces.ts on lines 4012..4017
source/libraries/ContractInterfaces.ts on lines 4110..4115
source/libraries/ContractInterfaces.ts on lines 4138..4143
source/libraries/ContractInterfaces.ts on lines 4187..4192
source/libraries/ContractInterfaces.ts on lines 4992..4997
source/libraries/ContractInterfaces.ts on lines 5013..5018
source/libraries/ContractInterfaces.ts on lines 5090..5095
source/libraries/ContractInterfaces.ts on lines 5146..5151
source/libraries/ContractInterfaces.ts on lines 5167..5172
source/libraries/ContractInterfaces.ts on lines 5195..5200
source/libraries/ContractInterfaces.ts on lines 5230..5235
source/libraries/ContractInterfaces.ts on lines 5300..5305
source/libraries/ContractInterfaces.ts on lines 5335..5340
source/libraries/ContractInterfaces.ts on lines 5391..5396
source/libraries/ContractInterfaces.ts on lines 5545..5550
source/libraries/ContractInterfaces.ts on lines 5706..5711
source/libraries/ContractInterfaces.ts on lines 5846..5851
source/libraries/ContractInterfaces.ts on lines 5860..5865
source/libraries/ContractInterfaces.ts on lines 5930..5935
source/libraries/ContractInterfaces.ts on lines 6007..6012
source/libraries/ContractInterfaces.ts on lines 6028..6033
source/libraries/ContractInterfaces.ts on lines 6042..6047
source/libraries/ContractInterfaces.ts on lines 6056..6061

Duplicated Code

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

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

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

Tuning

This issue has a mass of 182.

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

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

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