AugurProject/augur-core

View on GitHub

Showing 833 of 833 total issues

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

        public getInitialReportMinValue_ = async( options?: { sender?: string }): Promise<BN> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[],"name":"getInitialReportMinValue","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <BN>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 69 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 736..741
source/libraries/ContractInterfaces.ts on lines 904..909
source/libraries/ContractInterfaces.ts on lines 925..930
source/libraries/ContractInterfaces.ts on lines 967..972
source/libraries/ContractInterfaces.ts on lines 1100..1105
source/libraries/ContractInterfaces.ts on lines 1107..1112
source/libraries/ContractInterfaces.ts on lines 1135..1140
source/libraries/ContractInterfaces.ts on lines 1170..1175
source/libraries/ContractInterfaces.ts on lines 1261..1266
source/libraries/ContractInterfaces.ts on lines 1436..1441
source/libraries/ContractInterfaces.ts on lines 1485..1490
source/libraries/ContractInterfaces.ts on lines 1527..1532
source/libraries/ContractInterfaces.ts on lines 2080..2085
source/libraries/ContractInterfaces.ts on lines 2164..2169
source/libraries/ContractInterfaces.ts on lines 2220..2225
source/libraries/ContractInterfaces.ts on lines 2402..2407
source/libraries/ContractInterfaces.ts on lines 2430..2435
source/libraries/ContractInterfaces.ts on lines 2465..2470
source/libraries/ContractInterfaces.ts on lines 2493..2498
source/libraries/ContractInterfaces.ts on lines 2500..2505
source/libraries/ContractInterfaces.ts on lines 2675..2680
source/libraries/ContractInterfaces.ts on lines 2703..2708
source/libraries/ContractInterfaces.ts on lines 2717..2722
source/libraries/ContractInterfaces.ts on lines 2724..2729
source/libraries/ContractInterfaces.ts on lines 2731..2736
source/libraries/ContractInterfaces.ts on lines 2738..2743
source/libraries/ContractInterfaces.ts on lines 2836..2841
source/libraries/ContractInterfaces.ts on lines 2920..2925
source/libraries/ContractInterfaces.ts on lines 2948..2953
source/libraries/ContractInterfaces.ts on lines 2983..2988
source/libraries/ContractInterfaces.ts on lines 3165..3170
source/libraries/ContractInterfaces.ts on lines 3242..3247
source/libraries/ContractInterfaces.ts on lines 3284..3289
source/libraries/ContractInterfaces.ts on lines 3459..3464
source/libraries/ContractInterfaces.ts on lines 3487..3492
source/libraries/ContractInterfaces.ts on lines 3494..3499
source/libraries/ContractInterfaces.ts on lines 3529..3534
source/libraries/ContractInterfaces.ts on lines 3620..3625
source/libraries/ContractInterfaces.ts on lines 3690..3695
source/libraries/ContractInterfaces.ts on lines 3704..3709
source/libraries/ContractInterfaces.ts on lines 3718..3723
source/libraries/ContractInterfaces.ts on lines 3851..3856
source/libraries/ContractInterfaces.ts on lines 3865..3870
source/libraries/ContractInterfaces.ts on lines 3935..3940
source/libraries/ContractInterfaces.ts on lines 3942..3947
source/libraries/ContractInterfaces.ts on lines 3970..3975
source/libraries/ContractInterfaces.ts on lines 3991..3996
source/libraries/ContractInterfaces.ts on lines 4082..4087
source/libraries/ContractInterfaces.ts on lines 4257..4262
source/libraries/ContractInterfaces.ts on lines 4348..4353
source/libraries/ContractInterfaces.ts on lines 4383..4388
source/libraries/ContractInterfaces.ts on lines 4411..4416
source/libraries/ContractInterfaces.ts on lines 4481..4486
source/libraries/ContractInterfaces.ts on lines 4530..4535
source/libraries/ContractInterfaces.ts on lines 4544..4549
source/libraries/ContractInterfaces.ts on lines 4572..4577
source/libraries/ContractInterfaces.ts on lines 4642..4647
source/libraries/ContractInterfaces.ts on lines 4656..4661
source/libraries/ContractInterfaces.ts on lines 4838..4843
source/libraries/ContractInterfaces.ts on lines 4852..4857
source/libraries/ContractInterfaces.ts on lines 4901..4906
source/libraries/ContractInterfaces.ts on lines 4915..4920
source/libraries/ContractInterfaces.ts on lines 5006..5011
source/libraries/ContractInterfaces.ts on lines 5048..5053
source/libraries/ContractInterfaces.ts on lines 5083..5088
source/libraries/ContractInterfaces.ts on lines 5874..5879
source/libraries/ContractInterfaces.ts on lines 5902..5907
source/libraries/ContractInterfaces.ts on lines 5923..5928
source/libraries/ContractInterfaces.ts on lines 5979..5984

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

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

        public getTimestamp_ = async( options?: { sender?: string }): Promise<BN> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[],"name":"getTimestamp","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <BN>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 69 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 904..909
source/libraries/ContractInterfaces.ts on lines 925..930
source/libraries/ContractInterfaces.ts on lines 967..972
source/libraries/ContractInterfaces.ts on lines 1100..1105
source/libraries/ContractInterfaces.ts on lines 1107..1112
source/libraries/ContractInterfaces.ts on lines 1135..1140
source/libraries/ContractInterfaces.ts on lines 1170..1175
source/libraries/ContractInterfaces.ts on lines 1261..1266
source/libraries/ContractInterfaces.ts on lines 1436..1441
source/libraries/ContractInterfaces.ts on lines 1485..1490
source/libraries/ContractInterfaces.ts on lines 1527..1532
source/libraries/ContractInterfaces.ts on lines 2080..2085
source/libraries/ContractInterfaces.ts on lines 2164..2169
source/libraries/ContractInterfaces.ts on lines 2220..2225
source/libraries/ContractInterfaces.ts on lines 2402..2407
source/libraries/ContractInterfaces.ts on lines 2430..2435
source/libraries/ContractInterfaces.ts on lines 2465..2470
source/libraries/ContractInterfaces.ts on lines 2493..2498
source/libraries/ContractInterfaces.ts on lines 2500..2505
source/libraries/ContractInterfaces.ts on lines 2675..2680
source/libraries/ContractInterfaces.ts on lines 2703..2708
source/libraries/ContractInterfaces.ts on lines 2717..2722
source/libraries/ContractInterfaces.ts on lines 2724..2729
source/libraries/ContractInterfaces.ts on lines 2731..2736
source/libraries/ContractInterfaces.ts on lines 2738..2743
source/libraries/ContractInterfaces.ts on lines 2836..2841
source/libraries/ContractInterfaces.ts on lines 2920..2925
source/libraries/ContractInterfaces.ts on lines 2948..2953
source/libraries/ContractInterfaces.ts on lines 2983..2988
source/libraries/ContractInterfaces.ts on lines 3165..3170
source/libraries/ContractInterfaces.ts on lines 3242..3247
source/libraries/ContractInterfaces.ts on lines 3284..3289
source/libraries/ContractInterfaces.ts on lines 3459..3464
source/libraries/ContractInterfaces.ts on lines 3487..3492
source/libraries/ContractInterfaces.ts on lines 3494..3499
source/libraries/ContractInterfaces.ts on lines 3529..3534
source/libraries/ContractInterfaces.ts on lines 3620..3625
source/libraries/ContractInterfaces.ts on lines 3690..3695
source/libraries/ContractInterfaces.ts on lines 3704..3709
source/libraries/ContractInterfaces.ts on lines 3718..3723
source/libraries/ContractInterfaces.ts on lines 3851..3856
source/libraries/ContractInterfaces.ts on lines 3865..3870
source/libraries/ContractInterfaces.ts on lines 3935..3940
source/libraries/ContractInterfaces.ts on lines 3942..3947
source/libraries/ContractInterfaces.ts on lines 3970..3975
source/libraries/ContractInterfaces.ts on lines 3991..3996
source/libraries/ContractInterfaces.ts on lines 4082..4087
source/libraries/ContractInterfaces.ts on lines 4257..4262
source/libraries/ContractInterfaces.ts on lines 4348..4353
source/libraries/ContractInterfaces.ts on lines 4383..4388
source/libraries/ContractInterfaces.ts on lines 4411..4416
source/libraries/ContractInterfaces.ts on lines 4460..4465
source/libraries/ContractInterfaces.ts on lines 4481..4486
source/libraries/ContractInterfaces.ts on lines 4530..4535
source/libraries/ContractInterfaces.ts on lines 4544..4549
source/libraries/ContractInterfaces.ts on lines 4572..4577
source/libraries/ContractInterfaces.ts on lines 4642..4647
source/libraries/ContractInterfaces.ts on lines 4656..4661
source/libraries/ContractInterfaces.ts on lines 4838..4843
source/libraries/ContractInterfaces.ts on lines 4852..4857
source/libraries/ContractInterfaces.ts on lines 4901..4906
source/libraries/ContractInterfaces.ts on lines 4915..4920
source/libraries/ContractInterfaces.ts on lines 5006..5011
source/libraries/ContractInterfaces.ts on lines 5048..5053
source/libraries/ContractInterfaces.ts on lines 5083..5088
source/libraries/ContractInterfaces.ts on lines 5874..5879
source/libraries/ContractInterfaces.ts on lines 5902..5907
source/libraries/ContractInterfaces.ts on lines 5923..5928
source/libraries/ContractInterfaces.ts on lines 5979..5984

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

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

        public totalSupply_ = async( options?: { sender?: string }): Promise<BN> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <BN>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 69 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 736..741
source/libraries/ContractInterfaces.ts on lines 925..930
source/libraries/ContractInterfaces.ts on lines 967..972
source/libraries/ContractInterfaces.ts on lines 1100..1105
source/libraries/ContractInterfaces.ts on lines 1107..1112
source/libraries/ContractInterfaces.ts on lines 1135..1140
source/libraries/ContractInterfaces.ts on lines 1170..1175
source/libraries/ContractInterfaces.ts on lines 1261..1266
source/libraries/ContractInterfaces.ts on lines 1436..1441
source/libraries/ContractInterfaces.ts on lines 1485..1490
source/libraries/ContractInterfaces.ts on lines 1527..1532
source/libraries/ContractInterfaces.ts on lines 2080..2085
source/libraries/ContractInterfaces.ts on lines 2164..2169
source/libraries/ContractInterfaces.ts on lines 2220..2225
source/libraries/ContractInterfaces.ts on lines 2402..2407
source/libraries/ContractInterfaces.ts on lines 2430..2435
source/libraries/ContractInterfaces.ts on lines 2465..2470
source/libraries/ContractInterfaces.ts on lines 2493..2498
source/libraries/ContractInterfaces.ts on lines 2500..2505
source/libraries/ContractInterfaces.ts on lines 2675..2680
source/libraries/ContractInterfaces.ts on lines 2703..2708
source/libraries/ContractInterfaces.ts on lines 2717..2722
source/libraries/ContractInterfaces.ts on lines 2724..2729
source/libraries/ContractInterfaces.ts on lines 2731..2736
source/libraries/ContractInterfaces.ts on lines 2738..2743
source/libraries/ContractInterfaces.ts on lines 2836..2841
source/libraries/ContractInterfaces.ts on lines 2920..2925
source/libraries/ContractInterfaces.ts on lines 2948..2953
source/libraries/ContractInterfaces.ts on lines 2983..2988
source/libraries/ContractInterfaces.ts on lines 3165..3170
source/libraries/ContractInterfaces.ts on lines 3242..3247
source/libraries/ContractInterfaces.ts on lines 3284..3289
source/libraries/ContractInterfaces.ts on lines 3459..3464
source/libraries/ContractInterfaces.ts on lines 3487..3492
source/libraries/ContractInterfaces.ts on lines 3494..3499
source/libraries/ContractInterfaces.ts on lines 3529..3534
source/libraries/ContractInterfaces.ts on lines 3620..3625
source/libraries/ContractInterfaces.ts on lines 3690..3695
source/libraries/ContractInterfaces.ts on lines 3704..3709
source/libraries/ContractInterfaces.ts on lines 3718..3723
source/libraries/ContractInterfaces.ts on lines 3851..3856
source/libraries/ContractInterfaces.ts on lines 3865..3870
source/libraries/ContractInterfaces.ts on lines 3935..3940
source/libraries/ContractInterfaces.ts on lines 3942..3947
source/libraries/ContractInterfaces.ts on lines 3970..3975
source/libraries/ContractInterfaces.ts on lines 3991..3996
source/libraries/ContractInterfaces.ts on lines 4082..4087
source/libraries/ContractInterfaces.ts on lines 4257..4262
source/libraries/ContractInterfaces.ts on lines 4348..4353
source/libraries/ContractInterfaces.ts on lines 4383..4388
source/libraries/ContractInterfaces.ts on lines 4411..4416
source/libraries/ContractInterfaces.ts on lines 4460..4465
source/libraries/ContractInterfaces.ts on lines 4481..4486
source/libraries/ContractInterfaces.ts on lines 4530..4535
source/libraries/ContractInterfaces.ts on lines 4544..4549
source/libraries/ContractInterfaces.ts on lines 4572..4577
source/libraries/ContractInterfaces.ts on lines 4642..4647
source/libraries/ContractInterfaces.ts on lines 4656..4661
source/libraries/ContractInterfaces.ts on lines 4838..4843
source/libraries/ContractInterfaces.ts on lines 4852..4857
source/libraries/ContractInterfaces.ts on lines 4901..4906
source/libraries/ContractInterfaces.ts on lines 4915..4920
source/libraries/ContractInterfaces.ts on lines 5006..5011
source/libraries/ContractInterfaces.ts on lines 5048..5053
source/libraries/ContractInterfaces.ts on lines 5083..5088
source/libraries/ContractInterfaces.ts on lines 5874..5879
source/libraries/ContractInterfaces.ts on lines 5902..5907
source/libraries/ContractInterfaces.ts on lines 5923..5928
source/libraries/ContractInterfaces.ts on lines 5979..5984

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

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

        public ETERNAL_APPROVAL_VALUE_ = async( options?: { sender?: string }): Promise<BN> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[],"name":"ETERNAL_APPROVAL_VALUE","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <BN>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 69 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 736..741
source/libraries/ContractInterfaces.ts on lines 904..909
source/libraries/ContractInterfaces.ts on lines 925..930
source/libraries/ContractInterfaces.ts on lines 967..972
source/libraries/ContractInterfaces.ts on lines 1100..1105
source/libraries/ContractInterfaces.ts on lines 1107..1112
source/libraries/ContractInterfaces.ts on lines 1135..1140
source/libraries/ContractInterfaces.ts on lines 1261..1266
source/libraries/ContractInterfaces.ts on lines 1436..1441
source/libraries/ContractInterfaces.ts on lines 1485..1490
source/libraries/ContractInterfaces.ts on lines 1527..1532
source/libraries/ContractInterfaces.ts on lines 2080..2085
source/libraries/ContractInterfaces.ts on lines 2164..2169
source/libraries/ContractInterfaces.ts on lines 2220..2225
source/libraries/ContractInterfaces.ts on lines 2402..2407
source/libraries/ContractInterfaces.ts on lines 2430..2435
source/libraries/ContractInterfaces.ts on lines 2465..2470
source/libraries/ContractInterfaces.ts on lines 2493..2498
source/libraries/ContractInterfaces.ts on lines 2500..2505
source/libraries/ContractInterfaces.ts on lines 2675..2680
source/libraries/ContractInterfaces.ts on lines 2703..2708
source/libraries/ContractInterfaces.ts on lines 2717..2722
source/libraries/ContractInterfaces.ts on lines 2724..2729
source/libraries/ContractInterfaces.ts on lines 2731..2736
source/libraries/ContractInterfaces.ts on lines 2738..2743
source/libraries/ContractInterfaces.ts on lines 2836..2841
source/libraries/ContractInterfaces.ts on lines 2920..2925
source/libraries/ContractInterfaces.ts on lines 2948..2953
source/libraries/ContractInterfaces.ts on lines 2983..2988
source/libraries/ContractInterfaces.ts on lines 3165..3170
source/libraries/ContractInterfaces.ts on lines 3242..3247
source/libraries/ContractInterfaces.ts on lines 3284..3289
source/libraries/ContractInterfaces.ts on lines 3459..3464
source/libraries/ContractInterfaces.ts on lines 3487..3492
source/libraries/ContractInterfaces.ts on lines 3494..3499
source/libraries/ContractInterfaces.ts on lines 3529..3534
source/libraries/ContractInterfaces.ts on lines 3620..3625
source/libraries/ContractInterfaces.ts on lines 3690..3695
source/libraries/ContractInterfaces.ts on lines 3704..3709
source/libraries/ContractInterfaces.ts on lines 3718..3723
source/libraries/ContractInterfaces.ts on lines 3851..3856
source/libraries/ContractInterfaces.ts on lines 3865..3870
source/libraries/ContractInterfaces.ts on lines 3935..3940
source/libraries/ContractInterfaces.ts on lines 3942..3947
source/libraries/ContractInterfaces.ts on lines 3970..3975
source/libraries/ContractInterfaces.ts on lines 3991..3996
source/libraries/ContractInterfaces.ts on lines 4082..4087
source/libraries/ContractInterfaces.ts on lines 4257..4262
source/libraries/ContractInterfaces.ts on lines 4348..4353
source/libraries/ContractInterfaces.ts on lines 4383..4388
source/libraries/ContractInterfaces.ts on lines 4411..4416
source/libraries/ContractInterfaces.ts on lines 4460..4465
source/libraries/ContractInterfaces.ts on lines 4481..4486
source/libraries/ContractInterfaces.ts on lines 4530..4535
source/libraries/ContractInterfaces.ts on lines 4544..4549
source/libraries/ContractInterfaces.ts on lines 4572..4577
source/libraries/ContractInterfaces.ts on lines 4642..4647
source/libraries/ContractInterfaces.ts on lines 4656..4661
source/libraries/ContractInterfaces.ts on lines 4838..4843
source/libraries/ContractInterfaces.ts on lines 4852..4857
source/libraries/ContractInterfaces.ts on lines 4901..4906
source/libraries/ContractInterfaces.ts on lines 4915..4920
source/libraries/ContractInterfaces.ts on lines 5006..5011
source/libraries/ContractInterfaces.ts on lines 5048..5053
source/libraries/ContractInterfaces.ts on lines 5083..5088
source/libraries/ContractInterfaces.ts on lines 5874..5879
source/libraries/ContractInterfaces.ts on lines 5902..5907
source/libraries/ContractInterfaces.ts on lines 5923..5928
source/libraries/ContractInterfaces.ts on lines 5979..5984

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

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

        public getStake_ = async( options?: { sender?: string }): Promise<BN> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[],"name":"getStake","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <BN>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 69 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 736..741
source/libraries/ContractInterfaces.ts on lines 904..909
source/libraries/ContractInterfaces.ts on lines 925..930
source/libraries/ContractInterfaces.ts on lines 967..972
source/libraries/ContractInterfaces.ts on lines 1100..1105
source/libraries/ContractInterfaces.ts on lines 1107..1112
source/libraries/ContractInterfaces.ts on lines 1135..1140
source/libraries/ContractInterfaces.ts on lines 1170..1175
source/libraries/ContractInterfaces.ts on lines 1261..1266
source/libraries/ContractInterfaces.ts on lines 1436..1441
source/libraries/ContractInterfaces.ts on lines 1485..1490
source/libraries/ContractInterfaces.ts on lines 1527..1532
source/libraries/ContractInterfaces.ts on lines 2080..2085
source/libraries/ContractInterfaces.ts on lines 2164..2169
source/libraries/ContractInterfaces.ts on lines 2220..2225
source/libraries/ContractInterfaces.ts on lines 2402..2407
source/libraries/ContractInterfaces.ts on lines 2465..2470
source/libraries/ContractInterfaces.ts on lines 2493..2498
source/libraries/ContractInterfaces.ts on lines 2500..2505
source/libraries/ContractInterfaces.ts on lines 2675..2680
source/libraries/ContractInterfaces.ts on lines 2703..2708
source/libraries/ContractInterfaces.ts on lines 2717..2722
source/libraries/ContractInterfaces.ts on lines 2724..2729
source/libraries/ContractInterfaces.ts on lines 2731..2736
source/libraries/ContractInterfaces.ts on lines 2738..2743
source/libraries/ContractInterfaces.ts on lines 2836..2841
source/libraries/ContractInterfaces.ts on lines 2920..2925
source/libraries/ContractInterfaces.ts on lines 2948..2953
source/libraries/ContractInterfaces.ts on lines 2983..2988
source/libraries/ContractInterfaces.ts on lines 3165..3170
source/libraries/ContractInterfaces.ts on lines 3242..3247
source/libraries/ContractInterfaces.ts on lines 3284..3289
source/libraries/ContractInterfaces.ts on lines 3459..3464
source/libraries/ContractInterfaces.ts on lines 3487..3492
source/libraries/ContractInterfaces.ts on lines 3494..3499
source/libraries/ContractInterfaces.ts on lines 3529..3534
source/libraries/ContractInterfaces.ts on lines 3620..3625
source/libraries/ContractInterfaces.ts on lines 3690..3695
source/libraries/ContractInterfaces.ts on lines 3704..3709
source/libraries/ContractInterfaces.ts on lines 3718..3723
source/libraries/ContractInterfaces.ts on lines 3851..3856
source/libraries/ContractInterfaces.ts on lines 3865..3870
source/libraries/ContractInterfaces.ts on lines 3935..3940
source/libraries/ContractInterfaces.ts on lines 3942..3947
source/libraries/ContractInterfaces.ts on lines 3970..3975
source/libraries/ContractInterfaces.ts on lines 3991..3996
source/libraries/ContractInterfaces.ts on lines 4082..4087
source/libraries/ContractInterfaces.ts on lines 4257..4262
source/libraries/ContractInterfaces.ts on lines 4348..4353
source/libraries/ContractInterfaces.ts on lines 4383..4388
source/libraries/ContractInterfaces.ts on lines 4411..4416
source/libraries/ContractInterfaces.ts on lines 4460..4465
source/libraries/ContractInterfaces.ts on lines 4481..4486
source/libraries/ContractInterfaces.ts on lines 4530..4535
source/libraries/ContractInterfaces.ts on lines 4544..4549
source/libraries/ContractInterfaces.ts on lines 4572..4577
source/libraries/ContractInterfaces.ts on lines 4642..4647
source/libraries/ContractInterfaces.ts on lines 4656..4661
source/libraries/ContractInterfaces.ts on lines 4838..4843
source/libraries/ContractInterfaces.ts on lines 4852..4857
source/libraries/ContractInterfaces.ts on lines 4901..4906
source/libraries/ContractInterfaces.ts on lines 4915..4920
source/libraries/ContractInterfaces.ts on lines 5006..5011
source/libraries/ContractInterfaces.ts on lines 5048..5053
source/libraries/ContractInterfaces.ts on lines 5083..5088
source/libraries/ContractInterfaces.ts on lines 5874..5879
source/libraries/ContractInterfaces.ts on lines 5902..5907
source/libraries/ContractInterfaces.ts on lines 5923..5928
source/libraries/ContractInterfaces.ts on lines 5979..5984

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

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

        public getNumberOfOutcomes_ = async( options?: { sender?: string }): Promise<BN> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[],"name":"getNumberOfOutcomes","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <BN>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 69 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 736..741
source/libraries/ContractInterfaces.ts on lines 904..909
source/libraries/ContractInterfaces.ts on lines 925..930
source/libraries/ContractInterfaces.ts on lines 967..972
source/libraries/ContractInterfaces.ts on lines 1100..1105
source/libraries/ContractInterfaces.ts on lines 1107..1112
source/libraries/ContractInterfaces.ts on lines 1135..1140
source/libraries/ContractInterfaces.ts on lines 1170..1175
source/libraries/ContractInterfaces.ts on lines 1261..1266
source/libraries/ContractInterfaces.ts on lines 1436..1441
source/libraries/ContractInterfaces.ts on lines 1485..1490
source/libraries/ContractInterfaces.ts on lines 1527..1532
source/libraries/ContractInterfaces.ts on lines 2080..2085
source/libraries/ContractInterfaces.ts on lines 2164..2169
source/libraries/ContractInterfaces.ts on lines 2220..2225
source/libraries/ContractInterfaces.ts on lines 2402..2407
source/libraries/ContractInterfaces.ts on lines 2430..2435
source/libraries/ContractInterfaces.ts on lines 2465..2470
source/libraries/ContractInterfaces.ts on lines 2493..2498
source/libraries/ContractInterfaces.ts on lines 2500..2505
source/libraries/ContractInterfaces.ts on lines 2675..2680
source/libraries/ContractInterfaces.ts on lines 2703..2708
source/libraries/ContractInterfaces.ts on lines 2717..2722
source/libraries/ContractInterfaces.ts on lines 2724..2729
source/libraries/ContractInterfaces.ts on lines 2731..2736
source/libraries/ContractInterfaces.ts on lines 2738..2743
source/libraries/ContractInterfaces.ts on lines 2836..2841
source/libraries/ContractInterfaces.ts on lines 2920..2925
source/libraries/ContractInterfaces.ts on lines 2948..2953
source/libraries/ContractInterfaces.ts on lines 2983..2988
source/libraries/ContractInterfaces.ts on lines 3165..3170
source/libraries/ContractInterfaces.ts on lines 3242..3247
source/libraries/ContractInterfaces.ts on lines 3284..3289
source/libraries/ContractInterfaces.ts on lines 3459..3464
source/libraries/ContractInterfaces.ts on lines 3494..3499
source/libraries/ContractInterfaces.ts on lines 3529..3534
source/libraries/ContractInterfaces.ts on lines 3620..3625
source/libraries/ContractInterfaces.ts on lines 3690..3695
source/libraries/ContractInterfaces.ts on lines 3704..3709
source/libraries/ContractInterfaces.ts on lines 3718..3723
source/libraries/ContractInterfaces.ts on lines 3851..3856
source/libraries/ContractInterfaces.ts on lines 3865..3870
source/libraries/ContractInterfaces.ts on lines 3935..3940
source/libraries/ContractInterfaces.ts on lines 3942..3947
source/libraries/ContractInterfaces.ts on lines 3970..3975
source/libraries/ContractInterfaces.ts on lines 3991..3996
source/libraries/ContractInterfaces.ts on lines 4082..4087
source/libraries/ContractInterfaces.ts on lines 4257..4262
source/libraries/ContractInterfaces.ts on lines 4348..4353
source/libraries/ContractInterfaces.ts on lines 4383..4388
source/libraries/ContractInterfaces.ts on lines 4411..4416
source/libraries/ContractInterfaces.ts on lines 4460..4465
source/libraries/ContractInterfaces.ts on lines 4481..4486
source/libraries/ContractInterfaces.ts on lines 4530..4535
source/libraries/ContractInterfaces.ts on lines 4544..4549
source/libraries/ContractInterfaces.ts on lines 4572..4577
source/libraries/ContractInterfaces.ts on lines 4642..4647
source/libraries/ContractInterfaces.ts on lines 4656..4661
source/libraries/ContractInterfaces.ts on lines 4838..4843
source/libraries/ContractInterfaces.ts on lines 4852..4857
source/libraries/ContractInterfaces.ts on lines 4901..4906
source/libraries/ContractInterfaces.ts on lines 4915..4920
source/libraries/ContractInterfaces.ts on lines 5006..5011
source/libraries/ContractInterfaces.ts on lines 5048..5053
source/libraries/ContractInterfaces.ts on lines 5083..5088
source/libraries/ContractInterfaces.ts on lines 5874..5879
source/libraries/ContractInterfaces.ts on lines 5902..5907
source/libraries/ContractInterfaces.ts on lines 5923..5928
source/libraries/ContractInterfaces.ts on lines 5979..5984

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

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

        public getTotalTheoreticalSupply_ = async( options?: { sender?: string }): Promise<BN> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[],"name":"getTotalTheoreticalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <BN>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 69 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 736..741
source/libraries/ContractInterfaces.ts on lines 904..909
source/libraries/ContractInterfaces.ts on lines 925..930
source/libraries/ContractInterfaces.ts on lines 967..972
source/libraries/ContractInterfaces.ts on lines 1100..1105
source/libraries/ContractInterfaces.ts on lines 1107..1112
source/libraries/ContractInterfaces.ts on lines 1135..1140
source/libraries/ContractInterfaces.ts on lines 1170..1175
source/libraries/ContractInterfaces.ts on lines 1261..1266
source/libraries/ContractInterfaces.ts on lines 1436..1441
source/libraries/ContractInterfaces.ts on lines 1485..1490
source/libraries/ContractInterfaces.ts on lines 1527..1532
source/libraries/ContractInterfaces.ts on lines 2080..2085
source/libraries/ContractInterfaces.ts on lines 2164..2169
source/libraries/ContractInterfaces.ts on lines 2220..2225
source/libraries/ContractInterfaces.ts on lines 2402..2407
source/libraries/ContractInterfaces.ts on lines 2430..2435
source/libraries/ContractInterfaces.ts on lines 2465..2470
source/libraries/ContractInterfaces.ts on lines 2493..2498
source/libraries/ContractInterfaces.ts on lines 2500..2505
source/libraries/ContractInterfaces.ts on lines 2675..2680
source/libraries/ContractInterfaces.ts on lines 2703..2708
source/libraries/ContractInterfaces.ts on lines 2717..2722
source/libraries/ContractInterfaces.ts on lines 2724..2729
source/libraries/ContractInterfaces.ts on lines 2731..2736
source/libraries/ContractInterfaces.ts on lines 2738..2743
source/libraries/ContractInterfaces.ts on lines 2836..2841
source/libraries/ContractInterfaces.ts on lines 2920..2925
source/libraries/ContractInterfaces.ts on lines 2948..2953
source/libraries/ContractInterfaces.ts on lines 2983..2988
source/libraries/ContractInterfaces.ts on lines 3165..3170
source/libraries/ContractInterfaces.ts on lines 3242..3247
source/libraries/ContractInterfaces.ts on lines 3284..3289
source/libraries/ContractInterfaces.ts on lines 3459..3464
source/libraries/ContractInterfaces.ts on lines 3487..3492
source/libraries/ContractInterfaces.ts on lines 3494..3499
source/libraries/ContractInterfaces.ts on lines 3529..3534
source/libraries/ContractInterfaces.ts on lines 3620..3625
source/libraries/ContractInterfaces.ts on lines 3690..3695
source/libraries/ContractInterfaces.ts on lines 3704..3709
source/libraries/ContractInterfaces.ts on lines 3718..3723
source/libraries/ContractInterfaces.ts on lines 3851..3856
source/libraries/ContractInterfaces.ts on lines 3865..3870
source/libraries/ContractInterfaces.ts on lines 3935..3940
source/libraries/ContractInterfaces.ts on lines 3970..3975
source/libraries/ContractInterfaces.ts on lines 3991..3996
source/libraries/ContractInterfaces.ts on lines 4082..4087
source/libraries/ContractInterfaces.ts on lines 4257..4262
source/libraries/ContractInterfaces.ts on lines 4348..4353
source/libraries/ContractInterfaces.ts on lines 4383..4388
source/libraries/ContractInterfaces.ts on lines 4411..4416
source/libraries/ContractInterfaces.ts on lines 4460..4465
source/libraries/ContractInterfaces.ts on lines 4481..4486
source/libraries/ContractInterfaces.ts on lines 4530..4535
source/libraries/ContractInterfaces.ts on lines 4544..4549
source/libraries/ContractInterfaces.ts on lines 4572..4577
source/libraries/ContractInterfaces.ts on lines 4642..4647
source/libraries/ContractInterfaces.ts on lines 4656..4661
source/libraries/ContractInterfaces.ts on lines 4838..4843
source/libraries/ContractInterfaces.ts on lines 4852..4857
source/libraries/ContractInterfaces.ts on lines 4901..4906
source/libraries/ContractInterfaces.ts on lines 4915..4920
source/libraries/ContractInterfaces.ts on lines 5006..5011
source/libraries/ContractInterfaces.ts on lines 5048..5053
source/libraries/ContractInterfaces.ts on lines 5083..5088
source/libraries/ContractInterfaces.ts on lines 5874..5879
source/libraries/ContractInterfaces.ts on lines 5902..5907
source/libraries/ContractInterfaces.ts on lines 5923..5928
source/libraries/ContractInterfaces.ts on lines 5979..5984

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

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

        public getForkReputationGoal_ = async( options?: { sender?: string }): Promise<BN> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[],"name":"getForkReputationGoal","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <BN>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 69 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 736..741
source/libraries/ContractInterfaces.ts on lines 904..909
source/libraries/ContractInterfaces.ts on lines 925..930
source/libraries/ContractInterfaces.ts on lines 967..972
source/libraries/ContractInterfaces.ts on lines 1100..1105
source/libraries/ContractInterfaces.ts on lines 1107..1112
source/libraries/ContractInterfaces.ts on lines 1135..1140
source/libraries/ContractInterfaces.ts on lines 1170..1175
source/libraries/ContractInterfaces.ts on lines 1261..1266
source/libraries/ContractInterfaces.ts on lines 1436..1441
source/libraries/ContractInterfaces.ts on lines 1485..1490
source/libraries/ContractInterfaces.ts on lines 1527..1532
source/libraries/ContractInterfaces.ts on lines 2080..2085
source/libraries/ContractInterfaces.ts on lines 2164..2169
source/libraries/ContractInterfaces.ts on lines 2220..2225
source/libraries/ContractInterfaces.ts on lines 2402..2407
source/libraries/ContractInterfaces.ts on lines 2430..2435
source/libraries/ContractInterfaces.ts on lines 2465..2470
source/libraries/ContractInterfaces.ts on lines 2493..2498
source/libraries/ContractInterfaces.ts on lines 2500..2505
source/libraries/ContractInterfaces.ts on lines 2675..2680
source/libraries/ContractInterfaces.ts on lines 2703..2708
source/libraries/ContractInterfaces.ts on lines 2717..2722
source/libraries/ContractInterfaces.ts on lines 2724..2729
source/libraries/ContractInterfaces.ts on lines 2731..2736
source/libraries/ContractInterfaces.ts on lines 2738..2743
source/libraries/ContractInterfaces.ts on lines 2836..2841
source/libraries/ContractInterfaces.ts on lines 2920..2925
source/libraries/ContractInterfaces.ts on lines 2948..2953
source/libraries/ContractInterfaces.ts on lines 2983..2988
source/libraries/ContractInterfaces.ts on lines 3165..3170
source/libraries/ContractInterfaces.ts on lines 3242..3247
source/libraries/ContractInterfaces.ts on lines 3284..3289
source/libraries/ContractInterfaces.ts on lines 3459..3464
source/libraries/ContractInterfaces.ts on lines 3487..3492
source/libraries/ContractInterfaces.ts on lines 3494..3499
source/libraries/ContractInterfaces.ts on lines 3529..3534
source/libraries/ContractInterfaces.ts on lines 3620..3625
source/libraries/ContractInterfaces.ts on lines 3690..3695
source/libraries/ContractInterfaces.ts on lines 3704..3709
source/libraries/ContractInterfaces.ts on lines 3718..3723
source/libraries/ContractInterfaces.ts on lines 3851..3856
source/libraries/ContractInterfaces.ts on lines 3865..3870
source/libraries/ContractInterfaces.ts on lines 3935..3940
source/libraries/ContractInterfaces.ts on lines 3942..3947
source/libraries/ContractInterfaces.ts on lines 3970..3975
source/libraries/ContractInterfaces.ts on lines 3991..3996
source/libraries/ContractInterfaces.ts on lines 4082..4087
source/libraries/ContractInterfaces.ts on lines 4257..4262
source/libraries/ContractInterfaces.ts on lines 4348..4353
source/libraries/ContractInterfaces.ts on lines 4383..4388
source/libraries/ContractInterfaces.ts on lines 4411..4416
source/libraries/ContractInterfaces.ts on lines 4460..4465
source/libraries/ContractInterfaces.ts on lines 4481..4486
source/libraries/ContractInterfaces.ts on lines 4530..4535
source/libraries/ContractInterfaces.ts on lines 4572..4577
source/libraries/ContractInterfaces.ts on lines 4642..4647
source/libraries/ContractInterfaces.ts on lines 4656..4661
source/libraries/ContractInterfaces.ts on lines 4838..4843
source/libraries/ContractInterfaces.ts on lines 4852..4857
source/libraries/ContractInterfaces.ts on lines 4901..4906
source/libraries/ContractInterfaces.ts on lines 4915..4920
source/libraries/ContractInterfaces.ts on lines 5006..5011
source/libraries/ContractInterfaces.ts on lines 5048..5053
source/libraries/ContractInterfaces.ts on lines 5083..5088
source/libraries/ContractInterfaces.ts on lines 5874..5879
source/libraries/ContractInterfaces.ts on lines 5902..5907
source/libraries/ContractInterfaces.ts on lines 5923..5928
source/libraries/ContractInterfaces.ts on lines 5979..5984

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

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

        public getNumTicks_ = async( options?: { sender?: string }): Promise<BN> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[],"name":"getNumTicks","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <BN>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 69 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 736..741
source/libraries/ContractInterfaces.ts on lines 904..909
source/libraries/ContractInterfaces.ts on lines 925..930
source/libraries/ContractInterfaces.ts on lines 967..972
source/libraries/ContractInterfaces.ts on lines 1100..1105
source/libraries/ContractInterfaces.ts on lines 1107..1112
source/libraries/ContractInterfaces.ts on lines 1135..1140
source/libraries/ContractInterfaces.ts on lines 1170..1175
source/libraries/ContractInterfaces.ts on lines 1261..1266
source/libraries/ContractInterfaces.ts on lines 1436..1441
source/libraries/ContractInterfaces.ts on lines 1485..1490
source/libraries/ContractInterfaces.ts on lines 1527..1532
source/libraries/ContractInterfaces.ts on lines 2080..2085
source/libraries/ContractInterfaces.ts on lines 2164..2169
source/libraries/ContractInterfaces.ts on lines 2220..2225
source/libraries/ContractInterfaces.ts on lines 2402..2407
source/libraries/ContractInterfaces.ts on lines 2430..2435
source/libraries/ContractInterfaces.ts on lines 2465..2470
source/libraries/ContractInterfaces.ts on lines 2493..2498
source/libraries/ContractInterfaces.ts on lines 2500..2505
source/libraries/ContractInterfaces.ts on lines 2675..2680
source/libraries/ContractInterfaces.ts on lines 2703..2708
source/libraries/ContractInterfaces.ts on lines 2717..2722
source/libraries/ContractInterfaces.ts on lines 2724..2729
source/libraries/ContractInterfaces.ts on lines 2731..2736
source/libraries/ContractInterfaces.ts on lines 2738..2743
source/libraries/ContractInterfaces.ts on lines 2836..2841
source/libraries/ContractInterfaces.ts on lines 2920..2925
source/libraries/ContractInterfaces.ts on lines 2948..2953
source/libraries/ContractInterfaces.ts on lines 2983..2988
source/libraries/ContractInterfaces.ts on lines 3165..3170
source/libraries/ContractInterfaces.ts on lines 3242..3247
source/libraries/ContractInterfaces.ts on lines 3284..3289
source/libraries/ContractInterfaces.ts on lines 3459..3464
source/libraries/ContractInterfaces.ts on lines 3487..3492
source/libraries/ContractInterfaces.ts on lines 3494..3499
source/libraries/ContractInterfaces.ts on lines 3529..3534
source/libraries/ContractInterfaces.ts on lines 3620..3625
source/libraries/ContractInterfaces.ts on lines 3690..3695
source/libraries/ContractInterfaces.ts on lines 3704..3709
source/libraries/ContractInterfaces.ts on lines 3851..3856
source/libraries/ContractInterfaces.ts on lines 3865..3870
source/libraries/ContractInterfaces.ts on lines 3935..3940
source/libraries/ContractInterfaces.ts on lines 3942..3947
source/libraries/ContractInterfaces.ts on lines 3970..3975
source/libraries/ContractInterfaces.ts on lines 3991..3996
source/libraries/ContractInterfaces.ts on lines 4082..4087
source/libraries/ContractInterfaces.ts on lines 4257..4262
source/libraries/ContractInterfaces.ts on lines 4348..4353
source/libraries/ContractInterfaces.ts on lines 4383..4388
source/libraries/ContractInterfaces.ts on lines 4411..4416
source/libraries/ContractInterfaces.ts on lines 4460..4465
source/libraries/ContractInterfaces.ts on lines 4481..4486
source/libraries/ContractInterfaces.ts on lines 4530..4535
source/libraries/ContractInterfaces.ts on lines 4544..4549
source/libraries/ContractInterfaces.ts on lines 4572..4577
source/libraries/ContractInterfaces.ts on lines 4642..4647
source/libraries/ContractInterfaces.ts on lines 4656..4661
source/libraries/ContractInterfaces.ts on lines 4838..4843
source/libraries/ContractInterfaces.ts on lines 4852..4857
source/libraries/ContractInterfaces.ts on lines 4901..4906
source/libraries/ContractInterfaces.ts on lines 4915..4920
source/libraries/ContractInterfaces.ts on lines 5006..5011
source/libraries/ContractInterfaces.ts on lines 5048..5053
source/libraries/ContractInterfaces.ts on lines 5083..5088
source/libraries/ContractInterfaces.ts on lines 5874..5879
source/libraries/ContractInterfaces.ts on lines 5902..5907
source/libraries/ContractInterfaces.ts on lines 5923..5928
source/libraries/ContractInterfaces.ts on lines 5979..5984

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

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

        public getDisputeRoundDurationInSeconds_ = async( options?: { sender?: string }): Promise<BN> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[],"name":"getDisputeRoundDurationInSeconds","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <BN>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 69 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 736..741
source/libraries/ContractInterfaces.ts on lines 904..909
source/libraries/ContractInterfaces.ts on lines 925..930
source/libraries/ContractInterfaces.ts on lines 967..972
source/libraries/ContractInterfaces.ts on lines 1100..1105
source/libraries/ContractInterfaces.ts on lines 1107..1112
source/libraries/ContractInterfaces.ts on lines 1135..1140
source/libraries/ContractInterfaces.ts on lines 1170..1175
source/libraries/ContractInterfaces.ts on lines 1261..1266
source/libraries/ContractInterfaces.ts on lines 1436..1441
source/libraries/ContractInterfaces.ts on lines 1485..1490
source/libraries/ContractInterfaces.ts on lines 1527..1532
source/libraries/ContractInterfaces.ts on lines 2080..2085
source/libraries/ContractInterfaces.ts on lines 2164..2169
source/libraries/ContractInterfaces.ts on lines 2220..2225
source/libraries/ContractInterfaces.ts on lines 2402..2407
source/libraries/ContractInterfaces.ts on lines 2430..2435
source/libraries/ContractInterfaces.ts on lines 2465..2470
source/libraries/ContractInterfaces.ts on lines 2493..2498
source/libraries/ContractInterfaces.ts on lines 2500..2505
source/libraries/ContractInterfaces.ts on lines 2675..2680
source/libraries/ContractInterfaces.ts on lines 2703..2708
source/libraries/ContractInterfaces.ts on lines 2717..2722
source/libraries/ContractInterfaces.ts on lines 2724..2729
source/libraries/ContractInterfaces.ts on lines 2731..2736
source/libraries/ContractInterfaces.ts on lines 2738..2743
source/libraries/ContractInterfaces.ts on lines 2836..2841
source/libraries/ContractInterfaces.ts on lines 2920..2925
source/libraries/ContractInterfaces.ts on lines 2948..2953
source/libraries/ContractInterfaces.ts on lines 2983..2988
source/libraries/ContractInterfaces.ts on lines 3165..3170
source/libraries/ContractInterfaces.ts on lines 3242..3247
source/libraries/ContractInterfaces.ts on lines 3284..3289
source/libraries/ContractInterfaces.ts on lines 3459..3464
source/libraries/ContractInterfaces.ts on lines 3487..3492
source/libraries/ContractInterfaces.ts on lines 3494..3499
source/libraries/ContractInterfaces.ts on lines 3529..3534
source/libraries/ContractInterfaces.ts on lines 3620..3625
source/libraries/ContractInterfaces.ts on lines 3690..3695
source/libraries/ContractInterfaces.ts on lines 3704..3709
source/libraries/ContractInterfaces.ts on lines 3718..3723
source/libraries/ContractInterfaces.ts on lines 3851..3856
source/libraries/ContractInterfaces.ts on lines 3865..3870
source/libraries/ContractInterfaces.ts on lines 3935..3940
source/libraries/ContractInterfaces.ts on lines 3942..3947
source/libraries/ContractInterfaces.ts on lines 3970..3975
source/libraries/ContractInterfaces.ts on lines 3991..3996
source/libraries/ContractInterfaces.ts on lines 4082..4087
source/libraries/ContractInterfaces.ts on lines 4257..4262
source/libraries/ContractInterfaces.ts on lines 4348..4353
source/libraries/ContractInterfaces.ts on lines 4411..4416
source/libraries/ContractInterfaces.ts on lines 4460..4465
source/libraries/ContractInterfaces.ts on lines 4481..4486
source/libraries/ContractInterfaces.ts on lines 4530..4535
source/libraries/ContractInterfaces.ts on lines 4544..4549
source/libraries/ContractInterfaces.ts on lines 4572..4577
source/libraries/ContractInterfaces.ts on lines 4642..4647
source/libraries/ContractInterfaces.ts on lines 4656..4661
source/libraries/ContractInterfaces.ts on lines 4838..4843
source/libraries/ContractInterfaces.ts on lines 4852..4857
source/libraries/ContractInterfaces.ts on lines 4901..4906
source/libraries/ContractInterfaces.ts on lines 4915..4920
source/libraries/ContractInterfaces.ts on lines 5006..5011
source/libraries/ContractInterfaces.ts on lines 5048..5053
source/libraries/ContractInterfaces.ts on lines 5083..5088
source/libraries/ContractInterfaces.ts on lines 5874..5879
source/libraries/ContractInterfaces.ts on lines 5902..5907
source/libraries/ContractInterfaces.ts on lines 5923..5928
source/libraries/ContractInterfaces.ts on lines 5979..5984

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

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

        public getOrCacheValidityBond_ = async( options?: { sender?: string }): Promise<BN> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"getOrCacheValidityBond","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <BN>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 69 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 736..741
source/libraries/ContractInterfaces.ts on lines 904..909
source/libraries/ContractInterfaces.ts on lines 925..930
source/libraries/ContractInterfaces.ts on lines 967..972
source/libraries/ContractInterfaces.ts on lines 1100..1105
source/libraries/ContractInterfaces.ts on lines 1107..1112
source/libraries/ContractInterfaces.ts on lines 1135..1140
source/libraries/ContractInterfaces.ts on lines 1170..1175
source/libraries/ContractInterfaces.ts on lines 1261..1266
source/libraries/ContractInterfaces.ts on lines 1436..1441
source/libraries/ContractInterfaces.ts on lines 1485..1490
source/libraries/ContractInterfaces.ts on lines 1527..1532
source/libraries/ContractInterfaces.ts on lines 2080..2085
source/libraries/ContractInterfaces.ts on lines 2164..2169
source/libraries/ContractInterfaces.ts on lines 2220..2225
source/libraries/ContractInterfaces.ts on lines 2402..2407
source/libraries/ContractInterfaces.ts on lines 2430..2435
source/libraries/ContractInterfaces.ts on lines 2465..2470
source/libraries/ContractInterfaces.ts on lines 2493..2498
source/libraries/ContractInterfaces.ts on lines 2500..2505
source/libraries/ContractInterfaces.ts on lines 2675..2680
source/libraries/ContractInterfaces.ts on lines 2703..2708
source/libraries/ContractInterfaces.ts on lines 2717..2722
source/libraries/ContractInterfaces.ts on lines 2724..2729
source/libraries/ContractInterfaces.ts on lines 2731..2736
source/libraries/ContractInterfaces.ts on lines 2738..2743
source/libraries/ContractInterfaces.ts on lines 2836..2841
source/libraries/ContractInterfaces.ts on lines 2920..2925
source/libraries/ContractInterfaces.ts on lines 2948..2953
source/libraries/ContractInterfaces.ts on lines 2983..2988
source/libraries/ContractInterfaces.ts on lines 3165..3170
source/libraries/ContractInterfaces.ts on lines 3242..3247
source/libraries/ContractInterfaces.ts on lines 3284..3289
source/libraries/ContractInterfaces.ts on lines 3459..3464
source/libraries/ContractInterfaces.ts on lines 3487..3492
source/libraries/ContractInterfaces.ts on lines 3494..3499
source/libraries/ContractInterfaces.ts on lines 3529..3534
source/libraries/ContractInterfaces.ts on lines 3620..3625
source/libraries/ContractInterfaces.ts on lines 3690..3695
source/libraries/ContractInterfaces.ts on lines 3704..3709
source/libraries/ContractInterfaces.ts on lines 3718..3723
source/libraries/ContractInterfaces.ts on lines 3851..3856
source/libraries/ContractInterfaces.ts on lines 3865..3870
source/libraries/ContractInterfaces.ts on lines 3935..3940
source/libraries/ContractInterfaces.ts on lines 3942..3947
source/libraries/ContractInterfaces.ts on lines 3970..3975
source/libraries/ContractInterfaces.ts on lines 3991..3996
source/libraries/ContractInterfaces.ts on lines 4082..4087
source/libraries/ContractInterfaces.ts on lines 4257..4262
source/libraries/ContractInterfaces.ts on lines 4348..4353
source/libraries/ContractInterfaces.ts on lines 4383..4388
source/libraries/ContractInterfaces.ts on lines 4411..4416
source/libraries/ContractInterfaces.ts on lines 4460..4465
source/libraries/ContractInterfaces.ts on lines 4481..4486
source/libraries/ContractInterfaces.ts on lines 4530..4535
source/libraries/ContractInterfaces.ts on lines 4544..4549
source/libraries/ContractInterfaces.ts on lines 4572..4577
source/libraries/ContractInterfaces.ts on lines 4656..4661
source/libraries/ContractInterfaces.ts on lines 4838..4843
source/libraries/ContractInterfaces.ts on lines 4852..4857
source/libraries/ContractInterfaces.ts on lines 4901..4906
source/libraries/ContractInterfaces.ts on lines 4915..4920
source/libraries/ContractInterfaces.ts on lines 5006..5011
source/libraries/ContractInterfaces.ts on lines 5048..5053
source/libraries/ContractInterfaces.ts on lines 5083..5088
source/libraries/ContractInterfaces.ts on lines 5874..5879
source/libraries/ContractInterfaces.ts on lines 5902..5907
source/libraries/ContractInterfaces.ts on lines 5923..5928
source/libraries/ContractInterfaces.ts on lines 5979..5984

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

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

        public getEndTime_ = async( options?: { sender?: string }): Promise<BN> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[],"name":"getEndTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <BN>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 69 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 736..741
source/libraries/ContractInterfaces.ts on lines 904..909
source/libraries/ContractInterfaces.ts on lines 925..930
source/libraries/ContractInterfaces.ts on lines 967..972
source/libraries/ContractInterfaces.ts on lines 1100..1105
source/libraries/ContractInterfaces.ts on lines 1107..1112
source/libraries/ContractInterfaces.ts on lines 1135..1140
source/libraries/ContractInterfaces.ts on lines 1170..1175
source/libraries/ContractInterfaces.ts on lines 1261..1266
source/libraries/ContractInterfaces.ts on lines 1436..1441
source/libraries/ContractInterfaces.ts on lines 1485..1490
source/libraries/ContractInterfaces.ts on lines 1527..1532
source/libraries/ContractInterfaces.ts on lines 2080..2085
source/libraries/ContractInterfaces.ts on lines 2164..2169
source/libraries/ContractInterfaces.ts on lines 2220..2225
source/libraries/ContractInterfaces.ts on lines 2402..2407
source/libraries/ContractInterfaces.ts on lines 2430..2435
source/libraries/ContractInterfaces.ts on lines 2465..2470
source/libraries/ContractInterfaces.ts on lines 2493..2498
source/libraries/ContractInterfaces.ts on lines 2500..2505
source/libraries/ContractInterfaces.ts on lines 2675..2680
source/libraries/ContractInterfaces.ts on lines 2703..2708
source/libraries/ContractInterfaces.ts on lines 2717..2722
source/libraries/ContractInterfaces.ts on lines 2731..2736
source/libraries/ContractInterfaces.ts on lines 2738..2743
source/libraries/ContractInterfaces.ts on lines 2836..2841
source/libraries/ContractInterfaces.ts on lines 2920..2925
source/libraries/ContractInterfaces.ts on lines 2948..2953
source/libraries/ContractInterfaces.ts on lines 2983..2988
source/libraries/ContractInterfaces.ts on lines 3165..3170
source/libraries/ContractInterfaces.ts on lines 3242..3247
source/libraries/ContractInterfaces.ts on lines 3284..3289
source/libraries/ContractInterfaces.ts on lines 3459..3464
source/libraries/ContractInterfaces.ts on lines 3487..3492
source/libraries/ContractInterfaces.ts on lines 3494..3499
source/libraries/ContractInterfaces.ts on lines 3529..3534
source/libraries/ContractInterfaces.ts on lines 3620..3625
source/libraries/ContractInterfaces.ts on lines 3690..3695
source/libraries/ContractInterfaces.ts on lines 3704..3709
source/libraries/ContractInterfaces.ts on lines 3718..3723
source/libraries/ContractInterfaces.ts on lines 3851..3856
source/libraries/ContractInterfaces.ts on lines 3865..3870
source/libraries/ContractInterfaces.ts on lines 3935..3940
source/libraries/ContractInterfaces.ts on lines 3942..3947
source/libraries/ContractInterfaces.ts on lines 3970..3975
source/libraries/ContractInterfaces.ts on lines 3991..3996
source/libraries/ContractInterfaces.ts on lines 4082..4087
source/libraries/ContractInterfaces.ts on lines 4257..4262
source/libraries/ContractInterfaces.ts on lines 4348..4353
source/libraries/ContractInterfaces.ts on lines 4383..4388
source/libraries/ContractInterfaces.ts on lines 4411..4416
source/libraries/ContractInterfaces.ts on lines 4460..4465
source/libraries/ContractInterfaces.ts on lines 4481..4486
source/libraries/ContractInterfaces.ts on lines 4530..4535
source/libraries/ContractInterfaces.ts on lines 4544..4549
source/libraries/ContractInterfaces.ts on lines 4572..4577
source/libraries/ContractInterfaces.ts on lines 4642..4647
source/libraries/ContractInterfaces.ts on lines 4656..4661
source/libraries/ContractInterfaces.ts on lines 4838..4843
source/libraries/ContractInterfaces.ts on lines 4852..4857
source/libraries/ContractInterfaces.ts on lines 4901..4906
source/libraries/ContractInterfaces.ts on lines 4915..4920
source/libraries/ContractInterfaces.ts on lines 5006..5011
source/libraries/ContractInterfaces.ts on lines 5048..5053
source/libraries/ContractInterfaces.ts on lines 5083..5088
source/libraries/ContractInterfaces.ts on lines 5874..5879
source/libraries/ContractInterfaces.ts on lines 5902..5907
source/libraries/ContractInterfaces.ts on lines 5923..5928
source/libraries/ContractInterfaces.ts on lines 5979..5984

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

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

        public getForkEndTime_ = async( options?: { sender?: string }): Promise<BN> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[],"name":"getForkEndTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <BN>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 69 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 736..741
source/libraries/ContractInterfaces.ts on lines 904..909
source/libraries/ContractInterfaces.ts on lines 925..930
source/libraries/ContractInterfaces.ts on lines 967..972
source/libraries/ContractInterfaces.ts on lines 1100..1105
source/libraries/ContractInterfaces.ts on lines 1107..1112
source/libraries/ContractInterfaces.ts on lines 1135..1140
source/libraries/ContractInterfaces.ts on lines 1170..1175
source/libraries/ContractInterfaces.ts on lines 1261..1266
source/libraries/ContractInterfaces.ts on lines 1436..1441
source/libraries/ContractInterfaces.ts on lines 1485..1490
source/libraries/ContractInterfaces.ts on lines 1527..1532
source/libraries/ContractInterfaces.ts on lines 2080..2085
source/libraries/ContractInterfaces.ts on lines 2164..2169
source/libraries/ContractInterfaces.ts on lines 2220..2225
source/libraries/ContractInterfaces.ts on lines 2402..2407
source/libraries/ContractInterfaces.ts on lines 2430..2435
source/libraries/ContractInterfaces.ts on lines 2465..2470
source/libraries/ContractInterfaces.ts on lines 2493..2498
source/libraries/ContractInterfaces.ts on lines 2500..2505
source/libraries/ContractInterfaces.ts on lines 2675..2680
source/libraries/ContractInterfaces.ts on lines 2703..2708
source/libraries/ContractInterfaces.ts on lines 2717..2722
source/libraries/ContractInterfaces.ts on lines 2724..2729
source/libraries/ContractInterfaces.ts on lines 2731..2736
source/libraries/ContractInterfaces.ts on lines 2738..2743
source/libraries/ContractInterfaces.ts on lines 2836..2841
source/libraries/ContractInterfaces.ts on lines 2920..2925
source/libraries/ContractInterfaces.ts on lines 2948..2953
source/libraries/ContractInterfaces.ts on lines 2983..2988
source/libraries/ContractInterfaces.ts on lines 3165..3170
source/libraries/ContractInterfaces.ts on lines 3242..3247
source/libraries/ContractInterfaces.ts on lines 3284..3289
source/libraries/ContractInterfaces.ts on lines 3459..3464
source/libraries/ContractInterfaces.ts on lines 3487..3492
source/libraries/ContractInterfaces.ts on lines 3494..3499
source/libraries/ContractInterfaces.ts on lines 3529..3534
source/libraries/ContractInterfaces.ts on lines 3620..3625
source/libraries/ContractInterfaces.ts on lines 3690..3695
source/libraries/ContractInterfaces.ts on lines 3704..3709
source/libraries/ContractInterfaces.ts on lines 3718..3723
source/libraries/ContractInterfaces.ts on lines 3851..3856
source/libraries/ContractInterfaces.ts on lines 3865..3870
source/libraries/ContractInterfaces.ts on lines 3935..3940
source/libraries/ContractInterfaces.ts on lines 3942..3947
source/libraries/ContractInterfaces.ts on lines 3970..3975
source/libraries/ContractInterfaces.ts on lines 3991..3996
source/libraries/ContractInterfaces.ts on lines 4082..4087
source/libraries/ContractInterfaces.ts on lines 4257..4262
source/libraries/ContractInterfaces.ts on lines 4348..4353
source/libraries/ContractInterfaces.ts on lines 4383..4388
source/libraries/ContractInterfaces.ts on lines 4411..4416
source/libraries/ContractInterfaces.ts on lines 4460..4465
source/libraries/ContractInterfaces.ts on lines 4481..4486
source/libraries/ContractInterfaces.ts on lines 4544..4549
source/libraries/ContractInterfaces.ts on lines 4572..4577
source/libraries/ContractInterfaces.ts on lines 4642..4647
source/libraries/ContractInterfaces.ts on lines 4656..4661
source/libraries/ContractInterfaces.ts on lines 4838..4843
source/libraries/ContractInterfaces.ts on lines 4852..4857
source/libraries/ContractInterfaces.ts on lines 4901..4906
source/libraries/ContractInterfaces.ts on lines 4915..4920
source/libraries/ContractInterfaces.ts on lines 5006..5011
source/libraries/ContractInterfaces.ts on lines 5048..5053
source/libraries/ContractInterfaces.ts on lines 5083..5088
source/libraries/ContractInterfaces.ts on lines 5874..5879
source/libraries/ContractInterfaces.ts on lines 5902..5907
source/libraries/ContractInterfaces.ts on lines 5923..5928
source/libraries/ContractInterfaces.ts on lines 5979..5984

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

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

        public getRepPriceInAttoEth_ = async( options?: { sender?: string }): Promise<BN> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[],"name":"getRepPriceInAttoEth","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <BN>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 69 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 736..741
source/libraries/ContractInterfaces.ts on lines 904..909
source/libraries/ContractInterfaces.ts on lines 925..930
source/libraries/ContractInterfaces.ts on lines 967..972
source/libraries/ContractInterfaces.ts on lines 1100..1105
source/libraries/ContractInterfaces.ts on lines 1107..1112
source/libraries/ContractInterfaces.ts on lines 1135..1140
source/libraries/ContractInterfaces.ts on lines 1170..1175
source/libraries/ContractInterfaces.ts on lines 1261..1266
source/libraries/ContractInterfaces.ts on lines 1436..1441
source/libraries/ContractInterfaces.ts on lines 1485..1490
source/libraries/ContractInterfaces.ts on lines 1527..1532
source/libraries/ContractInterfaces.ts on lines 2080..2085
source/libraries/ContractInterfaces.ts on lines 2164..2169
source/libraries/ContractInterfaces.ts on lines 2220..2225
source/libraries/ContractInterfaces.ts on lines 2402..2407
source/libraries/ContractInterfaces.ts on lines 2430..2435
source/libraries/ContractInterfaces.ts on lines 2465..2470
source/libraries/ContractInterfaces.ts on lines 2493..2498
source/libraries/ContractInterfaces.ts on lines 2500..2505
source/libraries/ContractInterfaces.ts on lines 2675..2680
source/libraries/ContractInterfaces.ts on lines 2703..2708
source/libraries/ContractInterfaces.ts on lines 2717..2722
source/libraries/ContractInterfaces.ts on lines 2724..2729
source/libraries/ContractInterfaces.ts on lines 2731..2736
source/libraries/ContractInterfaces.ts on lines 2738..2743
source/libraries/ContractInterfaces.ts on lines 2836..2841
source/libraries/ContractInterfaces.ts on lines 2920..2925
source/libraries/ContractInterfaces.ts on lines 2948..2953
source/libraries/ContractInterfaces.ts on lines 2983..2988
source/libraries/ContractInterfaces.ts on lines 3165..3170
source/libraries/ContractInterfaces.ts on lines 3242..3247
source/libraries/ContractInterfaces.ts on lines 3284..3289
source/libraries/ContractInterfaces.ts on lines 3459..3464
source/libraries/ContractInterfaces.ts on lines 3487..3492
source/libraries/ContractInterfaces.ts on lines 3494..3499
source/libraries/ContractInterfaces.ts on lines 3529..3534
source/libraries/ContractInterfaces.ts on lines 3620..3625
source/libraries/ContractInterfaces.ts on lines 3690..3695
source/libraries/ContractInterfaces.ts on lines 3704..3709
source/libraries/ContractInterfaces.ts on lines 3718..3723
source/libraries/ContractInterfaces.ts on lines 3851..3856
source/libraries/ContractInterfaces.ts on lines 3935..3940
source/libraries/ContractInterfaces.ts on lines 3942..3947
source/libraries/ContractInterfaces.ts on lines 3970..3975
source/libraries/ContractInterfaces.ts on lines 3991..3996
source/libraries/ContractInterfaces.ts on lines 4082..4087
source/libraries/ContractInterfaces.ts on lines 4257..4262
source/libraries/ContractInterfaces.ts on lines 4348..4353
source/libraries/ContractInterfaces.ts on lines 4383..4388
source/libraries/ContractInterfaces.ts on lines 4411..4416
source/libraries/ContractInterfaces.ts on lines 4460..4465
source/libraries/ContractInterfaces.ts on lines 4481..4486
source/libraries/ContractInterfaces.ts on lines 4530..4535
source/libraries/ContractInterfaces.ts on lines 4544..4549
source/libraries/ContractInterfaces.ts on lines 4572..4577
source/libraries/ContractInterfaces.ts on lines 4642..4647
source/libraries/ContractInterfaces.ts on lines 4656..4661
source/libraries/ContractInterfaces.ts on lines 4838..4843
source/libraries/ContractInterfaces.ts on lines 4852..4857
source/libraries/ContractInterfaces.ts on lines 4901..4906
source/libraries/ContractInterfaces.ts on lines 4915..4920
source/libraries/ContractInterfaces.ts on lines 5006..5011
source/libraries/ContractInterfaces.ts on lines 5048..5053
source/libraries/ContractInterfaces.ts on lines 5083..5088
source/libraries/ContractInterfaces.ts on lines 5874..5879
source/libraries/ContractInterfaces.ts on lines 5902..5907
source/libraries/ContractInterfaces.ts on lines 5923..5928
source/libraries/ContractInterfaces.ts on lines 5979..5984

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

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

        public getTargetRepMarketCapInAttoeth_ = async( options?: { sender?: string }): Promise<BN> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[],"name":"getTargetRepMarketCapInAttoeth","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <BN>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 69 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 736..741
source/libraries/ContractInterfaces.ts on lines 904..909
source/libraries/ContractInterfaces.ts on lines 925..930
source/libraries/ContractInterfaces.ts on lines 967..972
source/libraries/ContractInterfaces.ts on lines 1100..1105
source/libraries/ContractInterfaces.ts on lines 1107..1112
source/libraries/ContractInterfaces.ts on lines 1135..1140
source/libraries/ContractInterfaces.ts on lines 1170..1175
source/libraries/ContractInterfaces.ts on lines 1261..1266
source/libraries/ContractInterfaces.ts on lines 1436..1441
source/libraries/ContractInterfaces.ts on lines 1485..1490
source/libraries/ContractInterfaces.ts on lines 1527..1532
source/libraries/ContractInterfaces.ts on lines 2080..2085
source/libraries/ContractInterfaces.ts on lines 2164..2169
source/libraries/ContractInterfaces.ts on lines 2220..2225
source/libraries/ContractInterfaces.ts on lines 2402..2407
source/libraries/ContractInterfaces.ts on lines 2430..2435
source/libraries/ContractInterfaces.ts on lines 2465..2470
source/libraries/ContractInterfaces.ts on lines 2493..2498
source/libraries/ContractInterfaces.ts on lines 2500..2505
source/libraries/ContractInterfaces.ts on lines 2675..2680
source/libraries/ContractInterfaces.ts on lines 2703..2708
source/libraries/ContractInterfaces.ts on lines 2717..2722
source/libraries/ContractInterfaces.ts on lines 2724..2729
source/libraries/ContractInterfaces.ts on lines 2731..2736
source/libraries/ContractInterfaces.ts on lines 2738..2743
source/libraries/ContractInterfaces.ts on lines 2836..2841
source/libraries/ContractInterfaces.ts on lines 2920..2925
source/libraries/ContractInterfaces.ts on lines 2948..2953
source/libraries/ContractInterfaces.ts on lines 2983..2988
source/libraries/ContractInterfaces.ts on lines 3165..3170
source/libraries/ContractInterfaces.ts on lines 3242..3247
source/libraries/ContractInterfaces.ts on lines 3284..3289
source/libraries/ContractInterfaces.ts on lines 3459..3464
source/libraries/ContractInterfaces.ts on lines 3487..3492
source/libraries/ContractInterfaces.ts on lines 3494..3499
source/libraries/ContractInterfaces.ts on lines 3529..3534
source/libraries/ContractInterfaces.ts on lines 3620..3625
source/libraries/ContractInterfaces.ts on lines 3690..3695
source/libraries/ContractInterfaces.ts on lines 3704..3709
source/libraries/ContractInterfaces.ts on lines 3718..3723
source/libraries/ContractInterfaces.ts on lines 3851..3856
source/libraries/ContractInterfaces.ts on lines 3865..3870
source/libraries/ContractInterfaces.ts on lines 3935..3940
source/libraries/ContractInterfaces.ts on lines 3942..3947
source/libraries/ContractInterfaces.ts on lines 3970..3975
source/libraries/ContractInterfaces.ts on lines 3991..3996
source/libraries/ContractInterfaces.ts on lines 4082..4087
source/libraries/ContractInterfaces.ts on lines 4257..4262
source/libraries/ContractInterfaces.ts on lines 4348..4353
source/libraries/ContractInterfaces.ts on lines 4383..4388
source/libraries/ContractInterfaces.ts on lines 4460..4465
source/libraries/ContractInterfaces.ts on lines 4481..4486
source/libraries/ContractInterfaces.ts on lines 4530..4535
source/libraries/ContractInterfaces.ts on lines 4544..4549
source/libraries/ContractInterfaces.ts on lines 4572..4577
source/libraries/ContractInterfaces.ts on lines 4642..4647
source/libraries/ContractInterfaces.ts on lines 4656..4661
source/libraries/ContractInterfaces.ts on lines 4838..4843
source/libraries/ContractInterfaces.ts on lines 4852..4857
source/libraries/ContractInterfaces.ts on lines 4901..4906
source/libraries/ContractInterfaces.ts on lines 4915..4920
source/libraries/ContractInterfaces.ts on lines 5006..5011
source/libraries/ContractInterfaces.ts on lines 5048..5053
source/libraries/ContractInterfaces.ts on lines 5083..5088
source/libraries/ContractInterfaces.ts on lines 5874..5879
source/libraries/ContractInterfaces.ts on lines 5902..5907
source/libraries/ContractInterfaces.ts on lines 5923..5928
source/libraries/ContractInterfaces.ts on lines 5979..5984

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

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

        public getOrCacheReportingFeeDivisor_ = async( options?: { sender?: string }): Promise<BN> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"getOrCacheReportingFeeDivisor","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <BN>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 69 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 736..741
source/libraries/ContractInterfaces.ts on lines 904..909
source/libraries/ContractInterfaces.ts on lines 925..930
source/libraries/ContractInterfaces.ts on lines 967..972
source/libraries/ContractInterfaces.ts on lines 1100..1105
source/libraries/ContractInterfaces.ts on lines 1107..1112
source/libraries/ContractInterfaces.ts on lines 1135..1140
source/libraries/ContractInterfaces.ts on lines 1170..1175
source/libraries/ContractInterfaces.ts on lines 1261..1266
source/libraries/ContractInterfaces.ts on lines 1436..1441
source/libraries/ContractInterfaces.ts on lines 1485..1490
source/libraries/ContractInterfaces.ts on lines 1527..1532
source/libraries/ContractInterfaces.ts on lines 2080..2085
source/libraries/ContractInterfaces.ts on lines 2164..2169
source/libraries/ContractInterfaces.ts on lines 2220..2225
source/libraries/ContractInterfaces.ts on lines 2402..2407
source/libraries/ContractInterfaces.ts on lines 2430..2435
source/libraries/ContractInterfaces.ts on lines 2465..2470
source/libraries/ContractInterfaces.ts on lines 2493..2498
source/libraries/ContractInterfaces.ts on lines 2500..2505
source/libraries/ContractInterfaces.ts on lines 2675..2680
source/libraries/ContractInterfaces.ts on lines 2703..2708
source/libraries/ContractInterfaces.ts on lines 2717..2722
source/libraries/ContractInterfaces.ts on lines 2724..2729
source/libraries/ContractInterfaces.ts on lines 2731..2736
source/libraries/ContractInterfaces.ts on lines 2738..2743
source/libraries/ContractInterfaces.ts on lines 2836..2841
source/libraries/ContractInterfaces.ts on lines 2920..2925
source/libraries/ContractInterfaces.ts on lines 2948..2953
source/libraries/ContractInterfaces.ts on lines 2983..2988
source/libraries/ContractInterfaces.ts on lines 3165..3170
source/libraries/ContractInterfaces.ts on lines 3242..3247
source/libraries/ContractInterfaces.ts on lines 3284..3289
source/libraries/ContractInterfaces.ts on lines 3459..3464
source/libraries/ContractInterfaces.ts on lines 3487..3492
source/libraries/ContractInterfaces.ts on lines 3494..3499
source/libraries/ContractInterfaces.ts on lines 3529..3534
source/libraries/ContractInterfaces.ts on lines 3620..3625
source/libraries/ContractInterfaces.ts on lines 3690..3695
source/libraries/ContractInterfaces.ts on lines 3704..3709
source/libraries/ContractInterfaces.ts on lines 3718..3723
source/libraries/ContractInterfaces.ts on lines 3851..3856
source/libraries/ContractInterfaces.ts on lines 3865..3870
source/libraries/ContractInterfaces.ts on lines 3935..3940
source/libraries/ContractInterfaces.ts on lines 3942..3947
source/libraries/ContractInterfaces.ts on lines 3970..3975
source/libraries/ContractInterfaces.ts on lines 3991..3996
source/libraries/ContractInterfaces.ts on lines 4082..4087
source/libraries/ContractInterfaces.ts on lines 4257..4262
source/libraries/ContractInterfaces.ts on lines 4348..4353
source/libraries/ContractInterfaces.ts on lines 4383..4388
source/libraries/ContractInterfaces.ts on lines 4411..4416
source/libraries/ContractInterfaces.ts on lines 4460..4465
source/libraries/ContractInterfaces.ts on lines 4481..4486
source/libraries/ContractInterfaces.ts on lines 4530..4535
source/libraries/ContractInterfaces.ts on lines 4544..4549
source/libraries/ContractInterfaces.ts on lines 4642..4647
source/libraries/ContractInterfaces.ts on lines 4656..4661
source/libraries/ContractInterfaces.ts on lines 4838..4843
source/libraries/ContractInterfaces.ts on lines 4852..4857
source/libraries/ContractInterfaces.ts on lines 4901..4906
source/libraries/ContractInterfaces.ts on lines 4915..4920
source/libraries/ContractInterfaces.ts on lines 5006..5011
source/libraries/ContractInterfaces.ts on lines 5048..5053
source/libraries/ContractInterfaces.ts on lines 5083..5088
source/libraries/ContractInterfaces.ts on lines 5874..5879
source/libraries/ContractInterfaces.ts on lines 5902..5907
source/libraries/ContractInterfaces.ts on lines 5923..5928
source/libraries/ContractInterfaces.ts on lines 5979..5984

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

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

        public getTimestamp_ = async( options?: { sender?: string }): Promise<BN> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[],"name":"getTimestamp","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <BN>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 69 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 736..741
source/libraries/ContractInterfaces.ts on lines 904..909
source/libraries/ContractInterfaces.ts on lines 925..930
source/libraries/ContractInterfaces.ts on lines 967..972
source/libraries/ContractInterfaces.ts on lines 1100..1105
source/libraries/ContractInterfaces.ts on lines 1107..1112
source/libraries/ContractInterfaces.ts on lines 1135..1140
source/libraries/ContractInterfaces.ts on lines 1170..1175
source/libraries/ContractInterfaces.ts on lines 1261..1266
source/libraries/ContractInterfaces.ts on lines 1436..1441
source/libraries/ContractInterfaces.ts on lines 1527..1532
source/libraries/ContractInterfaces.ts on lines 2080..2085
source/libraries/ContractInterfaces.ts on lines 2164..2169
source/libraries/ContractInterfaces.ts on lines 2220..2225
source/libraries/ContractInterfaces.ts on lines 2402..2407
source/libraries/ContractInterfaces.ts on lines 2430..2435
source/libraries/ContractInterfaces.ts on lines 2465..2470
source/libraries/ContractInterfaces.ts on lines 2493..2498
source/libraries/ContractInterfaces.ts on lines 2500..2505
source/libraries/ContractInterfaces.ts on lines 2675..2680
source/libraries/ContractInterfaces.ts on lines 2703..2708
source/libraries/ContractInterfaces.ts on lines 2717..2722
source/libraries/ContractInterfaces.ts on lines 2724..2729
source/libraries/ContractInterfaces.ts on lines 2731..2736
source/libraries/ContractInterfaces.ts on lines 2738..2743
source/libraries/ContractInterfaces.ts on lines 2836..2841
source/libraries/ContractInterfaces.ts on lines 2920..2925
source/libraries/ContractInterfaces.ts on lines 2948..2953
source/libraries/ContractInterfaces.ts on lines 2983..2988
source/libraries/ContractInterfaces.ts on lines 3165..3170
source/libraries/ContractInterfaces.ts on lines 3242..3247
source/libraries/ContractInterfaces.ts on lines 3284..3289
source/libraries/ContractInterfaces.ts on lines 3459..3464
source/libraries/ContractInterfaces.ts on lines 3487..3492
source/libraries/ContractInterfaces.ts on lines 3494..3499
source/libraries/ContractInterfaces.ts on lines 3529..3534
source/libraries/ContractInterfaces.ts on lines 3620..3625
source/libraries/ContractInterfaces.ts on lines 3690..3695
source/libraries/ContractInterfaces.ts on lines 3704..3709
source/libraries/ContractInterfaces.ts on lines 3718..3723
source/libraries/ContractInterfaces.ts on lines 3851..3856
source/libraries/ContractInterfaces.ts on lines 3865..3870
source/libraries/ContractInterfaces.ts on lines 3935..3940
source/libraries/ContractInterfaces.ts on lines 3942..3947
source/libraries/ContractInterfaces.ts on lines 3970..3975
source/libraries/ContractInterfaces.ts on lines 3991..3996
source/libraries/ContractInterfaces.ts on lines 4082..4087
source/libraries/ContractInterfaces.ts on lines 4257..4262
source/libraries/ContractInterfaces.ts on lines 4348..4353
source/libraries/ContractInterfaces.ts on lines 4383..4388
source/libraries/ContractInterfaces.ts on lines 4411..4416
source/libraries/ContractInterfaces.ts on lines 4460..4465
source/libraries/ContractInterfaces.ts on lines 4481..4486
source/libraries/ContractInterfaces.ts on lines 4530..4535
source/libraries/ContractInterfaces.ts on lines 4544..4549
source/libraries/ContractInterfaces.ts on lines 4572..4577
source/libraries/ContractInterfaces.ts on lines 4642..4647
source/libraries/ContractInterfaces.ts on lines 4656..4661
source/libraries/ContractInterfaces.ts on lines 4838..4843
source/libraries/ContractInterfaces.ts on lines 4852..4857
source/libraries/ContractInterfaces.ts on lines 4901..4906
source/libraries/ContractInterfaces.ts on lines 4915..4920
source/libraries/ContractInterfaces.ts on lines 5006..5011
source/libraries/ContractInterfaces.ts on lines 5048..5053
source/libraries/ContractInterfaces.ts on lines 5083..5088
source/libraries/ContractInterfaces.ts on lines 5874..5879
source/libraries/ContractInterfaces.ts on lines 5902..5907
source/libraries/ContractInterfaces.ts on lines 5923..5928
source/libraries/ContractInterfaces.ts on lines 5979..5984

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

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

        public getSize_ = async( options?: { sender?: string }): Promise<BN> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[],"name":"getSize","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <BN>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 69 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 736..741
source/libraries/ContractInterfaces.ts on lines 904..909
source/libraries/ContractInterfaces.ts on lines 925..930
source/libraries/ContractInterfaces.ts on lines 967..972
source/libraries/ContractInterfaces.ts on lines 1100..1105
source/libraries/ContractInterfaces.ts on lines 1107..1112
source/libraries/ContractInterfaces.ts on lines 1135..1140
source/libraries/ContractInterfaces.ts on lines 1170..1175
source/libraries/ContractInterfaces.ts on lines 1261..1266
source/libraries/ContractInterfaces.ts on lines 1436..1441
source/libraries/ContractInterfaces.ts on lines 1485..1490
source/libraries/ContractInterfaces.ts on lines 1527..1532
source/libraries/ContractInterfaces.ts on lines 2080..2085
source/libraries/ContractInterfaces.ts on lines 2164..2169
source/libraries/ContractInterfaces.ts on lines 2220..2225
source/libraries/ContractInterfaces.ts on lines 2402..2407
source/libraries/ContractInterfaces.ts on lines 2430..2435
source/libraries/ContractInterfaces.ts on lines 2465..2470
source/libraries/ContractInterfaces.ts on lines 2493..2498
source/libraries/ContractInterfaces.ts on lines 2500..2505
source/libraries/ContractInterfaces.ts on lines 2675..2680
source/libraries/ContractInterfaces.ts on lines 2703..2708
source/libraries/ContractInterfaces.ts on lines 2717..2722
source/libraries/ContractInterfaces.ts on lines 2724..2729
source/libraries/ContractInterfaces.ts on lines 2731..2736
source/libraries/ContractInterfaces.ts on lines 2738..2743
source/libraries/ContractInterfaces.ts on lines 2836..2841
source/libraries/ContractInterfaces.ts on lines 2920..2925
source/libraries/ContractInterfaces.ts on lines 2948..2953
source/libraries/ContractInterfaces.ts on lines 2983..2988
source/libraries/ContractInterfaces.ts on lines 3165..3170
source/libraries/ContractInterfaces.ts on lines 3284..3289
source/libraries/ContractInterfaces.ts on lines 3459..3464
source/libraries/ContractInterfaces.ts on lines 3487..3492
source/libraries/ContractInterfaces.ts on lines 3494..3499
source/libraries/ContractInterfaces.ts on lines 3529..3534
source/libraries/ContractInterfaces.ts on lines 3620..3625
source/libraries/ContractInterfaces.ts on lines 3690..3695
source/libraries/ContractInterfaces.ts on lines 3704..3709
source/libraries/ContractInterfaces.ts on lines 3718..3723
source/libraries/ContractInterfaces.ts on lines 3851..3856
source/libraries/ContractInterfaces.ts on lines 3865..3870
source/libraries/ContractInterfaces.ts on lines 3935..3940
source/libraries/ContractInterfaces.ts on lines 3942..3947
source/libraries/ContractInterfaces.ts on lines 3970..3975
source/libraries/ContractInterfaces.ts on lines 3991..3996
source/libraries/ContractInterfaces.ts on lines 4082..4087
source/libraries/ContractInterfaces.ts on lines 4257..4262
source/libraries/ContractInterfaces.ts on lines 4348..4353
source/libraries/ContractInterfaces.ts on lines 4383..4388
source/libraries/ContractInterfaces.ts on lines 4411..4416
source/libraries/ContractInterfaces.ts on lines 4460..4465
source/libraries/ContractInterfaces.ts on lines 4481..4486
source/libraries/ContractInterfaces.ts on lines 4530..4535
source/libraries/ContractInterfaces.ts on lines 4544..4549
source/libraries/ContractInterfaces.ts on lines 4572..4577
source/libraries/ContractInterfaces.ts on lines 4642..4647
source/libraries/ContractInterfaces.ts on lines 4656..4661
source/libraries/ContractInterfaces.ts on lines 4838..4843
source/libraries/ContractInterfaces.ts on lines 4852..4857
source/libraries/ContractInterfaces.ts on lines 4901..4906
source/libraries/ContractInterfaces.ts on lines 4915..4920
source/libraries/ContractInterfaces.ts on lines 5006..5011
source/libraries/ContractInterfaces.ts on lines 5048..5053
source/libraries/ContractInterfaces.ts on lines 5083..5088
source/libraries/ContractInterfaces.ts on lines 5874..5879
source/libraries/ContractInterfaces.ts on lines 5902..5907
source/libraries/ContractInterfaces.ts on lines 5923..5928
source/libraries/ContractInterfaces.ts on lines 5979..5984

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

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

        public getStake_ = async( options?: { sender?: string }): Promise<BN> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[],"name":"getStake","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <BN>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 69 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 736..741
source/libraries/ContractInterfaces.ts on lines 904..909
source/libraries/ContractInterfaces.ts on lines 925..930
source/libraries/ContractInterfaces.ts on lines 967..972
source/libraries/ContractInterfaces.ts on lines 1100..1105
source/libraries/ContractInterfaces.ts on lines 1107..1112
source/libraries/ContractInterfaces.ts on lines 1135..1140
source/libraries/ContractInterfaces.ts on lines 1170..1175
source/libraries/ContractInterfaces.ts on lines 1261..1266
source/libraries/ContractInterfaces.ts on lines 1436..1441
source/libraries/ContractInterfaces.ts on lines 1485..1490
source/libraries/ContractInterfaces.ts on lines 1527..1532
source/libraries/ContractInterfaces.ts on lines 2080..2085
source/libraries/ContractInterfaces.ts on lines 2164..2169
source/libraries/ContractInterfaces.ts on lines 2220..2225
source/libraries/ContractInterfaces.ts on lines 2402..2407
source/libraries/ContractInterfaces.ts on lines 2430..2435
source/libraries/ContractInterfaces.ts on lines 2465..2470
source/libraries/ContractInterfaces.ts on lines 2493..2498
source/libraries/ContractInterfaces.ts on lines 2500..2505
source/libraries/ContractInterfaces.ts on lines 2675..2680
source/libraries/ContractInterfaces.ts on lines 2703..2708
source/libraries/ContractInterfaces.ts on lines 2717..2722
source/libraries/ContractInterfaces.ts on lines 2724..2729
source/libraries/ContractInterfaces.ts on lines 2731..2736
source/libraries/ContractInterfaces.ts on lines 2738..2743
source/libraries/ContractInterfaces.ts on lines 2836..2841
source/libraries/ContractInterfaces.ts on lines 2920..2925
source/libraries/ContractInterfaces.ts on lines 2948..2953
source/libraries/ContractInterfaces.ts on lines 2983..2988
source/libraries/ContractInterfaces.ts on lines 3165..3170
source/libraries/ContractInterfaces.ts on lines 3242..3247
source/libraries/ContractInterfaces.ts on lines 3459..3464
source/libraries/ContractInterfaces.ts on lines 3487..3492
source/libraries/ContractInterfaces.ts on lines 3494..3499
source/libraries/ContractInterfaces.ts on lines 3529..3534
source/libraries/ContractInterfaces.ts on lines 3620..3625
source/libraries/ContractInterfaces.ts on lines 3690..3695
source/libraries/ContractInterfaces.ts on lines 3704..3709
source/libraries/ContractInterfaces.ts on lines 3718..3723
source/libraries/ContractInterfaces.ts on lines 3851..3856
source/libraries/ContractInterfaces.ts on lines 3865..3870
source/libraries/ContractInterfaces.ts on lines 3935..3940
source/libraries/ContractInterfaces.ts on lines 3942..3947
source/libraries/ContractInterfaces.ts on lines 3970..3975
source/libraries/ContractInterfaces.ts on lines 3991..3996
source/libraries/ContractInterfaces.ts on lines 4082..4087
source/libraries/ContractInterfaces.ts on lines 4257..4262
source/libraries/ContractInterfaces.ts on lines 4348..4353
source/libraries/ContractInterfaces.ts on lines 4383..4388
source/libraries/ContractInterfaces.ts on lines 4411..4416
source/libraries/ContractInterfaces.ts on lines 4460..4465
source/libraries/ContractInterfaces.ts on lines 4481..4486
source/libraries/ContractInterfaces.ts on lines 4530..4535
source/libraries/ContractInterfaces.ts on lines 4544..4549
source/libraries/ContractInterfaces.ts on lines 4572..4577
source/libraries/ContractInterfaces.ts on lines 4642..4647
source/libraries/ContractInterfaces.ts on lines 4656..4661
source/libraries/ContractInterfaces.ts on lines 4838..4843
source/libraries/ContractInterfaces.ts on lines 4852..4857
source/libraries/ContractInterfaces.ts on lines 4901..4906
source/libraries/ContractInterfaces.ts on lines 4915..4920
source/libraries/ContractInterfaces.ts on lines 5006..5011
source/libraries/ContractInterfaces.ts on lines 5048..5053
source/libraries/ContractInterfaces.ts on lines 5083..5088
source/libraries/ContractInterfaces.ts on lines 5874..5879
source/libraries/ContractInterfaces.ts on lines 5902..5907
source/libraries/ContractInterfaces.ts on lines 5923..5928
source/libraries/ContractInterfaces.ts on lines 5979..5984

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

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

        public getMarketCreatorSettlementFeeDivisor_ = async( options?: { sender?: string }): Promise<BN> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[],"name":"getMarketCreatorSettlementFeeDivisor","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [], options.sender);
            return <BN>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 69 other locations - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 736..741
source/libraries/ContractInterfaces.ts on lines 904..909
source/libraries/ContractInterfaces.ts on lines 925..930
source/libraries/ContractInterfaces.ts on lines 967..972
source/libraries/ContractInterfaces.ts on lines 1100..1105
source/libraries/ContractInterfaces.ts on lines 1107..1112
source/libraries/ContractInterfaces.ts on lines 1135..1140
source/libraries/ContractInterfaces.ts on lines 1170..1175
source/libraries/ContractInterfaces.ts on lines 1261..1266
source/libraries/ContractInterfaces.ts on lines 1436..1441
source/libraries/ContractInterfaces.ts on lines 1485..1490
source/libraries/ContractInterfaces.ts on lines 1527..1532
source/libraries/ContractInterfaces.ts on lines 2080..2085
source/libraries/ContractInterfaces.ts on lines 2164..2169
source/libraries/ContractInterfaces.ts on lines 2220..2225
source/libraries/ContractInterfaces.ts on lines 2402..2407
source/libraries/ContractInterfaces.ts on lines 2430..2435
source/libraries/ContractInterfaces.ts on lines 2465..2470
source/libraries/ContractInterfaces.ts on lines 2493..2498
source/libraries/ContractInterfaces.ts on lines 2500..2505
source/libraries/ContractInterfaces.ts on lines 2675..2680
source/libraries/ContractInterfaces.ts on lines 2703..2708
source/libraries/ContractInterfaces.ts on lines 2717..2722
source/libraries/ContractInterfaces.ts on lines 2724..2729
source/libraries/ContractInterfaces.ts on lines 2731..2736
source/libraries/ContractInterfaces.ts on lines 2738..2743
source/libraries/ContractInterfaces.ts on lines 2836..2841
source/libraries/ContractInterfaces.ts on lines 2920..2925
source/libraries/ContractInterfaces.ts on lines 2948..2953
source/libraries/ContractInterfaces.ts on lines 2983..2988
source/libraries/ContractInterfaces.ts on lines 3165..3170
source/libraries/ContractInterfaces.ts on lines 3242..3247
source/libraries/ContractInterfaces.ts on lines 3284..3289
source/libraries/ContractInterfaces.ts on lines 3487..3492
source/libraries/ContractInterfaces.ts on lines 3494..3499
source/libraries/ContractInterfaces.ts on lines 3529..3534
source/libraries/ContractInterfaces.ts on lines 3620..3625
source/libraries/ContractInterfaces.ts on lines 3690..3695
source/libraries/ContractInterfaces.ts on lines 3704..3709
source/libraries/ContractInterfaces.ts on lines 3718..3723
source/libraries/ContractInterfaces.ts on lines 3851..3856
source/libraries/ContractInterfaces.ts on lines 3865..3870
source/libraries/ContractInterfaces.ts on lines 3935..3940
source/libraries/ContractInterfaces.ts on lines 3942..3947
source/libraries/ContractInterfaces.ts on lines 3970..3975
source/libraries/ContractInterfaces.ts on lines 3991..3996
source/libraries/ContractInterfaces.ts on lines 4082..4087
source/libraries/ContractInterfaces.ts on lines 4257..4262
source/libraries/ContractInterfaces.ts on lines 4348..4353
source/libraries/ContractInterfaces.ts on lines 4383..4388
source/libraries/ContractInterfaces.ts on lines 4411..4416
source/libraries/ContractInterfaces.ts on lines 4460..4465
source/libraries/ContractInterfaces.ts on lines 4481..4486
source/libraries/ContractInterfaces.ts on lines 4530..4535
source/libraries/ContractInterfaces.ts on lines 4544..4549
source/libraries/ContractInterfaces.ts on lines 4572..4577
source/libraries/ContractInterfaces.ts on lines 4642..4647
source/libraries/ContractInterfaces.ts on lines 4656..4661
source/libraries/ContractInterfaces.ts on lines 4838..4843
source/libraries/ContractInterfaces.ts on lines 4852..4857
source/libraries/ContractInterfaces.ts on lines 4901..4906
source/libraries/ContractInterfaces.ts on lines 4915..4920
source/libraries/ContractInterfaces.ts on lines 5006..5011
source/libraries/ContractInterfaces.ts on lines 5048..5053
source/libraries/ContractInterfaces.ts on lines 5083..5088
source/libraries/ContractInterfaces.ts on lines 5874..5879
source/libraries/ContractInterfaces.ts on lines 5902..5907
source/libraries/ContractInterfaces.ts on lines 5923..5928
source/libraries/ContractInterfaces.ts on lines 5979..5984

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

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