AugurProject/augur-core

View on GitHub

Showing 833 of 833 total issues

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

        public getWorseOrderId_ = async(orderId: string, options?: { sender?: string }): Promise<string> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[{"name":"_orderId","type":"bytes32"}],"name":"getWorseOrderId","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [orderId], options.sender);
            return <string>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 11 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 869..874
source/libraries/ContractInterfaces.ts on lines 2024..2029
source/libraries/ContractInterfaces.ts on lines 2031..2036
source/libraries/ContractInterfaces.ts on lines 2045..2050
source/libraries/ContractInterfaces.ts on lines 2108..2113
source/libraries/ContractInterfaces.ts on lines 3739..3744
source/libraries/ContractInterfaces.ts on lines 4824..4829
source/libraries/ContractInterfaces.ts on lines 4859..4864
source/libraries/ContractInterfaces.ts on lines 5699..5704
source/libraries/ContractInterfaces.ts on lines 5727..5732
source/libraries/ContractInterfaces.ts on lines 5748..5753

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

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

        public getCrowdsourcer_ = async(payoutDistributionHash: string, options?: { sender?: string }): Promise<string> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[{"name":"_payoutDistributionHash","type":"bytes32"}],"name":"getCrowdsourcer","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [payoutDistributionHash], options.sender);
            return <string>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 11 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 869..874
source/libraries/ContractInterfaces.ts on lines 2024..2029
source/libraries/ContractInterfaces.ts on lines 2031..2036
source/libraries/ContractInterfaces.ts on lines 2045..2050
source/libraries/ContractInterfaces.ts on lines 2108..2113
source/libraries/ContractInterfaces.ts on lines 4824..4829
source/libraries/ContractInterfaces.ts on lines 4859..4864
source/libraries/ContractInterfaces.ts on lines 5671..5676
source/libraries/ContractInterfaces.ts on lines 5699..5704
source/libraries/ContractInterfaces.ts on lines 5727..5732
source/libraries/ContractInterfaces.ts on lines 5748..5753

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

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

        public getMarket_ = async(orderId: string, options?: { sender?: string }): Promise<string> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[{"name":"_orderId","type":"bytes32"}],"name":"getMarket","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [orderId], options.sender);
            return <string>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 11 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 869..874
source/libraries/ContractInterfaces.ts on lines 2024..2029
source/libraries/ContractInterfaces.ts on lines 2031..2036
source/libraries/ContractInterfaces.ts on lines 2045..2050
source/libraries/ContractInterfaces.ts on lines 2108..2113
source/libraries/ContractInterfaces.ts on lines 3739..3744
source/libraries/ContractInterfaces.ts on lines 4824..4829
source/libraries/ContractInterfaces.ts on lines 4859..4864
source/libraries/ContractInterfaces.ts on lines 5671..5676
source/libraries/ContractInterfaces.ts on lines 5699..5704
source/libraries/ContractInterfaces.ts on lines 5748..5753

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

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

        public getAsAddress_ = async(key: string, options?: { sender?: string }): Promise<string> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[{"name":"_key","type":"bytes32"}],"name":"getAsAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [key], options.sender);
            return <string>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 11 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 869..874
source/libraries/ContractInterfaces.ts on lines 2031..2036
source/libraries/ContractInterfaces.ts on lines 2045..2050
source/libraries/ContractInterfaces.ts on lines 2108..2113
source/libraries/ContractInterfaces.ts on lines 3739..3744
source/libraries/ContractInterfaces.ts on lines 4824..4829
source/libraries/ContractInterfaces.ts on lines 4859..4864
source/libraries/ContractInterfaces.ts on lines 5671..5676
source/libraries/ContractInterfaces.ts on lines 5699..5704
source/libraries/ContractInterfaces.ts on lines 5727..5732
source/libraries/ContractInterfaces.ts on lines 5748..5753

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

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

        public getValueOrZero_ = async(key: string, options?: { sender?: string }): Promise<string> => {
            options = options || {};
            const abi: AbiFunction = {"constant":true,"inputs":[{"name":"_key","type":"bytes32"}],"name":"getValueOrZero","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"};
            const result = await this.localCall(abi, [key], options.sender);
            return <string>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 11 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 869..874
source/libraries/ContractInterfaces.ts on lines 2024..2029
source/libraries/ContractInterfaces.ts on lines 2045..2050
source/libraries/ContractInterfaces.ts on lines 2108..2113
source/libraries/ContractInterfaces.ts on lines 3739..3744
source/libraries/ContractInterfaces.ts on lines 4824..4829
source/libraries/ContractInterfaces.ts on lines 4859..4864
source/libraries/ContractInterfaces.ts on lines 5671..5676
source/libraries/ContractInterfaces.ts on lines 5699..5704
source/libraries/ContractInterfaces.ts on lines 5727..5732
source/libraries/ContractInterfaces.ts on lines 5748..5753

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

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

        public getOrCreateFeeWindowBefore_ = async(feeWindow: string, options?: { sender?: string }): Promise<string> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_feeWindow","type":"address"}],"name":"getOrCreateFeeWindowBefore","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            const result = await this.localCall(abi, [feeWindow], options.sender);
            return <string>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 11 other locations - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 869..874
source/libraries/ContractInterfaces.ts on lines 2024..2029
source/libraries/ContractInterfaces.ts on lines 2031..2036
source/libraries/ContractInterfaces.ts on lines 2045..2050
source/libraries/ContractInterfaces.ts on lines 2108..2113
source/libraries/ContractInterfaces.ts on lines 3739..3744
source/libraries/ContractInterfaces.ts on lines 4859..4864
source/libraries/ContractInterfaces.ts on lines 5671..5676
source/libraries/ContractInterfaces.ts on lines 5699..5704
source/libraries/ContractInterfaces.ts on lines 5727..5732
source/libraries/ContractInterfaces.ts on lines 5748..5753

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

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

        public depositEther = async( options?: { sender?: string, gasPrice?: BN, attachedEth?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"depositEther","outputs":[{"name":"","type":"bool"}],"payable":true,"stateMutability":"payable","type":"function"};
            await this.remoteCall(abi, [], "depositEther", options.sender, options.gasPrice, options.attachedEth);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 1 other location - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 5132..5137

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

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

        public depositEther = async( options?: { sender?: string, gasPrice?: BN, attachedEth?: BN }): Promise<void> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"depositEther","outputs":[{"name":"","type":"bool"}],"payable":true,"stateMutability":"payable","type":"function"};
            await this.remoteCall(abi, [], "depositEther", options.sender, options.gasPrice, options.attachedEth);
            return;
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 1 other location - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 3368..3373

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

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

        public depositEther_ = async( options?: { sender?: string, attachedEth?: BN }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"depositEther","outputs":[{"name":"","type":"bool"}],"payable":true,"stateMutability":"payable","type":"function"};
            const result = await this.localCall(abi, [], options.sender, options.attachedEth);
            return <boolean>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 1 other location - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 5139..5144

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

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

        public depositEther_ = async( options?: { sender?: string, attachedEth?: BN }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[],"name":"depositEther","outputs":[{"name":"","type":"bool"}],"payable":true,"stateMutability":"payable","type":"function"};
            const result = await this.localCall(abi, [], options.sender, options.attachedEth);
            return <boolean>result[0];
Severity: Major
Found in source/libraries/ContractInterfaces.ts and 1 other location - About 6 hrs to fix
source/libraries/ContractInterfaces.ts on lines 3375..3380

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

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

DisputeCrowdsourcer has 43 functions (exceeds 20 allowed). Consider refactoring.
Open

    export class DisputeCrowdsourcer extends Controlled {
        public constructor(connector: Connector, accountManager: AccountManager, address: string, defaultGasPrice: BN) {
            super(connector, accountManager, address, defaultGasPrice);
        }

Severity: Minor
Found in source/libraries/ContractInterfaces.ts - About 5 hrs to fix

    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 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 getNumMarkets_ = async( options?: { sender?: string }): Promise<BN> => {
                options = options || {};
                const abi: AbiFunction = {"constant":true,"inputs":[],"name":"getNumMarkets","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 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 getDesignatedReportingEndTime_ = async( options?: { sender?: string }): Promise<BN> => {
                options = options || {};
                const abi: AbiFunction = {"constant":true,"inputs":[],"name":"getDesignatedReportingEndTime","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 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 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 1485..1490
    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 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 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 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 decimals_ = async( options?: { sender?: string }): Promise<BN> => {
                options = options || {};
                const abi: AbiFunction = {"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"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 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 getNumIncorrectDesignatedReportMarkets_ = async( options?: { sender?: string }): Promise<BN> => {
                options = options || {};
                const abi: AbiFunction = {"constant":true,"inputs":[],"name":"getNumIncorrectDesignatedReportMarkets","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 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 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 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