AugurProject/augur-core

View on GitHub

Showing 833 of 833 total issues

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 161.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 161.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 161.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 161.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 161.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 161.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 161.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 161.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 161.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 161.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 161.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 161.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 161.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 161.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 161.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 161.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 161.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 161.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 161.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 161.

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

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

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

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

Refactorings

Further Reading

Severity
Category
Status
Source
Language