AugurProject/augur-core

View on GitHub

Showing 833 of 833 total issues

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

Identical blocks of code found in 2 locations. Consider refactoring.
Open

            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_type","type":"uint8"},{"name":"_price","type":"uint256"},{"name":"_bestOrderId","type":"bytes32"},{"name":"_worstOrderId","type":"bytes32"},{"name":"_betterOrderId","type":"bytes32"},{"name":"_worseOrderId","type":"bytes32"}],"name":"findBoundingOrders","outputs":[{"name":"","type":"bytes32"},{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 1 other location - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 5799..5799

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

Identical blocks of code found in 2 locations. Consider refactoring.
Open

            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_type","type":"uint8"},{"name":"_price","type":"uint256"},{"name":"_bestOrderId","type":"bytes32"},{"name":"_worstOrderId","type":"bytes32"},{"name":"_betterOrderId","type":"bytes32"},{"name":"_worseOrderId","type":"bytes32"}],"name":"findBoundingOrders","outputs":[{"name":"","type":"bytes32"},{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 1 other location - About 5 hrs to fix
source/libraries/ContractInterfaces.ts on lines 5806..5806

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

TestFixture has 41 functions (exceeds 20 allowed). Consider refactoring.
Open

export class TestFixture {
    private static GAS_PRICE: BN = new BN(1);

    private readonly connector: Connector;
    public readonly accountManager: AccountManager;
Severity: Minor
Found in source/tests-integration/TestFixture.ts - About 5 hrs to fix

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

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

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 144.

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

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

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

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

    Refactorings

    Further Reading

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

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

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 144.

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

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

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

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

    Refactorings

    Further Reading

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

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

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 144.

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

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

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

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

    Refactorings

    Further Reading

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

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

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 144.

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

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

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

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

    Refactorings

    Further Reading

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

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

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 144.

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

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

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

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

    Refactorings

    Further Reading

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

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

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 144.

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

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

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

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

    Refactorings

    Further Reading

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

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

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 144.

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

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

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

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

    Refactorings

    Further Reading

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

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

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 144.

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

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

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

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

    Refactorings

    Further Reading

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

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

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 144.

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

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

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

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

    Refactorings

    Further Reading

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

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

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 144.

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

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

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

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

    Refactorings

    Further Reading

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

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

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 144.

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

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

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

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

    Refactorings

    Further Reading

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

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

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 144.

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

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

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

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

    Refactorings

    Further Reading

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

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

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 144.

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

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

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

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

    Refactorings

    Further Reading

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

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

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 144.

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

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

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

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

    Refactorings

    Further Reading

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

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

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 144.

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

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

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

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

    Refactorings

    Further Reading

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

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

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 144.

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

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

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

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

    Refactorings

    Further Reading

    Severity
    Category
    Status
    Source
    Language