AugurProject/augur-core

View on GitHub

Showing 833 of 833 total issues

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 143.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 143.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 143.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 143.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 143.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 143.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 143.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 143.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 143.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 143.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 143.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 143.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 143.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 143.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 143.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 143.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 143.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 143.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 143.

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

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

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

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

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 143.

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

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

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

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

Refactorings

Further Reading

Severity
Category
Status
Source
Language