AugurProject/augur-core

View on GitHub

Showing 833 of 833 total issues

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

        public symbol_ = async( options?: { sender?: string }): Promise<string> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <string>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 118 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 57..62
source/libraries/ContractInterfaces.ts on lines 211..216
source/libraries/ContractInterfaces.ts on lines 526..531
source/libraries/ContractInterfaces.ts on lines 778..783
source/libraries/ContractInterfaces.ts on lines 827..832
source/libraries/ContractInterfaces.ts on lines 883..888
source/libraries/ContractInterfaces.ts on lines 1009..1014
source/libraries/ContractInterfaces.ts on lines 1016..1021
source/libraries/ContractInterfaces.ts on lines 1079..1084
source/libraries/ContractInterfaces.ts on lines 1128..1133
source/libraries/ContractInterfaces.ts on lines 1212..1217
source/libraries/ContractInterfaces.ts on lines 1240..1245
source/libraries/ContractInterfaces.ts on lines 1282..1287
source/libraries/ContractInterfaces.ts on lines 1345..1350
source/libraries/ContractInterfaces.ts on lines 1408..1413
source/libraries/ContractInterfaces.ts on lines 1492..1497
source/libraries/ContractInterfaces.ts on lines 1513..1518
source/libraries/ContractInterfaces.ts on lines 1534..1539
source/libraries/ContractInterfaces.ts on lines 1541..1546
source/libraries/ContractInterfaces.ts on lines 1590..1595
source/libraries/ContractInterfaces.ts on lines 1632..1637
source/libraries/ContractInterfaces.ts on lines 1667..1672
source/libraries/ContractInterfaces.ts on lines 1695..1700
source/libraries/ContractInterfaces.ts on lines 1961..1966
source/libraries/ContractInterfaces.ts on lines 1982..1987
source/libraries/ContractInterfaces.ts on lines 2003..2008
source/libraries/ContractInterfaces.ts on lines 2038..2043
source/libraries/ContractInterfaces.ts on lines 2087..2092
source/libraries/ContractInterfaces.ts on lines 2213..2218
source/libraries/ContractInterfaces.ts on lines 2339..2344
source/libraries/ContractInterfaces.ts on lines 2346..2351
source/libraries/ContractInterfaces.ts on lines 2395..2400
source/libraries/ContractInterfaces.ts on lines 2416..2421
source/libraries/ContractInterfaces.ts on lines 2423..2428
source/libraries/ContractInterfaces.ts on lines 2444..2449
source/libraries/ContractInterfaces.ts on lines 2486..2491
source/libraries/ContractInterfaces.ts on lines 2542..2547
source/libraries/ContractInterfaces.ts on lines 2577..2582
source/libraries/ContractInterfaces.ts on lines 2626..2631
source/libraries/ContractInterfaces.ts on lines 2654..2659
source/libraries/ContractInterfaces.ts on lines 2710..2715
source/libraries/ContractInterfaces.ts on lines 2780..2785
source/libraries/ContractInterfaces.ts on lines 2829..2834
source/libraries/ContractInterfaces.ts on lines 2878..2883
source/libraries/ContractInterfaces.ts on lines 2899..2904
source/libraries/ContractInterfaces.ts on lines 2927..2932
source/libraries/ContractInterfaces.ts on lines 2990..2995
source/libraries/ContractInterfaces.ts on lines 3067..3072
source/libraries/ContractInterfaces.ts on lines 3109..3114
source/libraries/ContractInterfaces.ts on lines 3123..3128
source/libraries/ContractInterfaces.ts on lines 3200..3205
source/libraries/ContractInterfaces.ts on lines 3207..3212
source/libraries/ContractInterfaces.ts on lines 3235..3240
source/libraries/ContractInterfaces.ts on lines 3256..3261
source/libraries/ContractInterfaces.ts on lines 3277..3282
source/libraries/ContractInterfaces.ts on lines 3298..3303
source/libraries/ContractInterfaces.ts on lines 3347..3352
source/libraries/ContractInterfaces.ts on lines 3382..3387
source/libraries/ContractInterfaces.ts on lines 3452..3457
source/libraries/ContractInterfaces.ts on lines 3501..3506
source/libraries/ContractInterfaces.ts on lines 3585..3590
source/libraries/ContractInterfaces.ts on lines 3606..3611
source/libraries/ContractInterfaces.ts on lines 3613..3618
source/libraries/ContractInterfaces.ts on lines 3627..3632
source/libraries/ContractInterfaces.ts on lines 3634..3639
source/libraries/ContractInterfaces.ts on lines 3641..3646
source/libraries/ContractInterfaces.ts on lines 3711..3716
source/libraries/ContractInterfaces.ts on lines 3732..3737
source/libraries/ContractInterfaces.ts on lines 3774..3779
source/libraries/ContractInterfaces.ts on lines 3781..3786
source/libraries/ContractInterfaces.ts on lines 3788..3793
source/libraries/ContractInterfaces.ts on lines 3795..3800
source/libraries/ContractInterfaces.ts on lines 3802..3807
source/libraries/ContractInterfaces.ts on lines 3837..3842
source/libraries/ContractInterfaces.ts on lines 3872..3877
source/libraries/ContractInterfaces.ts on lines 3914..3919
source/libraries/ContractInterfaces.ts on lines 3963..3968
source/libraries/ContractInterfaces.ts on lines 4033..4038
source/libraries/ContractInterfaces.ts on lines 4061..4066
source/libraries/ContractInterfaces.ts on lines 4103..4108
source/libraries/ContractInterfaces.ts on lines 4166..4171
source/libraries/ContractInterfaces.ts on lines 4229..4234
source/libraries/ContractInterfaces.ts on lines 4327..4332
source/libraries/ContractInterfaces.ts on lines 4362..4367
source/libraries/ContractInterfaces.ts on lines 4376..4381
source/libraries/ContractInterfaces.ts on lines 4425..4430
source/libraries/ContractInterfaces.ts on lines 4474..4479
source/libraries/ContractInterfaces.ts on lines 4488..4493
source/libraries/ContractInterfaces.ts on lines 4495..4500
source/libraries/ContractInterfaces.ts on lines 4537..4542
source/libraries/ContractInterfaces.ts on lines 4621..4626
source/libraries/ContractInterfaces.ts on lines 4691..4696
source/libraries/ContractInterfaces.ts on lines 4719..4724
source/libraries/ContractInterfaces.ts on lines 4726..4731
source/libraries/ContractInterfaces.ts on lines 4754..4759
source/libraries/ContractInterfaces.ts on lines 4796..4801
source/libraries/ContractInterfaces.ts on lines 4866..4871
source/libraries/ContractInterfaces.ts on lines 4943..4948
source/libraries/ContractInterfaces.ts on lines 4985..4990
source/libraries/ContractInterfaces.ts on lines 5041..5046
source/libraries/ContractInterfaces.ts on lines 5125..5130
source/libraries/ContractInterfaces.ts on lines 5160..5165
source/libraries/ContractInterfaces.ts on lines 5181..5186
source/libraries/ContractInterfaces.ts on lines 5223..5228
source/libraries/ContractInterfaces.ts on lines 5328..5333
source/libraries/ContractInterfaces.ts on lines 5412..5417
source/libraries/ContractInterfaces.ts on lines 5482..5487
source/libraries/ContractInterfaces.ts on lines 5587..5592
source/libraries/ContractInterfaces.ts on lines 5720..5725
source/libraries/ContractInterfaces.ts on lines 5790..5795
source/libraries/ContractInterfaces.ts on lines 5839..5844
source/libraries/ContractInterfaces.ts on lines 5895..5900
source/libraries/ContractInterfaces.ts on lines 6021..6026
source/libraries/ContractInterfaces.ts on lines 6070..6075
source/libraries/ContractInterfaces.ts on lines 6091..6096
source/libraries/ContractInterfaces.ts on lines 6133..6138
source/libraries/ContractInterfaces.ts on lines 6245..6250
source/libraries/ContractInterfaces.ts on lines 6280..6285

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 143.

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 119 locations. Consider refactoring.
Open

        public getController_ = async( options?: { sender?: string }): Promise<string> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[],"name":"getController","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <string>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 118 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 57..62
source/libraries/ContractInterfaces.ts on lines 211..216
source/libraries/ContractInterfaces.ts on lines 526..531
source/libraries/ContractInterfaces.ts on lines 778..783
source/libraries/ContractInterfaces.ts on lines 827..832
source/libraries/ContractInterfaces.ts on lines 883..888
source/libraries/ContractInterfaces.ts on lines 1009..1014
source/libraries/ContractInterfaces.ts on lines 1016..1021
source/libraries/ContractInterfaces.ts on lines 1079..1084
source/libraries/ContractInterfaces.ts on lines 1128..1133
source/libraries/ContractInterfaces.ts on lines 1212..1217
source/libraries/ContractInterfaces.ts on lines 1240..1245
source/libraries/ContractInterfaces.ts on lines 1282..1287
source/libraries/ContractInterfaces.ts on lines 1345..1350
source/libraries/ContractInterfaces.ts on lines 1408..1413
source/libraries/ContractInterfaces.ts on lines 1492..1497
source/libraries/ContractInterfaces.ts on lines 1513..1518
source/libraries/ContractInterfaces.ts on lines 1534..1539
source/libraries/ContractInterfaces.ts on lines 1541..1546
source/libraries/ContractInterfaces.ts on lines 1590..1595
source/libraries/ContractInterfaces.ts on lines 1632..1637
source/libraries/ContractInterfaces.ts on lines 1667..1672
source/libraries/ContractInterfaces.ts on lines 1695..1700
source/libraries/ContractInterfaces.ts on lines 1961..1966
source/libraries/ContractInterfaces.ts on lines 1982..1987
source/libraries/ContractInterfaces.ts on lines 2003..2008
source/libraries/ContractInterfaces.ts on lines 2038..2043
source/libraries/ContractInterfaces.ts on lines 2087..2092
source/libraries/ContractInterfaces.ts on lines 2213..2218
source/libraries/ContractInterfaces.ts on lines 2339..2344
source/libraries/ContractInterfaces.ts on lines 2346..2351
source/libraries/ContractInterfaces.ts on lines 2395..2400
source/libraries/ContractInterfaces.ts on lines 2416..2421
source/libraries/ContractInterfaces.ts on lines 2423..2428
source/libraries/ContractInterfaces.ts on lines 2444..2449
source/libraries/ContractInterfaces.ts on lines 2486..2491
source/libraries/ContractInterfaces.ts on lines 2542..2547
source/libraries/ContractInterfaces.ts on lines 2577..2582
source/libraries/ContractInterfaces.ts on lines 2626..2631
source/libraries/ContractInterfaces.ts on lines 2654..2659
source/libraries/ContractInterfaces.ts on lines 2710..2715
source/libraries/ContractInterfaces.ts on lines 2780..2785
source/libraries/ContractInterfaces.ts on lines 2829..2834
source/libraries/ContractInterfaces.ts on lines 2878..2883
source/libraries/ContractInterfaces.ts on lines 2899..2904
source/libraries/ContractInterfaces.ts on lines 2927..2932
source/libraries/ContractInterfaces.ts on lines 2990..2995
source/libraries/ContractInterfaces.ts on lines 3067..3072
source/libraries/ContractInterfaces.ts on lines 3109..3114
source/libraries/ContractInterfaces.ts on lines 3123..3128
source/libraries/ContractInterfaces.ts on lines 3200..3205
source/libraries/ContractInterfaces.ts on lines 3207..3212
source/libraries/ContractInterfaces.ts on lines 3235..3240
source/libraries/ContractInterfaces.ts on lines 3256..3261
source/libraries/ContractInterfaces.ts on lines 3277..3282
source/libraries/ContractInterfaces.ts on lines 3298..3303
source/libraries/ContractInterfaces.ts on lines 3347..3352
source/libraries/ContractInterfaces.ts on lines 3382..3387
source/libraries/ContractInterfaces.ts on lines 3452..3457
source/libraries/ContractInterfaces.ts on lines 3501..3506
source/libraries/ContractInterfaces.ts on lines 3585..3590
source/libraries/ContractInterfaces.ts on lines 3606..3611
source/libraries/ContractInterfaces.ts on lines 3613..3618
source/libraries/ContractInterfaces.ts on lines 3627..3632
source/libraries/ContractInterfaces.ts on lines 3634..3639
source/libraries/ContractInterfaces.ts on lines 3641..3646
source/libraries/ContractInterfaces.ts on lines 3711..3716
source/libraries/ContractInterfaces.ts on lines 3732..3737
source/libraries/ContractInterfaces.ts on lines 3774..3779
source/libraries/ContractInterfaces.ts on lines 3781..3786
source/libraries/ContractInterfaces.ts on lines 3788..3793
source/libraries/ContractInterfaces.ts on lines 3795..3800
source/libraries/ContractInterfaces.ts on lines 3802..3807
source/libraries/ContractInterfaces.ts on lines 3837..3842
source/libraries/ContractInterfaces.ts on lines 3872..3877
source/libraries/ContractInterfaces.ts on lines 3914..3919
source/libraries/ContractInterfaces.ts on lines 3963..3968
source/libraries/ContractInterfaces.ts on lines 4033..4038
source/libraries/ContractInterfaces.ts on lines 4061..4066
source/libraries/ContractInterfaces.ts on lines 4103..4108
source/libraries/ContractInterfaces.ts on lines 4166..4171
source/libraries/ContractInterfaces.ts on lines 4229..4234
source/libraries/ContractInterfaces.ts on lines 4327..4332
source/libraries/ContractInterfaces.ts on lines 4362..4367
source/libraries/ContractInterfaces.ts on lines 4376..4381
source/libraries/ContractInterfaces.ts on lines 4425..4430
source/libraries/ContractInterfaces.ts on lines 4474..4479
source/libraries/ContractInterfaces.ts on lines 4488..4493
source/libraries/ContractInterfaces.ts on lines 4495..4500
source/libraries/ContractInterfaces.ts on lines 4537..4542
source/libraries/ContractInterfaces.ts on lines 4621..4626
source/libraries/ContractInterfaces.ts on lines 4691..4696
source/libraries/ContractInterfaces.ts on lines 4719..4724
source/libraries/ContractInterfaces.ts on lines 4726..4731
source/libraries/ContractInterfaces.ts on lines 4754..4759
source/libraries/ContractInterfaces.ts on lines 4796..4801
source/libraries/ContractInterfaces.ts on lines 4866..4871
source/libraries/ContractInterfaces.ts on lines 4943..4948
source/libraries/ContractInterfaces.ts on lines 4985..4990
source/libraries/ContractInterfaces.ts on lines 5041..5046
source/libraries/ContractInterfaces.ts on lines 5125..5130
source/libraries/ContractInterfaces.ts on lines 5160..5165
source/libraries/ContractInterfaces.ts on lines 5181..5186
source/libraries/ContractInterfaces.ts on lines 5223..5228
source/libraries/ContractInterfaces.ts on lines 5328..5333
source/libraries/ContractInterfaces.ts on lines 5412..5417
source/libraries/ContractInterfaces.ts on lines 5482..5487
source/libraries/ContractInterfaces.ts on lines 5587..5592
source/libraries/ContractInterfaces.ts on lines 5720..5725
source/libraries/ContractInterfaces.ts on lines 5839..5844
source/libraries/ContractInterfaces.ts on lines 5895..5900
source/libraries/ContractInterfaces.ts on lines 6000..6005
source/libraries/ContractInterfaces.ts on lines 6021..6026
source/libraries/ContractInterfaces.ts on lines 6070..6075
source/libraries/ContractInterfaces.ts on lines 6091..6096
source/libraries/ContractInterfaces.ts on lines 6133..6138
source/libraries/ContractInterfaces.ts on lines 6245..6250
source/libraries/ContractInterfaces.ts on lines 6280..6285

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 143.

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 119 locations. Consider refactoring.
Open

        public getController_ = async( options?: { sender?: string }): Promise<string> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[],"name":"getController","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <string>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 118 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 57..62
source/libraries/ContractInterfaces.ts on lines 211..216
source/libraries/ContractInterfaces.ts on lines 526..531
source/libraries/ContractInterfaces.ts on lines 778..783
source/libraries/ContractInterfaces.ts on lines 827..832
source/libraries/ContractInterfaces.ts on lines 883..888
source/libraries/ContractInterfaces.ts on lines 1009..1014
source/libraries/ContractInterfaces.ts on lines 1016..1021
source/libraries/ContractInterfaces.ts on lines 1079..1084
source/libraries/ContractInterfaces.ts on lines 1128..1133
source/libraries/ContractInterfaces.ts on lines 1212..1217
source/libraries/ContractInterfaces.ts on lines 1240..1245
source/libraries/ContractInterfaces.ts on lines 1282..1287
source/libraries/ContractInterfaces.ts on lines 1345..1350
source/libraries/ContractInterfaces.ts on lines 1408..1413
source/libraries/ContractInterfaces.ts on lines 1492..1497
source/libraries/ContractInterfaces.ts on lines 1513..1518
source/libraries/ContractInterfaces.ts on lines 1534..1539
source/libraries/ContractInterfaces.ts on lines 1541..1546
source/libraries/ContractInterfaces.ts on lines 1590..1595
source/libraries/ContractInterfaces.ts on lines 1632..1637
source/libraries/ContractInterfaces.ts on lines 1667..1672
source/libraries/ContractInterfaces.ts on lines 1695..1700
source/libraries/ContractInterfaces.ts on lines 1961..1966
source/libraries/ContractInterfaces.ts on lines 1982..1987
source/libraries/ContractInterfaces.ts on lines 2003..2008
source/libraries/ContractInterfaces.ts on lines 2038..2043
source/libraries/ContractInterfaces.ts on lines 2087..2092
source/libraries/ContractInterfaces.ts on lines 2213..2218
source/libraries/ContractInterfaces.ts on lines 2339..2344
source/libraries/ContractInterfaces.ts on lines 2346..2351
source/libraries/ContractInterfaces.ts on lines 2395..2400
source/libraries/ContractInterfaces.ts on lines 2416..2421
source/libraries/ContractInterfaces.ts on lines 2423..2428
source/libraries/ContractInterfaces.ts on lines 2444..2449
source/libraries/ContractInterfaces.ts on lines 2486..2491
source/libraries/ContractInterfaces.ts on lines 2542..2547
source/libraries/ContractInterfaces.ts on lines 2577..2582
source/libraries/ContractInterfaces.ts on lines 2626..2631
source/libraries/ContractInterfaces.ts on lines 2654..2659
source/libraries/ContractInterfaces.ts on lines 2710..2715
source/libraries/ContractInterfaces.ts on lines 2780..2785
source/libraries/ContractInterfaces.ts on lines 2829..2834
source/libraries/ContractInterfaces.ts on lines 2878..2883
source/libraries/ContractInterfaces.ts on lines 2899..2904
source/libraries/ContractInterfaces.ts on lines 2927..2932
source/libraries/ContractInterfaces.ts on lines 2990..2995
source/libraries/ContractInterfaces.ts on lines 3067..3072
source/libraries/ContractInterfaces.ts on lines 3109..3114
source/libraries/ContractInterfaces.ts on lines 3123..3128
source/libraries/ContractInterfaces.ts on lines 3200..3205
source/libraries/ContractInterfaces.ts on lines 3207..3212
source/libraries/ContractInterfaces.ts on lines 3235..3240
source/libraries/ContractInterfaces.ts on lines 3256..3261
source/libraries/ContractInterfaces.ts on lines 3277..3282
source/libraries/ContractInterfaces.ts on lines 3298..3303
source/libraries/ContractInterfaces.ts on lines 3347..3352
source/libraries/ContractInterfaces.ts on lines 3382..3387
source/libraries/ContractInterfaces.ts on lines 3452..3457
source/libraries/ContractInterfaces.ts on lines 3501..3506
source/libraries/ContractInterfaces.ts on lines 3585..3590
source/libraries/ContractInterfaces.ts on lines 3606..3611
source/libraries/ContractInterfaces.ts on lines 3613..3618
source/libraries/ContractInterfaces.ts on lines 3627..3632
source/libraries/ContractInterfaces.ts on lines 3634..3639
source/libraries/ContractInterfaces.ts on lines 3641..3646
source/libraries/ContractInterfaces.ts on lines 3711..3716
source/libraries/ContractInterfaces.ts on lines 3732..3737
source/libraries/ContractInterfaces.ts on lines 3774..3779
source/libraries/ContractInterfaces.ts on lines 3781..3786
source/libraries/ContractInterfaces.ts on lines 3788..3793
source/libraries/ContractInterfaces.ts on lines 3795..3800
source/libraries/ContractInterfaces.ts on lines 3802..3807
source/libraries/ContractInterfaces.ts on lines 3837..3842
source/libraries/ContractInterfaces.ts on lines 3872..3877
source/libraries/ContractInterfaces.ts on lines 3914..3919
source/libraries/ContractInterfaces.ts on lines 3963..3968
source/libraries/ContractInterfaces.ts on lines 4033..4038
source/libraries/ContractInterfaces.ts on lines 4061..4066
source/libraries/ContractInterfaces.ts on lines 4103..4108
source/libraries/ContractInterfaces.ts on lines 4166..4171
source/libraries/ContractInterfaces.ts on lines 4229..4234
source/libraries/ContractInterfaces.ts on lines 4327..4332
source/libraries/ContractInterfaces.ts on lines 4362..4367
source/libraries/ContractInterfaces.ts on lines 4376..4381
source/libraries/ContractInterfaces.ts on lines 4425..4430
source/libraries/ContractInterfaces.ts on lines 4474..4479
source/libraries/ContractInterfaces.ts on lines 4488..4493
source/libraries/ContractInterfaces.ts on lines 4495..4500
source/libraries/ContractInterfaces.ts on lines 4537..4542
source/libraries/ContractInterfaces.ts on lines 4621..4626
source/libraries/ContractInterfaces.ts on lines 4691..4696
source/libraries/ContractInterfaces.ts on lines 4719..4724
source/libraries/ContractInterfaces.ts on lines 4726..4731
source/libraries/ContractInterfaces.ts on lines 4754..4759
source/libraries/ContractInterfaces.ts on lines 4796..4801
source/libraries/ContractInterfaces.ts on lines 4866..4871
source/libraries/ContractInterfaces.ts on lines 4943..4948
source/libraries/ContractInterfaces.ts on lines 4985..4990
source/libraries/ContractInterfaces.ts on lines 5041..5046
source/libraries/ContractInterfaces.ts on lines 5125..5130
source/libraries/ContractInterfaces.ts on lines 5160..5165
source/libraries/ContractInterfaces.ts on lines 5181..5186
source/libraries/ContractInterfaces.ts on lines 5223..5228
source/libraries/ContractInterfaces.ts on lines 5328..5333
source/libraries/ContractInterfaces.ts on lines 5482..5487
source/libraries/ContractInterfaces.ts on lines 5587..5592
source/libraries/ContractInterfaces.ts on lines 5720..5725
source/libraries/ContractInterfaces.ts on lines 5790..5795
source/libraries/ContractInterfaces.ts on lines 5839..5844
source/libraries/ContractInterfaces.ts on lines 5895..5900
source/libraries/ContractInterfaces.ts on lines 6000..6005
source/libraries/ContractInterfaces.ts on lines 6021..6026
source/libraries/ContractInterfaces.ts on lines 6070..6075
source/libraries/ContractInterfaces.ts on lines 6091..6096
source/libraries/ContractInterfaces.ts on lines 6133..6138
source/libraries/ContractInterfaces.ts on lines 6245..6250
source/libraries/ContractInterfaces.ts on lines 6280..6285

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 143.

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 119 locations. Consider refactoring.
Open

        public controllerLookupName_ = async( options?: { sender?: string }): Promise<string> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[],"name":"controllerLookupName","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <string>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 118 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 57..62
source/libraries/ContractInterfaces.ts on lines 211..216
source/libraries/ContractInterfaces.ts on lines 526..531
source/libraries/ContractInterfaces.ts on lines 778..783
source/libraries/ContractInterfaces.ts on lines 827..832
source/libraries/ContractInterfaces.ts on lines 883..888
source/libraries/ContractInterfaces.ts on lines 1009..1014
source/libraries/ContractInterfaces.ts on lines 1016..1021
source/libraries/ContractInterfaces.ts on lines 1079..1084
source/libraries/ContractInterfaces.ts on lines 1128..1133
source/libraries/ContractInterfaces.ts on lines 1212..1217
source/libraries/ContractInterfaces.ts on lines 1240..1245
source/libraries/ContractInterfaces.ts on lines 1282..1287
source/libraries/ContractInterfaces.ts on lines 1345..1350
source/libraries/ContractInterfaces.ts on lines 1408..1413
source/libraries/ContractInterfaces.ts on lines 1492..1497
source/libraries/ContractInterfaces.ts on lines 1513..1518
source/libraries/ContractInterfaces.ts on lines 1534..1539
source/libraries/ContractInterfaces.ts on lines 1541..1546
source/libraries/ContractInterfaces.ts on lines 1590..1595
source/libraries/ContractInterfaces.ts on lines 1632..1637
source/libraries/ContractInterfaces.ts on lines 1667..1672
source/libraries/ContractInterfaces.ts on lines 1695..1700
source/libraries/ContractInterfaces.ts on lines 1961..1966
source/libraries/ContractInterfaces.ts on lines 1982..1987
source/libraries/ContractInterfaces.ts on lines 2003..2008
source/libraries/ContractInterfaces.ts on lines 2038..2043
source/libraries/ContractInterfaces.ts on lines 2087..2092
source/libraries/ContractInterfaces.ts on lines 2213..2218
source/libraries/ContractInterfaces.ts on lines 2339..2344
source/libraries/ContractInterfaces.ts on lines 2346..2351
source/libraries/ContractInterfaces.ts on lines 2395..2400
source/libraries/ContractInterfaces.ts on lines 2416..2421
source/libraries/ContractInterfaces.ts on lines 2423..2428
source/libraries/ContractInterfaces.ts on lines 2444..2449
source/libraries/ContractInterfaces.ts on lines 2486..2491
source/libraries/ContractInterfaces.ts on lines 2542..2547
source/libraries/ContractInterfaces.ts on lines 2577..2582
source/libraries/ContractInterfaces.ts on lines 2626..2631
source/libraries/ContractInterfaces.ts on lines 2654..2659
source/libraries/ContractInterfaces.ts on lines 2710..2715
source/libraries/ContractInterfaces.ts on lines 2780..2785
source/libraries/ContractInterfaces.ts on lines 2829..2834
source/libraries/ContractInterfaces.ts on lines 2878..2883
source/libraries/ContractInterfaces.ts on lines 2899..2904
source/libraries/ContractInterfaces.ts on lines 2927..2932
source/libraries/ContractInterfaces.ts on lines 2990..2995
source/libraries/ContractInterfaces.ts on lines 3067..3072
source/libraries/ContractInterfaces.ts on lines 3109..3114
source/libraries/ContractInterfaces.ts on lines 3123..3128
source/libraries/ContractInterfaces.ts on lines 3200..3205
source/libraries/ContractInterfaces.ts on lines 3207..3212
source/libraries/ContractInterfaces.ts on lines 3235..3240
source/libraries/ContractInterfaces.ts on lines 3256..3261
source/libraries/ContractInterfaces.ts on lines 3277..3282
source/libraries/ContractInterfaces.ts on lines 3298..3303
source/libraries/ContractInterfaces.ts on lines 3347..3352
source/libraries/ContractInterfaces.ts on lines 3382..3387
source/libraries/ContractInterfaces.ts on lines 3452..3457
source/libraries/ContractInterfaces.ts on lines 3501..3506
source/libraries/ContractInterfaces.ts on lines 3585..3590
source/libraries/ContractInterfaces.ts on lines 3606..3611
source/libraries/ContractInterfaces.ts on lines 3613..3618
source/libraries/ContractInterfaces.ts on lines 3627..3632
source/libraries/ContractInterfaces.ts on lines 3634..3639
source/libraries/ContractInterfaces.ts on lines 3641..3646
source/libraries/ContractInterfaces.ts on lines 3711..3716
source/libraries/ContractInterfaces.ts on lines 3732..3737
source/libraries/ContractInterfaces.ts on lines 3774..3779
source/libraries/ContractInterfaces.ts on lines 3781..3786
source/libraries/ContractInterfaces.ts on lines 3788..3793
source/libraries/ContractInterfaces.ts on lines 3795..3800
source/libraries/ContractInterfaces.ts on lines 3802..3807
source/libraries/ContractInterfaces.ts on lines 3837..3842
source/libraries/ContractInterfaces.ts on lines 3872..3877
source/libraries/ContractInterfaces.ts on lines 3914..3919
source/libraries/ContractInterfaces.ts on lines 3963..3968
source/libraries/ContractInterfaces.ts on lines 4033..4038
source/libraries/ContractInterfaces.ts on lines 4061..4066
source/libraries/ContractInterfaces.ts on lines 4103..4108
source/libraries/ContractInterfaces.ts on lines 4166..4171
source/libraries/ContractInterfaces.ts on lines 4229..4234
source/libraries/ContractInterfaces.ts on lines 4327..4332
source/libraries/ContractInterfaces.ts on lines 4362..4367
source/libraries/ContractInterfaces.ts on lines 4376..4381
source/libraries/ContractInterfaces.ts on lines 4425..4430
source/libraries/ContractInterfaces.ts on lines 4474..4479
source/libraries/ContractInterfaces.ts on lines 4488..4493
source/libraries/ContractInterfaces.ts on lines 4495..4500
source/libraries/ContractInterfaces.ts on lines 4537..4542
source/libraries/ContractInterfaces.ts on lines 4621..4626
source/libraries/ContractInterfaces.ts on lines 4691..4696
source/libraries/ContractInterfaces.ts on lines 4719..4724
source/libraries/ContractInterfaces.ts on lines 4726..4731
source/libraries/ContractInterfaces.ts on lines 4754..4759
source/libraries/ContractInterfaces.ts on lines 4796..4801
source/libraries/ContractInterfaces.ts on lines 4866..4871
source/libraries/ContractInterfaces.ts on lines 4943..4948
source/libraries/ContractInterfaces.ts on lines 4985..4990
source/libraries/ContractInterfaces.ts on lines 5041..5046
source/libraries/ContractInterfaces.ts on lines 5125..5130
source/libraries/ContractInterfaces.ts on lines 5160..5165
source/libraries/ContractInterfaces.ts on lines 5181..5186
source/libraries/ContractInterfaces.ts on lines 5223..5228
source/libraries/ContractInterfaces.ts on lines 5328..5333
source/libraries/ContractInterfaces.ts on lines 5412..5417
source/libraries/ContractInterfaces.ts on lines 5482..5487
source/libraries/ContractInterfaces.ts on lines 5587..5592
source/libraries/ContractInterfaces.ts on lines 5720..5725
source/libraries/ContractInterfaces.ts on lines 5790..5795
source/libraries/ContractInterfaces.ts on lines 5839..5844
source/libraries/ContractInterfaces.ts on lines 5895..5900
source/libraries/ContractInterfaces.ts on lines 6000..6005
source/libraries/ContractInterfaces.ts on lines 6070..6075
source/libraries/ContractInterfaces.ts on lines 6091..6096
source/libraries/ContractInterfaces.ts on lines 6133..6138
source/libraries/ContractInterfaces.ts on lines 6245..6250
source/libraries/ContractInterfaces.ts on lines 6280..6285

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 143.

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 119 locations. Consider refactoring.
Open

        public controllerLookupName_ = async( options?: { sender?: string }): Promise<string> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[],"name":"controllerLookupName","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <string>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 118 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 57..62
source/libraries/ContractInterfaces.ts on lines 211..216
source/libraries/ContractInterfaces.ts on lines 526..531
source/libraries/ContractInterfaces.ts on lines 778..783
source/libraries/ContractInterfaces.ts on lines 827..832
source/libraries/ContractInterfaces.ts on lines 883..888
source/libraries/ContractInterfaces.ts on lines 1009..1014
source/libraries/ContractInterfaces.ts on lines 1016..1021
source/libraries/ContractInterfaces.ts on lines 1079..1084
source/libraries/ContractInterfaces.ts on lines 1128..1133
source/libraries/ContractInterfaces.ts on lines 1212..1217
source/libraries/ContractInterfaces.ts on lines 1240..1245
source/libraries/ContractInterfaces.ts on lines 1282..1287
source/libraries/ContractInterfaces.ts on lines 1345..1350
source/libraries/ContractInterfaces.ts on lines 1408..1413
source/libraries/ContractInterfaces.ts on lines 1492..1497
source/libraries/ContractInterfaces.ts on lines 1513..1518
source/libraries/ContractInterfaces.ts on lines 1534..1539
source/libraries/ContractInterfaces.ts on lines 1541..1546
source/libraries/ContractInterfaces.ts on lines 1590..1595
source/libraries/ContractInterfaces.ts on lines 1632..1637
source/libraries/ContractInterfaces.ts on lines 1667..1672
source/libraries/ContractInterfaces.ts on lines 1695..1700
source/libraries/ContractInterfaces.ts on lines 1961..1966
source/libraries/ContractInterfaces.ts on lines 1982..1987
source/libraries/ContractInterfaces.ts on lines 2003..2008
source/libraries/ContractInterfaces.ts on lines 2038..2043
source/libraries/ContractInterfaces.ts on lines 2087..2092
source/libraries/ContractInterfaces.ts on lines 2213..2218
source/libraries/ContractInterfaces.ts on lines 2339..2344
source/libraries/ContractInterfaces.ts on lines 2346..2351
source/libraries/ContractInterfaces.ts on lines 2395..2400
source/libraries/ContractInterfaces.ts on lines 2416..2421
source/libraries/ContractInterfaces.ts on lines 2423..2428
source/libraries/ContractInterfaces.ts on lines 2444..2449
source/libraries/ContractInterfaces.ts on lines 2486..2491
source/libraries/ContractInterfaces.ts on lines 2542..2547
source/libraries/ContractInterfaces.ts on lines 2577..2582
source/libraries/ContractInterfaces.ts on lines 2626..2631
source/libraries/ContractInterfaces.ts on lines 2654..2659
source/libraries/ContractInterfaces.ts on lines 2710..2715
source/libraries/ContractInterfaces.ts on lines 2780..2785
source/libraries/ContractInterfaces.ts on lines 2829..2834
source/libraries/ContractInterfaces.ts on lines 2878..2883
source/libraries/ContractInterfaces.ts on lines 2899..2904
source/libraries/ContractInterfaces.ts on lines 2927..2932
source/libraries/ContractInterfaces.ts on lines 2990..2995
source/libraries/ContractInterfaces.ts on lines 3067..3072
source/libraries/ContractInterfaces.ts on lines 3109..3114
source/libraries/ContractInterfaces.ts on lines 3123..3128
source/libraries/ContractInterfaces.ts on lines 3200..3205
source/libraries/ContractInterfaces.ts on lines 3207..3212
source/libraries/ContractInterfaces.ts on lines 3235..3240
source/libraries/ContractInterfaces.ts on lines 3256..3261
source/libraries/ContractInterfaces.ts on lines 3277..3282
source/libraries/ContractInterfaces.ts on lines 3298..3303
source/libraries/ContractInterfaces.ts on lines 3347..3352
source/libraries/ContractInterfaces.ts on lines 3382..3387
source/libraries/ContractInterfaces.ts on lines 3452..3457
source/libraries/ContractInterfaces.ts on lines 3501..3506
source/libraries/ContractInterfaces.ts on lines 3585..3590
source/libraries/ContractInterfaces.ts on lines 3606..3611
source/libraries/ContractInterfaces.ts on lines 3613..3618
source/libraries/ContractInterfaces.ts on lines 3627..3632
source/libraries/ContractInterfaces.ts on lines 3634..3639
source/libraries/ContractInterfaces.ts on lines 3641..3646
source/libraries/ContractInterfaces.ts on lines 3711..3716
source/libraries/ContractInterfaces.ts on lines 3732..3737
source/libraries/ContractInterfaces.ts on lines 3774..3779
source/libraries/ContractInterfaces.ts on lines 3781..3786
source/libraries/ContractInterfaces.ts on lines 3788..3793
source/libraries/ContractInterfaces.ts on lines 3795..3800
source/libraries/ContractInterfaces.ts on lines 3802..3807
source/libraries/ContractInterfaces.ts on lines 3837..3842
source/libraries/ContractInterfaces.ts on lines 3872..3877
source/libraries/ContractInterfaces.ts on lines 3914..3919
source/libraries/ContractInterfaces.ts on lines 3963..3968
source/libraries/ContractInterfaces.ts on lines 4033..4038
source/libraries/ContractInterfaces.ts on lines 4061..4066
source/libraries/ContractInterfaces.ts on lines 4103..4108
source/libraries/ContractInterfaces.ts on lines 4166..4171
source/libraries/ContractInterfaces.ts on lines 4229..4234
source/libraries/ContractInterfaces.ts on lines 4327..4332
source/libraries/ContractInterfaces.ts on lines 4362..4367
source/libraries/ContractInterfaces.ts on lines 4376..4381
source/libraries/ContractInterfaces.ts on lines 4425..4430
source/libraries/ContractInterfaces.ts on lines 4474..4479
source/libraries/ContractInterfaces.ts on lines 4488..4493
source/libraries/ContractInterfaces.ts on lines 4495..4500
source/libraries/ContractInterfaces.ts on lines 4537..4542
source/libraries/ContractInterfaces.ts on lines 4621..4626
source/libraries/ContractInterfaces.ts on lines 4691..4696
source/libraries/ContractInterfaces.ts on lines 4719..4724
source/libraries/ContractInterfaces.ts on lines 4726..4731
source/libraries/ContractInterfaces.ts on lines 4754..4759
source/libraries/ContractInterfaces.ts on lines 4796..4801
source/libraries/ContractInterfaces.ts on lines 4866..4871
source/libraries/ContractInterfaces.ts on lines 4943..4948
source/libraries/ContractInterfaces.ts on lines 4985..4990
source/libraries/ContractInterfaces.ts on lines 5041..5046
source/libraries/ContractInterfaces.ts on lines 5125..5130
source/libraries/ContractInterfaces.ts on lines 5160..5165
source/libraries/ContractInterfaces.ts on lines 5181..5186
source/libraries/ContractInterfaces.ts on lines 5223..5228
source/libraries/ContractInterfaces.ts on lines 5328..5333
source/libraries/ContractInterfaces.ts on lines 5412..5417
source/libraries/ContractInterfaces.ts on lines 5482..5487
source/libraries/ContractInterfaces.ts on lines 5587..5592
source/libraries/ContractInterfaces.ts on lines 5720..5725
source/libraries/ContractInterfaces.ts on lines 5790..5795
source/libraries/ContractInterfaces.ts on lines 5839..5844
source/libraries/ContractInterfaces.ts on lines 5895..5900
source/libraries/ContractInterfaces.ts on lines 6000..6005
source/libraries/ContractInterfaces.ts on lines 6021..6026
source/libraries/ContractInterfaces.ts on lines 6070..6075
source/libraries/ContractInterfaces.ts on lines 6091..6096
source/libraries/ContractInterfaces.ts on lines 6133..6138
source/libraries/ContractInterfaces.ts on lines 6245..6250

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 143.

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 62 locations. Consider refactoring.
Open

        public onMarketFinalized_ = async( options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"onMarketFinalized","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <boolean>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 61 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 281..286
source/libraries/ContractInterfaces.ts on lines 743..748
source/libraries/ContractInterfaces.ts on lines 764..769
source/libraries/ContractInterfaces.ts on lines 792..797
source/libraries/ContractInterfaces.ts on lines 799..804
source/libraries/ContractInterfaces.ts on lines 939..944
source/libraries/ContractInterfaces.ts on lines 960..965
source/libraries/ContractInterfaces.ts on lines 1002..1007
source/libraries/ContractInterfaces.ts on lines 1219..1224
source/libraries/ContractInterfaces.ts on lines 1310..1315
source/libraries/ContractInterfaces.ts on lines 1443..1448
source/libraries/ContractInterfaces.ts on lines 1625..1630
source/libraries/ContractInterfaces.ts on lines 2115..2120
source/libraries/ContractInterfaces.ts on lines 2143..2148
source/libraries/ContractInterfaces.ts on lines 2178..2183
source/libraries/ContractInterfaces.ts on lines 2192..2197
source/libraries/ContractInterfaces.ts on lines 2227..2232
source/libraries/ContractInterfaces.ts on lines 2290..2295
source/libraries/ContractInterfaces.ts on lines 2360..2365
source/libraries/ContractInterfaces.ts on lines 2409..2414
source/libraries/ContractInterfaces.ts on lines 2619..2624
source/libraries/ContractInterfaces.ts on lines 2682..2687
source/libraries/ContractInterfaces.ts on lines 2871..2876
source/libraries/ContractInterfaces.ts on lines 2892..2897
source/libraries/ContractInterfaces.ts on lines 2913..2918
source/libraries/ContractInterfaces.ts on lines 3004..3009
source/libraries/ContractInterfaces.ts on lines 3018..3023
source/libraries/ContractInterfaces.ts on lines 3032..3037
source/libraries/ContractInterfaces.ts on lines 3046..3051
source/libraries/ContractInterfaces.ts on lines 3060..3065
source/libraries/ContractInterfaces.ts on lines 3074..3079
source/libraries/ContractInterfaces.ts on lines 3116..3121
source/libraries/ContractInterfaces.ts on lines 3130..3135
source/libraries/ContractInterfaces.ts on lines 3144..3149
source/libraries/ContractInterfaces.ts on lines 3193..3198
source/libraries/ContractInterfaces.ts on lines 3221..3226
source/libraries/ContractInterfaces.ts on lines 3249..3254
source/libraries/ContractInterfaces.ts on lines 3340..3345
source/libraries/ContractInterfaces.ts on lines 3389..3394
source/libraries/ContractInterfaces.ts on lines 3417..3422
source/libraries/ContractInterfaces.ts on lines 3431..3436
source/libraries/ContractInterfaces.ts on lines 3515..3520
source/libraries/ContractInterfaces.ts on lines 3543..3548
source/libraries/ContractInterfaces.ts on lines 3557..3562
source/libraries/ContractInterfaces.ts on lines 3648..3653
source/libraries/ContractInterfaces.ts on lines 3662..3667
source/libraries/ContractInterfaces.ts on lines 3669..3674
source/libraries/ContractInterfaces.ts on lines 3697..3702
source/libraries/ContractInterfaces.ts on lines 3753..3758
source/libraries/ContractInterfaces.ts on lines 3767..3772
source/libraries/ContractInterfaces.ts on lines 3809..3814
source/libraries/ContractInterfaces.ts on lines 4040..4045
source/libraries/ContractInterfaces.ts on lines 4131..4136
source/libraries/ContractInterfaces.ts on lines 4264..4269
source/libraries/ContractInterfaces.ts on lines 4404..4409
source/libraries/ContractInterfaces.ts on lines 4523..4528
source/libraries/ContractInterfaces.ts on lines 4607..4612
source/libraries/ContractInterfaces.ts on lines 4712..4717
source/libraries/ContractInterfaces.ts on lines 4873..4878
source/libraries/ContractInterfaces.ts on lines 4929..4934
source/libraries/ContractInterfaces.ts on lines 6084..6089

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 143.

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 62 locations. Consider refactoring.
Open

        public isInvalid_ = async( options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[],"name":"isInvalid","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <boolean>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 61 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 281..286
source/libraries/ContractInterfaces.ts on lines 743..748
source/libraries/ContractInterfaces.ts on lines 764..769
source/libraries/ContractInterfaces.ts on lines 792..797
source/libraries/ContractInterfaces.ts on lines 799..804
source/libraries/ContractInterfaces.ts on lines 939..944
source/libraries/ContractInterfaces.ts on lines 960..965
source/libraries/ContractInterfaces.ts on lines 1002..1007
source/libraries/ContractInterfaces.ts on lines 1219..1224
source/libraries/ContractInterfaces.ts on lines 1310..1315
source/libraries/ContractInterfaces.ts on lines 1443..1448
source/libraries/ContractInterfaces.ts on lines 1625..1630
source/libraries/ContractInterfaces.ts on lines 2115..2120
source/libraries/ContractInterfaces.ts on lines 2143..2148
source/libraries/ContractInterfaces.ts on lines 2178..2183
source/libraries/ContractInterfaces.ts on lines 2192..2197
source/libraries/ContractInterfaces.ts on lines 2227..2232
source/libraries/ContractInterfaces.ts on lines 2290..2295
source/libraries/ContractInterfaces.ts on lines 2360..2365
source/libraries/ContractInterfaces.ts on lines 2409..2414
source/libraries/ContractInterfaces.ts on lines 2619..2624
source/libraries/ContractInterfaces.ts on lines 2682..2687
source/libraries/ContractInterfaces.ts on lines 2794..2799
source/libraries/ContractInterfaces.ts on lines 2871..2876
source/libraries/ContractInterfaces.ts on lines 2892..2897
source/libraries/ContractInterfaces.ts on lines 2913..2918
source/libraries/ContractInterfaces.ts on lines 3004..3009
source/libraries/ContractInterfaces.ts on lines 3018..3023
source/libraries/ContractInterfaces.ts on lines 3032..3037
source/libraries/ContractInterfaces.ts on lines 3046..3051
source/libraries/ContractInterfaces.ts on lines 3060..3065
source/libraries/ContractInterfaces.ts on lines 3074..3079
source/libraries/ContractInterfaces.ts on lines 3116..3121
source/libraries/ContractInterfaces.ts on lines 3130..3135
source/libraries/ContractInterfaces.ts on lines 3144..3149
source/libraries/ContractInterfaces.ts on lines 3193..3198
source/libraries/ContractInterfaces.ts on lines 3221..3226
source/libraries/ContractInterfaces.ts on lines 3249..3254
source/libraries/ContractInterfaces.ts on lines 3340..3345
source/libraries/ContractInterfaces.ts on lines 3389..3394
source/libraries/ContractInterfaces.ts on lines 3431..3436
source/libraries/ContractInterfaces.ts on lines 3515..3520
source/libraries/ContractInterfaces.ts on lines 3543..3548
source/libraries/ContractInterfaces.ts on lines 3557..3562
source/libraries/ContractInterfaces.ts on lines 3648..3653
source/libraries/ContractInterfaces.ts on lines 3662..3667
source/libraries/ContractInterfaces.ts on lines 3669..3674
source/libraries/ContractInterfaces.ts on lines 3697..3702
source/libraries/ContractInterfaces.ts on lines 3753..3758
source/libraries/ContractInterfaces.ts on lines 3767..3772
source/libraries/ContractInterfaces.ts on lines 3809..3814
source/libraries/ContractInterfaces.ts on lines 4040..4045
source/libraries/ContractInterfaces.ts on lines 4131..4136
source/libraries/ContractInterfaces.ts on lines 4264..4269
source/libraries/ContractInterfaces.ts on lines 4404..4409
source/libraries/ContractInterfaces.ts on lines 4523..4528
source/libraries/ContractInterfaces.ts on lines 4607..4612
source/libraries/ContractInterfaces.ts on lines 4712..4717
source/libraries/ContractInterfaces.ts on lines 4873..4878
source/libraries/ContractInterfaces.ts on lines 4929..4934
source/libraries/ContractInterfaces.ts on lines 6084..6089

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 143.

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 62 locations. Consider refactoring.
Open

        public withdrawInEmergency_ = async( options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"withdrawInEmergency","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <boolean>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 61 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 281..286
source/libraries/ContractInterfaces.ts on lines 743..748
source/libraries/ContractInterfaces.ts on lines 764..769
source/libraries/ContractInterfaces.ts on lines 792..797
source/libraries/ContractInterfaces.ts on lines 799..804
source/libraries/ContractInterfaces.ts on lines 939..944
source/libraries/ContractInterfaces.ts on lines 960..965
source/libraries/ContractInterfaces.ts on lines 1002..1007
source/libraries/ContractInterfaces.ts on lines 1219..1224
source/libraries/ContractInterfaces.ts on lines 1310..1315
source/libraries/ContractInterfaces.ts on lines 1443..1448
source/libraries/ContractInterfaces.ts on lines 1625..1630
source/libraries/ContractInterfaces.ts on lines 2115..2120
source/libraries/ContractInterfaces.ts on lines 2143..2148
source/libraries/ContractInterfaces.ts on lines 2178..2183
source/libraries/ContractInterfaces.ts on lines 2192..2197
source/libraries/ContractInterfaces.ts on lines 2227..2232
source/libraries/ContractInterfaces.ts on lines 2290..2295
source/libraries/ContractInterfaces.ts on lines 2360..2365
source/libraries/ContractInterfaces.ts on lines 2409..2414
source/libraries/ContractInterfaces.ts on lines 2619..2624
source/libraries/ContractInterfaces.ts on lines 2682..2687
source/libraries/ContractInterfaces.ts on lines 2794..2799
source/libraries/ContractInterfaces.ts on lines 2871..2876
source/libraries/ContractInterfaces.ts on lines 2892..2897
source/libraries/ContractInterfaces.ts on lines 2913..2918
source/libraries/ContractInterfaces.ts on lines 3004..3009
source/libraries/ContractInterfaces.ts on lines 3018..3023
source/libraries/ContractInterfaces.ts on lines 3032..3037
source/libraries/ContractInterfaces.ts on lines 3046..3051
source/libraries/ContractInterfaces.ts on lines 3060..3065
source/libraries/ContractInterfaces.ts on lines 3074..3079
source/libraries/ContractInterfaces.ts on lines 3116..3121
source/libraries/ContractInterfaces.ts on lines 3130..3135
source/libraries/ContractInterfaces.ts on lines 3144..3149
source/libraries/ContractInterfaces.ts on lines 3193..3198
source/libraries/ContractInterfaces.ts on lines 3221..3226
source/libraries/ContractInterfaces.ts on lines 3249..3254
source/libraries/ContractInterfaces.ts on lines 3340..3345
source/libraries/ContractInterfaces.ts on lines 3389..3394
source/libraries/ContractInterfaces.ts on lines 3417..3422
source/libraries/ContractInterfaces.ts on lines 3431..3436
source/libraries/ContractInterfaces.ts on lines 3515..3520
source/libraries/ContractInterfaces.ts on lines 3543..3548
source/libraries/ContractInterfaces.ts on lines 3557..3562
source/libraries/ContractInterfaces.ts on lines 3648..3653
source/libraries/ContractInterfaces.ts on lines 3662..3667
source/libraries/ContractInterfaces.ts on lines 3669..3674
source/libraries/ContractInterfaces.ts on lines 3697..3702
source/libraries/ContractInterfaces.ts on lines 3753..3758
source/libraries/ContractInterfaces.ts on lines 3809..3814
source/libraries/ContractInterfaces.ts on lines 4040..4045
source/libraries/ContractInterfaces.ts on lines 4131..4136
source/libraries/ContractInterfaces.ts on lines 4264..4269
source/libraries/ContractInterfaces.ts on lines 4404..4409
source/libraries/ContractInterfaces.ts on lines 4523..4528
source/libraries/ContractInterfaces.ts on lines 4607..4612
source/libraries/ContractInterfaces.ts on lines 4712..4717
source/libraries/ContractInterfaces.ts on lines 4873..4878
source/libraries/ContractInterfaces.ts on lines 4929..4934
source/libraries/ContractInterfaces.ts on lines 6084..6089

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 143.

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 62 locations. Consider refactoring.
Open

        public logUniverseForked_ = async( options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"logUniverseForked","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <boolean>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 61 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 743..748
source/libraries/ContractInterfaces.ts on lines 764..769
source/libraries/ContractInterfaces.ts on lines 792..797
source/libraries/ContractInterfaces.ts on lines 799..804
source/libraries/ContractInterfaces.ts on lines 939..944
source/libraries/ContractInterfaces.ts on lines 960..965
source/libraries/ContractInterfaces.ts on lines 1002..1007
source/libraries/ContractInterfaces.ts on lines 1219..1224
source/libraries/ContractInterfaces.ts on lines 1310..1315
source/libraries/ContractInterfaces.ts on lines 1443..1448
source/libraries/ContractInterfaces.ts on lines 1625..1630
source/libraries/ContractInterfaces.ts on lines 2115..2120
source/libraries/ContractInterfaces.ts on lines 2143..2148
source/libraries/ContractInterfaces.ts on lines 2178..2183
source/libraries/ContractInterfaces.ts on lines 2192..2197
source/libraries/ContractInterfaces.ts on lines 2227..2232
source/libraries/ContractInterfaces.ts on lines 2290..2295
source/libraries/ContractInterfaces.ts on lines 2360..2365
source/libraries/ContractInterfaces.ts on lines 2409..2414
source/libraries/ContractInterfaces.ts on lines 2619..2624
source/libraries/ContractInterfaces.ts on lines 2682..2687
source/libraries/ContractInterfaces.ts on lines 2794..2799
source/libraries/ContractInterfaces.ts on lines 2871..2876
source/libraries/ContractInterfaces.ts on lines 2892..2897
source/libraries/ContractInterfaces.ts on lines 2913..2918
source/libraries/ContractInterfaces.ts on lines 3004..3009
source/libraries/ContractInterfaces.ts on lines 3018..3023
source/libraries/ContractInterfaces.ts on lines 3032..3037
source/libraries/ContractInterfaces.ts on lines 3046..3051
source/libraries/ContractInterfaces.ts on lines 3060..3065
source/libraries/ContractInterfaces.ts on lines 3074..3079
source/libraries/ContractInterfaces.ts on lines 3116..3121
source/libraries/ContractInterfaces.ts on lines 3130..3135
source/libraries/ContractInterfaces.ts on lines 3144..3149
source/libraries/ContractInterfaces.ts on lines 3193..3198
source/libraries/ContractInterfaces.ts on lines 3221..3226
source/libraries/ContractInterfaces.ts on lines 3249..3254
source/libraries/ContractInterfaces.ts on lines 3340..3345
source/libraries/ContractInterfaces.ts on lines 3389..3394
source/libraries/ContractInterfaces.ts on lines 3417..3422
source/libraries/ContractInterfaces.ts on lines 3431..3436
source/libraries/ContractInterfaces.ts on lines 3515..3520
source/libraries/ContractInterfaces.ts on lines 3543..3548
source/libraries/ContractInterfaces.ts on lines 3557..3562
source/libraries/ContractInterfaces.ts on lines 3648..3653
source/libraries/ContractInterfaces.ts on lines 3662..3667
source/libraries/ContractInterfaces.ts on lines 3669..3674
source/libraries/ContractInterfaces.ts on lines 3697..3702
source/libraries/ContractInterfaces.ts on lines 3753..3758
source/libraries/ContractInterfaces.ts on lines 3767..3772
source/libraries/ContractInterfaces.ts on lines 3809..3814
source/libraries/ContractInterfaces.ts on lines 4040..4045
source/libraries/ContractInterfaces.ts on lines 4131..4136
source/libraries/ContractInterfaces.ts on lines 4264..4269
source/libraries/ContractInterfaces.ts on lines 4404..4409
source/libraries/ContractInterfaces.ts on lines 4523..4528
source/libraries/ContractInterfaces.ts on lines 4607..4612
source/libraries/ContractInterfaces.ts on lines 4712..4717
source/libraries/ContractInterfaces.ts on lines 4873..4878
source/libraries/ContractInterfaces.ts on lines 4929..4934
source/libraries/ContractInterfaces.ts on lines 6084..6089

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 143.

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 62 locations. Consider refactoring.
Open

        public getInitialized_ = async( options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[],"name":"getInitialized","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <boolean>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 61 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 281..286
source/libraries/ContractInterfaces.ts on lines 743..748
source/libraries/ContractInterfaces.ts on lines 764..769
source/libraries/ContractInterfaces.ts on lines 792..797
source/libraries/ContractInterfaces.ts on lines 799..804
source/libraries/ContractInterfaces.ts on lines 939..944
source/libraries/ContractInterfaces.ts on lines 960..965
source/libraries/ContractInterfaces.ts on lines 1002..1007
source/libraries/ContractInterfaces.ts on lines 1219..1224
source/libraries/ContractInterfaces.ts on lines 1310..1315
source/libraries/ContractInterfaces.ts on lines 1443..1448
source/libraries/ContractInterfaces.ts on lines 1625..1630
source/libraries/ContractInterfaces.ts on lines 2115..2120
source/libraries/ContractInterfaces.ts on lines 2143..2148
source/libraries/ContractInterfaces.ts on lines 2178..2183
source/libraries/ContractInterfaces.ts on lines 2192..2197
source/libraries/ContractInterfaces.ts on lines 2227..2232
source/libraries/ContractInterfaces.ts on lines 2290..2295
source/libraries/ContractInterfaces.ts on lines 2360..2365
source/libraries/ContractInterfaces.ts on lines 2619..2624
source/libraries/ContractInterfaces.ts on lines 2682..2687
source/libraries/ContractInterfaces.ts on lines 2794..2799
source/libraries/ContractInterfaces.ts on lines 2871..2876
source/libraries/ContractInterfaces.ts on lines 2892..2897
source/libraries/ContractInterfaces.ts on lines 2913..2918
source/libraries/ContractInterfaces.ts on lines 3004..3009
source/libraries/ContractInterfaces.ts on lines 3018..3023
source/libraries/ContractInterfaces.ts on lines 3032..3037
source/libraries/ContractInterfaces.ts on lines 3046..3051
source/libraries/ContractInterfaces.ts on lines 3060..3065
source/libraries/ContractInterfaces.ts on lines 3074..3079
source/libraries/ContractInterfaces.ts on lines 3116..3121
source/libraries/ContractInterfaces.ts on lines 3130..3135
source/libraries/ContractInterfaces.ts on lines 3144..3149
source/libraries/ContractInterfaces.ts on lines 3193..3198
source/libraries/ContractInterfaces.ts on lines 3221..3226
source/libraries/ContractInterfaces.ts on lines 3249..3254
source/libraries/ContractInterfaces.ts on lines 3340..3345
source/libraries/ContractInterfaces.ts on lines 3389..3394
source/libraries/ContractInterfaces.ts on lines 3417..3422
source/libraries/ContractInterfaces.ts on lines 3431..3436
source/libraries/ContractInterfaces.ts on lines 3515..3520
source/libraries/ContractInterfaces.ts on lines 3543..3548
source/libraries/ContractInterfaces.ts on lines 3557..3562
source/libraries/ContractInterfaces.ts on lines 3648..3653
source/libraries/ContractInterfaces.ts on lines 3662..3667
source/libraries/ContractInterfaces.ts on lines 3669..3674
source/libraries/ContractInterfaces.ts on lines 3697..3702
source/libraries/ContractInterfaces.ts on lines 3753..3758
source/libraries/ContractInterfaces.ts on lines 3767..3772
source/libraries/ContractInterfaces.ts on lines 3809..3814
source/libraries/ContractInterfaces.ts on lines 4040..4045
source/libraries/ContractInterfaces.ts on lines 4131..4136
source/libraries/ContractInterfaces.ts on lines 4264..4269
source/libraries/ContractInterfaces.ts on lines 4404..4409
source/libraries/ContractInterfaces.ts on lines 4523..4528
source/libraries/ContractInterfaces.ts on lines 4607..4612
source/libraries/ContractInterfaces.ts on lines 4712..4717
source/libraries/ContractInterfaces.ts on lines 4873..4878
source/libraries/ContractInterfaces.ts on lines 4929..4934
source/libraries/ContractInterfaces.ts on lines 6084..6089

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 143.

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 62 locations. Consider refactoring.
Open

        public updateParentTotalTheoreticalSupply_ = async( options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"updateParentTotalTheoreticalSupply","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <boolean>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 61 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 281..286
source/libraries/ContractInterfaces.ts on lines 743..748
source/libraries/ContractInterfaces.ts on lines 764..769
source/libraries/ContractInterfaces.ts on lines 792..797
source/libraries/ContractInterfaces.ts on lines 799..804
source/libraries/ContractInterfaces.ts on lines 939..944
source/libraries/ContractInterfaces.ts on lines 960..965
source/libraries/ContractInterfaces.ts on lines 1002..1007
source/libraries/ContractInterfaces.ts on lines 1219..1224
source/libraries/ContractInterfaces.ts on lines 1310..1315
source/libraries/ContractInterfaces.ts on lines 1443..1448
source/libraries/ContractInterfaces.ts on lines 1625..1630
source/libraries/ContractInterfaces.ts on lines 2115..2120
source/libraries/ContractInterfaces.ts on lines 2143..2148
source/libraries/ContractInterfaces.ts on lines 2178..2183
source/libraries/ContractInterfaces.ts on lines 2192..2197
source/libraries/ContractInterfaces.ts on lines 2227..2232
source/libraries/ContractInterfaces.ts on lines 2290..2295
source/libraries/ContractInterfaces.ts on lines 2360..2365
source/libraries/ContractInterfaces.ts on lines 2409..2414
source/libraries/ContractInterfaces.ts on lines 2619..2624
source/libraries/ContractInterfaces.ts on lines 2682..2687
source/libraries/ContractInterfaces.ts on lines 2794..2799
source/libraries/ContractInterfaces.ts on lines 2871..2876
source/libraries/ContractInterfaces.ts on lines 2892..2897
source/libraries/ContractInterfaces.ts on lines 2913..2918
source/libraries/ContractInterfaces.ts on lines 3004..3009
source/libraries/ContractInterfaces.ts on lines 3018..3023
source/libraries/ContractInterfaces.ts on lines 3032..3037
source/libraries/ContractInterfaces.ts on lines 3046..3051
source/libraries/ContractInterfaces.ts on lines 3060..3065
source/libraries/ContractInterfaces.ts on lines 3074..3079
source/libraries/ContractInterfaces.ts on lines 3116..3121
source/libraries/ContractInterfaces.ts on lines 3130..3135
source/libraries/ContractInterfaces.ts on lines 3144..3149
source/libraries/ContractInterfaces.ts on lines 3193..3198
source/libraries/ContractInterfaces.ts on lines 3221..3226
source/libraries/ContractInterfaces.ts on lines 3249..3254
source/libraries/ContractInterfaces.ts on lines 3340..3345
source/libraries/ContractInterfaces.ts on lines 3389..3394
source/libraries/ContractInterfaces.ts on lines 3417..3422
source/libraries/ContractInterfaces.ts on lines 3431..3436
source/libraries/ContractInterfaces.ts on lines 3515..3520
source/libraries/ContractInterfaces.ts on lines 3543..3548
source/libraries/ContractInterfaces.ts on lines 3557..3562
source/libraries/ContractInterfaces.ts on lines 3648..3653
source/libraries/ContractInterfaces.ts on lines 3662..3667
source/libraries/ContractInterfaces.ts on lines 3669..3674
source/libraries/ContractInterfaces.ts on lines 3697..3702
source/libraries/ContractInterfaces.ts on lines 3753..3758
source/libraries/ContractInterfaces.ts on lines 3767..3772
source/libraries/ContractInterfaces.ts on lines 3809..3814
source/libraries/ContractInterfaces.ts on lines 4040..4045
source/libraries/ContractInterfaces.ts on lines 4264..4269
source/libraries/ContractInterfaces.ts on lines 4404..4409
source/libraries/ContractInterfaces.ts on lines 4523..4528
source/libraries/ContractInterfaces.ts on lines 4607..4612
source/libraries/ContractInterfaces.ts on lines 4712..4717
source/libraries/ContractInterfaces.ts on lines 4873..4878
source/libraries/ContractInterfaces.ts on lines 4929..4934
source/libraries/ContractInterfaces.ts on lines 6084..6089

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 143.

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 62 locations. Consider refactoring.
Open

        public updateForkValues_ = async( options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"updateForkValues","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <boolean>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 61 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 281..286
source/libraries/ContractInterfaces.ts on lines 743..748
source/libraries/ContractInterfaces.ts on lines 764..769
source/libraries/ContractInterfaces.ts on lines 792..797
source/libraries/ContractInterfaces.ts on lines 799..804
source/libraries/ContractInterfaces.ts on lines 939..944
source/libraries/ContractInterfaces.ts on lines 960..965
source/libraries/ContractInterfaces.ts on lines 1002..1007
source/libraries/ContractInterfaces.ts on lines 1219..1224
source/libraries/ContractInterfaces.ts on lines 1310..1315
source/libraries/ContractInterfaces.ts on lines 1443..1448
source/libraries/ContractInterfaces.ts on lines 1625..1630
source/libraries/ContractInterfaces.ts on lines 2115..2120
source/libraries/ContractInterfaces.ts on lines 2143..2148
source/libraries/ContractInterfaces.ts on lines 2178..2183
source/libraries/ContractInterfaces.ts on lines 2192..2197
source/libraries/ContractInterfaces.ts on lines 2227..2232
source/libraries/ContractInterfaces.ts on lines 2290..2295
source/libraries/ContractInterfaces.ts on lines 2360..2365
source/libraries/ContractInterfaces.ts on lines 2409..2414
source/libraries/ContractInterfaces.ts on lines 2619..2624
source/libraries/ContractInterfaces.ts on lines 2682..2687
source/libraries/ContractInterfaces.ts on lines 2794..2799
source/libraries/ContractInterfaces.ts on lines 2871..2876
source/libraries/ContractInterfaces.ts on lines 2892..2897
source/libraries/ContractInterfaces.ts on lines 2913..2918
source/libraries/ContractInterfaces.ts on lines 3004..3009
source/libraries/ContractInterfaces.ts on lines 3018..3023
source/libraries/ContractInterfaces.ts on lines 3032..3037
source/libraries/ContractInterfaces.ts on lines 3046..3051
source/libraries/ContractInterfaces.ts on lines 3060..3065
source/libraries/ContractInterfaces.ts on lines 3074..3079
source/libraries/ContractInterfaces.ts on lines 3116..3121
source/libraries/ContractInterfaces.ts on lines 3130..3135
source/libraries/ContractInterfaces.ts on lines 3144..3149
source/libraries/ContractInterfaces.ts on lines 3193..3198
source/libraries/ContractInterfaces.ts on lines 3221..3226
source/libraries/ContractInterfaces.ts on lines 3249..3254
source/libraries/ContractInterfaces.ts on lines 3340..3345
source/libraries/ContractInterfaces.ts on lines 3389..3394
source/libraries/ContractInterfaces.ts on lines 3417..3422
source/libraries/ContractInterfaces.ts on lines 3431..3436
source/libraries/ContractInterfaces.ts on lines 3515..3520
source/libraries/ContractInterfaces.ts on lines 3543..3548
source/libraries/ContractInterfaces.ts on lines 3557..3562
source/libraries/ContractInterfaces.ts on lines 3648..3653
source/libraries/ContractInterfaces.ts on lines 3662..3667
source/libraries/ContractInterfaces.ts on lines 3669..3674
source/libraries/ContractInterfaces.ts on lines 3697..3702
source/libraries/ContractInterfaces.ts on lines 3753..3758
source/libraries/ContractInterfaces.ts on lines 3767..3772
source/libraries/ContractInterfaces.ts on lines 3809..3814
source/libraries/ContractInterfaces.ts on lines 4040..4045
source/libraries/ContractInterfaces.ts on lines 4131..4136
source/libraries/ContractInterfaces.ts on lines 4264..4269
source/libraries/ContractInterfaces.ts on lines 4404..4409
source/libraries/ContractInterfaces.ts on lines 4523..4528
source/libraries/ContractInterfaces.ts on lines 4712..4717
source/libraries/ContractInterfaces.ts on lines 4873..4878
source/libraries/ContractInterfaces.ts on lines 4929..4934
source/libraries/ContractInterfaces.ts on lines 6084..6089

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 143.

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 62 locations. Consider refactoring.
Open

        public getInitialized_ = async( options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[],"name":"getInitialized","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <boolean>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 61 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 281..286
source/libraries/ContractInterfaces.ts on lines 743..748
source/libraries/ContractInterfaces.ts on lines 764..769
source/libraries/ContractInterfaces.ts on lines 792..797
source/libraries/ContractInterfaces.ts on lines 799..804
source/libraries/ContractInterfaces.ts on lines 939..944
source/libraries/ContractInterfaces.ts on lines 960..965
source/libraries/ContractInterfaces.ts on lines 1002..1007
source/libraries/ContractInterfaces.ts on lines 1219..1224
source/libraries/ContractInterfaces.ts on lines 1310..1315
source/libraries/ContractInterfaces.ts on lines 1443..1448
source/libraries/ContractInterfaces.ts on lines 1625..1630
source/libraries/ContractInterfaces.ts on lines 2115..2120
source/libraries/ContractInterfaces.ts on lines 2143..2148
source/libraries/ContractInterfaces.ts on lines 2178..2183
source/libraries/ContractInterfaces.ts on lines 2192..2197
source/libraries/ContractInterfaces.ts on lines 2227..2232
source/libraries/ContractInterfaces.ts on lines 2290..2295
source/libraries/ContractInterfaces.ts on lines 2360..2365
source/libraries/ContractInterfaces.ts on lines 2409..2414
source/libraries/ContractInterfaces.ts on lines 2619..2624
source/libraries/ContractInterfaces.ts on lines 2682..2687
source/libraries/ContractInterfaces.ts on lines 2794..2799
source/libraries/ContractInterfaces.ts on lines 2871..2876
source/libraries/ContractInterfaces.ts on lines 2892..2897
source/libraries/ContractInterfaces.ts on lines 2913..2918
source/libraries/ContractInterfaces.ts on lines 3004..3009
source/libraries/ContractInterfaces.ts on lines 3018..3023
source/libraries/ContractInterfaces.ts on lines 3032..3037
source/libraries/ContractInterfaces.ts on lines 3046..3051
source/libraries/ContractInterfaces.ts on lines 3060..3065
source/libraries/ContractInterfaces.ts on lines 3074..3079
source/libraries/ContractInterfaces.ts on lines 3116..3121
source/libraries/ContractInterfaces.ts on lines 3130..3135
source/libraries/ContractInterfaces.ts on lines 3144..3149
source/libraries/ContractInterfaces.ts on lines 3193..3198
source/libraries/ContractInterfaces.ts on lines 3221..3226
source/libraries/ContractInterfaces.ts on lines 3249..3254
source/libraries/ContractInterfaces.ts on lines 3340..3345
source/libraries/ContractInterfaces.ts on lines 3389..3394
source/libraries/ContractInterfaces.ts on lines 3417..3422
source/libraries/ContractInterfaces.ts on lines 3431..3436
source/libraries/ContractInterfaces.ts on lines 3515..3520
source/libraries/ContractInterfaces.ts on lines 3543..3548
source/libraries/ContractInterfaces.ts on lines 3557..3562
source/libraries/ContractInterfaces.ts on lines 3648..3653
source/libraries/ContractInterfaces.ts on lines 3662..3667
source/libraries/ContractInterfaces.ts on lines 3669..3674
source/libraries/ContractInterfaces.ts on lines 3697..3702
source/libraries/ContractInterfaces.ts on lines 3753..3758
source/libraries/ContractInterfaces.ts on lines 3767..3772
source/libraries/ContractInterfaces.ts on lines 3809..3814
source/libraries/ContractInterfaces.ts on lines 4040..4045
source/libraries/ContractInterfaces.ts on lines 4131..4136
source/libraries/ContractInterfaces.ts on lines 4264..4269
source/libraries/ContractInterfaces.ts on lines 4404..4409
source/libraries/ContractInterfaces.ts on lines 4523..4528
source/libraries/ContractInterfaces.ts on lines 4607..4612
source/libraries/ContractInterfaces.ts on lines 4712..4717
source/libraries/ContractInterfaces.ts on lines 4929..4934
source/libraries/ContractInterfaces.ts on lines 6084..6089

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 143.

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 62 locations. Consider refactoring.
Open

        public liquidateLosing_ = async( options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"liquidateLosing","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <boolean>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 61 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 281..286
source/libraries/ContractInterfaces.ts on lines 743..748
source/libraries/ContractInterfaces.ts on lines 764..769
source/libraries/ContractInterfaces.ts on lines 792..797
source/libraries/ContractInterfaces.ts on lines 799..804
source/libraries/ContractInterfaces.ts on lines 939..944
source/libraries/ContractInterfaces.ts on lines 960..965
source/libraries/ContractInterfaces.ts on lines 1002..1007
source/libraries/ContractInterfaces.ts on lines 1219..1224
source/libraries/ContractInterfaces.ts on lines 1310..1315
source/libraries/ContractInterfaces.ts on lines 1443..1448
source/libraries/ContractInterfaces.ts on lines 1625..1630
source/libraries/ContractInterfaces.ts on lines 2115..2120
source/libraries/ContractInterfaces.ts on lines 2143..2148
source/libraries/ContractInterfaces.ts on lines 2178..2183
source/libraries/ContractInterfaces.ts on lines 2227..2232
source/libraries/ContractInterfaces.ts on lines 2290..2295
source/libraries/ContractInterfaces.ts on lines 2360..2365
source/libraries/ContractInterfaces.ts on lines 2409..2414
source/libraries/ContractInterfaces.ts on lines 2619..2624
source/libraries/ContractInterfaces.ts on lines 2682..2687
source/libraries/ContractInterfaces.ts on lines 2794..2799
source/libraries/ContractInterfaces.ts on lines 2871..2876
source/libraries/ContractInterfaces.ts on lines 2892..2897
source/libraries/ContractInterfaces.ts on lines 2913..2918
source/libraries/ContractInterfaces.ts on lines 3004..3009
source/libraries/ContractInterfaces.ts on lines 3018..3023
source/libraries/ContractInterfaces.ts on lines 3032..3037
source/libraries/ContractInterfaces.ts on lines 3046..3051
source/libraries/ContractInterfaces.ts on lines 3060..3065
source/libraries/ContractInterfaces.ts on lines 3074..3079
source/libraries/ContractInterfaces.ts on lines 3116..3121
source/libraries/ContractInterfaces.ts on lines 3130..3135
source/libraries/ContractInterfaces.ts on lines 3144..3149
source/libraries/ContractInterfaces.ts on lines 3193..3198
source/libraries/ContractInterfaces.ts on lines 3221..3226
source/libraries/ContractInterfaces.ts on lines 3249..3254
source/libraries/ContractInterfaces.ts on lines 3340..3345
source/libraries/ContractInterfaces.ts on lines 3389..3394
source/libraries/ContractInterfaces.ts on lines 3417..3422
source/libraries/ContractInterfaces.ts on lines 3431..3436
source/libraries/ContractInterfaces.ts on lines 3515..3520
source/libraries/ContractInterfaces.ts on lines 3543..3548
source/libraries/ContractInterfaces.ts on lines 3557..3562
source/libraries/ContractInterfaces.ts on lines 3648..3653
source/libraries/ContractInterfaces.ts on lines 3662..3667
source/libraries/ContractInterfaces.ts on lines 3669..3674
source/libraries/ContractInterfaces.ts on lines 3697..3702
source/libraries/ContractInterfaces.ts on lines 3753..3758
source/libraries/ContractInterfaces.ts on lines 3767..3772
source/libraries/ContractInterfaces.ts on lines 3809..3814
source/libraries/ContractInterfaces.ts on lines 4040..4045
source/libraries/ContractInterfaces.ts on lines 4131..4136
source/libraries/ContractInterfaces.ts on lines 4264..4269
source/libraries/ContractInterfaces.ts on lines 4404..4409
source/libraries/ContractInterfaces.ts on lines 4523..4528
source/libraries/ContractInterfaces.ts on lines 4607..4612
source/libraries/ContractInterfaces.ts on lines 4712..4717
source/libraries/ContractInterfaces.ts on lines 4873..4878
source/libraries/ContractInterfaces.ts on lines 4929..4934
source/libraries/ContractInterfaces.ts on lines 6084..6089

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 143.

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 62 locations. Consider refactoring.
Open

        public redeemForReportingParticipant_ = async( options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"redeemForReportingParticipant","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <boolean>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 61 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 281..286
source/libraries/ContractInterfaces.ts on lines 743..748
source/libraries/ContractInterfaces.ts on lines 764..769
source/libraries/ContractInterfaces.ts on lines 792..797
source/libraries/ContractInterfaces.ts on lines 799..804
source/libraries/ContractInterfaces.ts on lines 939..944
source/libraries/ContractInterfaces.ts on lines 960..965
source/libraries/ContractInterfaces.ts on lines 1002..1007
source/libraries/ContractInterfaces.ts on lines 1219..1224
source/libraries/ContractInterfaces.ts on lines 1310..1315
source/libraries/ContractInterfaces.ts on lines 1443..1448
source/libraries/ContractInterfaces.ts on lines 1625..1630
source/libraries/ContractInterfaces.ts on lines 2115..2120
source/libraries/ContractInterfaces.ts on lines 2143..2148
source/libraries/ContractInterfaces.ts on lines 2178..2183
source/libraries/ContractInterfaces.ts on lines 2192..2197
source/libraries/ContractInterfaces.ts on lines 2227..2232
source/libraries/ContractInterfaces.ts on lines 2290..2295
source/libraries/ContractInterfaces.ts on lines 2360..2365
source/libraries/ContractInterfaces.ts on lines 2409..2414
source/libraries/ContractInterfaces.ts on lines 2619..2624
source/libraries/ContractInterfaces.ts on lines 2682..2687
source/libraries/ContractInterfaces.ts on lines 2794..2799
source/libraries/ContractInterfaces.ts on lines 2871..2876
source/libraries/ContractInterfaces.ts on lines 2913..2918
source/libraries/ContractInterfaces.ts on lines 3004..3009
source/libraries/ContractInterfaces.ts on lines 3018..3023
source/libraries/ContractInterfaces.ts on lines 3032..3037
source/libraries/ContractInterfaces.ts on lines 3046..3051
source/libraries/ContractInterfaces.ts on lines 3060..3065
source/libraries/ContractInterfaces.ts on lines 3074..3079
source/libraries/ContractInterfaces.ts on lines 3116..3121
source/libraries/ContractInterfaces.ts on lines 3130..3135
source/libraries/ContractInterfaces.ts on lines 3144..3149
source/libraries/ContractInterfaces.ts on lines 3193..3198
source/libraries/ContractInterfaces.ts on lines 3221..3226
source/libraries/ContractInterfaces.ts on lines 3249..3254
source/libraries/ContractInterfaces.ts on lines 3340..3345
source/libraries/ContractInterfaces.ts on lines 3389..3394
source/libraries/ContractInterfaces.ts on lines 3417..3422
source/libraries/ContractInterfaces.ts on lines 3431..3436
source/libraries/ContractInterfaces.ts on lines 3515..3520
source/libraries/ContractInterfaces.ts on lines 3543..3548
source/libraries/ContractInterfaces.ts on lines 3557..3562
source/libraries/ContractInterfaces.ts on lines 3648..3653
source/libraries/ContractInterfaces.ts on lines 3662..3667
source/libraries/ContractInterfaces.ts on lines 3669..3674
source/libraries/ContractInterfaces.ts on lines 3697..3702
source/libraries/ContractInterfaces.ts on lines 3753..3758
source/libraries/ContractInterfaces.ts on lines 3767..3772
source/libraries/ContractInterfaces.ts on lines 3809..3814
source/libraries/ContractInterfaces.ts on lines 4040..4045
source/libraries/ContractInterfaces.ts on lines 4131..4136
source/libraries/ContractInterfaces.ts on lines 4264..4269
source/libraries/ContractInterfaces.ts on lines 4404..4409
source/libraries/ContractInterfaces.ts on lines 4523..4528
source/libraries/ContractInterfaces.ts on lines 4607..4612
source/libraries/ContractInterfaces.ts on lines 4712..4717
source/libraries/ContractInterfaces.ts on lines 4873..4878
source/libraries/ContractInterfaces.ts on lines 4929..4934
source/libraries/ContractInterfaces.ts on lines 6084..6089

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 143.

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 62 locations. Consider refactoring.
Open

        public isInvalid_ = async( options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[],"name":"isInvalid","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <boolean>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 61 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 281..286
source/libraries/ContractInterfaces.ts on lines 743..748
source/libraries/ContractInterfaces.ts on lines 764..769
source/libraries/ContractInterfaces.ts on lines 792..797
source/libraries/ContractInterfaces.ts on lines 799..804
source/libraries/ContractInterfaces.ts on lines 939..944
source/libraries/ContractInterfaces.ts on lines 960..965
source/libraries/ContractInterfaces.ts on lines 1002..1007
source/libraries/ContractInterfaces.ts on lines 1219..1224
source/libraries/ContractInterfaces.ts on lines 1310..1315
source/libraries/ContractInterfaces.ts on lines 1443..1448
source/libraries/ContractInterfaces.ts on lines 1625..1630
source/libraries/ContractInterfaces.ts on lines 2115..2120
source/libraries/ContractInterfaces.ts on lines 2143..2148
source/libraries/ContractInterfaces.ts on lines 2178..2183
source/libraries/ContractInterfaces.ts on lines 2192..2197
source/libraries/ContractInterfaces.ts on lines 2227..2232
source/libraries/ContractInterfaces.ts on lines 2290..2295
source/libraries/ContractInterfaces.ts on lines 2360..2365
source/libraries/ContractInterfaces.ts on lines 2409..2414
source/libraries/ContractInterfaces.ts on lines 2619..2624
source/libraries/ContractInterfaces.ts on lines 2682..2687
source/libraries/ContractInterfaces.ts on lines 2794..2799
source/libraries/ContractInterfaces.ts on lines 2871..2876
source/libraries/ContractInterfaces.ts on lines 2892..2897
source/libraries/ContractInterfaces.ts on lines 2913..2918
source/libraries/ContractInterfaces.ts on lines 3004..3009
source/libraries/ContractInterfaces.ts on lines 3032..3037
source/libraries/ContractInterfaces.ts on lines 3046..3051
source/libraries/ContractInterfaces.ts on lines 3060..3065
source/libraries/ContractInterfaces.ts on lines 3074..3079
source/libraries/ContractInterfaces.ts on lines 3116..3121
source/libraries/ContractInterfaces.ts on lines 3130..3135
source/libraries/ContractInterfaces.ts on lines 3144..3149
source/libraries/ContractInterfaces.ts on lines 3193..3198
source/libraries/ContractInterfaces.ts on lines 3221..3226
source/libraries/ContractInterfaces.ts on lines 3249..3254
source/libraries/ContractInterfaces.ts on lines 3340..3345
source/libraries/ContractInterfaces.ts on lines 3389..3394
source/libraries/ContractInterfaces.ts on lines 3417..3422
source/libraries/ContractInterfaces.ts on lines 3431..3436
source/libraries/ContractInterfaces.ts on lines 3515..3520
source/libraries/ContractInterfaces.ts on lines 3543..3548
source/libraries/ContractInterfaces.ts on lines 3557..3562
source/libraries/ContractInterfaces.ts on lines 3648..3653
source/libraries/ContractInterfaces.ts on lines 3662..3667
source/libraries/ContractInterfaces.ts on lines 3669..3674
source/libraries/ContractInterfaces.ts on lines 3697..3702
source/libraries/ContractInterfaces.ts on lines 3753..3758
source/libraries/ContractInterfaces.ts on lines 3767..3772
source/libraries/ContractInterfaces.ts on lines 3809..3814
source/libraries/ContractInterfaces.ts on lines 4040..4045
source/libraries/ContractInterfaces.ts on lines 4131..4136
source/libraries/ContractInterfaces.ts on lines 4264..4269
source/libraries/ContractInterfaces.ts on lines 4404..4409
source/libraries/ContractInterfaces.ts on lines 4523..4528
source/libraries/ContractInterfaces.ts on lines 4607..4612
source/libraries/ContractInterfaces.ts on lines 4712..4717
source/libraries/ContractInterfaces.ts on lines 4873..4878
source/libraries/ContractInterfaces.ts on lines 4929..4934
source/libraries/ContractInterfaces.ts on lines 6084..6089

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 143.

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 62 locations. Consider refactoring.
Open

        public withdrawEther_ = async( options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"withdrawEther","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <boolean>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 61 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 281..286
source/libraries/ContractInterfaces.ts on lines 743..748
source/libraries/ContractInterfaces.ts on lines 764..769
source/libraries/ContractInterfaces.ts on lines 792..797
source/libraries/ContractInterfaces.ts on lines 799..804
source/libraries/ContractInterfaces.ts on lines 939..944
source/libraries/ContractInterfaces.ts on lines 960..965
source/libraries/ContractInterfaces.ts on lines 1002..1007
source/libraries/ContractInterfaces.ts on lines 1219..1224
source/libraries/ContractInterfaces.ts on lines 1310..1315
source/libraries/ContractInterfaces.ts on lines 1443..1448
source/libraries/ContractInterfaces.ts on lines 1625..1630
source/libraries/ContractInterfaces.ts on lines 2115..2120
source/libraries/ContractInterfaces.ts on lines 2143..2148
source/libraries/ContractInterfaces.ts on lines 2178..2183
source/libraries/ContractInterfaces.ts on lines 2192..2197
source/libraries/ContractInterfaces.ts on lines 2227..2232
source/libraries/ContractInterfaces.ts on lines 2290..2295
source/libraries/ContractInterfaces.ts on lines 2360..2365
source/libraries/ContractInterfaces.ts on lines 2409..2414
source/libraries/ContractInterfaces.ts on lines 2619..2624
source/libraries/ContractInterfaces.ts on lines 2682..2687
source/libraries/ContractInterfaces.ts on lines 2794..2799
source/libraries/ContractInterfaces.ts on lines 2871..2876
source/libraries/ContractInterfaces.ts on lines 2892..2897
source/libraries/ContractInterfaces.ts on lines 2913..2918
source/libraries/ContractInterfaces.ts on lines 3004..3009
source/libraries/ContractInterfaces.ts on lines 3018..3023
source/libraries/ContractInterfaces.ts on lines 3032..3037
source/libraries/ContractInterfaces.ts on lines 3046..3051
source/libraries/ContractInterfaces.ts on lines 3060..3065
source/libraries/ContractInterfaces.ts on lines 3074..3079
source/libraries/ContractInterfaces.ts on lines 3116..3121
source/libraries/ContractInterfaces.ts on lines 3130..3135
source/libraries/ContractInterfaces.ts on lines 3144..3149
source/libraries/ContractInterfaces.ts on lines 3193..3198
source/libraries/ContractInterfaces.ts on lines 3221..3226
source/libraries/ContractInterfaces.ts on lines 3249..3254
source/libraries/ContractInterfaces.ts on lines 3389..3394
source/libraries/ContractInterfaces.ts on lines 3417..3422
source/libraries/ContractInterfaces.ts on lines 3431..3436
source/libraries/ContractInterfaces.ts on lines 3515..3520
source/libraries/ContractInterfaces.ts on lines 3543..3548
source/libraries/ContractInterfaces.ts on lines 3557..3562
source/libraries/ContractInterfaces.ts on lines 3648..3653
source/libraries/ContractInterfaces.ts on lines 3662..3667
source/libraries/ContractInterfaces.ts on lines 3669..3674
source/libraries/ContractInterfaces.ts on lines 3697..3702
source/libraries/ContractInterfaces.ts on lines 3753..3758
source/libraries/ContractInterfaces.ts on lines 3767..3772
source/libraries/ContractInterfaces.ts on lines 3809..3814
source/libraries/ContractInterfaces.ts on lines 4040..4045
source/libraries/ContractInterfaces.ts on lines 4131..4136
source/libraries/ContractInterfaces.ts on lines 4264..4269
source/libraries/ContractInterfaces.ts on lines 4404..4409
source/libraries/ContractInterfaces.ts on lines 4523..4528
source/libraries/ContractInterfaces.ts on lines 4607..4612
source/libraries/ContractInterfaces.ts on lines 4712..4717
source/libraries/ContractInterfaces.ts on lines 4873..4878
source/libraries/ContractInterfaces.ts on lines 4929..4934
source/libraries/ContractInterfaces.ts on lines 6084..6089

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 143.

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 62 locations. Consider refactoring.
Open

        public unpause_ = async( options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"unpause","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <boolean>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 61 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 281..286
source/libraries/ContractInterfaces.ts on lines 743..748
source/libraries/ContractInterfaces.ts on lines 764..769
source/libraries/ContractInterfaces.ts on lines 792..797
source/libraries/ContractInterfaces.ts on lines 799..804
source/libraries/ContractInterfaces.ts on lines 960..965
source/libraries/ContractInterfaces.ts on lines 1002..1007
source/libraries/ContractInterfaces.ts on lines 1219..1224
source/libraries/ContractInterfaces.ts on lines 1310..1315
source/libraries/ContractInterfaces.ts on lines 1443..1448
source/libraries/ContractInterfaces.ts on lines 1625..1630
source/libraries/ContractInterfaces.ts on lines 2115..2120
source/libraries/ContractInterfaces.ts on lines 2143..2148
source/libraries/ContractInterfaces.ts on lines 2178..2183
source/libraries/ContractInterfaces.ts on lines 2192..2197
source/libraries/ContractInterfaces.ts on lines 2227..2232
source/libraries/ContractInterfaces.ts on lines 2290..2295
source/libraries/ContractInterfaces.ts on lines 2360..2365
source/libraries/ContractInterfaces.ts on lines 2409..2414
source/libraries/ContractInterfaces.ts on lines 2619..2624
source/libraries/ContractInterfaces.ts on lines 2682..2687
source/libraries/ContractInterfaces.ts on lines 2794..2799
source/libraries/ContractInterfaces.ts on lines 2871..2876
source/libraries/ContractInterfaces.ts on lines 2892..2897
source/libraries/ContractInterfaces.ts on lines 2913..2918
source/libraries/ContractInterfaces.ts on lines 3004..3009
source/libraries/ContractInterfaces.ts on lines 3018..3023
source/libraries/ContractInterfaces.ts on lines 3032..3037
source/libraries/ContractInterfaces.ts on lines 3046..3051
source/libraries/ContractInterfaces.ts on lines 3060..3065
source/libraries/ContractInterfaces.ts on lines 3074..3079
source/libraries/ContractInterfaces.ts on lines 3116..3121
source/libraries/ContractInterfaces.ts on lines 3130..3135
source/libraries/ContractInterfaces.ts on lines 3144..3149
source/libraries/ContractInterfaces.ts on lines 3193..3198
source/libraries/ContractInterfaces.ts on lines 3221..3226
source/libraries/ContractInterfaces.ts on lines 3249..3254
source/libraries/ContractInterfaces.ts on lines 3340..3345
source/libraries/ContractInterfaces.ts on lines 3389..3394
source/libraries/ContractInterfaces.ts on lines 3417..3422
source/libraries/ContractInterfaces.ts on lines 3431..3436
source/libraries/ContractInterfaces.ts on lines 3515..3520
source/libraries/ContractInterfaces.ts on lines 3543..3548
source/libraries/ContractInterfaces.ts on lines 3557..3562
source/libraries/ContractInterfaces.ts on lines 3648..3653
source/libraries/ContractInterfaces.ts on lines 3662..3667
source/libraries/ContractInterfaces.ts on lines 3669..3674
source/libraries/ContractInterfaces.ts on lines 3697..3702
source/libraries/ContractInterfaces.ts on lines 3753..3758
source/libraries/ContractInterfaces.ts on lines 3767..3772
source/libraries/ContractInterfaces.ts on lines 3809..3814
source/libraries/ContractInterfaces.ts on lines 4040..4045
source/libraries/ContractInterfaces.ts on lines 4131..4136
source/libraries/ContractInterfaces.ts on lines 4264..4269
source/libraries/ContractInterfaces.ts on lines 4404..4409
source/libraries/ContractInterfaces.ts on lines 4523..4528
source/libraries/ContractInterfaces.ts on lines 4607..4612
source/libraries/ContractInterfaces.ts on lines 4712..4717
source/libraries/ContractInterfaces.ts on lines 4873..4878
source/libraries/ContractInterfaces.ts on lines 4929..4934
source/libraries/ContractInterfaces.ts on lines 6084..6089

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 143.

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 62 locations. Consider refactoring.
Open

        public isInvalid_ = async( options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[],"name":"isInvalid","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <boolean>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 61 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 281..286
source/libraries/ContractInterfaces.ts on lines 743..748
source/libraries/ContractInterfaces.ts on lines 764..769
source/libraries/ContractInterfaces.ts on lines 792..797
source/libraries/ContractInterfaces.ts on lines 799..804
source/libraries/ContractInterfaces.ts on lines 939..944
source/libraries/ContractInterfaces.ts on lines 960..965
source/libraries/ContractInterfaces.ts on lines 1002..1007
source/libraries/ContractInterfaces.ts on lines 1219..1224
source/libraries/ContractInterfaces.ts on lines 1310..1315
source/libraries/ContractInterfaces.ts on lines 1443..1448
source/libraries/ContractInterfaces.ts on lines 1625..1630
source/libraries/ContractInterfaces.ts on lines 2115..2120
source/libraries/ContractInterfaces.ts on lines 2178..2183
source/libraries/ContractInterfaces.ts on lines 2192..2197
source/libraries/ContractInterfaces.ts on lines 2227..2232
source/libraries/ContractInterfaces.ts on lines 2290..2295
source/libraries/ContractInterfaces.ts on lines 2360..2365
source/libraries/ContractInterfaces.ts on lines 2409..2414
source/libraries/ContractInterfaces.ts on lines 2619..2624
source/libraries/ContractInterfaces.ts on lines 2682..2687
source/libraries/ContractInterfaces.ts on lines 2794..2799
source/libraries/ContractInterfaces.ts on lines 2871..2876
source/libraries/ContractInterfaces.ts on lines 2892..2897
source/libraries/ContractInterfaces.ts on lines 2913..2918
source/libraries/ContractInterfaces.ts on lines 3004..3009
source/libraries/ContractInterfaces.ts on lines 3018..3023
source/libraries/ContractInterfaces.ts on lines 3032..3037
source/libraries/ContractInterfaces.ts on lines 3046..3051
source/libraries/ContractInterfaces.ts on lines 3060..3065
source/libraries/ContractInterfaces.ts on lines 3074..3079
source/libraries/ContractInterfaces.ts on lines 3116..3121
source/libraries/ContractInterfaces.ts on lines 3130..3135
source/libraries/ContractInterfaces.ts on lines 3144..3149
source/libraries/ContractInterfaces.ts on lines 3193..3198
source/libraries/ContractInterfaces.ts on lines 3221..3226
source/libraries/ContractInterfaces.ts on lines 3249..3254
source/libraries/ContractInterfaces.ts on lines 3340..3345
source/libraries/ContractInterfaces.ts on lines 3389..3394
source/libraries/ContractInterfaces.ts on lines 3417..3422
source/libraries/ContractInterfaces.ts on lines 3431..3436
source/libraries/ContractInterfaces.ts on lines 3515..3520
source/libraries/ContractInterfaces.ts on lines 3543..3548
source/libraries/ContractInterfaces.ts on lines 3557..3562
source/libraries/ContractInterfaces.ts on lines 3648..3653
source/libraries/ContractInterfaces.ts on lines 3662..3667
source/libraries/ContractInterfaces.ts on lines 3669..3674
source/libraries/ContractInterfaces.ts on lines 3697..3702
source/libraries/ContractInterfaces.ts on lines 3753..3758
source/libraries/ContractInterfaces.ts on lines 3767..3772
source/libraries/ContractInterfaces.ts on lines 3809..3814
source/libraries/ContractInterfaces.ts on lines 4040..4045
source/libraries/ContractInterfaces.ts on lines 4131..4136
source/libraries/ContractInterfaces.ts on lines 4264..4269
source/libraries/ContractInterfaces.ts on lines 4404..4409
source/libraries/ContractInterfaces.ts on lines 4523..4528
source/libraries/ContractInterfaces.ts on lines 4607..4612
source/libraries/ContractInterfaces.ts on lines 4712..4717
source/libraries/ContractInterfaces.ts on lines 4873..4878
source/libraries/ContractInterfaces.ts on lines 4929..4934
source/libraries/ContractInterfaces.ts on lines 6084..6089

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 143.

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 62 locations. Consider refactoring.
Open

        public isActive_ = async( options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[],"name":"isActive","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <boolean>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 61 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 281..286
source/libraries/ContractInterfaces.ts on lines 743..748
source/libraries/ContractInterfaces.ts on lines 764..769
source/libraries/ContractInterfaces.ts on lines 792..797
source/libraries/ContractInterfaces.ts on lines 799..804
source/libraries/ContractInterfaces.ts on lines 939..944
source/libraries/ContractInterfaces.ts on lines 960..965
source/libraries/ContractInterfaces.ts on lines 1002..1007
source/libraries/ContractInterfaces.ts on lines 1219..1224
source/libraries/ContractInterfaces.ts on lines 1310..1315
source/libraries/ContractInterfaces.ts on lines 1443..1448
source/libraries/ContractInterfaces.ts on lines 1625..1630
source/libraries/ContractInterfaces.ts on lines 2115..2120
source/libraries/ContractInterfaces.ts on lines 2143..2148
source/libraries/ContractInterfaces.ts on lines 2178..2183
source/libraries/ContractInterfaces.ts on lines 2192..2197
source/libraries/ContractInterfaces.ts on lines 2227..2232
source/libraries/ContractInterfaces.ts on lines 2290..2295
source/libraries/ContractInterfaces.ts on lines 2360..2365
source/libraries/ContractInterfaces.ts on lines 2409..2414
source/libraries/ContractInterfaces.ts on lines 2619..2624
source/libraries/ContractInterfaces.ts on lines 2794..2799
source/libraries/ContractInterfaces.ts on lines 2871..2876
source/libraries/ContractInterfaces.ts on lines 2892..2897
source/libraries/ContractInterfaces.ts on lines 2913..2918
source/libraries/ContractInterfaces.ts on lines 3004..3009
source/libraries/ContractInterfaces.ts on lines 3018..3023
source/libraries/ContractInterfaces.ts on lines 3032..3037
source/libraries/ContractInterfaces.ts on lines 3046..3051
source/libraries/ContractInterfaces.ts on lines 3060..3065
source/libraries/ContractInterfaces.ts on lines 3074..3079
source/libraries/ContractInterfaces.ts on lines 3116..3121
source/libraries/ContractInterfaces.ts on lines 3130..3135
source/libraries/ContractInterfaces.ts on lines 3144..3149
source/libraries/ContractInterfaces.ts on lines 3193..3198
source/libraries/ContractInterfaces.ts on lines 3221..3226
source/libraries/ContractInterfaces.ts on lines 3249..3254
source/libraries/ContractInterfaces.ts on lines 3340..3345
source/libraries/ContractInterfaces.ts on lines 3389..3394
source/libraries/ContractInterfaces.ts on lines 3417..3422
source/libraries/ContractInterfaces.ts on lines 3431..3436
source/libraries/ContractInterfaces.ts on lines 3515..3520
source/libraries/ContractInterfaces.ts on lines 3543..3548
source/libraries/ContractInterfaces.ts on lines 3557..3562
source/libraries/ContractInterfaces.ts on lines 3648..3653
source/libraries/ContractInterfaces.ts on lines 3662..3667
source/libraries/ContractInterfaces.ts on lines 3669..3674
source/libraries/ContractInterfaces.ts on lines 3697..3702
source/libraries/ContractInterfaces.ts on lines 3753..3758
source/libraries/ContractInterfaces.ts on lines 3767..3772
source/libraries/ContractInterfaces.ts on lines 3809..3814
source/libraries/ContractInterfaces.ts on lines 4040..4045
source/libraries/ContractInterfaces.ts on lines 4131..4136
source/libraries/ContractInterfaces.ts on lines 4264..4269
source/libraries/ContractInterfaces.ts on lines 4404..4409
source/libraries/ContractInterfaces.ts on lines 4523..4528
source/libraries/ContractInterfaces.ts on lines 4607..4612
source/libraries/ContractInterfaces.ts on lines 4712..4717
source/libraries/ContractInterfaces.ts on lines 4873..4878
source/libraries/ContractInterfaces.ts on lines 4929..4934
source/libraries/ContractInterfaces.ts on lines 6084..6089

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 143.

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