AugurProject/augur-core

View on GitHub

Showing 833 of 833 total issues

TestNetReputationToken has 58 functions (exceeds 20 allowed). Consider refactoring.
Open

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

Severity: Major
Found in source/libraries/ContractInterfaces.ts - About 1 day to fix

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

            public isBetterPrice_ = async(type: BN, price: BN, orderId: string, options?: { sender?: string }): Promise<boolean> => {
                options = options || {};
                const abi: AbiFunction = {"constant":true,"inputs":[{"name":"_type","type":"uint8"},{"name":"_price","type":"uint256"},{"name":"_orderId","type":"bytes32"}],"name":"isBetterPrice","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"};
                const result = await this.localCall(abi, [type, price, orderId], options.sender);
                return <boolean>result[0];
    Severity: Major
    Found in source/libraries/ContractInterfaces.ts and 3 other locations - About 1 day to fix
    source/libraries/ContractInterfaces.ts on lines 5538..5543
    source/libraries/ContractInterfaces.ts on lines 5615..5620
    source/libraries/ContractInterfaces.ts on lines 5741..5746

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

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

            public assertIsNotBetterPrice_ = async(type: BN, price: BN, betterOrderId: string, options?: { sender?: string }): Promise<boolean> => {
                options = options || {};
                const abi: AbiFunction = {"constant":true,"inputs":[{"name":"_type","type":"uint8"},{"name":"_price","type":"uint256"},{"name":"_betterOrderId","type":"bytes32"}],"name":"assertIsNotBetterPrice","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"};
                const result = await this.localCall(abi, [type, price, betterOrderId], options.sender);
                return <boolean>result[0];
    Severity: Major
    Found in source/libraries/ContractInterfaces.ts and 3 other locations - About 1 day to fix
    source/libraries/ContractInterfaces.ts on lines 5615..5620
    source/libraries/ContractInterfaces.ts on lines 5629..5634
    source/libraries/ContractInterfaces.ts on lines 5741..5746

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

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

            public assertIsNotWorsePrice_ = async(type: BN, price: BN, worseOrderId: string, options?: { sender?: string }): Promise<boolean> => {
                options = options || {};
                const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_type","type":"uint8"},{"name":"_price","type":"uint256"},{"name":"_worseOrderId","type":"bytes32"}],"name":"assertIsNotWorsePrice","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
                const result = await this.localCall(abi, [type, price, worseOrderId], options.sender);
                return <boolean>result[0];
    Severity: Major
    Found in source/libraries/ContractInterfaces.ts and 3 other locations - About 1 day to fix
    source/libraries/ContractInterfaces.ts on lines 5538..5543
    source/libraries/ContractInterfaces.ts on lines 5629..5634
    source/libraries/ContractInterfaces.ts on lines 5741..5746

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

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

            public isWorsePrice_ = async(type: BN, price: BN, orderId: string, options?: { sender?: string }): Promise<boolean> => {
                options = options || {};
                const abi: AbiFunction = {"constant":true,"inputs":[{"name":"_type","type":"uint8"},{"name":"_price","type":"uint256"},{"name":"_orderId","type":"bytes32"}],"name":"isWorsePrice","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"};
                const result = await this.localCall(abi, [type, price, orderId], options.sender);
                return <boolean>result[0];
    Severity: Major
    Found in source/libraries/ContractInterfaces.ts and 3 other locations - About 1 day to fix
    source/libraries/ContractInterfaces.ts on lines 5538..5543
    source/libraries/ContractInterfaces.ts on lines 5615..5620
    source/libraries/ContractInterfaces.ts on lines 5629..5634

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

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

            public getBestOrderId_ = async(type: BN, market: string, outcome: BN, options?: { sender?: string }): Promise<string> => {
                options = options || {};
                const abi: AbiFunction = {"constant":true,"inputs":[{"name":"_type","type":"uint8"},{"name":"_market","type":"address"},{"name":"_outcome","type":"uint256"}],"name":"getBestOrderId","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"};
                const result = await this.localCall(abi, [type, market, outcome], options.sender);
                return <string>result[0];
    Severity: Major
    Found in source/libraries/ContractInterfaces.ts and 1 other location - About 1 day to fix
    source/libraries/ContractInterfaces.ts on lines 5678..5683

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

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

            public recordFillOrder_ = async(orderId: string, sharesFilled: BN, tokensFilled: BN, options?: { sender?: string }): Promise<boolean> => {
                options = options || {};
                const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_orderId","type":"bytes32"},{"name":"_sharesFilled","type":"uint256"},{"name":"_tokensFilled","type":"uint256"}],"name":"recordFillOrder","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
                const result = await this.localCall(abi, [orderId, sharesFilled, tokensFilled], options.sender);
                return <boolean>result[0];
    Severity: Major
    Found in source/libraries/ContractInterfaces.ts and 1 other location - About 1 day to fix
    source/libraries/ContractInterfaces.ts on lines 5580..5585

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

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

            public getWorstOrderId_ = async(type: BN, market: string, outcome: BN, options?: { sender?: string }): Promise<string> => {
                options = options || {};
                const abi: AbiFunction = {"constant":true,"inputs":[{"name":"_type","type":"uint8"},{"name":"_market","type":"address"},{"name":"_outcome","type":"uint256"}],"name":"getWorstOrderId","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"};
                const result = await this.localCall(abi, [type, market, outcome], options.sender);
                return <string>result[0];
    Severity: Major
    Found in source/libraries/ContractInterfaces.ts and 1 other location - About 1 day to fix
    source/libraries/ContractInterfaces.ts on lines 5657..5662

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

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

            public setPrice_ = async(market: string, outcome: BN, price: BN, options?: { sender?: string }): Promise<boolean> => {
                options = options || {};
                const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_market","type":"address"},{"name":"_outcome","type":"uint256"},{"name":"_price","type":"uint256"}],"name":"setPrice","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
                const result = await this.localCall(abi, [market, outcome, price], options.sender);
                return <boolean>result[0];
    Severity: Major
    Found in source/libraries/ContractInterfaces.ts and 1 other location - About 1 day to fix
    source/libraries/ContractInterfaces.ts on lines 5566..5571

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

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

            public logShareTokenMinted_ = async(universe: string, target: string, amount: BN, options?: { sender?: string }): Promise<boolean> => {
                options = options || {};
                const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_universe","type":"address"},{"name":"_target","type":"address"},{"name":"_amount","type":"uint256"}],"name":"logShareTokenMinted","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
                const result = await this.localCall(abi, [universe, target, amount], options.sender);
                return <boolean>result[0];
    Severity: Major
    Found in source/libraries/ContractInterfaces.ts and 29 other locations - About 1 day to fix
    source/libraries/ContractInterfaces.ts on lines 134..139
    source/libraries/ContractInterfaces.ts on lines 190..195
    source/libraries/ContractInterfaces.ts on lines 267..272
    source/libraries/ContractInterfaces.ts on lines 337..342
    source/libraries/ContractInterfaces.ts on lines 365..370
    source/libraries/ContractInterfaces.ts on lines 421..426
    source/libraries/ContractInterfaces.ts on lines 540..545
    source/libraries/ContractInterfaces.ts on lines 554..559
    source/libraries/ContractInterfaces.ts on lines 596..601
    source/libraries/ContractInterfaces.ts on lines 918..923
    source/libraries/ContractInterfaces.ts on lines 1121..1126
    source/libraries/ContractInterfaces.ts on lines 1254..1259
    source/libraries/ContractInterfaces.ts on lines 1338..1343
    source/libraries/ContractInterfaces.ts on lines 1457..1462
    source/libraries/ContractInterfaces.ts on lines 1471..1476
    source/libraries/ContractInterfaces.ts on lines 2206..2211
    source/libraries/ContractInterfaces.ts on lines 2479..2484
    source/libraries/ContractInterfaces.ts on lines 2696..2701
    source/libraries/ContractInterfaces.ts on lines 3956..3961
    source/libraries/ContractInterfaces.ts on lines 4075..4080
    source/libraries/ContractInterfaces.ts on lines 4159..4164
    source/libraries/ContractInterfaces.ts on lines 4278..4283
    source/libraries/ContractInterfaces.ts on lines 4292..4297
    source/libraries/ContractInterfaces.ts on lines 5034..5039
    source/libraries/ContractInterfaces.ts on lines 5370..5375
    source/libraries/ContractInterfaces.ts on lines 5888..5893
    source/libraries/ContractInterfaces.ts on lines 5916..5921
    source/libraries/ContractInterfaces.ts on lines 5958..5963
    source/libraries/ContractInterfaces.ts on lines 5972..5977

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

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

            public logShareTokenBurned_ = async(universe: string, target: string, amount: BN, options?: { sender?: string }): Promise<boolean> => {
                options = options || {};
                const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_universe","type":"address"},{"name":"_target","type":"address"},{"name":"_amount","type":"uint256"}],"name":"logShareTokenBurned","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
                const result = await this.localCall(abi, [universe, target, amount], options.sender);
                return <boolean>result[0];
    Severity: Major
    Found in source/libraries/ContractInterfaces.ts and 29 other locations - About 1 day to fix
    source/libraries/ContractInterfaces.ts on lines 134..139
    source/libraries/ContractInterfaces.ts on lines 190..195
    source/libraries/ContractInterfaces.ts on lines 267..272
    source/libraries/ContractInterfaces.ts on lines 337..342
    source/libraries/ContractInterfaces.ts on lines 365..370
    source/libraries/ContractInterfaces.ts on lines 421..426
    source/libraries/ContractInterfaces.ts on lines 540..545
    source/libraries/ContractInterfaces.ts on lines 568..573
    source/libraries/ContractInterfaces.ts on lines 596..601
    source/libraries/ContractInterfaces.ts on lines 918..923
    source/libraries/ContractInterfaces.ts on lines 1121..1126
    source/libraries/ContractInterfaces.ts on lines 1254..1259
    source/libraries/ContractInterfaces.ts on lines 1338..1343
    source/libraries/ContractInterfaces.ts on lines 1457..1462
    source/libraries/ContractInterfaces.ts on lines 1471..1476
    source/libraries/ContractInterfaces.ts on lines 2206..2211
    source/libraries/ContractInterfaces.ts on lines 2479..2484
    source/libraries/ContractInterfaces.ts on lines 2696..2701
    source/libraries/ContractInterfaces.ts on lines 3956..3961
    source/libraries/ContractInterfaces.ts on lines 4075..4080
    source/libraries/ContractInterfaces.ts on lines 4159..4164
    source/libraries/ContractInterfaces.ts on lines 4278..4283
    source/libraries/ContractInterfaces.ts on lines 4292..4297
    source/libraries/ContractInterfaces.ts on lines 5034..5039
    source/libraries/ContractInterfaces.ts on lines 5370..5375
    source/libraries/ContractInterfaces.ts on lines 5888..5893
    source/libraries/ContractInterfaces.ts on lines 5916..5921
    source/libraries/ContractInterfaces.ts on lines 5958..5963
    source/libraries/ContractInterfaces.ts on lines 5972..5977

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

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

            public transferFrom_ = async(from: string, to: string, value: BN, options?: { sender?: string }): Promise<boolean> => {
                options = options || {};
                const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
                const result = await this.localCall(abi, [from, to, value], options.sender);
                return <boolean>result[0];
    Severity: Major
    Found in source/libraries/ContractInterfaces.ts and 29 other locations - About 1 day to fix
    source/libraries/ContractInterfaces.ts on lines 134..139
    source/libraries/ContractInterfaces.ts on lines 190..195
    source/libraries/ContractInterfaces.ts on lines 267..272
    source/libraries/ContractInterfaces.ts on lines 337..342
    source/libraries/ContractInterfaces.ts on lines 365..370
    source/libraries/ContractInterfaces.ts on lines 421..426
    source/libraries/ContractInterfaces.ts on lines 540..545
    source/libraries/ContractInterfaces.ts on lines 554..559
    source/libraries/ContractInterfaces.ts on lines 568..573
    source/libraries/ContractInterfaces.ts on lines 596..601
    source/libraries/ContractInterfaces.ts on lines 918..923
    source/libraries/ContractInterfaces.ts on lines 1254..1259
    source/libraries/ContractInterfaces.ts on lines 1338..1343
    source/libraries/ContractInterfaces.ts on lines 1457..1462
    source/libraries/ContractInterfaces.ts on lines 1471..1476
    source/libraries/ContractInterfaces.ts on lines 2206..2211
    source/libraries/ContractInterfaces.ts on lines 2479..2484
    source/libraries/ContractInterfaces.ts on lines 2696..2701
    source/libraries/ContractInterfaces.ts on lines 3956..3961
    source/libraries/ContractInterfaces.ts on lines 4075..4080
    source/libraries/ContractInterfaces.ts on lines 4159..4164
    source/libraries/ContractInterfaces.ts on lines 4278..4283
    source/libraries/ContractInterfaces.ts on lines 4292..4297
    source/libraries/ContractInterfaces.ts on lines 5034..5039
    source/libraries/ContractInterfaces.ts on lines 5370..5375
    source/libraries/ContractInterfaces.ts on lines 5888..5893
    source/libraries/ContractInterfaces.ts on lines 5916..5921
    source/libraries/ContractInterfaces.ts on lines 5958..5963
    source/libraries/ContractInterfaces.ts on lines 5972..5977

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

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

            public transferFrom_ = async(from: string, to: string, value: BN, options?: { sender?: string }): Promise<boolean> => {
                options = options || {};
                const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
                const result = await this.localCall(abi, [from, to, value], options.sender);
                return <boolean>result[0];
    Severity: Major
    Found in source/libraries/ContractInterfaces.ts and 29 other locations - About 1 day to fix
    source/libraries/ContractInterfaces.ts on lines 134..139
    source/libraries/ContractInterfaces.ts on lines 190..195
    source/libraries/ContractInterfaces.ts on lines 267..272
    source/libraries/ContractInterfaces.ts on lines 337..342
    source/libraries/ContractInterfaces.ts on lines 365..370
    source/libraries/ContractInterfaces.ts on lines 421..426
    source/libraries/ContractInterfaces.ts on lines 540..545
    source/libraries/ContractInterfaces.ts on lines 554..559
    source/libraries/ContractInterfaces.ts on lines 568..573
    source/libraries/ContractInterfaces.ts on lines 596..601
    source/libraries/ContractInterfaces.ts on lines 1121..1126
    source/libraries/ContractInterfaces.ts on lines 1254..1259
    source/libraries/ContractInterfaces.ts on lines 1338..1343
    source/libraries/ContractInterfaces.ts on lines 1457..1462
    source/libraries/ContractInterfaces.ts on lines 1471..1476
    source/libraries/ContractInterfaces.ts on lines 2206..2211
    source/libraries/ContractInterfaces.ts on lines 2479..2484
    source/libraries/ContractInterfaces.ts on lines 2696..2701
    source/libraries/ContractInterfaces.ts on lines 3956..3961
    source/libraries/ContractInterfaces.ts on lines 4075..4080
    source/libraries/ContractInterfaces.ts on lines 4159..4164
    source/libraries/ContractInterfaces.ts on lines 4278..4283
    source/libraries/ContractInterfaces.ts on lines 4292..4297
    source/libraries/ContractInterfaces.ts on lines 5034..5039
    source/libraries/ContractInterfaces.ts on lines 5370..5375
    source/libraries/ContractInterfaces.ts on lines 5888..5893
    source/libraries/ContractInterfaces.ts on lines 5916..5921
    source/libraries/ContractInterfaces.ts on lines 5958..5963
    source/libraries/ContractInterfaces.ts on lines 5972..5977

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

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

            public trustedMarketTransfer_ = async(source: string, destination: string, attotokens: BN, options?: { sender?: string }): Promise<boolean> => {
                options = options || {};
                const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_source","type":"address"},{"name":"_destination","type":"address"},{"name":"_attotokens","type":"uint256"}],"name":"trustedMarketTransfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
                const result = await this.localCall(abi, [source, destination, attotokens], options.sender);
                return <boolean>result[0];
    Severity: Major
    Found in source/libraries/ContractInterfaces.ts and 29 other locations - About 1 day to fix
    source/libraries/ContractInterfaces.ts on lines 134..139
    source/libraries/ContractInterfaces.ts on lines 190..195
    source/libraries/ContractInterfaces.ts on lines 267..272
    source/libraries/ContractInterfaces.ts on lines 337..342
    source/libraries/ContractInterfaces.ts on lines 365..370
    source/libraries/ContractInterfaces.ts on lines 421..426
    source/libraries/ContractInterfaces.ts on lines 540..545
    source/libraries/ContractInterfaces.ts on lines 554..559
    source/libraries/ContractInterfaces.ts on lines 568..573
    source/libraries/ContractInterfaces.ts on lines 596..601
    source/libraries/ContractInterfaces.ts on lines 918..923
    source/libraries/ContractInterfaces.ts on lines 1121..1126
    source/libraries/ContractInterfaces.ts on lines 1254..1259
    source/libraries/ContractInterfaces.ts on lines 1338..1343
    source/libraries/ContractInterfaces.ts on lines 1471..1476
    source/libraries/ContractInterfaces.ts on lines 2206..2211
    source/libraries/ContractInterfaces.ts on lines 2479..2484
    source/libraries/ContractInterfaces.ts on lines 2696..2701
    source/libraries/ContractInterfaces.ts on lines 3956..3961
    source/libraries/ContractInterfaces.ts on lines 4075..4080
    source/libraries/ContractInterfaces.ts on lines 4159..4164
    source/libraries/ContractInterfaces.ts on lines 4278..4283
    source/libraries/ContractInterfaces.ts on lines 4292..4297
    source/libraries/ContractInterfaces.ts on lines 5034..5039
    source/libraries/ContractInterfaces.ts on lines 5370..5375
    source/libraries/ContractInterfaces.ts on lines 5888..5893
    source/libraries/ContractInterfaces.ts on lines 5916..5921
    source/libraries/ContractInterfaces.ts on lines 5958..5963
    source/libraries/ContractInterfaces.ts on lines 5972..5977

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

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

            public transferFrom_ = async(from: string, to: string, value: BN, options?: { sender?: string }): Promise<boolean> => {
                options = options || {};
                const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
                const result = await this.localCall(abi, [from, to, value], options.sender);
                return <boolean>result[0];
    Severity: Major
    Found in source/libraries/ContractInterfaces.ts and 29 other locations - About 1 day to fix
    source/libraries/ContractInterfaces.ts on lines 134..139
    source/libraries/ContractInterfaces.ts on lines 190..195
    source/libraries/ContractInterfaces.ts on lines 267..272
    source/libraries/ContractInterfaces.ts on lines 337..342
    source/libraries/ContractInterfaces.ts on lines 365..370
    source/libraries/ContractInterfaces.ts on lines 421..426
    source/libraries/ContractInterfaces.ts on lines 540..545
    source/libraries/ContractInterfaces.ts on lines 554..559
    source/libraries/ContractInterfaces.ts on lines 568..573
    source/libraries/ContractInterfaces.ts on lines 596..601
    source/libraries/ContractInterfaces.ts on lines 918..923
    source/libraries/ContractInterfaces.ts on lines 1121..1126
    source/libraries/ContractInterfaces.ts on lines 1254..1259
    source/libraries/ContractInterfaces.ts on lines 1338..1343
    source/libraries/ContractInterfaces.ts on lines 1457..1462
    source/libraries/ContractInterfaces.ts on lines 1471..1476
    source/libraries/ContractInterfaces.ts on lines 2479..2484
    source/libraries/ContractInterfaces.ts on lines 2696..2701
    source/libraries/ContractInterfaces.ts on lines 3956..3961
    source/libraries/ContractInterfaces.ts on lines 4075..4080
    source/libraries/ContractInterfaces.ts on lines 4159..4164
    source/libraries/ContractInterfaces.ts on lines 4278..4283
    source/libraries/ContractInterfaces.ts on lines 4292..4297
    source/libraries/ContractInterfaces.ts on lines 5034..5039
    source/libraries/ContractInterfaces.ts on lines 5370..5375
    source/libraries/ContractInterfaces.ts on lines 5888..5893
    source/libraries/ContractInterfaces.ts on lines 5916..5921
    source/libraries/ContractInterfaces.ts on lines 5958..5963
    source/libraries/ContractInterfaces.ts on lines 5972..5977

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

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

            public trustedReportingParticipantTransfer_ = async(source: string, destination: string, attotokens: BN, options?: { sender?: string }): Promise<boolean> => {
                options = options || {};
                const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_source","type":"address"},{"name":"_destination","type":"address"},{"name":"_attotokens","type":"uint256"}],"name":"trustedReportingParticipantTransfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
                const result = await this.localCall(abi, [source, destination, attotokens], options.sender);
                return <boolean>result[0];
    Severity: Major
    Found in source/libraries/ContractInterfaces.ts and 29 other locations - About 1 day to fix
    source/libraries/ContractInterfaces.ts on lines 134..139
    source/libraries/ContractInterfaces.ts on lines 190..195
    source/libraries/ContractInterfaces.ts on lines 267..272
    source/libraries/ContractInterfaces.ts on lines 337..342
    source/libraries/ContractInterfaces.ts on lines 365..370
    source/libraries/ContractInterfaces.ts on lines 421..426
    source/libraries/ContractInterfaces.ts on lines 540..545
    source/libraries/ContractInterfaces.ts on lines 554..559
    source/libraries/ContractInterfaces.ts on lines 568..573
    source/libraries/ContractInterfaces.ts on lines 596..601
    source/libraries/ContractInterfaces.ts on lines 918..923
    source/libraries/ContractInterfaces.ts on lines 1121..1126
    source/libraries/ContractInterfaces.ts on lines 1254..1259
    source/libraries/ContractInterfaces.ts on lines 1457..1462
    source/libraries/ContractInterfaces.ts on lines 1471..1476
    source/libraries/ContractInterfaces.ts on lines 2206..2211
    source/libraries/ContractInterfaces.ts on lines 2479..2484
    source/libraries/ContractInterfaces.ts on lines 2696..2701
    source/libraries/ContractInterfaces.ts on lines 3956..3961
    source/libraries/ContractInterfaces.ts on lines 4075..4080
    source/libraries/ContractInterfaces.ts on lines 4159..4164
    source/libraries/ContractInterfaces.ts on lines 4278..4283
    source/libraries/ContractInterfaces.ts on lines 4292..4297
    source/libraries/ContractInterfaces.ts on lines 5034..5039
    source/libraries/ContractInterfaces.ts on lines 5370..5375
    source/libraries/ContractInterfaces.ts on lines 5888..5893
    source/libraries/ContractInterfaces.ts on lines 5916..5921
    source/libraries/ContractInterfaces.ts on lines 5958..5963
    source/libraries/ContractInterfaces.ts on lines 5972..5977

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

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

            public transferFrom_ = async(from: string, to: string, value: BN, options?: { sender?: string }): Promise<boolean> => {
                options = options || {};
                const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
                const result = await this.localCall(abi, [from, to, value], options.sender);
                return <boolean>result[0];
    Severity: Major
    Found in source/libraries/ContractInterfaces.ts and 29 other locations - About 1 day to fix
    source/libraries/ContractInterfaces.ts on lines 134..139
    source/libraries/ContractInterfaces.ts on lines 190..195
    source/libraries/ContractInterfaces.ts on lines 267..272
    source/libraries/ContractInterfaces.ts on lines 337..342
    source/libraries/ContractInterfaces.ts on lines 365..370
    source/libraries/ContractInterfaces.ts on lines 421..426
    source/libraries/ContractInterfaces.ts on lines 540..545
    source/libraries/ContractInterfaces.ts on lines 554..559
    source/libraries/ContractInterfaces.ts on lines 568..573
    source/libraries/ContractInterfaces.ts on lines 596..601
    source/libraries/ContractInterfaces.ts on lines 918..923
    source/libraries/ContractInterfaces.ts on lines 1121..1126
    source/libraries/ContractInterfaces.ts on lines 1254..1259
    source/libraries/ContractInterfaces.ts on lines 1338..1343
    source/libraries/ContractInterfaces.ts on lines 1457..1462
    source/libraries/ContractInterfaces.ts on lines 1471..1476
    source/libraries/ContractInterfaces.ts on lines 2206..2211
    source/libraries/ContractInterfaces.ts on lines 2479..2484
    source/libraries/ContractInterfaces.ts on lines 2696..2701
    source/libraries/ContractInterfaces.ts on lines 4075..4080
    source/libraries/ContractInterfaces.ts on lines 4159..4164
    source/libraries/ContractInterfaces.ts on lines 4278..4283
    source/libraries/ContractInterfaces.ts on lines 4292..4297
    source/libraries/ContractInterfaces.ts on lines 5034..5039
    source/libraries/ContractInterfaces.ts on lines 5370..5375
    source/libraries/ContractInterfaces.ts on lines 5888..5893
    source/libraries/ContractInterfaces.ts on lines 5916..5921
    source/libraries/ContractInterfaces.ts on lines 5958..5963
    source/libraries/ContractInterfaces.ts on lines 5972..5977

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

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

            public logFeeTokenMinted_ = async(universe: string, target: string, amount: BN, options?: { sender?: string }): Promise<boolean> => {
                options = options || {};
                const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_universe","type":"address"},{"name":"_target","type":"address"},{"name":"_amount","type":"uint256"}],"name":"logFeeTokenMinted","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
                const result = await this.localCall(abi, [universe, target, amount], options.sender);
                return <boolean>result[0];
    Severity: Major
    Found in source/libraries/ContractInterfaces.ts and 29 other locations - About 1 day to fix
    source/libraries/ContractInterfaces.ts on lines 134..139
    source/libraries/ContractInterfaces.ts on lines 267..272
    source/libraries/ContractInterfaces.ts on lines 337..342
    source/libraries/ContractInterfaces.ts on lines 365..370
    source/libraries/ContractInterfaces.ts on lines 421..426
    source/libraries/ContractInterfaces.ts on lines 540..545
    source/libraries/ContractInterfaces.ts on lines 554..559
    source/libraries/ContractInterfaces.ts on lines 568..573
    source/libraries/ContractInterfaces.ts on lines 596..601
    source/libraries/ContractInterfaces.ts on lines 918..923
    source/libraries/ContractInterfaces.ts on lines 1121..1126
    source/libraries/ContractInterfaces.ts on lines 1254..1259
    source/libraries/ContractInterfaces.ts on lines 1338..1343
    source/libraries/ContractInterfaces.ts on lines 1457..1462
    source/libraries/ContractInterfaces.ts on lines 1471..1476
    source/libraries/ContractInterfaces.ts on lines 2206..2211
    source/libraries/ContractInterfaces.ts on lines 2479..2484
    source/libraries/ContractInterfaces.ts on lines 2696..2701
    source/libraries/ContractInterfaces.ts on lines 3956..3961
    source/libraries/ContractInterfaces.ts on lines 4075..4080
    source/libraries/ContractInterfaces.ts on lines 4159..4164
    source/libraries/ContractInterfaces.ts on lines 4278..4283
    source/libraries/ContractInterfaces.ts on lines 4292..4297
    source/libraries/ContractInterfaces.ts on lines 5034..5039
    source/libraries/ContractInterfaces.ts on lines 5370..5375
    source/libraries/ContractInterfaces.ts on lines 5888..5893
    source/libraries/ContractInterfaces.ts on lines 5916..5921
    source/libraries/ContractInterfaces.ts on lines 5958..5963
    source/libraries/ContractInterfaces.ts on lines 5972..5977

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

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

            public logReputationTokenBurned_ = async(universe: string, target: string, amount: BN, options?: { sender?: string }): Promise<boolean> => {
                options = options || {};
                const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_universe","type":"address"},{"name":"_target","type":"address"},{"name":"_amount","type":"uint256"}],"name":"logReputationTokenBurned","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
                const result = await this.localCall(abi, [universe, target, amount], options.sender);
                return <boolean>result[0];
    Severity: Major
    Found in source/libraries/ContractInterfaces.ts and 29 other locations - About 1 day to fix
    source/libraries/ContractInterfaces.ts on lines 134..139
    source/libraries/ContractInterfaces.ts on lines 190..195
    source/libraries/ContractInterfaces.ts on lines 337..342
    source/libraries/ContractInterfaces.ts on lines 365..370
    source/libraries/ContractInterfaces.ts on lines 421..426
    source/libraries/ContractInterfaces.ts on lines 540..545
    source/libraries/ContractInterfaces.ts on lines 554..559
    source/libraries/ContractInterfaces.ts on lines 568..573
    source/libraries/ContractInterfaces.ts on lines 596..601
    source/libraries/ContractInterfaces.ts on lines 918..923
    source/libraries/ContractInterfaces.ts on lines 1121..1126
    source/libraries/ContractInterfaces.ts on lines 1254..1259
    source/libraries/ContractInterfaces.ts on lines 1338..1343
    source/libraries/ContractInterfaces.ts on lines 1457..1462
    source/libraries/ContractInterfaces.ts on lines 1471..1476
    source/libraries/ContractInterfaces.ts on lines 2206..2211
    source/libraries/ContractInterfaces.ts on lines 2479..2484
    source/libraries/ContractInterfaces.ts on lines 2696..2701
    source/libraries/ContractInterfaces.ts on lines 3956..3961
    source/libraries/ContractInterfaces.ts on lines 4075..4080
    source/libraries/ContractInterfaces.ts on lines 4159..4164
    source/libraries/ContractInterfaces.ts on lines 4278..4283
    source/libraries/ContractInterfaces.ts on lines 4292..4297
    source/libraries/ContractInterfaces.ts on lines 5034..5039
    source/libraries/ContractInterfaces.ts on lines 5370..5375
    source/libraries/ContractInterfaces.ts on lines 5888..5893
    source/libraries/ContractInterfaces.ts on lines 5916..5921
    source/libraries/ContractInterfaces.ts on lines 5958..5963
    source/libraries/ContractInterfaces.ts on lines 5972..5977

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

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

            public logReputationTokenMinted_ = async(universe: string, target: string, amount: BN, options?: { sender?: string }): Promise<boolean> => {
                options = options || {};
                const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_universe","type":"address"},{"name":"_target","type":"address"},{"name":"_amount","type":"uint256"}],"name":"logReputationTokenMinted","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
                const result = await this.localCall(abi, [universe, target, amount], options.sender);
                return <boolean>result[0];
    Severity: Major
    Found in source/libraries/ContractInterfaces.ts and 29 other locations - About 1 day to fix
    source/libraries/ContractInterfaces.ts on lines 134..139
    source/libraries/ContractInterfaces.ts on lines 190..195
    source/libraries/ContractInterfaces.ts on lines 267..272
    source/libraries/ContractInterfaces.ts on lines 337..342
    source/libraries/ContractInterfaces.ts on lines 365..370
    source/libraries/ContractInterfaces.ts on lines 540..545
    source/libraries/ContractInterfaces.ts on lines 554..559
    source/libraries/ContractInterfaces.ts on lines 568..573
    source/libraries/ContractInterfaces.ts on lines 596..601
    source/libraries/ContractInterfaces.ts on lines 918..923
    source/libraries/ContractInterfaces.ts on lines 1121..1126
    source/libraries/ContractInterfaces.ts on lines 1254..1259
    source/libraries/ContractInterfaces.ts on lines 1338..1343
    source/libraries/ContractInterfaces.ts on lines 1457..1462
    source/libraries/ContractInterfaces.ts on lines 1471..1476
    source/libraries/ContractInterfaces.ts on lines 2206..2211
    source/libraries/ContractInterfaces.ts on lines 2479..2484
    source/libraries/ContractInterfaces.ts on lines 2696..2701
    source/libraries/ContractInterfaces.ts on lines 3956..3961
    source/libraries/ContractInterfaces.ts on lines 4075..4080
    source/libraries/ContractInterfaces.ts on lines 4159..4164
    source/libraries/ContractInterfaces.ts on lines 4278..4283
    source/libraries/ContractInterfaces.ts on lines 4292..4297
    source/libraries/ContractInterfaces.ts on lines 5034..5039
    source/libraries/ContractInterfaces.ts on lines 5370..5375
    source/libraries/ContractInterfaces.ts on lines 5888..5893
    source/libraries/ContractInterfaces.ts on lines 5916..5921
    source/libraries/ContractInterfaces.ts on lines 5958..5963
    source/libraries/ContractInterfaces.ts on lines 5972..5977

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

    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