AugurProject/augur-core

View on GitHub

Showing 833 of 833 total issues

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

        public withdrawInEmergency = async( options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"withdrawInEmergency","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [], "withdrawInEmergency", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 41 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 274..279
source/libraries/ContractInterfaces.ts on lines 519..524
source/libraries/ContractInterfaces.ts on lines 785..790
source/libraries/ContractInterfaces.ts on lines 932..937
source/libraries/ContractInterfaces.ts on lines 995..1000
source/libraries/ContractInterfaces.ts on lines 1303..1308
source/libraries/ContractInterfaces.ts on lines 1618..1623
source/libraries/ContractInterfaces.ts on lines 2171..2176
source/libraries/ContractInterfaces.ts on lines 2185..2190
source/libraries/ContractInterfaces.ts on lines 2283..2288
source/libraries/ContractInterfaces.ts on lines 2353..2358
source/libraries/ContractInterfaces.ts on lines 2787..2792
source/libraries/ContractInterfaces.ts on lines 2885..2890
source/libraries/ContractInterfaces.ts on lines 3025..3030
source/libraries/ContractInterfaces.ts on lines 3039..3044
source/libraries/ContractInterfaces.ts on lines 3053..3058
source/libraries/ContractInterfaces.ts on lines 3137..3142
source/libraries/ContractInterfaces.ts on lines 3186..3191
source/libraries/ContractInterfaces.ts on lines 3214..3219
source/libraries/ContractInterfaces.ts on lines 3333..3338
source/libraries/ContractInterfaces.ts on lines 3424..3429
source/libraries/ContractInterfaces.ts on lines 3536..3541
source/libraries/ContractInterfaces.ts on lines 3550..3555
source/libraries/ContractInterfaces.ts on lines 3655..3660
source/libraries/ContractInterfaces.ts on lines 3746..3751
source/libraries/ContractInterfaces.ts on lines 3760..3765
source/libraries/ContractInterfaces.ts on lines 4124..4129
source/libraries/ContractInterfaces.ts on lines 4320..4325
source/libraries/ContractInterfaces.ts on lines 4355..4360
source/libraries/ContractInterfaces.ts on lines 4397..4402
source/libraries/ContractInterfaces.ts on lines 4418..4423
source/libraries/ContractInterfaces.ts on lines 4467..4472
source/libraries/ContractInterfaces.ts on lines 4516..4521
source/libraries/ContractInterfaces.ts on lines 4565..4570
source/libraries/ContractInterfaces.ts on lines 4600..4605
source/libraries/ContractInterfaces.ts on lines 4635..4640
source/libraries/ContractInterfaces.ts on lines 4649..4654
source/libraries/ContractInterfaces.ts on lines 4831..4836
source/libraries/ContractInterfaces.ts on lines 4845..4850
source/libraries/ContractInterfaces.ts on lines 4908..4913
source/libraries/ContractInterfaces.ts on lines 4922..4927

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

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

        public getOrCacheValidityBond = async( options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"getOrCacheValidityBond","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [], "getOrCacheValidityBond", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 41 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 274..279
source/libraries/ContractInterfaces.ts on lines 519..524
source/libraries/ContractInterfaces.ts on lines 785..790
source/libraries/ContractInterfaces.ts on lines 932..937
source/libraries/ContractInterfaces.ts on lines 995..1000
source/libraries/ContractInterfaces.ts on lines 1303..1308
source/libraries/ContractInterfaces.ts on lines 1618..1623
source/libraries/ContractInterfaces.ts on lines 2171..2176
source/libraries/ContractInterfaces.ts on lines 2185..2190
source/libraries/ContractInterfaces.ts on lines 2283..2288
source/libraries/ContractInterfaces.ts on lines 2353..2358
source/libraries/ContractInterfaces.ts on lines 2787..2792
source/libraries/ContractInterfaces.ts on lines 2885..2890
source/libraries/ContractInterfaces.ts on lines 2906..2911
source/libraries/ContractInterfaces.ts on lines 3025..3030
source/libraries/ContractInterfaces.ts on lines 3039..3044
source/libraries/ContractInterfaces.ts on lines 3053..3058
source/libraries/ContractInterfaces.ts on lines 3137..3142
source/libraries/ContractInterfaces.ts on lines 3186..3191
source/libraries/ContractInterfaces.ts on lines 3214..3219
source/libraries/ContractInterfaces.ts on lines 3333..3338
source/libraries/ContractInterfaces.ts on lines 3424..3429
source/libraries/ContractInterfaces.ts on lines 3536..3541
source/libraries/ContractInterfaces.ts on lines 3550..3555
source/libraries/ContractInterfaces.ts on lines 3655..3660
source/libraries/ContractInterfaces.ts on lines 3746..3751
source/libraries/ContractInterfaces.ts on lines 3760..3765
source/libraries/ContractInterfaces.ts on lines 4124..4129
source/libraries/ContractInterfaces.ts on lines 4320..4325
source/libraries/ContractInterfaces.ts on lines 4355..4360
source/libraries/ContractInterfaces.ts on lines 4397..4402
source/libraries/ContractInterfaces.ts on lines 4418..4423
source/libraries/ContractInterfaces.ts on lines 4467..4472
source/libraries/ContractInterfaces.ts on lines 4516..4521
source/libraries/ContractInterfaces.ts on lines 4565..4570
source/libraries/ContractInterfaces.ts on lines 4600..4605
source/libraries/ContractInterfaces.ts on lines 4649..4654
source/libraries/ContractInterfaces.ts on lines 4831..4836
source/libraries/ContractInterfaces.ts on lines 4845..4850
source/libraries/ContractInterfaces.ts on lines 4908..4913
source/libraries/ContractInterfaces.ts on lines 4922..4927

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

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

        public getOrCacheDesignatedReportNoShowBond = async( options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"getOrCacheDesignatedReportNoShowBond","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [], "getOrCacheDesignatedReportNoShowBond", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 41 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 274..279
source/libraries/ContractInterfaces.ts on lines 519..524
source/libraries/ContractInterfaces.ts on lines 785..790
source/libraries/ContractInterfaces.ts on lines 932..937
source/libraries/ContractInterfaces.ts on lines 995..1000
source/libraries/ContractInterfaces.ts on lines 1303..1308
source/libraries/ContractInterfaces.ts on lines 1618..1623
source/libraries/ContractInterfaces.ts on lines 2171..2176
source/libraries/ContractInterfaces.ts on lines 2185..2190
source/libraries/ContractInterfaces.ts on lines 2283..2288
source/libraries/ContractInterfaces.ts on lines 2353..2358
source/libraries/ContractInterfaces.ts on lines 2787..2792
source/libraries/ContractInterfaces.ts on lines 2885..2890
source/libraries/ContractInterfaces.ts on lines 2906..2911
source/libraries/ContractInterfaces.ts on lines 3025..3030
source/libraries/ContractInterfaces.ts on lines 3039..3044
source/libraries/ContractInterfaces.ts on lines 3053..3058
source/libraries/ContractInterfaces.ts on lines 3137..3142
source/libraries/ContractInterfaces.ts on lines 3186..3191
source/libraries/ContractInterfaces.ts on lines 3214..3219
source/libraries/ContractInterfaces.ts on lines 3333..3338
source/libraries/ContractInterfaces.ts on lines 3424..3429
source/libraries/ContractInterfaces.ts on lines 3536..3541
source/libraries/ContractInterfaces.ts on lines 3550..3555
source/libraries/ContractInterfaces.ts on lines 3655..3660
source/libraries/ContractInterfaces.ts on lines 3746..3751
source/libraries/ContractInterfaces.ts on lines 3760..3765
source/libraries/ContractInterfaces.ts on lines 4124..4129
source/libraries/ContractInterfaces.ts on lines 4320..4325
source/libraries/ContractInterfaces.ts on lines 4355..4360
source/libraries/ContractInterfaces.ts on lines 4397..4402
source/libraries/ContractInterfaces.ts on lines 4418..4423
source/libraries/ContractInterfaces.ts on lines 4467..4472
source/libraries/ContractInterfaces.ts on lines 4516..4521
source/libraries/ContractInterfaces.ts on lines 4565..4570
source/libraries/ContractInterfaces.ts on lines 4600..4605
source/libraries/ContractInterfaces.ts on lines 4635..4640
source/libraries/ContractInterfaces.ts on lines 4649..4654
source/libraries/ContractInterfaces.ts on lines 4831..4836
source/libraries/ContractInterfaces.ts on lines 4845..4850
source/libraries/ContractInterfaces.ts on lines 4922..4927

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

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

        public logUniverseForked = async( options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"logUniverseForked","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [], "logUniverseForked", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 41 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 519..524
source/libraries/ContractInterfaces.ts on lines 785..790
source/libraries/ContractInterfaces.ts on lines 932..937
source/libraries/ContractInterfaces.ts on lines 995..1000
source/libraries/ContractInterfaces.ts on lines 1303..1308
source/libraries/ContractInterfaces.ts on lines 1618..1623
source/libraries/ContractInterfaces.ts on lines 2171..2176
source/libraries/ContractInterfaces.ts on lines 2185..2190
source/libraries/ContractInterfaces.ts on lines 2283..2288
source/libraries/ContractInterfaces.ts on lines 2353..2358
source/libraries/ContractInterfaces.ts on lines 2787..2792
source/libraries/ContractInterfaces.ts on lines 2885..2890
source/libraries/ContractInterfaces.ts on lines 2906..2911
source/libraries/ContractInterfaces.ts on lines 3025..3030
source/libraries/ContractInterfaces.ts on lines 3039..3044
source/libraries/ContractInterfaces.ts on lines 3053..3058
source/libraries/ContractInterfaces.ts on lines 3137..3142
source/libraries/ContractInterfaces.ts on lines 3186..3191
source/libraries/ContractInterfaces.ts on lines 3214..3219
source/libraries/ContractInterfaces.ts on lines 3333..3338
source/libraries/ContractInterfaces.ts on lines 3424..3429
source/libraries/ContractInterfaces.ts on lines 3536..3541
source/libraries/ContractInterfaces.ts on lines 3550..3555
source/libraries/ContractInterfaces.ts on lines 3655..3660
source/libraries/ContractInterfaces.ts on lines 3746..3751
source/libraries/ContractInterfaces.ts on lines 3760..3765
source/libraries/ContractInterfaces.ts on lines 4124..4129
source/libraries/ContractInterfaces.ts on lines 4320..4325
source/libraries/ContractInterfaces.ts on lines 4355..4360
source/libraries/ContractInterfaces.ts on lines 4397..4402
source/libraries/ContractInterfaces.ts on lines 4418..4423
source/libraries/ContractInterfaces.ts on lines 4467..4472
source/libraries/ContractInterfaces.ts on lines 4516..4521
source/libraries/ContractInterfaces.ts on lines 4565..4570
source/libraries/ContractInterfaces.ts on lines 4600..4605
source/libraries/ContractInterfaces.ts on lines 4635..4640
source/libraries/ContractInterfaces.ts on lines 4649..4654
source/libraries/ContractInterfaces.ts on lines 4831..4836
source/libraries/ContractInterfaces.ts on lines 4845..4850
source/libraries/ContractInterfaces.ts on lines 4908..4913
source/libraries/ContractInterfaces.ts on lines 4922..4927

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

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

        public updateParentTotalTheoreticalSupply = async( options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"updateParentTotalTheoreticalSupply","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [], "updateParentTotalTheoreticalSupply", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 41 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 274..279
source/libraries/ContractInterfaces.ts on lines 519..524
source/libraries/ContractInterfaces.ts on lines 785..790
source/libraries/ContractInterfaces.ts on lines 932..937
source/libraries/ContractInterfaces.ts on lines 995..1000
source/libraries/ContractInterfaces.ts on lines 1618..1623
source/libraries/ContractInterfaces.ts on lines 2171..2176
source/libraries/ContractInterfaces.ts on lines 2185..2190
source/libraries/ContractInterfaces.ts on lines 2283..2288
source/libraries/ContractInterfaces.ts on lines 2353..2358
source/libraries/ContractInterfaces.ts on lines 2787..2792
source/libraries/ContractInterfaces.ts on lines 2885..2890
source/libraries/ContractInterfaces.ts on lines 2906..2911
source/libraries/ContractInterfaces.ts on lines 3025..3030
source/libraries/ContractInterfaces.ts on lines 3039..3044
source/libraries/ContractInterfaces.ts on lines 3053..3058
source/libraries/ContractInterfaces.ts on lines 3137..3142
source/libraries/ContractInterfaces.ts on lines 3186..3191
source/libraries/ContractInterfaces.ts on lines 3214..3219
source/libraries/ContractInterfaces.ts on lines 3333..3338
source/libraries/ContractInterfaces.ts on lines 3424..3429
source/libraries/ContractInterfaces.ts on lines 3536..3541
source/libraries/ContractInterfaces.ts on lines 3550..3555
source/libraries/ContractInterfaces.ts on lines 3655..3660
source/libraries/ContractInterfaces.ts on lines 3746..3751
source/libraries/ContractInterfaces.ts on lines 3760..3765
source/libraries/ContractInterfaces.ts on lines 4124..4129
source/libraries/ContractInterfaces.ts on lines 4320..4325
source/libraries/ContractInterfaces.ts on lines 4355..4360
source/libraries/ContractInterfaces.ts on lines 4397..4402
source/libraries/ContractInterfaces.ts on lines 4418..4423
source/libraries/ContractInterfaces.ts on lines 4467..4472
source/libraries/ContractInterfaces.ts on lines 4516..4521
source/libraries/ContractInterfaces.ts on lines 4565..4570
source/libraries/ContractInterfaces.ts on lines 4600..4605
source/libraries/ContractInterfaces.ts on lines 4635..4640
source/libraries/ContractInterfaces.ts on lines 4649..4654
source/libraries/ContractInterfaces.ts on lines 4831..4836
source/libraries/ContractInterfaces.ts on lines 4845..4850
source/libraries/ContractInterfaces.ts on lines 4908..4913
source/libraries/ContractInterfaces.ts on lines 4922..4927

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

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

        public forkAndRedeem = async( options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"forkAndRedeem","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [], "forkAndRedeem", options.sender, options.gasPrice);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 41 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 274..279
source/libraries/ContractInterfaces.ts on lines 519..524
source/libraries/ContractInterfaces.ts on lines 785..790
source/libraries/ContractInterfaces.ts on lines 932..937
source/libraries/ContractInterfaces.ts on lines 995..1000
source/libraries/ContractInterfaces.ts on lines 1303..1308
source/libraries/ContractInterfaces.ts on lines 1618..1623
source/libraries/ContractInterfaces.ts on lines 2185..2190
source/libraries/ContractInterfaces.ts on lines 2283..2288
source/libraries/ContractInterfaces.ts on lines 2353..2358
source/libraries/ContractInterfaces.ts on lines 2787..2792
source/libraries/ContractInterfaces.ts on lines 2885..2890
source/libraries/ContractInterfaces.ts on lines 2906..2911
source/libraries/ContractInterfaces.ts on lines 3025..3030
source/libraries/ContractInterfaces.ts on lines 3039..3044
source/libraries/ContractInterfaces.ts on lines 3053..3058
source/libraries/ContractInterfaces.ts on lines 3137..3142
source/libraries/ContractInterfaces.ts on lines 3186..3191
source/libraries/ContractInterfaces.ts on lines 3214..3219
source/libraries/ContractInterfaces.ts on lines 3333..3338
source/libraries/ContractInterfaces.ts on lines 3424..3429
source/libraries/ContractInterfaces.ts on lines 3536..3541
source/libraries/ContractInterfaces.ts on lines 3550..3555
source/libraries/ContractInterfaces.ts on lines 3655..3660
source/libraries/ContractInterfaces.ts on lines 3746..3751
source/libraries/ContractInterfaces.ts on lines 3760..3765
source/libraries/ContractInterfaces.ts on lines 4124..4129
source/libraries/ContractInterfaces.ts on lines 4320..4325
source/libraries/ContractInterfaces.ts on lines 4355..4360
source/libraries/ContractInterfaces.ts on lines 4397..4402
source/libraries/ContractInterfaces.ts on lines 4418..4423
source/libraries/ContractInterfaces.ts on lines 4467..4472
source/libraries/ContractInterfaces.ts on lines 4516..4521
source/libraries/ContractInterfaces.ts on lines 4565..4570
source/libraries/ContractInterfaces.ts on lines 4600..4605
source/libraries/ContractInterfaces.ts on lines 4635..4640
source/libraries/ContractInterfaces.ts on lines 4649..4654
source/libraries/ContractInterfaces.ts on lines 4831..4836
source/libraries/ContractInterfaces.ts on lines 4845..4850
source/libraries/ContractInterfaces.ts on lines 4908..4913
source/libraries/ContractInterfaces.ts on lines 4922..4927

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

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 getTypeName_ = async( options?: { sender?: string }): Promise<string> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[],"name":"getTypeName","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 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
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 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
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 getReputationToken_ = async( options?: { sender?: string }): Promise<string> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[],"name":"getReputationToken","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 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
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 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
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 getLegacyRepToken_ = async( options?: { sender?: string }): Promise<string> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[],"name":"getLegacyRepToken","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 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
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 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
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 owner_ = async( options?: { sender?: string }): Promise<string> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[],"name":"owner","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 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
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 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 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
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 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
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 name_ = async( options?: { sender?: string }): Promise<string> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[],"name":"name","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 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
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 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
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 getTypeName_ = async( options?: { sender?: string }): Promise<string> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[],"name":"getTypeName","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 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
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 getForkingMarket_ = async( options?: { sender?: string }): Promise<string> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[],"name":"getForkingMarket","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 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
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 getTypeName_ = async( options?: { sender?: string }): Promise<string> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[],"name":"getTypeName","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 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
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

Severity
Category
Status
Source
Language