AugurProject/augur-core

View on GitHub

Showing 833 of 833 total issues

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

        public transferOwnership = async(newOwner: string, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [newOwner], "transferOwnership", 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 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 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 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 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 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 transferOwnership = async(newOwner: string, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [newOwner], "transferOwnership", 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 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 transferOwnership = async(newOwner: string, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [newOwner], "transferOwnership", 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 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 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 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 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 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 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 updateSiblingMigrationTotal = async(token: string, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_token","type":"address"}],"name":"updateSiblingMigrationTotal","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [token], "updateSiblingMigrationTotal", 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 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 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 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 transferOwnership = async(newOwner: string, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [newOwner], "transferOwnership", 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 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 remove = async(key: string, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_key","type":"bytes32"}],"name":"remove","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [key], "remove", 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 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 getOrCreateFeeWindowBefore = async(feeWindow: string, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_feeWindow","type":"address"}],"name":"getOrCreateFeeWindowBefore","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [feeWindow], "getOrCreateFeeWindowBefore", 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 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 updateTentativeWinningChildUniverse = async(parentPayoutDistributionHash: string, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_parentPayoutDistributionHash","type":"bytes32"}],"name":"updateTentativeWinningChildUniverse","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [parentPayoutDistributionHash], "updateTentativeWinningChildUniverse", 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 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 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 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 transferOwnership = async(newOwner: string, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [newOwner], "transferOwnership", 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 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 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 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 redeem = async(redeemer: string, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_redeemer","type":"address"}],"name":"redeem","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [redeemer], "redeem", 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 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(feeWindow: string, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_feeWindow","type":"address"}],"name":"initialize","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [feeWindow], "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 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 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 transferOwnership = async(newOwner: string, options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [newOwner], "transferOwnership", 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 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

Severity
Category
Status
Source
Language