AugurProject/augur-core

View on GitHub

Showing 833 of 833 total issues

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

        public cancelOrder = async(orderId: string, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_orderId","type":"bytes32"}],"name":"cancelOrder","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [orderId], "cancelOrder", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 56 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 64..69
source/libraries/ContractInterfaces.ts on lines 197..202
source/libraries/ContractInterfaces.ts on lines 505..510
source/libraries/ContractInterfaces.ts on lines 624..629
source/libraries/ContractInterfaces.ts on lines 813..818
source/libraries/ContractInterfaces.ts on lines 841..846
source/libraries/ContractInterfaces.ts on lines 855..860
source/libraries/ContractInterfaces.ts on lines 1058..1063
source/libraries/ContractInterfaces.ts on lines 1268..1273
source/libraries/ContractInterfaces.ts on lines 1352..1357
source/libraries/ContractInterfaces.ts on lines 1380..1385
source/libraries/ContractInterfaces.ts on lines 1499..1504
source/libraries/ContractInterfaces.ts on lines 1548..1553
source/libraries/ContractInterfaces.ts on lines 1597..1602
source/libraries/ContractInterfaces.ts on lines 1639..1644
source/libraries/ContractInterfaces.ts on lines 1653..1658
source/libraries/ContractInterfaces.ts on lines 1968..1973
source/libraries/ContractInterfaces.ts on lines 2052..2057
source/libraries/ContractInterfaces.ts on lines 2066..2071
source/libraries/ContractInterfaces.ts on lines 2094..2099
source/libraries/ContractInterfaces.ts on lines 2122..2127
source/libraries/ContractInterfaces.ts on lines 2297..2302
source/libraries/ContractInterfaces.ts on lines 2311..2316
source/libraries/ContractInterfaces.ts on lines 2528..2533
source/libraries/ContractInterfaces.ts on lines 2584..2589
source/libraries/ContractInterfaces.ts on lines 2801..2806
source/libraries/ContractInterfaces.ts on lines 2815..2820
source/libraries/ContractInterfaces.ts on lines 3151..3156
source/libraries/ContractInterfaces.ts on lines 3172..3177
source/libraries/ContractInterfaces.ts on lines 3263..3268
source/libraries/ContractInterfaces.ts on lines 3319..3324
source/libraries/ContractInterfaces.ts on lines 3354..3359
source/libraries/ContractInterfaces.ts on lines 3396..3401
source/libraries/ContractInterfaces.ts on lines 3676..3681
source/libraries/ContractInterfaces.ts on lines 3816..3821
source/libraries/ContractInterfaces.ts on lines 3893..3898
source/libraries/ContractInterfaces.ts on lines 4089..4094
source/libraries/ContractInterfaces.ts on lines 4173..4178
source/libraries/ContractInterfaces.ts on lines 4201..4206
source/libraries/ContractInterfaces.ts on lines 4579..4584
source/libraries/ContractInterfaces.ts on lines 4817..4822
source/libraries/ContractInterfaces.ts on lines 4880..4885
source/libraries/ContractInterfaces.ts on lines 4964..4969
source/libraries/ContractInterfaces.ts on lines 5111..5116
source/libraries/ContractInterfaces.ts on lines 5244..5249
source/libraries/ContractInterfaces.ts on lines 5349..5354
source/libraries/ContractInterfaces.ts on lines 5433..5438
source/libraries/ContractInterfaces.ts on lines 5489..5494
source/libraries/ContractInterfaces.ts on lines 5685..5690
source/libraries/ContractInterfaces.ts on lines 5762..5767
source/libraries/ContractInterfaces.ts on lines 5811..5816
source/libraries/ContractInterfaces.ts on lines 5986..5991
source/libraries/ContractInterfaces.ts on lines 6154..6159
source/libraries/ContractInterfaces.ts on lines 6252..6257
source/libraries/ContractInterfaces.ts on lines 6266..6271
source/libraries/ContractInterfaces.ts on lines 6287..6292

Duplicated Code

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

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

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

Tuning

This issue has a mass of 162.

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

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

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

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

Refactorings

Further Reading

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

        public claimSharesInUpdate = async(market: string, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_market","type":"address"}],"name":"claimSharesInUpdate","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [market], "claimSharesInUpdate", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 56 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 64..69
source/libraries/ContractInterfaces.ts on lines 197..202
source/libraries/ContractInterfaces.ts on lines 505..510
source/libraries/ContractInterfaces.ts on lines 624..629
source/libraries/ContractInterfaces.ts on lines 813..818
source/libraries/ContractInterfaces.ts on lines 841..846
source/libraries/ContractInterfaces.ts on lines 855..860
source/libraries/ContractInterfaces.ts on lines 1058..1063
source/libraries/ContractInterfaces.ts on lines 1268..1273
source/libraries/ContractInterfaces.ts on lines 1352..1357
source/libraries/ContractInterfaces.ts on lines 1380..1385
source/libraries/ContractInterfaces.ts on lines 1499..1504
source/libraries/ContractInterfaces.ts on lines 1548..1553
source/libraries/ContractInterfaces.ts on lines 1597..1602
source/libraries/ContractInterfaces.ts on lines 1639..1644
source/libraries/ContractInterfaces.ts on lines 1653..1658
source/libraries/ContractInterfaces.ts on lines 1968..1973
source/libraries/ContractInterfaces.ts on lines 2052..2057
source/libraries/ContractInterfaces.ts on lines 2066..2071
source/libraries/ContractInterfaces.ts on lines 2094..2099
source/libraries/ContractInterfaces.ts on lines 2122..2127
source/libraries/ContractInterfaces.ts on lines 2297..2302
source/libraries/ContractInterfaces.ts on lines 2311..2316
source/libraries/ContractInterfaces.ts on lines 2528..2533
source/libraries/ContractInterfaces.ts on lines 2584..2589
source/libraries/ContractInterfaces.ts on lines 2801..2806
source/libraries/ContractInterfaces.ts on lines 2815..2820
source/libraries/ContractInterfaces.ts on lines 3151..3156
source/libraries/ContractInterfaces.ts on lines 3172..3177
source/libraries/ContractInterfaces.ts on lines 3263..3268
source/libraries/ContractInterfaces.ts on lines 3319..3324
source/libraries/ContractInterfaces.ts on lines 3354..3359
source/libraries/ContractInterfaces.ts on lines 3396..3401
source/libraries/ContractInterfaces.ts on lines 3676..3681
source/libraries/ContractInterfaces.ts on lines 3816..3821
source/libraries/ContractInterfaces.ts on lines 3893..3898
source/libraries/ContractInterfaces.ts on lines 4089..4094
source/libraries/ContractInterfaces.ts on lines 4173..4178
source/libraries/ContractInterfaces.ts on lines 4201..4206
source/libraries/ContractInterfaces.ts on lines 4579..4584
source/libraries/ContractInterfaces.ts on lines 4817..4822
source/libraries/ContractInterfaces.ts on lines 4880..4885
source/libraries/ContractInterfaces.ts on lines 4950..4955
source/libraries/ContractInterfaces.ts on lines 4964..4969
source/libraries/ContractInterfaces.ts on lines 5111..5116
source/libraries/ContractInterfaces.ts on lines 5244..5249
source/libraries/ContractInterfaces.ts on lines 5349..5354
source/libraries/ContractInterfaces.ts on lines 5433..5438
source/libraries/ContractInterfaces.ts on lines 5489..5494
source/libraries/ContractInterfaces.ts on lines 5685..5690
source/libraries/ContractInterfaces.ts on lines 5762..5767
source/libraries/ContractInterfaces.ts on lines 5811..5816
source/libraries/ContractInterfaces.ts on lines 5986..5991
source/libraries/ContractInterfaces.ts on lines 6154..6159
source/libraries/ContractInterfaces.ts on lines 6252..6257
source/libraries/ContractInterfaces.ts on lines 6266..6271

Duplicated Code

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

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

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

Tuning

This issue has a mass of 162.

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

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

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

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

Refactorings

Further Reading

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

        public removeFromWhitelist = async(target: string, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_target","type":"address"}],"name":"removeFromWhitelist","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [target], "removeFromWhitelist", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 56 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 64..69
source/libraries/ContractInterfaces.ts on lines 197..202
source/libraries/ContractInterfaces.ts on lines 505..510
source/libraries/ContractInterfaces.ts on lines 624..629
source/libraries/ContractInterfaces.ts on lines 841..846
source/libraries/ContractInterfaces.ts on lines 855..860
source/libraries/ContractInterfaces.ts on lines 1058..1063
source/libraries/ContractInterfaces.ts on lines 1268..1273
source/libraries/ContractInterfaces.ts on lines 1352..1357
source/libraries/ContractInterfaces.ts on lines 1380..1385
source/libraries/ContractInterfaces.ts on lines 1499..1504
source/libraries/ContractInterfaces.ts on lines 1548..1553
source/libraries/ContractInterfaces.ts on lines 1597..1602
source/libraries/ContractInterfaces.ts on lines 1639..1644
source/libraries/ContractInterfaces.ts on lines 1653..1658
source/libraries/ContractInterfaces.ts on lines 1968..1973
source/libraries/ContractInterfaces.ts on lines 2052..2057
source/libraries/ContractInterfaces.ts on lines 2066..2071
source/libraries/ContractInterfaces.ts on lines 2094..2099
source/libraries/ContractInterfaces.ts on lines 2122..2127
source/libraries/ContractInterfaces.ts on lines 2297..2302
source/libraries/ContractInterfaces.ts on lines 2311..2316
source/libraries/ContractInterfaces.ts on lines 2528..2533
source/libraries/ContractInterfaces.ts on lines 2584..2589
source/libraries/ContractInterfaces.ts on lines 2801..2806
source/libraries/ContractInterfaces.ts on lines 2815..2820
source/libraries/ContractInterfaces.ts on lines 3151..3156
source/libraries/ContractInterfaces.ts on lines 3172..3177
source/libraries/ContractInterfaces.ts on lines 3263..3268
source/libraries/ContractInterfaces.ts on lines 3319..3324
source/libraries/ContractInterfaces.ts on lines 3354..3359
source/libraries/ContractInterfaces.ts on lines 3396..3401
source/libraries/ContractInterfaces.ts on lines 3676..3681
source/libraries/ContractInterfaces.ts on lines 3816..3821
source/libraries/ContractInterfaces.ts on lines 3893..3898
source/libraries/ContractInterfaces.ts on lines 4089..4094
source/libraries/ContractInterfaces.ts on lines 4173..4178
source/libraries/ContractInterfaces.ts on lines 4201..4206
source/libraries/ContractInterfaces.ts on lines 4579..4584
source/libraries/ContractInterfaces.ts on lines 4817..4822
source/libraries/ContractInterfaces.ts on lines 4880..4885
source/libraries/ContractInterfaces.ts on lines 4950..4955
source/libraries/ContractInterfaces.ts on lines 4964..4969
source/libraries/ContractInterfaces.ts on lines 5111..5116
source/libraries/ContractInterfaces.ts on lines 5244..5249
source/libraries/ContractInterfaces.ts on lines 5349..5354
source/libraries/ContractInterfaces.ts on lines 5433..5438
source/libraries/ContractInterfaces.ts on lines 5489..5494
source/libraries/ContractInterfaces.ts on lines 5685..5690
source/libraries/ContractInterfaces.ts on lines 5762..5767
source/libraries/ContractInterfaces.ts on lines 5811..5816
source/libraries/ContractInterfaces.ts on lines 5986..5991
source/libraries/ContractInterfaces.ts on lines 6154..6159
source/libraries/ContractInterfaces.ts on lines 6252..6257
source/libraries/ContractInterfaces.ts on lines 6266..6271
source/libraries/ContractInterfaces.ts on lines 6287..6292

Duplicated Code

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

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

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

Tuning

This issue has a mass of 162.

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

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

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

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

Refactorings

Further Reading

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

        public addToWhitelist = async(target: string, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_target","type":"address"}],"name":"addToWhitelist","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [target], "addToWhitelist", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 56 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 64..69
source/libraries/ContractInterfaces.ts on lines 197..202
source/libraries/ContractInterfaces.ts on lines 505..510
source/libraries/ContractInterfaces.ts on lines 624..629
source/libraries/ContractInterfaces.ts on lines 813..818
source/libraries/ContractInterfaces.ts on lines 855..860
source/libraries/ContractInterfaces.ts on lines 1058..1063
source/libraries/ContractInterfaces.ts on lines 1268..1273
source/libraries/ContractInterfaces.ts on lines 1352..1357
source/libraries/ContractInterfaces.ts on lines 1380..1385
source/libraries/ContractInterfaces.ts on lines 1499..1504
source/libraries/ContractInterfaces.ts on lines 1548..1553
source/libraries/ContractInterfaces.ts on lines 1597..1602
source/libraries/ContractInterfaces.ts on lines 1639..1644
source/libraries/ContractInterfaces.ts on lines 1653..1658
source/libraries/ContractInterfaces.ts on lines 1968..1973
source/libraries/ContractInterfaces.ts on lines 2052..2057
source/libraries/ContractInterfaces.ts on lines 2066..2071
source/libraries/ContractInterfaces.ts on lines 2094..2099
source/libraries/ContractInterfaces.ts on lines 2122..2127
source/libraries/ContractInterfaces.ts on lines 2297..2302
source/libraries/ContractInterfaces.ts on lines 2311..2316
source/libraries/ContractInterfaces.ts on lines 2528..2533
source/libraries/ContractInterfaces.ts on lines 2584..2589
source/libraries/ContractInterfaces.ts on lines 2801..2806
source/libraries/ContractInterfaces.ts on lines 2815..2820
source/libraries/ContractInterfaces.ts on lines 3151..3156
source/libraries/ContractInterfaces.ts on lines 3172..3177
source/libraries/ContractInterfaces.ts on lines 3263..3268
source/libraries/ContractInterfaces.ts on lines 3319..3324
source/libraries/ContractInterfaces.ts on lines 3354..3359
source/libraries/ContractInterfaces.ts on lines 3396..3401
source/libraries/ContractInterfaces.ts on lines 3676..3681
source/libraries/ContractInterfaces.ts on lines 3816..3821
source/libraries/ContractInterfaces.ts on lines 3893..3898
source/libraries/ContractInterfaces.ts on lines 4089..4094
source/libraries/ContractInterfaces.ts on lines 4173..4178
source/libraries/ContractInterfaces.ts on lines 4201..4206
source/libraries/ContractInterfaces.ts on lines 4579..4584
source/libraries/ContractInterfaces.ts on lines 4817..4822
source/libraries/ContractInterfaces.ts on lines 4880..4885
source/libraries/ContractInterfaces.ts on lines 4950..4955
source/libraries/ContractInterfaces.ts on lines 4964..4969
source/libraries/ContractInterfaces.ts on lines 5111..5116
source/libraries/ContractInterfaces.ts on lines 5244..5249
source/libraries/ContractInterfaces.ts on lines 5349..5354
source/libraries/ContractInterfaces.ts on lines 5433..5438
source/libraries/ContractInterfaces.ts on lines 5489..5494
source/libraries/ContractInterfaces.ts on lines 5685..5690
source/libraries/ContractInterfaces.ts on lines 5762..5767
source/libraries/ContractInterfaces.ts on lines 5811..5816
source/libraries/ContractInterfaces.ts on lines 5986..5991
source/libraries/ContractInterfaces.ts on lines 6154..6159
source/libraries/ContractInterfaces.ts on lines 6252..6257
source/libraries/ContractInterfaces.ts on lines 6266..6271
source/libraries/ContractInterfaces.ts on lines 6287..6292

Duplicated Code

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

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

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

Tuning

This issue has a mass of 162.

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

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

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

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

Refactorings

Further Reading

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

        public initialize = async(universe: string, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_universe","type":"address"}],"name":"initialize","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [universe], "initialize", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 56 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 64..69
source/libraries/ContractInterfaces.ts on lines 197..202
source/libraries/ContractInterfaces.ts on lines 505..510
source/libraries/ContractInterfaces.ts on lines 624..629
source/libraries/ContractInterfaces.ts on lines 813..818
source/libraries/ContractInterfaces.ts on lines 841..846
source/libraries/ContractInterfaces.ts on lines 855..860
source/libraries/ContractInterfaces.ts on lines 1058..1063
source/libraries/ContractInterfaces.ts on lines 1268..1273
source/libraries/ContractInterfaces.ts on lines 1380..1385
source/libraries/ContractInterfaces.ts on lines 1499..1504
source/libraries/ContractInterfaces.ts on lines 1548..1553
source/libraries/ContractInterfaces.ts on lines 1597..1602
source/libraries/ContractInterfaces.ts on lines 1639..1644
source/libraries/ContractInterfaces.ts on lines 1653..1658
source/libraries/ContractInterfaces.ts on lines 1968..1973
source/libraries/ContractInterfaces.ts on lines 2052..2057
source/libraries/ContractInterfaces.ts on lines 2066..2071
source/libraries/ContractInterfaces.ts on lines 2094..2099
source/libraries/ContractInterfaces.ts on lines 2122..2127
source/libraries/ContractInterfaces.ts on lines 2297..2302
source/libraries/ContractInterfaces.ts on lines 2311..2316
source/libraries/ContractInterfaces.ts on lines 2528..2533
source/libraries/ContractInterfaces.ts on lines 2584..2589
source/libraries/ContractInterfaces.ts on lines 2801..2806
source/libraries/ContractInterfaces.ts on lines 2815..2820
source/libraries/ContractInterfaces.ts on lines 3151..3156
source/libraries/ContractInterfaces.ts on lines 3172..3177
source/libraries/ContractInterfaces.ts on lines 3263..3268
source/libraries/ContractInterfaces.ts on lines 3319..3324
source/libraries/ContractInterfaces.ts on lines 3354..3359
source/libraries/ContractInterfaces.ts on lines 3396..3401
source/libraries/ContractInterfaces.ts on lines 3676..3681
source/libraries/ContractInterfaces.ts on lines 3816..3821
source/libraries/ContractInterfaces.ts on lines 3893..3898
source/libraries/ContractInterfaces.ts on lines 4089..4094
source/libraries/ContractInterfaces.ts on lines 4173..4178
source/libraries/ContractInterfaces.ts on lines 4201..4206
source/libraries/ContractInterfaces.ts on lines 4579..4584
source/libraries/ContractInterfaces.ts on lines 4817..4822
source/libraries/ContractInterfaces.ts on lines 4880..4885
source/libraries/ContractInterfaces.ts on lines 4950..4955
source/libraries/ContractInterfaces.ts on lines 4964..4969
source/libraries/ContractInterfaces.ts on lines 5111..5116
source/libraries/ContractInterfaces.ts on lines 5244..5249
source/libraries/ContractInterfaces.ts on lines 5349..5354
source/libraries/ContractInterfaces.ts on lines 5433..5438
source/libraries/ContractInterfaces.ts on lines 5489..5494
source/libraries/ContractInterfaces.ts on lines 5685..5690
source/libraries/ContractInterfaces.ts on lines 5762..5767
source/libraries/ContractInterfaces.ts on lines 5811..5816
source/libraries/ContractInterfaces.ts on lines 5986..5991
source/libraries/ContractInterfaces.ts on lines 6154..6159
source/libraries/ContractInterfaces.ts on lines 6252..6257
source/libraries/ContractInterfaces.ts on lines 6266..6271
source/libraries/ContractInterfaces.ts on lines 6287..6292

Duplicated Code

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

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

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

Tuning

This issue has a mass of 162.

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

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

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

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

Refactorings

Further Reading

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

        public setController = async(controller: string, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_controller","type":"address"}],"name":"setController","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [controller], "setController", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 56 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 64..69
source/libraries/ContractInterfaces.ts on lines 197..202
source/libraries/ContractInterfaces.ts on lines 505..510
source/libraries/ContractInterfaces.ts on lines 624..629
source/libraries/ContractInterfaces.ts on lines 813..818
source/libraries/ContractInterfaces.ts on lines 841..846
source/libraries/ContractInterfaces.ts on lines 855..860
source/libraries/ContractInterfaces.ts on lines 1058..1063
source/libraries/ContractInterfaces.ts on lines 1268..1273
source/libraries/ContractInterfaces.ts on lines 1352..1357
source/libraries/ContractInterfaces.ts on lines 1380..1385
source/libraries/ContractInterfaces.ts on lines 1499..1504
source/libraries/ContractInterfaces.ts on lines 1548..1553
source/libraries/ContractInterfaces.ts on lines 1597..1602
source/libraries/ContractInterfaces.ts on lines 1639..1644
source/libraries/ContractInterfaces.ts on lines 1653..1658
source/libraries/ContractInterfaces.ts on lines 1968..1973
source/libraries/ContractInterfaces.ts on lines 2052..2057
source/libraries/ContractInterfaces.ts on lines 2066..2071
source/libraries/ContractInterfaces.ts on lines 2094..2099
source/libraries/ContractInterfaces.ts on lines 2122..2127
source/libraries/ContractInterfaces.ts on lines 2297..2302
source/libraries/ContractInterfaces.ts on lines 2311..2316
source/libraries/ContractInterfaces.ts on lines 2584..2589
source/libraries/ContractInterfaces.ts on lines 2801..2806
source/libraries/ContractInterfaces.ts on lines 2815..2820
source/libraries/ContractInterfaces.ts on lines 3151..3156
source/libraries/ContractInterfaces.ts on lines 3172..3177
source/libraries/ContractInterfaces.ts on lines 3263..3268
source/libraries/ContractInterfaces.ts on lines 3319..3324
source/libraries/ContractInterfaces.ts on lines 3354..3359
source/libraries/ContractInterfaces.ts on lines 3396..3401
source/libraries/ContractInterfaces.ts on lines 3676..3681
source/libraries/ContractInterfaces.ts on lines 3816..3821
source/libraries/ContractInterfaces.ts on lines 3893..3898
source/libraries/ContractInterfaces.ts on lines 4089..4094
source/libraries/ContractInterfaces.ts on lines 4173..4178
source/libraries/ContractInterfaces.ts on lines 4201..4206
source/libraries/ContractInterfaces.ts on lines 4579..4584
source/libraries/ContractInterfaces.ts on lines 4817..4822
source/libraries/ContractInterfaces.ts on lines 4880..4885
source/libraries/ContractInterfaces.ts on lines 4950..4955
source/libraries/ContractInterfaces.ts on lines 4964..4969
source/libraries/ContractInterfaces.ts on lines 5111..5116
source/libraries/ContractInterfaces.ts on lines 5244..5249
source/libraries/ContractInterfaces.ts on lines 5349..5354
source/libraries/ContractInterfaces.ts on lines 5433..5438
source/libraries/ContractInterfaces.ts on lines 5489..5494
source/libraries/ContractInterfaces.ts on lines 5685..5690
source/libraries/ContractInterfaces.ts on lines 5762..5767
source/libraries/ContractInterfaces.ts on lines 5811..5816
source/libraries/ContractInterfaces.ts on lines 5986..5991
source/libraries/ContractInterfaces.ts on lines 6154..6159
source/libraries/ContractInterfaces.ts on lines 6252..6257
source/libraries/ContractInterfaces.ts on lines 6266..6271
source/libraries/ContractInterfaces.ts on lines 6287..6292

Duplicated Code

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

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

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

Tuning

This issue has a mass of 162.

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

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

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

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

Refactorings

Further Reading

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

        public isKnownUniverse_ = async(universe: string, options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[{"name":"_universe","type":"address"}],"name":"isKnownUniverse","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [universe], options.sender);
            return <boolean>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 67 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 71..76
source/libraries/ContractInterfaces.ts on lines 204..209
source/libraries/ContractInterfaces.ts on lines 512..517
source/libraries/ContractInterfaces.ts on lines 603..608
source/libraries/ContractInterfaces.ts on lines 631..636
source/libraries/ContractInterfaces.ts on lines 771..776
source/libraries/ContractInterfaces.ts on lines 820..825
source/libraries/ContractInterfaces.ts on lines 834..839
source/libraries/ContractInterfaces.ts on lines 848..853
source/libraries/ContractInterfaces.ts on lines 862..867
source/libraries/ContractInterfaces.ts on lines 1065..1070
source/libraries/ContractInterfaces.ts on lines 1275..1280
source/libraries/ContractInterfaces.ts on lines 1359..1364
source/libraries/ContractInterfaces.ts on lines 1387..1392
source/libraries/ContractInterfaces.ts on lines 1506..1511
source/libraries/ContractInterfaces.ts on lines 1555..1560
source/libraries/ContractInterfaces.ts on lines 1604..1609
source/libraries/ContractInterfaces.ts on lines 1646..1651
source/libraries/ContractInterfaces.ts on lines 1660..1665
source/libraries/ContractInterfaces.ts on lines 1975..1980
source/libraries/ContractInterfaces.ts on lines 1996..2001
source/libraries/ContractInterfaces.ts on lines 2059..2064
source/libraries/ContractInterfaces.ts on lines 2073..2078
source/libraries/ContractInterfaces.ts on lines 2101..2106
source/libraries/ContractInterfaces.ts on lines 2129..2134
source/libraries/ContractInterfaces.ts on lines 2304..2309
source/libraries/ContractInterfaces.ts on lines 2318..2323
source/libraries/ContractInterfaces.ts on lines 2535..2540
source/libraries/ContractInterfaces.ts on lines 2591..2596
source/libraries/ContractInterfaces.ts on lines 2808..2813
source/libraries/ContractInterfaces.ts on lines 2822..2827
source/libraries/ContractInterfaces.ts on lines 3158..3163
source/libraries/ContractInterfaces.ts on lines 3179..3184
source/libraries/ContractInterfaces.ts on lines 3270..3275
source/libraries/ContractInterfaces.ts on lines 3326..3331
source/libraries/ContractInterfaces.ts on lines 3361..3366
source/libraries/ContractInterfaces.ts on lines 3403..3408
source/libraries/ContractInterfaces.ts on lines 3564..3569
source/libraries/ContractInterfaces.ts on lines 3683..3688
source/libraries/ContractInterfaces.ts on lines 3823..3828
source/libraries/ContractInterfaces.ts on lines 3830..3835
source/libraries/ContractInterfaces.ts on lines 3900..3905
source/libraries/ContractInterfaces.ts on lines 4096..4101
source/libraries/ContractInterfaces.ts on lines 4180..4185
source/libraries/ContractInterfaces.ts on lines 4208..4213
source/libraries/ContractInterfaces.ts on lines 4369..4374
source/libraries/ContractInterfaces.ts on lines 4432..4437
source/libraries/ContractInterfaces.ts on lines 4586..4591
source/libraries/ContractInterfaces.ts on lines 4593..4598
source/libraries/ContractInterfaces.ts on lines 4614..4619
source/libraries/ContractInterfaces.ts on lines 4733..4738
source/libraries/ContractInterfaces.ts on lines 4887..4892
source/libraries/ContractInterfaces.ts on lines 4894..4899
source/libraries/ContractInterfaces.ts on lines 4957..4962
source/libraries/ContractInterfaces.ts on lines 4971..4976
source/libraries/ContractInterfaces.ts on lines 5118..5123
source/libraries/ContractInterfaces.ts on lines 5251..5256
source/libraries/ContractInterfaces.ts on lines 5356..5361
source/libraries/ContractInterfaces.ts on lines 5440..5445
source/libraries/ContractInterfaces.ts on lines 5496..5501
source/libraries/ContractInterfaces.ts on lines 5692..5697
source/libraries/ContractInterfaces.ts on lines 5769..5774
source/libraries/ContractInterfaces.ts on lines 5818..5823
source/libraries/ContractInterfaces.ts on lines 5993..5998
source/libraries/ContractInterfaces.ts on lines 6161..6166
source/libraries/ContractInterfaces.ts on lines 6273..6278
source/libraries/ContractInterfaces.ts on lines 6294..6299

Duplicated Code

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

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

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

Tuning

This issue has a mass of 161.

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

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

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

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

Refactorings

Further Reading

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

        public isKnownCrowdsourcer_ = async(crowdsourcer: string, options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[{"name":"_crowdsourcer","type":"address"}],"name":"isKnownCrowdsourcer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [crowdsourcer], options.sender);
            return <boolean>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 67 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 71..76
source/libraries/ContractInterfaces.ts on lines 204..209
source/libraries/ContractInterfaces.ts on lines 484..489
source/libraries/ContractInterfaces.ts on lines 512..517
source/libraries/ContractInterfaces.ts on lines 631..636
source/libraries/ContractInterfaces.ts on lines 771..776
source/libraries/ContractInterfaces.ts on lines 820..825
source/libraries/ContractInterfaces.ts on lines 834..839
source/libraries/ContractInterfaces.ts on lines 848..853
source/libraries/ContractInterfaces.ts on lines 862..867
source/libraries/ContractInterfaces.ts on lines 1065..1070
source/libraries/ContractInterfaces.ts on lines 1275..1280
source/libraries/ContractInterfaces.ts on lines 1359..1364
source/libraries/ContractInterfaces.ts on lines 1387..1392
source/libraries/ContractInterfaces.ts on lines 1506..1511
source/libraries/ContractInterfaces.ts on lines 1555..1560
source/libraries/ContractInterfaces.ts on lines 1604..1609
source/libraries/ContractInterfaces.ts on lines 1646..1651
source/libraries/ContractInterfaces.ts on lines 1660..1665
source/libraries/ContractInterfaces.ts on lines 1975..1980
source/libraries/ContractInterfaces.ts on lines 1996..2001
source/libraries/ContractInterfaces.ts on lines 2059..2064
source/libraries/ContractInterfaces.ts on lines 2073..2078
source/libraries/ContractInterfaces.ts on lines 2101..2106
source/libraries/ContractInterfaces.ts on lines 2129..2134
source/libraries/ContractInterfaces.ts on lines 2304..2309
source/libraries/ContractInterfaces.ts on lines 2318..2323
source/libraries/ContractInterfaces.ts on lines 2535..2540
source/libraries/ContractInterfaces.ts on lines 2591..2596
source/libraries/ContractInterfaces.ts on lines 2808..2813
source/libraries/ContractInterfaces.ts on lines 2822..2827
source/libraries/ContractInterfaces.ts on lines 3158..3163
source/libraries/ContractInterfaces.ts on lines 3179..3184
source/libraries/ContractInterfaces.ts on lines 3270..3275
source/libraries/ContractInterfaces.ts on lines 3326..3331
source/libraries/ContractInterfaces.ts on lines 3361..3366
source/libraries/ContractInterfaces.ts on lines 3403..3408
source/libraries/ContractInterfaces.ts on lines 3564..3569
source/libraries/ContractInterfaces.ts on lines 3683..3688
source/libraries/ContractInterfaces.ts on lines 3823..3828
source/libraries/ContractInterfaces.ts on lines 3830..3835
source/libraries/ContractInterfaces.ts on lines 3900..3905
source/libraries/ContractInterfaces.ts on lines 4096..4101
source/libraries/ContractInterfaces.ts on lines 4180..4185
source/libraries/ContractInterfaces.ts on lines 4208..4213
source/libraries/ContractInterfaces.ts on lines 4369..4374
source/libraries/ContractInterfaces.ts on lines 4432..4437
source/libraries/ContractInterfaces.ts on lines 4586..4591
source/libraries/ContractInterfaces.ts on lines 4593..4598
source/libraries/ContractInterfaces.ts on lines 4614..4619
source/libraries/ContractInterfaces.ts on lines 4733..4738
source/libraries/ContractInterfaces.ts on lines 4887..4892
source/libraries/ContractInterfaces.ts on lines 4894..4899
source/libraries/ContractInterfaces.ts on lines 4957..4962
source/libraries/ContractInterfaces.ts on lines 4971..4976
source/libraries/ContractInterfaces.ts on lines 5118..5123
source/libraries/ContractInterfaces.ts on lines 5251..5256
source/libraries/ContractInterfaces.ts on lines 5356..5361
source/libraries/ContractInterfaces.ts on lines 5440..5445
source/libraries/ContractInterfaces.ts on lines 5496..5501
source/libraries/ContractInterfaces.ts on lines 5692..5697
source/libraries/ContractInterfaces.ts on lines 5769..5774
source/libraries/ContractInterfaces.ts on lines 5818..5823
source/libraries/ContractInterfaces.ts on lines 5993..5998
source/libraries/ContractInterfaces.ts on lines 6161..6166
source/libraries/ContractInterfaces.ts on lines 6273..6278
source/libraries/ContractInterfaces.ts on lines 6294..6299

Duplicated Code

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

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

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

Tuning

This issue has a mass of 161.

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

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

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

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

Refactorings

Further Reading

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

        public transferOwnership_ = async(newOwner: string, options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            const result = await this.localCall(abi, [newOwner], options.sender);
            return <boolean>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 67 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 71..76
source/libraries/ContractInterfaces.ts on lines 204..209
source/libraries/ContractInterfaces.ts on lines 484..489
source/libraries/ContractInterfaces.ts on lines 512..517
source/libraries/ContractInterfaces.ts on lines 603..608
source/libraries/ContractInterfaces.ts on lines 631..636
source/libraries/ContractInterfaces.ts on lines 771..776
source/libraries/ContractInterfaces.ts on lines 820..825
source/libraries/ContractInterfaces.ts on lines 834..839
source/libraries/ContractInterfaces.ts on lines 848..853
source/libraries/ContractInterfaces.ts on lines 862..867
source/libraries/ContractInterfaces.ts on lines 1065..1070
source/libraries/ContractInterfaces.ts on lines 1275..1280
source/libraries/ContractInterfaces.ts on lines 1359..1364
source/libraries/ContractInterfaces.ts on lines 1387..1392
source/libraries/ContractInterfaces.ts on lines 1506..1511
source/libraries/ContractInterfaces.ts on lines 1555..1560
source/libraries/ContractInterfaces.ts on lines 1604..1609
source/libraries/ContractInterfaces.ts on lines 1646..1651
source/libraries/ContractInterfaces.ts on lines 1660..1665
source/libraries/ContractInterfaces.ts on lines 1975..1980
source/libraries/ContractInterfaces.ts on lines 1996..2001
source/libraries/ContractInterfaces.ts on lines 2059..2064
source/libraries/ContractInterfaces.ts on lines 2073..2078
source/libraries/ContractInterfaces.ts on lines 2101..2106
source/libraries/ContractInterfaces.ts on lines 2129..2134
source/libraries/ContractInterfaces.ts on lines 2304..2309
source/libraries/ContractInterfaces.ts on lines 2318..2323
source/libraries/ContractInterfaces.ts on lines 2535..2540
source/libraries/ContractInterfaces.ts on lines 2591..2596
source/libraries/ContractInterfaces.ts on lines 2808..2813
source/libraries/ContractInterfaces.ts on lines 2822..2827
source/libraries/ContractInterfaces.ts on lines 3158..3163
source/libraries/ContractInterfaces.ts on lines 3179..3184
source/libraries/ContractInterfaces.ts on lines 3326..3331
source/libraries/ContractInterfaces.ts on lines 3361..3366
source/libraries/ContractInterfaces.ts on lines 3403..3408
source/libraries/ContractInterfaces.ts on lines 3564..3569
source/libraries/ContractInterfaces.ts on lines 3683..3688
source/libraries/ContractInterfaces.ts on lines 3823..3828
source/libraries/ContractInterfaces.ts on lines 3830..3835
source/libraries/ContractInterfaces.ts on lines 3900..3905
source/libraries/ContractInterfaces.ts on lines 4096..4101
source/libraries/ContractInterfaces.ts on lines 4180..4185
source/libraries/ContractInterfaces.ts on lines 4208..4213
source/libraries/ContractInterfaces.ts on lines 4369..4374
source/libraries/ContractInterfaces.ts on lines 4432..4437
source/libraries/ContractInterfaces.ts on lines 4586..4591
source/libraries/ContractInterfaces.ts on lines 4593..4598
source/libraries/ContractInterfaces.ts on lines 4614..4619
source/libraries/ContractInterfaces.ts on lines 4733..4738
source/libraries/ContractInterfaces.ts on lines 4887..4892
source/libraries/ContractInterfaces.ts on lines 4894..4899
source/libraries/ContractInterfaces.ts on lines 4957..4962
source/libraries/ContractInterfaces.ts on lines 4971..4976
source/libraries/ContractInterfaces.ts on lines 5118..5123
source/libraries/ContractInterfaces.ts on lines 5251..5256
source/libraries/ContractInterfaces.ts on lines 5356..5361
source/libraries/ContractInterfaces.ts on lines 5440..5445
source/libraries/ContractInterfaces.ts on lines 5496..5501
source/libraries/ContractInterfaces.ts on lines 5692..5697
source/libraries/ContractInterfaces.ts on lines 5769..5774
source/libraries/ContractInterfaces.ts on lines 5818..5823
source/libraries/ContractInterfaces.ts on lines 5993..5998
source/libraries/ContractInterfaces.ts on lines 6161..6166
source/libraries/ContractInterfaces.ts on lines 6273..6278
source/libraries/ContractInterfaces.ts on lines 6294..6299

Duplicated Code

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

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

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

Tuning

This issue has a mass of 161.

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

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

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

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

Refactorings

Further Reading

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

        public transferOwnership_ = async(newOwner: string, options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            const result = await this.localCall(abi, [newOwner], options.sender);
            return <boolean>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 67 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 71..76
source/libraries/ContractInterfaces.ts on lines 204..209
source/libraries/ContractInterfaces.ts on lines 484..489
source/libraries/ContractInterfaces.ts on lines 512..517
source/libraries/ContractInterfaces.ts on lines 603..608
source/libraries/ContractInterfaces.ts on lines 631..636
source/libraries/ContractInterfaces.ts on lines 771..776
source/libraries/ContractInterfaces.ts on lines 820..825
source/libraries/ContractInterfaces.ts on lines 834..839
source/libraries/ContractInterfaces.ts on lines 848..853
source/libraries/ContractInterfaces.ts on lines 862..867
source/libraries/ContractInterfaces.ts on lines 1275..1280
source/libraries/ContractInterfaces.ts on lines 1359..1364
source/libraries/ContractInterfaces.ts on lines 1387..1392
source/libraries/ContractInterfaces.ts on lines 1506..1511
source/libraries/ContractInterfaces.ts on lines 1555..1560
source/libraries/ContractInterfaces.ts on lines 1604..1609
source/libraries/ContractInterfaces.ts on lines 1646..1651
source/libraries/ContractInterfaces.ts on lines 1660..1665
source/libraries/ContractInterfaces.ts on lines 1975..1980
source/libraries/ContractInterfaces.ts on lines 1996..2001
source/libraries/ContractInterfaces.ts on lines 2059..2064
source/libraries/ContractInterfaces.ts on lines 2073..2078
source/libraries/ContractInterfaces.ts on lines 2101..2106
source/libraries/ContractInterfaces.ts on lines 2129..2134
source/libraries/ContractInterfaces.ts on lines 2304..2309
source/libraries/ContractInterfaces.ts on lines 2318..2323
source/libraries/ContractInterfaces.ts on lines 2535..2540
source/libraries/ContractInterfaces.ts on lines 2591..2596
source/libraries/ContractInterfaces.ts on lines 2808..2813
source/libraries/ContractInterfaces.ts on lines 2822..2827
source/libraries/ContractInterfaces.ts on lines 3158..3163
source/libraries/ContractInterfaces.ts on lines 3179..3184
source/libraries/ContractInterfaces.ts on lines 3270..3275
source/libraries/ContractInterfaces.ts on lines 3326..3331
source/libraries/ContractInterfaces.ts on lines 3361..3366
source/libraries/ContractInterfaces.ts on lines 3403..3408
source/libraries/ContractInterfaces.ts on lines 3564..3569
source/libraries/ContractInterfaces.ts on lines 3683..3688
source/libraries/ContractInterfaces.ts on lines 3823..3828
source/libraries/ContractInterfaces.ts on lines 3830..3835
source/libraries/ContractInterfaces.ts on lines 3900..3905
source/libraries/ContractInterfaces.ts on lines 4096..4101
source/libraries/ContractInterfaces.ts on lines 4180..4185
source/libraries/ContractInterfaces.ts on lines 4208..4213
source/libraries/ContractInterfaces.ts on lines 4369..4374
source/libraries/ContractInterfaces.ts on lines 4432..4437
source/libraries/ContractInterfaces.ts on lines 4586..4591
source/libraries/ContractInterfaces.ts on lines 4593..4598
source/libraries/ContractInterfaces.ts on lines 4614..4619
source/libraries/ContractInterfaces.ts on lines 4733..4738
source/libraries/ContractInterfaces.ts on lines 4887..4892
source/libraries/ContractInterfaces.ts on lines 4894..4899
source/libraries/ContractInterfaces.ts on lines 4957..4962
source/libraries/ContractInterfaces.ts on lines 4971..4976
source/libraries/ContractInterfaces.ts on lines 5118..5123
source/libraries/ContractInterfaces.ts on lines 5251..5256
source/libraries/ContractInterfaces.ts on lines 5356..5361
source/libraries/ContractInterfaces.ts on lines 5440..5445
source/libraries/ContractInterfaces.ts on lines 5496..5501
source/libraries/ContractInterfaces.ts on lines 5692..5697
source/libraries/ContractInterfaces.ts on lines 5769..5774
source/libraries/ContractInterfaces.ts on lines 5818..5823
source/libraries/ContractInterfaces.ts on lines 5993..5998
source/libraries/ContractInterfaces.ts on lines 6161..6166
source/libraries/ContractInterfaces.ts on lines 6273..6278
source/libraries/ContractInterfaces.ts on lines 6294..6299

Duplicated Code

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

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

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

Tuning

This issue has a mass of 161.

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

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

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

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

Refactorings

Further Reading

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

        public transferOwnership_ = async(newOwner: string, options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            const result = await this.localCall(abi, [newOwner], options.sender);
            return <boolean>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 67 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 71..76
source/libraries/ContractInterfaces.ts on lines 204..209
source/libraries/ContractInterfaces.ts on lines 484..489
source/libraries/ContractInterfaces.ts on lines 512..517
source/libraries/ContractInterfaces.ts on lines 603..608
source/libraries/ContractInterfaces.ts on lines 631..636
source/libraries/ContractInterfaces.ts on lines 771..776
source/libraries/ContractInterfaces.ts on lines 820..825
source/libraries/ContractInterfaces.ts on lines 834..839
source/libraries/ContractInterfaces.ts on lines 848..853
source/libraries/ContractInterfaces.ts on lines 862..867
source/libraries/ContractInterfaces.ts on lines 1065..1070
source/libraries/ContractInterfaces.ts on lines 1275..1280
source/libraries/ContractInterfaces.ts on lines 1359..1364
source/libraries/ContractInterfaces.ts on lines 1387..1392
source/libraries/ContractInterfaces.ts on lines 1506..1511
source/libraries/ContractInterfaces.ts on lines 1555..1560
source/libraries/ContractInterfaces.ts on lines 1604..1609
source/libraries/ContractInterfaces.ts on lines 1646..1651
source/libraries/ContractInterfaces.ts on lines 1660..1665
source/libraries/ContractInterfaces.ts on lines 1975..1980
source/libraries/ContractInterfaces.ts on lines 1996..2001
source/libraries/ContractInterfaces.ts on lines 2059..2064
source/libraries/ContractInterfaces.ts on lines 2073..2078
source/libraries/ContractInterfaces.ts on lines 2101..2106
source/libraries/ContractInterfaces.ts on lines 2129..2134
source/libraries/ContractInterfaces.ts on lines 2304..2309
source/libraries/ContractInterfaces.ts on lines 2318..2323
source/libraries/ContractInterfaces.ts on lines 2535..2540
source/libraries/ContractInterfaces.ts on lines 2591..2596
source/libraries/ContractInterfaces.ts on lines 2808..2813
source/libraries/ContractInterfaces.ts on lines 2822..2827
source/libraries/ContractInterfaces.ts on lines 3158..3163
source/libraries/ContractInterfaces.ts on lines 3179..3184
source/libraries/ContractInterfaces.ts on lines 3270..3275
source/libraries/ContractInterfaces.ts on lines 3326..3331
source/libraries/ContractInterfaces.ts on lines 3361..3366
source/libraries/ContractInterfaces.ts on lines 3403..3408
source/libraries/ContractInterfaces.ts on lines 3564..3569
source/libraries/ContractInterfaces.ts on lines 3683..3688
source/libraries/ContractInterfaces.ts on lines 3823..3828
source/libraries/ContractInterfaces.ts on lines 3830..3835
source/libraries/ContractInterfaces.ts on lines 4096..4101
source/libraries/ContractInterfaces.ts on lines 4180..4185
source/libraries/ContractInterfaces.ts on lines 4208..4213
source/libraries/ContractInterfaces.ts on lines 4369..4374
source/libraries/ContractInterfaces.ts on lines 4432..4437
source/libraries/ContractInterfaces.ts on lines 4586..4591
source/libraries/ContractInterfaces.ts on lines 4593..4598
source/libraries/ContractInterfaces.ts on lines 4614..4619
source/libraries/ContractInterfaces.ts on lines 4733..4738
source/libraries/ContractInterfaces.ts on lines 4887..4892
source/libraries/ContractInterfaces.ts on lines 4894..4899
source/libraries/ContractInterfaces.ts on lines 4957..4962
source/libraries/ContractInterfaces.ts on lines 4971..4976
source/libraries/ContractInterfaces.ts on lines 5118..5123
source/libraries/ContractInterfaces.ts on lines 5251..5256
source/libraries/ContractInterfaces.ts on lines 5356..5361
source/libraries/ContractInterfaces.ts on lines 5440..5445
source/libraries/ContractInterfaces.ts on lines 5496..5501
source/libraries/ContractInterfaces.ts on lines 5692..5697
source/libraries/ContractInterfaces.ts on lines 5769..5774
source/libraries/ContractInterfaces.ts on lines 5818..5823
source/libraries/ContractInterfaces.ts on lines 5993..5998
source/libraries/ContractInterfaces.ts on lines 6161..6166
source/libraries/ContractInterfaces.ts on lines 6273..6278
source/libraries/ContractInterfaces.ts on lines 6294..6299

Duplicated Code

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

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

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

Tuning

This issue has a mass of 161.

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

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

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

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

Refactorings

Further Reading

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

        public isContainerForFeeToken_ = async(shadyFeeToken: string, options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[{"name":"_shadyFeeToken","type":"address"}],"name":"isContainerForFeeToken","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [shadyFeeToken], options.sender);
            return <boolean>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 67 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 71..76
source/libraries/ContractInterfaces.ts on lines 204..209
source/libraries/ContractInterfaces.ts on lines 484..489
source/libraries/ContractInterfaces.ts on lines 512..517
source/libraries/ContractInterfaces.ts on lines 603..608
source/libraries/ContractInterfaces.ts on lines 631..636
source/libraries/ContractInterfaces.ts on lines 771..776
source/libraries/ContractInterfaces.ts on lines 820..825
source/libraries/ContractInterfaces.ts on lines 834..839
source/libraries/ContractInterfaces.ts on lines 848..853
source/libraries/ContractInterfaces.ts on lines 862..867
source/libraries/ContractInterfaces.ts on lines 1065..1070
source/libraries/ContractInterfaces.ts on lines 1275..1280
source/libraries/ContractInterfaces.ts on lines 1359..1364
source/libraries/ContractInterfaces.ts on lines 1387..1392
source/libraries/ContractInterfaces.ts on lines 1506..1511
source/libraries/ContractInterfaces.ts on lines 1555..1560
source/libraries/ContractInterfaces.ts on lines 1604..1609
source/libraries/ContractInterfaces.ts on lines 1646..1651
source/libraries/ContractInterfaces.ts on lines 1660..1665
source/libraries/ContractInterfaces.ts on lines 1975..1980
source/libraries/ContractInterfaces.ts on lines 1996..2001
source/libraries/ContractInterfaces.ts on lines 2059..2064
source/libraries/ContractInterfaces.ts on lines 2073..2078
source/libraries/ContractInterfaces.ts on lines 2101..2106
source/libraries/ContractInterfaces.ts on lines 2129..2134
source/libraries/ContractInterfaces.ts on lines 2304..2309
source/libraries/ContractInterfaces.ts on lines 2318..2323
source/libraries/ContractInterfaces.ts on lines 2535..2540
source/libraries/ContractInterfaces.ts on lines 2591..2596
source/libraries/ContractInterfaces.ts on lines 2808..2813
source/libraries/ContractInterfaces.ts on lines 2822..2827
source/libraries/ContractInterfaces.ts on lines 3158..3163
source/libraries/ContractInterfaces.ts on lines 3179..3184
source/libraries/ContractInterfaces.ts on lines 3270..3275
source/libraries/ContractInterfaces.ts on lines 3326..3331
source/libraries/ContractInterfaces.ts on lines 3361..3366
source/libraries/ContractInterfaces.ts on lines 3403..3408
source/libraries/ContractInterfaces.ts on lines 3564..3569
source/libraries/ContractInterfaces.ts on lines 3683..3688
source/libraries/ContractInterfaces.ts on lines 3823..3828
source/libraries/ContractInterfaces.ts on lines 3830..3835
source/libraries/ContractInterfaces.ts on lines 3900..3905
source/libraries/ContractInterfaces.ts on lines 4096..4101
source/libraries/ContractInterfaces.ts on lines 4180..4185
source/libraries/ContractInterfaces.ts on lines 4208..4213
source/libraries/ContractInterfaces.ts on lines 4432..4437
source/libraries/ContractInterfaces.ts on lines 4586..4591
source/libraries/ContractInterfaces.ts on lines 4593..4598
source/libraries/ContractInterfaces.ts on lines 4614..4619
source/libraries/ContractInterfaces.ts on lines 4733..4738
source/libraries/ContractInterfaces.ts on lines 4887..4892
source/libraries/ContractInterfaces.ts on lines 4894..4899
source/libraries/ContractInterfaces.ts on lines 4957..4962
source/libraries/ContractInterfaces.ts on lines 4971..4976
source/libraries/ContractInterfaces.ts on lines 5118..5123
source/libraries/ContractInterfaces.ts on lines 5251..5256
source/libraries/ContractInterfaces.ts on lines 5356..5361
source/libraries/ContractInterfaces.ts on lines 5440..5445
source/libraries/ContractInterfaces.ts on lines 5496..5501
source/libraries/ContractInterfaces.ts on lines 5692..5697
source/libraries/ContractInterfaces.ts on lines 5769..5774
source/libraries/ContractInterfaces.ts on lines 5818..5823
source/libraries/ContractInterfaces.ts on lines 5993..5998
source/libraries/ContractInterfaces.ts on lines 6161..6166
source/libraries/ContractInterfaces.ts on lines 6273..6278
source/libraries/ContractInterfaces.ts on lines 6294..6299

Duplicated Code

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

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

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

Tuning

This issue has a mass of 161.

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

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

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

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

Refactorings

Further Reading

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

        public setController_ = async(controller: string, options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_controller","type":"address"}],"name":"setController","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            const result = await this.localCall(abi, [controller], options.sender);
            return <boolean>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 67 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 71..76
source/libraries/ContractInterfaces.ts on lines 204..209
source/libraries/ContractInterfaces.ts on lines 484..489
source/libraries/ContractInterfaces.ts on lines 512..517
source/libraries/ContractInterfaces.ts on lines 603..608
source/libraries/ContractInterfaces.ts on lines 631..636
source/libraries/ContractInterfaces.ts on lines 771..776
source/libraries/ContractInterfaces.ts on lines 820..825
source/libraries/ContractInterfaces.ts on lines 834..839
source/libraries/ContractInterfaces.ts on lines 848..853
source/libraries/ContractInterfaces.ts on lines 862..867
source/libraries/ContractInterfaces.ts on lines 1065..1070
source/libraries/ContractInterfaces.ts on lines 1275..1280
source/libraries/ContractInterfaces.ts on lines 1359..1364
source/libraries/ContractInterfaces.ts on lines 1387..1392
source/libraries/ContractInterfaces.ts on lines 1506..1511
source/libraries/ContractInterfaces.ts on lines 1555..1560
source/libraries/ContractInterfaces.ts on lines 1604..1609
source/libraries/ContractInterfaces.ts on lines 1646..1651
source/libraries/ContractInterfaces.ts on lines 1660..1665
source/libraries/ContractInterfaces.ts on lines 1975..1980
source/libraries/ContractInterfaces.ts on lines 1996..2001
source/libraries/ContractInterfaces.ts on lines 2059..2064
source/libraries/ContractInterfaces.ts on lines 2073..2078
source/libraries/ContractInterfaces.ts on lines 2101..2106
source/libraries/ContractInterfaces.ts on lines 2129..2134
source/libraries/ContractInterfaces.ts on lines 2304..2309
source/libraries/ContractInterfaces.ts on lines 2318..2323
source/libraries/ContractInterfaces.ts on lines 2535..2540
source/libraries/ContractInterfaces.ts on lines 2591..2596
source/libraries/ContractInterfaces.ts on lines 2808..2813
source/libraries/ContractInterfaces.ts on lines 2822..2827
source/libraries/ContractInterfaces.ts on lines 3158..3163
source/libraries/ContractInterfaces.ts on lines 3179..3184
source/libraries/ContractInterfaces.ts on lines 3270..3275
source/libraries/ContractInterfaces.ts on lines 3326..3331
source/libraries/ContractInterfaces.ts on lines 3361..3366
source/libraries/ContractInterfaces.ts on lines 3403..3408
source/libraries/ContractInterfaces.ts on lines 3564..3569
source/libraries/ContractInterfaces.ts on lines 3683..3688
source/libraries/ContractInterfaces.ts on lines 3823..3828
source/libraries/ContractInterfaces.ts on lines 3830..3835
source/libraries/ContractInterfaces.ts on lines 3900..3905
source/libraries/ContractInterfaces.ts on lines 4096..4101
source/libraries/ContractInterfaces.ts on lines 4180..4185
source/libraries/ContractInterfaces.ts on lines 4208..4213
source/libraries/ContractInterfaces.ts on lines 4369..4374
source/libraries/ContractInterfaces.ts on lines 4432..4437
source/libraries/ContractInterfaces.ts on lines 4586..4591
source/libraries/ContractInterfaces.ts on lines 4593..4598
source/libraries/ContractInterfaces.ts on lines 4614..4619
source/libraries/ContractInterfaces.ts on lines 4733..4738
source/libraries/ContractInterfaces.ts on lines 4887..4892
source/libraries/ContractInterfaces.ts on lines 4894..4899
source/libraries/ContractInterfaces.ts on lines 4957..4962
source/libraries/ContractInterfaces.ts on lines 4971..4976
source/libraries/ContractInterfaces.ts on lines 5118..5123
source/libraries/ContractInterfaces.ts on lines 5251..5256
source/libraries/ContractInterfaces.ts on lines 5356..5361
source/libraries/ContractInterfaces.ts on lines 5440..5445
source/libraries/ContractInterfaces.ts on lines 5496..5501
source/libraries/ContractInterfaces.ts on lines 5692..5697
source/libraries/ContractInterfaces.ts on lines 5769..5774
source/libraries/ContractInterfaces.ts on lines 5818..5823
source/libraries/ContractInterfaces.ts on lines 5993..5998
source/libraries/ContractInterfaces.ts on lines 6273..6278
source/libraries/ContractInterfaces.ts on lines 6294..6299

Duplicated Code

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

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

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

Tuning

This issue has a mass of 161.

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

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

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

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

Refactorings

Further Reading

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

        public setController_ = async(controller: string, options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_controller","type":"address"}],"name":"setController","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            const result = await this.localCall(abi, [controller], options.sender);
            return <boolean>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 67 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 71..76
source/libraries/ContractInterfaces.ts on lines 204..209
source/libraries/ContractInterfaces.ts on lines 484..489
source/libraries/ContractInterfaces.ts on lines 512..517
source/libraries/ContractInterfaces.ts on lines 603..608
source/libraries/ContractInterfaces.ts on lines 631..636
source/libraries/ContractInterfaces.ts on lines 771..776
source/libraries/ContractInterfaces.ts on lines 820..825
source/libraries/ContractInterfaces.ts on lines 834..839
source/libraries/ContractInterfaces.ts on lines 848..853
source/libraries/ContractInterfaces.ts on lines 862..867
source/libraries/ContractInterfaces.ts on lines 1065..1070
source/libraries/ContractInterfaces.ts on lines 1275..1280
source/libraries/ContractInterfaces.ts on lines 1359..1364
source/libraries/ContractInterfaces.ts on lines 1387..1392
source/libraries/ContractInterfaces.ts on lines 1506..1511
source/libraries/ContractInterfaces.ts on lines 1555..1560
source/libraries/ContractInterfaces.ts on lines 1604..1609
source/libraries/ContractInterfaces.ts on lines 1646..1651
source/libraries/ContractInterfaces.ts on lines 1660..1665
source/libraries/ContractInterfaces.ts on lines 1996..2001
source/libraries/ContractInterfaces.ts on lines 2059..2064
source/libraries/ContractInterfaces.ts on lines 2073..2078
source/libraries/ContractInterfaces.ts on lines 2101..2106
source/libraries/ContractInterfaces.ts on lines 2129..2134
source/libraries/ContractInterfaces.ts on lines 2304..2309
source/libraries/ContractInterfaces.ts on lines 2318..2323
source/libraries/ContractInterfaces.ts on lines 2535..2540
source/libraries/ContractInterfaces.ts on lines 2591..2596
source/libraries/ContractInterfaces.ts on lines 2808..2813
source/libraries/ContractInterfaces.ts on lines 2822..2827
source/libraries/ContractInterfaces.ts on lines 3158..3163
source/libraries/ContractInterfaces.ts on lines 3179..3184
source/libraries/ContractInterfaces.ts on lines 3270..3275
source/libraries/ContractInterfaces.ts on lines 3326..3331
source/libraries/ContractInterfaces.ts on lines 3361..3366
source/libraries/ContractInterfaces.ts on lines 3403..3408
source/libraries/ContractInterfaces.ts on lines 3564..3569
source/libraries/ContractInterfaces.ts on lines 3683..3688
source/libraries/ContractInterfaces.ts on lines 3823..3828
source/libraries/ContractInterfaces.ts on lines 3830..3835
source/libraries/ContractInterfaces.ts on lines 3900..3905
source/libraries/ContractInterfaces.ts on lines 4096..4101
source/libraries/ContractInterfaces.ts on lines 4180..4185
source/libraries/ContractInterfaces.ts on lines 4208..4213
source/libraries/ContractInterfaces.ts on lines 4369..4374
source/libraries/ContractInterfaces.ts on lines 4432..4437
source/libraries/ContractInterfaces.ts on lines 4586..4591
source/libraries/ContractInterfaces.ts on lines 4593..4598
source/libraries/ContractInterfaces.ts on lines 4614..4619
source/libraries/ContractInterfaces.ts on lines 4733..4738
source/libraries/ContractInterfaces.ts on lines 4887..4892
source/libraries/ContractInterfaces.ts on lines 4894..4899
source/libraries/ContractInterfaces.ts on lines 4957..4962
source/libraries/ContractInterfaces.ts on lines 4971..4976
source/libraries/ContractInterfaces.ts on lines 5118..5123
source/libraries/ContractInterfaces.ts on lines 5251..5256
source/libraries/ContractInterfaces.ts on lines 5356..5361
source/libraries/ContractInterfaces.ts on lines 5440..5445
source/libraries/ContractInterfaces.ts on lines 5496..5501
source/libraries/ContractInterfaces.ts on lines 5692..5697
source/libraries/ContractInterfaces.ts on lines 5769..5774
source/libraries/ContractInterfaces.ts on lines 5818..5823
source/libraries/ContractInterfaces.ts on lines 5993..5998
source/libraries/ContractInterfaces.ts on lines 6161..6166
source/libraries/ContractInterfaces.ts on lines 6273..6278
source/libraries/ContractInterfaces.ts on lines 6294..6299

Duplicated Code

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

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

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

Tuning

This issue has a mass of 161.

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

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

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

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

Refactorings

Further Reading

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

        public contains_ = async(key: string, options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[{"name":"_key","type":"bytes32"}],"name":"contains","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [key], options.sender);
            return <boolean>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 67 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 71..76
source/libraries/ContractInterfaces.ts on lines 204..209
source/libraries/ContractInterfaces.ts on lines 484..489
source/libraries/ContractInterfaces.ts on lines 512..517
source/libraries/ContractInterfaces.ts on lines 603..608
source/libraries/ContractInterfaces.ts on lines 631..636
source/libraries/ContractInterfaces.ts on lines 771..776
source/libraries/ContractInterfaces.ts on lines 820..825
source/libraries/ContractInterfaces.ts on lines 834..839
source/libraries/ContractInterfaces.ts on lines 848..853
source/libraries/ContractInterfaces.ts on lines 862..867
source/libraries/ContractInterfaces.ts on lines 1065..1070
source/libraries/ContractInterfaces.ts on lines 1275..1280
source/libraries/ContractInterfaces.ts on lines 1359..1364
source/libraries/ContractInterfaces.ts on lines 1387..1392
source/libraries/ContractInterfaces.ts on lines 1506..1511
source/libraries/ContractInterfaces.ts on lines 1555..1560
source/libraries/ContractInterfaces.ts on lines 1604..1609
source/libraries/ContractInterfaces.ts on lines 1646..1651
source/libraries/ContractInterfaces.ts on lines 1660..1665
source/libraries/ContractInterfaces.ts on lines 1975..1980
source/libraries/ContractInterfaces.ts on lines 2059..2064
source/libraries/ContractInterfaces.ts on lines 2073..2078
source/libraries/ContractInterfaces.ts on lines 2101..2106
source/libraries/ContractInterfaces.ts on lines 2129..2134
source/libraries/ContractInterfaces.ts on lines 2304..2309
source/libraries/ContractInterfaces.ts on lines 2318..2323
source/libraries/ContractInterfaces.ts on lines 2535..2540
source/libraries/ContractInterfaces.ts on lines 2591..2596
source/libraries/ContractInterfaces.ts on lines 2808..2813
source/libraries/ContractInterfaces.ts on lines 2822..2827
source/libraries/ContractInterfaces.ts on lines 3158..3163
source/libraries/ContractInterfaces.ts on lines 3179..3184
source/libraries/ContractInterfaces.ts on lines 3270..3275
source/libraries/ContractInterfaces.ts on lines 3326..3331
source/libraries/ContractInterfaces.ts on lines 3361..3366
source/libraries/ContractInterfaces.ts on lines 3403..3408
source/libraries/ContractInterfaces.ts on lines 3564..3569
source/libraries/ContractInterfaces.ts on lines 3683..3688
source/libraries/ContractInterfaces.ts on lines 3823..3828
source/libraries/ContractInterfaces.ts on lines 3830..3835
source/libraries/ContractInterfaces.ts on lines 3900..3905
source/libraries/ContractInterfaces.ts on lines 4096..4101
source/libraries/ContractInterfaces.ts on lines 4180..4185
source/libraries/ContractInterfaces.ts on lines 4208..4213
source/libraries/ContractInterfaces.ts on lines 4369..4374
source/libraries/ContractInterfaces.ts on lines 4432..4437
source/libraries/ContractInterfaces.ts on lines 4586..4591
source/libraries/ContractInterfaces.ts on lines 4593..4598
source/libraries/ContractInterfaces.ts on lines 4614..4619
source/libraries/ContractInterfaces.ts on lines 4733..4738
source/libraries/ContractInterfaces.ts on lines 4887..4892
source/libraries/ContractInterfaces.ts on lines 4894..4899
source/libraries/ContractInterfaces.ts on lines 4957..4962
source/libraries/ContractInterfaces.ts on lines 4971..4976
source/libraries/ContractInterfaces.ts on lines 5118..5123
source/libraries/ContractInterfaces.ts on lines 5251..5256
source/libraries/ContractInterfaces.ts on lines 5356..5361
source/libraries/ContractInterfaces.ts on lines 5440..5445
source/libraries/ContractInterfaces.ts on lines 5496..5501
source/libraries/ContractInterfaces.ts on lines 5692..5697
source/libraries/ContractInterfaces.ts on lines 5769..5774
source/libraries/ContractInterfaces.ts on lines 5818..5823
source/libraries/ContractInterfaces.ts on lines 5993..5998
source/libraries/ContractInterfaces.ts on lines 6161..6166
source/libraries/ContractInterfaces.ts on lines 6273..6278
source/libraries/ContractInterfaces.ts on lines 6294..6299

Duplicated Code

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

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

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

Tuning

This issue has a mass of 161.

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

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

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

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

Refactorings

Further Reading

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

        public setController_ = async(controller: string, options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_controller","type":"address"}],"name":"setController","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            const result = await this.localCall(abi, [controller], options.sender);
            return <boolean>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 67 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 71..76
source/libraries/ContractInterfaces.ts on lines 204..209
source/libraries/ContractInterfaces.ts on lines 484..489
source/libraries/ContractInterfaces.ts on lines 512..517
source/libraries/ContractInterfaces.ts on lines 603..608
source/libraries/ContractInterfaces.ts on lines 631..636
source/libraries/ContractInterfaces.ts on lines 771..776
source/libraries/ContractInterfaces.ts on lines 820..825
source/libraries/ContractInterfaces.ts on lines 834..839
source/libraries/ContractInterfaces.ts on lines 848..853
source/libraries/ContractInterfaces.ts on lines 862..867
source/libraries/ContractInterfaces.ts on lines 1065..1070
source/libraries/ContractInterfaces.ts on lines 1275..1280
source/libraries/ContractInterfaces.ts on lines 1359..1364
source/libraries/ContractInterfaces.ts on lines 1387..1392
source/libraries/ContractInterfaces.ts on lines 1506..1511
source/libraries/ContractInterfaces.ts on lines 1555..1560
source/libraries/ContractInterfaces.ts on lines 1604..1609
source/libraries/ContractInterfaces.ts on lines 1646..1651
source/libraries/ContractInterfaces.ts on lines 1660..1665
source/libraries/ContractInterfaces.ts on lines 1975..1980
source/libraries/ContractInterfaces.ts on lines 1996..2001
source/libraries/ContractInterfaces.ts on lines 2059..2064
source/libraries/ContractInterfaces.ts on lines 2073..2078
source/libraries/ContractInterfaces.ts on lines 2101..2106
source/libraries/ContractInterfaces.ts on lines 2129..2134
source/libraries/ContractInterfaces.ts on lines 2304..2309
source/libraries/ContractInterfaces.ts on lines 2318..2323
source/libraries/ContractInterfaces.ts on lines 2535..2540
source/libraries/ContractInterfaces.ts on lines 2591..2596
source/libraries/ContractInterfaces.ts on lines 2822..2827
source/libraries/ContractInterfaces.ts on lines 3158..3163
source/libraries/ContractInterfaces.ts on lines 3179..3184
source/libraries/ContractInterfaces.ts on lines 3270..3275
source/libraries/ContractInterfaces.ts on lines 3326..3331
source/libraries/ContractInterfaces.ts on lines 3361..3366
source/libraries/ContractInterfaces.ts on lines 3403..3408
source/libraries/ContractInterfaces.ts on lines 3564..3569
source/libraries/ContractInterfaces.ts on lines 3683..3688
source/libraries/ContractInterfaces.ts on lines 3823..3828
source/libraries/ContractInterfaces.ts on lines 3830..3835
source/libraries/ContractInterfaces.ts on lines 3900..3905
source/libraries/ContractInterfaces.ts on lines 4096..4101
source/libraries/ContractInterfaces.ts on lines 4180..4185
source/libraries/ContractInterfaces.ts on lines 4208..4213
source/libraries/ContractInterfaces.ts on lines 4369..4374
source/libraries/ContractInterfaces.ts on lines 4432..4437
source/libraries/ContractInterfaces.ts on lines 4586..4591
source/libraries/ContractInterfaces.ts on lines 4593..4598
source/libraries/ContractInterfaces.ts on lines 4614..4619
source/libraries/ContractInterfaces.ts on lines 4733..4738
source/libraries/ContractInterfaces.ts on lines 4887..4892
source/libraries/ContractInterfaces.ts on lines 4894..4899
source/libraries/ContractInterfaces.ts on lines 4957..4962
source/libraries/ContractInterfaces.ts on lines 4971..4976
source/libraries/ContractInterfaces.ts on lines 5118..5123
source/libraries/ContractInterfaces.ts on lines 5251..5256
source/libraries/ContractInterfaces.ts on lines 5356..5361
source/libraries/ContractInterfaces.ts on lines 5440..5445
source/libraries/ContractInterfaces.ts on lines 5496..5501
source/libraries/ContractInterfaces.ts on lines 5692..5697
source/libraries/ContractInterfaces.ts on lines 5769..5774
source/libraries/ContractInterfaces.ts on lines 5818..5823
source/libraries/ContractInterfaces.ts on lines 5993..5998
source/libraries/ContractInterfaces.ts on lines 6161..6166
source/libraries/ContractInterfaces.ts on lines 6273..6278
source/libraries/ContractInterfaces.ts on lines 6294..6299

Duplicated Code

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

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

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

Tuning

This issue has a mass of 161.

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

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

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

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

Refactorings

Further Reading

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

        public setController_ = async(controller: string, options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_controller","type":"address"}],"name":"setController","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            const result = await this.localCall(abi, [controller], options.sender);
            return <boolean>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 67 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 71..76
source/libraries/ContractInterfaces.ts on lines 204..209
source/libraries/ContractInterfaces.ts on lines 484..489
source/libraries/ContractInterfaces.ts on lines 512..517
source/libraries/ContractInterfaces.ts on lines 603..608
source/libraries/ContractInterfaces.ts on lines 631..636
source/libraries/ContractInterfaces.ts on lines 771..776
source/libraries/ContractInterfaces.ts on lines 820..825
source/libraries/ContractInterfaces.ts on lines 834..839
source/libraries/ContractInterfaces.ts on lines 848..853
source/libraries/ContractInterfaces.ts on lines 862..867
source/libraries/ContractInterfaces.ts on lines 1065..1070
source/libraries/ContractInterfaces.ts on lines 1275..1280
source/libraries/ContractInterfaces.ts on lines 1359..1364
source/libraries/ContractInterfaces.ts on lines 1387..1392
source/libraries/ContractInterfaces.ts on lines 1506..1511
source/libraries/ContractInterfaces.ts on lines 1555..1560
source/libraries/ContractInterfaces.ts on lines 1604..1609
source/libraries/ContractInterfaces.ts on lines 1646..1651
source/libraries/ContractInterfaces.ts on lines 1660..1665
source/libraries/ContractInterfaces.ts on lines 1975..1980
source/libraries/ContractInterfaces.ts on lines 1996..2001
source/libraries/ContractInterfaces.ts on lines 2059..2064
source/libraries/ContractInterfaces.ts on lines 2073..2078
source/libraries/ContractInterfaces.ts on lines 2101..2106
source/libraries/ContractInterfaces.ts on lines 2129..2134
source/libraries/ContractInterfaces.ts on lines 2304..2309
source/libraries/ContractInterfaces.ts on lines 2318..2323
source/libraries/ContractInterfaces.ts on lines 2535..2540
source/libraries/ContractInterfaces.ts on lines 2591..2596
source/libraries/ContractInterfaces.ts on lines 2808..2813
source/libraries/ContractInterfaces.ts on lines 2822..2827
source/libraries/ContractInterfaces.ts on lines 3158..3163
source/libraries/ContractInterfaces.ts on lines 3179..3184
source/libraries/ContractInterfaces.ts on lines 3270..3275
source/libraries/ContractInterfaces.ts on lines 3326..3331
source/libraries/ContractInterfaces.ts on lines 3361..3366
source/libraries/ContractInterfaces.ts on lines 3403..3408
source/libraries/ContractInterfaces.ts on lines 3564..3569
source/libraries/ContractInterfaces.ts on lines 3683..3688
source/libraries/ContractInterfaces.ts on lines 3823..3828
source/libraries/ContractInterfaces.ts on lines 3830..3835
source/libraries/ContractInterfaces.ts on lines 3900..3905
source/libraries/ContractInterfaces.ts on lines 4180..4185
source/libraries/ContractInterfaces.ts on lines 4208..4213
source/libraries/ContractInterfaces.ts on lines 4369..4374
source/libraries/ContractInterfaces.ts on lines 4432..4437
source/libraries/ContractInterfaces.ts on lines 4586..4591
source/libraries/ContractInterfaces.ts on lines 4593..4598
source/libraries/ContractInterfaces.ts on lines 4614..4619
source/libraries/ContractInterfaces.ts on lines 4733..4738
source/libraries/ContractInterfaces.ts on lines 4887..4892
source/libraries/ContractInterfaces.ts on lines 4894..4899
source/libraries/ContractInterfaces.ts on lines 4957..4962
source/libraries/ContractInterfaces.ts on lines 4971..4976
source/libraries/ContractInterfaces.ts on lines 5118..5123
source/libraries/ContractInterfaces.ts on lines 5251..5256
source/libraries/ContractInterfaces.ts on lines 5356..5361
source/libraries/ContractInterfaces.ts on lines 5440..5445
source/libraries/ContractInterfaces.ts on lines 5496..5501
source/libraries/ContractInterfaces.ts on lines 5692..5697
source/libraries/ContractInterfaces.ts on lines 5769..5774
source/libraries/ContractInterfaces.ts on lines 5818..5823
source/libraries/ContractInterfaces.ts on lines 5993..5998
source/libraries/ContractInterfaces.ts on lines 6161..6166
source/libraries/ContractInterfaces.ts on lines 6273..6278
source/libraries/ContractInterfaces.ts on lines 6294..6299

Duplicated Code

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

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

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

Tuning

This issue has a mass of 161.

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

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

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

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

Refactorings

Further Reading

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

        public setController_ = async(controller: string, options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_controller","type":"address"}],"name":"setController","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            const result = await this.localCall(abi, [controller], options.sender);
            return <boolean>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 67 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 71..76
source/libraries/ContractInterfaces.ts on lines 204..209
source/libraries/ContractInterfaces.ts on lines 484..489
source/libraries/ContractInterfaces.ts on lines 512..517
source/libraries/ContractInterfaces.ts on lines 603..608
source/libraries/ContractInterfaces.ts on lines 631..636
source/libraries/ContractInterfaces.ts on lines 771..776
source/libraries/ContractInterfaces.ts on lines 820..825
source/libraries/ContractInterfaces.ts on lines 834..839
source/libraries/ContractInterfaces.ts on lines 848..853
source/libraries/ContractInterfaces.ts on lines 862..867
source/libraries/ContractInterfaces.ts on lines 1065..1070
source/libraries/ContractInterfaces.ts on lines 1275..1280
source/libraries/ContractInterfaces.ts on lines 1359..1364
source/libraries/ContractInterfaces.ts on lines 1387..1392
source/libraries/ContractInterfaces.ts on lines 1506..1511
source/libraries/ContractInterfaces.ts on lines 1555..1560
source/libraries/ContractInterfaces.ts on lines 1604..1609
source/libraries/ContractInterfaces.ts on lines 1646..1651
source/libraries/ContractInterfaces.ts on lines 1660..1665
source/libraries/ContractInterfaces.ts on lines 1975..1980
source/libraries/ContractInterfaces.ts on lines 1996..2001
source/libraries/ContractInterfaces.ts on lines 2059..2064
source/libraries/ContractInterfaces.ts on lines 2073..2078
source/libraries/ContractInterfaces.ts on lines 2101..2106
source/libraries/ContractInterfaces.ts on lines 2129..2134
source/libraries/ContractInterfaces.ts on lines 2304..2309
source/libraries/ContractInterfaces.ts on lines 2318..2323
source/libraries/ContractInterfaces.ts on lines 2535..2540
source/libraries/ContractInterfaces.ts on lines 2591..2596
source/libraries/ContractInterfaces.ts on lines 2808..2813
source/libraries/ContractInterfaces.ts on lines 2822..2827
source/libraries/ContractInterfaces.ts on lines 3158..3163
source/libraries/ContractInterfaces.ts on lines 3179..3184
source/libraries/ContractInterfaces.ts on lines 3270..3275
source/libraries/ContractInterfaces.ts on lines 3326..3331
source/libraries/ContractInterfaces.ts on lines 3361..3366
source/libraries/ContractInterfaces.ts on lines 3403..3408
source/libraries/ContractInterfaces.ts on lines 3564..3569
source/libraries/ContractInterfaces.ts on lines 3683..3688
source/libraries/ContractInterfaces.ts on lines 3823..3828
source/libraries/ContractInterfaces.ts on lines 3830..3835
source/libraries/ContractInterfaces.ts on lines 3900..3905
source/libraries/ContractInterfaces.ts on lines 4096..4101
source/libraries/ContractInterfaces.ts on lines 4180..4185
source/libraries/ContractInterfaces.ts on lines 4208..4213
source/libraries/ContractInterfaces.ts on lines 4369..4374
source/libraries/ContractInterfaces.ts on lines 4432..4437
source/libraries/ContractInterfaces.ts on lines 4586..4591
source/libraries/ContractInterfaces.ts on lines 4593..4598
source/libraries/ContractInterfaces.ts on lines 4614..4619
source/libraries/ContractInterfaces.ts on lines 4733..4738
source/libraries/ContractInterfaces.ts on lines 4887..4892
source/libraries/ContractInterfaces.ts on lines 4894..4899
source/libraries/ContractInterfaces.ts on lines 4957..4962
source/libraries/ContractInterfaces.ts on lines 4971..4976
source/libraries/ContractInterfaces.ts on lines 5251..5256
source/libraries/ContractInterfaces.ts on lines 5356..5361
source/libraries/ContractInterfaces.ts on lines 5440..5445
source/libraries/ContractInterfaces.ts on lines 5496..5501
source/libraries/ContractInterfaces.ts on lines 5692..5697
source/libraries/ContractInterfaces.ts on lines 5769..5774
source/libraries/ContractInterfaces.ts on lines 5818..5823
source/libraries/ContractInterfaces.ts on lines 5993..5998
source/libraries/ContractInterfaces.ts on lines 6161..6166
source/libraries/ContractInterfaces.ts on lines 6273..6278
source/libraries/ContractInterfaces.ts on lines 6294..6299

Duplicated Code

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

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

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

Tuning

This issue has a mass of 161.

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

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

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

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

Refactorings

Further Reading

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

        public setController_ = async(controller: string, options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_controller","type":"address"}],"name":"setController","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            const result = await this.localCall(abi, [controller], options.sender);
            return <boolean>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 67 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 71..76
source/libraries/ContractInterfaces.ts on lines 204..209
source/libraries/ContractInterfaces.ts on lines 484..489
source/libraries/ContractInterfaces.ts on lines 512..517
source/libraries/ContractInterfaces.ts on lines 603..608
source/libraries/ContractInterfaces.ts on lines 631..636
source/libraries/ContractInterfaces.ts on lines 771..776
source/libraries/ContractInterfaces.ts on lines 820..825
source/libraries/ContractInterfaces.ts on lines 834..839
source/libraries/ContractInterfaces.ts on lines 848..853
source/libraries/ContractInterfaces.ts on lines 862..867
source/libraries/ContractInterfaces.ts on lines 1065..1070
source/libraries/ContractInterfaces.ts on lines 1359..1364
source/libraries/ContractInterfaces.ts on lines 1387..1392
source/libraries/ContractInterfaces.ts on lines 1506..1511
source/libraries/ContractInterfaces.ts on lines 1555..1560
source/libraries/ContractInterfaces.ts on lines 1604..1609
source/libraries/ContractInterfaces.ts on lines 1646..1651
source/libraries/ContractInterfaces.ts on lines 1660..1665
source/libraries/ContractInterfaces.ts on lines 1975..1980
source/libraries/ContractInterfaces.ts on lines 1996..2001
source/libraries/ContractInterfaces.ts on lines 2059..2064
source/libraries/ContractInterfaces.ts on lines 2073..2078
source/libraries/ContractInterfaces.ts on lines 2101..2106
source/libraries/ContractInterfaces.ts on lines 2129..2134
source/libraries/ContractInterfaces.ts on lines 2304..2309
source/libraries/ContractInterfaces.ts on lines 2318..2323
source/libraries/ContractInterfaces.ts on lines 2535..2540
source/libraries/ContractInterfaces.ts on lines 2591..2596
source/libraries/ContractInterfaces.ts on lines 2808..2813
source/libraries/ContractInterfaces.ts on lines 2822..2827
source/libraries/ContractInterfaces.ts on lines 3158..3163
source/libraries/ContractInterfaces.ts on lines 3179..3184
source/libraries/ContractInterfaces.ts on lines 3270..3275
source/libraries/ContractInterfaces.ts on lines 3326..3331
source/libraries/ContractInterfaces.ts on lines 3361..3366
source/libraries/ContractInterfaces.ts on lines 3403..3408
source/libraries/ContractInterfaces.ts on lines 3564..3569
source/libraries/ContractInterfaces.ts on lines 3683..3688
source/libraries/ContractInterfaces.ts on lines 3823..3828
source/libraries/ContractInterfaces.ts on lines 3830..3835
source/libraries/ContractInterfaces.ts on lines 3900..3905
source/libraries/ContractInterfaces.ts on lines 4096..4101
source/libraries/ContractInterfaces.ts on lines 4180..4185
source/libraries/ContractInterfaces.ts on lines 4208..4213
source/libraries/ContractInterfaces.ts on lines 4369..4374
source/libraries/ContractInterfaces.ts on lines 4432..4437
source/libraries/ContractInterfaces.ts on lines 4586..4591
source/libraries/ContractInterfaces.ts on lines 4593..4598
source/libraries/ContractInterfaces.ts on lines 4614..4619
source/libraries/ContractInterfaces.ts on lines 4733..4738
source/libraries/ContractInterfaces.ts on lines 4887..4892
source/libraries/ContractInterfaces.ts on lines 4894..4899
source/libraries/ContractInterfaces.ts on lines 4957..4962
source/libraries/ContractInterfaces.ts on lines 4971..4976
source/libraries/ContractInterfaces.ts on lines 5118..5123
source/libraries/ContractInterfaces.ts on lines 5251..5256
source/libraries/ContractInterfaces.ts on lines 5356..5361
source/libraries/ContractInterfaces.ts on lines 5440..5445
source/libraries/ContractInterfaces.ts on lines 5496..5501
source/libraries/ContractInterfaces.ts on lines 5692..5697
source/libraries/ContractInterfaces.ts on lines 5769..5774
source/libraries/ContractInterfaces.ts on lines 5818..5823
source/libraries/ContractInterfaces.ts on lines 5993..5998
source/libraries/ContractInterfaces.ts on lines 6161..6166
source/libraries/ContractInterfaces.ts on lines 6273..6278
source/libraries/ContractInterfaces.ts on lines 6294..6299

Duplicated Code

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

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

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

Tuning

This issue has a mass of 161.

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

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

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

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

Refactorings

Further Reading

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

        public initialize_ = async(feeWindow: string, options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_feeWindow","type":"address"}],"name":"initialize","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            const result = await this.localCall(abi, [feeWindow], options.sender);
            return <boolean>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 67 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 71..76
source/libraries/ContractInterfaces.ts on lines 204..209
source/libraries/ContractInterfaces.ts on lines 484..489
source/libraries/ContractInterfaces.ts on lines 512..517
source/libraries/ContractInterfaces.ts on lines 603..608
source/libraries/ContractInterfaces.ts on lines 631..636
source/libraries/ContractInterfaces.ts on lines 771..776
source/libraries/ContractInterfaces.ts on lines 820..825
source/libraries/ContractInterfaces.ts on lines 834..839
source/libraries/ContractInterfaces.ts on lines 848..853
source/libraries/ContractInterfaces.ts on lines 862..867
source/libraries/ContractInterfaces.ts on lines 1065..1070
source/libraries/ContractInterfaces.ts on lines 1275..1280
source/libraries/ContractInterfaces.ts on lines 1359..1364
source/libraries/ContractInterfaces.ts on lines 1387..1392
source/libraries/ContractInterfaces.ts on lines 1506..1511
source/libraries/ContractInterfaces.ts on lines 1555..1560
source/libraries/ContractInterfaces.ts on lines 1604..1609
source/libraries/ContractInterfaces.ts on lines 1646..1651
source/libraries/ContractInterfaces.ts on lines 1660..1665
source/libraries/ContractInterfaces.ts on lines 1975..1980
source/libraries/ContractInterfaces.ts on lines 1996..2001
source/libraries/ContractInterfaces.ts on lines 2059..2064
source/libraries/ContractInterfaces.ts on lines 2073..2078
source/libraries/ContractInterfaces.ts on lines 2101..2106
source/libraries/ContractInterfaces.ts on lines 2129..2134
source/libraries/ContractInterfaces.ts on lines 2304..2309
source/libraries/ContractInterfaces.ts on lines 2318..2323
source/libraries/ContractInterfaces.ts on lines 2535..2540
source/libraries/ContractInterfaces.ts on lines 2808..2813
source/libraries/ContractInterfaces.ts on lines 2822..2827
source/libraries/ContractInterfaces.ts on lines 3158..3163
source/libraries/ContractInterfaces.ts on lines 3179..3184
source/libraries/ContractInterfaces.ts on lines 3270..3275
source/libraries/ContractInterfaces.ts on lines 3326..3331
source/libraries/ContractInterfaces.ts on lines 3361..3366
source/libraries/ContractInterfaces.ts on lines 3403..3408
source/libraries/ContractInterfaces.ts on lines 3564..3569
source/libraries/ContractInterfaces.ts on lines 3683..3688
source/libraries/ContractInterfaces.ts on lines 3823..3828
source/libraries/ContractInterfaces.ts on lines 3830..3835
source/libraries/ContractInterfaces.ts on lines 3900..3905
source/libraries/ContractInterfaces.ts on lines 4096..4101
source/libraries/ContractInterfaces.ts on lines 4180..4185
source/libraries/ContractInterfaces.ts on lines 4208..4213
source/libraries/ContractInterfaces.ts on lines 4369..4374
source/libraries/ContractInterfaces.ts on lines 4432..4437
source/libraries/ContractInterfaces.ts on lines 4586..4591
source/libraries/ContractInterfaces.ts on lines 4593..4598
source/libraries/ContractInterfaces.ts on lines 4614..4619
source/libraries/ContractInterfaces.ts on lines 4733..4738
source/libraries/ContractInterfaces.ts on lines 4887..4892
source/libraries/ContractInterfaces.ts on lines 4894..4899
source/libraries/ContractInterfaces.ts on lines 4957..4962
source/libraries/ContractInterfaces.ts on lines 4971..4976
source/libraries/ContractInterfaces.ts on lines 5118..5123
source/libraries/ContractInterfaces.ts on lines 5251..5256
source/libraries/ContractInterfaces.ts on lines 5356..5361
source/libraries/ContractInterfaces.ts on lines 5440..5445
source/libraries/ContractInterfaces.ts on lines 5496..5501
source/libraries/ContractInterfaces.ts on lines 5692..5697
source/libraries/ContractInterfaces.ts on lines 5769..5774
source/libraries/ContractInterfaces.ts on lines 5818..5823
source/libraries/ContractInterfaces.ts on lines 5993..5998
source/libraries/ContractInterfaces.ts on lines 6161..6166
source/libraries/ContractInterfaces.ts on lines 6273..6278
source/libraries/ContractInterfaces.ts on lines 6294..6299

Duplicated Code

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

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

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

Tuning

This issue has a mass of 161.

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

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

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