AugurProject/augur-core

View on GitHub

Showing 833 of 833 total issues

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 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 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 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 trustedUniverseTransfer_ = 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":"trustedUniverseTransfer","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 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 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 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 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 trustedOrderTransfer_ = 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":"trustedOrderTransfer","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 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 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 logDisputeCrowdsourcerTokensBurned_ = 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":"logDisputeCrowdsourcerTokensBurned","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 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 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 logFeeWindowMinted_ = 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":"logFeeWindowMinted","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 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 logFeeTokenBurned_ = 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":"logFeeTokenBurned","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 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 trustedUniverseTransfer_ = 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":"trustedUniverseTransfer","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 1457..1462
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 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 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 trustedCancelOrderTransfer_ = 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":"trustedCancelOrderTransfer","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 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

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 trustedFeeWindowTransfer_ = 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":"trustedFeeWindowTransfer","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 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 trustedFeeWindowTransfer_ = 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":"trustedFeeWindowTransfer","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 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 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 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 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 logFeeWindowBurned_ = 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":"logFeeWindowBurned","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 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 logDisputeCrowdsourcerTokensMinted_ = 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":"logDisputeCrowdsourcerTokensMinted","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 568..573
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 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 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 buyCompleteSets_ = async(sender: string, market: string, amount: BN, options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_sender","type":"address"},{"name":"_market","type":"address"},{"name":"_amount","type":"uint256"}],"name":"buyCompleteSets","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            const result = await this.localCall(abi, [sender, market, 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 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 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 trustedFillOrderTransfer_ = 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":"trustedFillOrderTransfer","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 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 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 2 locations. Consider refactoring.
Open

        public logMarketTransferred_ = async(universe: string, from: string, to: string, options?: { sender?: string }): Promise<boolean> => {
            options = options || {};
            const abi: AbiFunction = {"constant":false,"inputs":[{"name":"_universe","type":"address"},{"name":"_from","type":"address"},{"name":"_to","type":"address"}],"name":"logMarketTransferred","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"};
            const result = await this.localCall(abi, [universe, from, to], 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 295..300

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

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