AugurProject/augur-core

View on GitHub

Showing 833 of 833 total issues

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

        public getOrCacheReportingFeeDivisor = async( options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"getOrCacheReportingFeeDivisor","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [], "getOrCacheReportingFeeDivisor", 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 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 getOrCacheMarketCreationCost = async( options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"getOrCacheMarketCreationCost","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [], "getOrCacheMarketCreationCost", 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 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 migrate = async( options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"migrate","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [], "migrate", 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 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 addMarketTo = async( options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"addMarketTo","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [], "addMarketTo", 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 4908..4913

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 redeemForReportingParticipant = async( options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"redeemForReportingParticipant","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [], "redeemForReportingParticipant", 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 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 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 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 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 getOrCreatePreviousFeeWindow = async( options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"getOrCreatePreviousFeeWindow","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [], "getOrCreatePreviousFeeWindow", 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 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 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 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 liquidateLosing = async( options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"liquidateLosing","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [], "liquidateLosing", 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 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 fork = async( options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"fork","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [], "fork", 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 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 approveSpenders = async( options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"approveSpenders","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [], "approveSpenders", 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 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 pause = async( options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"pause","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [], "pause", 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 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 resetReportTimestamp = async( options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"resetReportTimestamp","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [], "resetReportTimestamp", 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 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 disavowCrowdsourcers = async( options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"disavowCrowdsourcers","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [], "disavowCrowdsourcers", 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 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 getOrCreateNextFeeWindow = async( options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"getOrCreateNextFeeWindow","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [], "getOrCreateNextFeeWindow", 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 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 getOrCreatePreviousPreviousFeeWindow = async( options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"getOrCreatePreviousPreviousFeeWindow","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [], "getOrCreatePreviousPreviousFeeWindow", 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 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 emergencyStop = async( options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"emergencyStop","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [], "emergencyStop", 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 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 getOrCacheDesignatedReportStake = async( options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"getOrCacheDesignatedReportStake","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [], "getOrCacheDesignatedReportStake", 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 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 unpause = async( options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"unpause","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [], "unpause", 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 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 onMarketFinalized = async( options?: { sender?: string, gasPrice?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"onMarketFinalized","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            await this.remoteCall(abi, [], "onMarketFinalized", 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 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

Severity
Category
Status
Source
Language