Removes references to tslint (#619)
* Removes references to tslint in contract-wrappers which are obsoleted since https://github.com/0xProject/protocol/pull/584 * Remove tslint references in contracts/utils and test utils obsoleted by https://github.com/0xProject/protocol/pull/589 * Remove tslint references in contracts/zeroex and test utils obsoleted by https://github.com/0xProject/protocol/pull/587 * Remove other obsoleted tslint references * Update contributing guidelines with eslint * Fix prettier errors
This commit is contained in:
parent
957853788d
commit
4d9b68d527
@ -59,16 +59,14 @@ We strongly recommend you use the [VSCode](https://code.visualstudio.com/) text
|
|||||||
|
|
||||||
#### Linter
|
#### Linter
|
||||||
|
|
||||||
We use [TSLint](https://palantir.github.io/tslint/) with [custom configs](https://github.com/0xProject/0x-tools/tree/development/packages/tslint-config) to keep our code-style consistent.
|
We use [ESLint](https://eslint.org/docs/latest/) to keep our code-style consistent.
|
||||||
|
|
||||||
Use `yarn:lint` to lint the entire monorepo, and `PKG={PACKAGE_NAME} yarn lint` to lint a specific package.
|
Use `yarn lint` to lint the entire monorepo, and `PKG={PACKAGE_NAME} yarn lint` to lint a specific package.
|
||||||
|
|
||||||
If you want to change a rule, or add a custom rule, please make these changes to our [tslint-config](https://github.com/0xProject/0x-tools/tree/development/packages/tslint-config) package. All other packages have it as a dependency.
|
|
||||||
|
|
||||||
Integrate it into your text editor:
|
Integrate it into your text editor:
|
||||||
|
|
||||||
- VSCode: [vscode-tslint](https://marketplace.visualstudio.com/items?itemName=eg2.tslint)
|
- VSCode: [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)
|
||||||
- Atom: [linter-tslint](https://atom.io/packages/linter-tslint)
|
- Atom: [ESLint](https://atom.io/packages/eslint)
|
||||||
|
|
||||||
#### Auto-formatter
|
#### Auto-formatter
|
||||||
|
|
||||||
|
@ -35,7 +35,6 @@ export class LogDecoder {
|
|||||||
}
|
}
|
||||||
public decodeLogOrThrow<ArgsType extends DecodedLogArgs>(log: LogEntry): LogWithDecodedArgs<ArgsType> | RawLog {
|
public decodeLogOrThrow<ArgsType extends DecodedLogArgs>(log: LogEntry): LogWithDecodedArgs<ArgsType> | RawLog {
|
||||||
const logWithDecodedArgsOrLog = this._abiDecoder.tryToDecodeLogOrNoop(log);
|
const logWithDecodedArgsOrLog = this._abiDecoder.tryToDecodeLogOrNoop(log);
|
||||||
// tslint:disable-next-line:no-unnecessary-type-assertion
|
|
||||||
if ((logWithDecodedArgsOrLog as LogWithDecodedArgs<ArgsType>).args === undefined) {
|
if ((logWithDecodedArgsOrLog as LogWithDecodedArgs<ArgsType>).args === undefined) {
|
||||||
throw new Error(`Unable to decode log: ${JSON.stringify(log)}`);
|
throw new Error(`Unable to decode log: ${JSON.stringify(log)}`);
|
||||||
}
|
}
|
||||||
|
@ -2,8 +2,6 @@ import { LogEntry, LogWithDecodedArgs, TransactionReceiptWithDecodedLogs } from
|
|||||||
|
|
||||||
import { expect } from './chai_setup';
|
import { expect } from './chai_setup';
|
||||||
|
|
||||||
// tslint:disable no-unnecessary-type-assertion
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filter logs by event name/type.
|
* Filter logs by event name/type.
|
||||||
*/
|
*/
|
||||||
|
@ -8,8 +8,6 @@ import * as process from 'process';
|
|||||||
|
|
||||||
import { provider, providerConfigs, txDefaults, web3Wrapper } from './web3_wrapper';
|
import { provider, providerConfigs, txDefaults, web3Wrapper } from './web3_wrapper';
|
||||||
|
|
||||||
// tslint:disable: no-namespace only-arrow-functions no-unbound-method max-classes-per-file
|
|
||||||
|
|
||||||
export type ISuite = mocha.ISuite;
|
export type ISuite = mocha.ISuite;
|
||||||
export type ISuiteCallbackContext = mocha.ISuiteCallbackContext;
|
export type ISuiteCallbackContext = mocha.ISuiteCallbackContext;
|
||||||
export type SuiteCallback = (this: ISuiteCallbackContext) => void;
|
export type SuiteCallback = (this: ISuiteCallbackContext) => void;
|
||||||
|
@ -29,7 +29,7 @@ export class OrderFactory {
|
|||||||
salt: generatePseudoRandomSalt(),
|
salt: generatePseudoRandomSalt(),
|
||||||
...this._defaultOrderParams,
|
...this._defaultOrderParams,
|
||||||
...customOrderParams,
|
...customOrderParams,
|
||||||
} as Order; // tslint:disable-line:no-object-literal-type-assertion
|
} as Order;
|
||||||
const orderHashBuff = orderHashUtils.getOrderHashBuffer(order);
|
const orderHashBuff = orderHashUtils.getOrderHashBuffer(order);
|
||||||
const signature = signingUtils.signMessage(orderHashBuff, this._privateKey, signatureType);
|
const signature = signingUtils.signMessage(orderHashBuff, this._privateKey, signatureType);
|
||||||
const signedOrder = {
|
const signedOrder = {
|
||||||
|
@ -9,7 +9,6 @@ export const typeEncodingUtils = {
|
|||||||
const base = 10;
|
const base = 10;
|
||||||
const formattedValue = new BN(value.toString(base));
|
const formattedValue = new BN(value.toString(base));
|
||||||
const encodedValue = ethUtil.toBuffer(formattedValue);
|
const encodedValue = ethUtil.toBuffer(formattedValue);
|
||||||
// tslint:disable-next-line:custom-no-magic-numbers
|
|
||||||
const paddedValue = ethUtil.setLengthLeft(encodedValue, constants.WORD_LENGTH);
|
const paddedValue = ethUtil.setLengthLeft(encodedValue, constants.WORD_LENGTH);
|
||||||
return paddedValue;
|
return paddedValue;
|
||||||
},
|
},
|
||||||
|
@ -13,11 +13,8 @@ blockchainTests('mocha blockchain extensions', env => {
|
|||||||
expect(env.provider).to.exist('');
|
expect(env.provider).to.exist('');
|
||||||
expect(env.txDefaults).to.exist('');
|
expect(env.txDefaults).to.exist('');
|
||||||
expect(env.web3Wrapper).to.exist('');
|
expect(env.web3Wrapper).to.exist('');
|
||||||
// HACK(dorothy-zbornak): tslint seems to get confused by these assertions.
|
|
||||||
// tslint:disable: no-unbound-method
|
|
||||||
expect(typeof env.getChainIdAsync).to.eq('function');
|
expect(typeof env.getChainIdAsync).to.eq('function');
|
||||||
expect(typeof env.getAccountAddressesAsync).to.eq('function');
|
expect(typeof env.getAccountAddressesAsync).to.eq('function');
|
||||||
// tslint:enable: no-unbound-method
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('initializes the test environment', async () => {
|
it('initializes the test environment', async () => {
|
||||||
@ -96,7 +93,6 @@ blockchainTests('mocha blockchain extensions', env => {
|
|||||||
|
|
||||||
function createHookedObject(obj: any, handler: (name: string) => void, methods: string[]): any {
|
function createHookedObject(obj: any, handler: (name: string) => void, methods: string[]): any {
|
||||||
const hookedMethods = _.map(methods, methodName => {
|
const hookedMethods = _.map(methods, methodName => {
|
||||||
// tslint:disable: only-arrow-functions
|
|
||||||
return function (this: any, ...args: any[]): any {
|
return function (this: any, ...args: any[]): any {
|
||||||
handler(methodName);
|
handler(methodName);
|
||||||
return obj[methodName].call(this, ...args);
|
return obj[methodName].call(this, ...args);
|
||||||
|
@ -42,7 +42,6 @@ describe('Order hashing', () => {
|
|||||||
// It's common for developers using javascript to provide the amounts
|
// It's common for developers using javascript to provide the amounts
|
||||||
// as strings. Since we eventually toString() the BigNumber
|
// as strings. Since we eventually toString() the BigNumber
|
||||||
// before encoding we should result in the same orderHash in this scenario
|
// before encoding we should result in the same orderHash in this scenario
|
||||||
// tslint:disable-next-line:no-unnecessary-type-assertion
|
|
||||||
const orderHash = orderHashUtils.getOrderHashHex({
|
const orderHash = orderHashUtils.getOrderHashHex({
|
||||||
...order,
|
...order,
|
||||||
makerAssetAmount: '0',
|
makerAssetAmount: '0',
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
import { expect } from '../../src/chai_setup';
|
import { expect } from '../../src/chai_setup';
|
||||||
import { blockchainTests, BlockchainTestsEnvironment } from '../../src/mocha_blockchain';
|
import { blockchainTests, BlockchainTestsEnvironment } from '../../src/mocha_blockchain';
|
||||||
|
|
||||||
// tslint:disable: no-default-export completed-docs
|
|
||||||
export function append(env: BlockchainTestsEnvironment): void {
|
export function append(env: BlockchainTestsEnvironment): void {
|
||||||
blockchainTests('imported subtests', subtestsEnv => {
|
blockchainTests('imported subtests', subtestsEnv => {
|
||||||
it('shares the same environment object', () => {
|
it('shares the same environment object', () => {
|
||||||
|
@ -35,7 +35,6 @@ describe('0x transaction hashing', () => {
|
|||||||
// It's common for developers using javascript to provide the amounts
|
// It's common for developers using javascript to provide the amounts
|
||||||
// as strings. Since we eventually toString() the BigNumber
|
// as strings. Since we eventually toString() the BigNumber
|
||||||
// before encoding we should result in the same orderHash in this scenario
|
// before encoding we should result in the same orderHash in this scenario
|
||||||
// tslint:disable-next-line:no-unnecessary-type-assertion
|
|
||||||
const transactionHash = transactionHashUtils.getTransactionHashHex({
|
const transactionHash = transactionHashUtils.getTransactionHashHex({
|
||||||
...transaction,
|
...transaction,
|
||||||
salt: '0',
|
salt: '0',
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
// This file is a workaround that issue: https://github.com/palantir/tslint/issues/4148#issuecomment-419872702
|
|
||||||
"extends": "./tsconfig",
|
|
||||||
"compilerOptions": {
|
|
||||||
"composite": false
|
|
||||||
}
|
|
||||||
}
|
|
@ -142,4 +142,3 @@ describe('LibAddressArray', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
// tslint:disable:max-file-line-count
|
|
||||||
|
@ -446,7 +446,6 @@ blockchainTests('LibBytes', env => {
|
|||||||
describe('memCopy', () => {
|
describe('memCopy', () => {
|
||||||
// Create memory 0x000102...FF
|
// Create memory 0x000102...FF
|
||||||
const memSize = 256;
|
const memSize = 256;
|
||||||
// tslint:disable:no-shadowed-variable
|
|
||||||
const memory = new Uint8Array(memSize).map((_, i) => i);
|
const memory = new Uint8Array(memSize).map((_, i) => i);
|
||||||
const memHex = toHex(memory);
|
const memHex = toHex(memory);
|
||||||
|
|
||||||
@ -782,4 +781,3 @@ blockchainTests('LibBytes', env => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
// tslint:disable:max-file-line-count
|
|
||||||
|
@ -310,7 +310,6 @@ blockchainTests('LibMath', env => {
|
|||||||
const numerator = new BigNumber(100);
|
const numerator = new BigNumber(100);
|
||||||
const denominator = new BigNumber(102);
|
const denominator = new BigNumber(102);
|
||||||
const target = new BigNumber(52);
|
const target = new BigNumber(52);
|
||||||
// tslint:disable-next-line: boolean-naming
|
|
||||||
const actual = await libsContract.isRoundingErrorFloor(numerator, denominator, target).callAsync();
|
const actual = await libsContract.isRoundingErrorFloor(numerator, denominator, target).callAsync();
|
||||||
expect(actual).to.eq(true);
|
expect(actual).to.eq(true);
|
||||||
});
|
});
|
||||||
@ -319,7 +318,6 @@ blockchainTests('LibMath', env => {
|
|||||||
const numerator = new BigNumber(100);
|
const numerator = new BigNumber(100);
|
||||||
const denominator = new BigNumber(101);
|
const denominator = new BigNumber(101);
|
||||||
const target = new BigNumber(92);
|
const target = new BigNumber(92);
|
||||||
// tslint:disable-next-line: boolean-naming
|
|
||||||
const actual = await libsContract.isRoundingErrorFloor(numerator, denominator, target).callAsync();
|
const actual = await libsContract.isRoundingErrorFloor(numerator, denominator, target).callAsync();
|
||||||
expect(actual).to.eq(false);
|
expect(actual).to.eq(false);
|
||||||
});
|
});
|
||||||
@ -328,9 +326,7 @@ blockchainTests('LibMath', env => {
|
|||||||
const numerator = ONE_ETHER;
|
const numerator = ONE_ETHER;
|
||||||
const denominator = ONE_ETHER.dividedToIntegerBy(2);
|
const denominator = ONE_ETHER.dividedToIntegerBy(2);
|
||||||
const target = ONE_ETHER.times(0.01);
|
const target = ONE_ETHER.times(0.01);
|
||||||
// tslint:disable-next-line: boolean-naming
|
|
||||||
const expected = isRoundingErrorFloor(numerator, denominator, target);
|
const expected = isRoundingErrorFloor(numerator, denominator, target);
|
||||||
// tslint:disable-next-line: boolean-naming
|
|
||||||
const actual = await libsContract.isRoundingErrorFloor(numerator, denominator, target).callAsync();
|
const actual = await libsContract.isRoundingErrorFloor(numerator, denominator, target).callAsync();
|
||||||
expect(actual).to.eq(expected);
|
expect(actual).to.eq(expected);
|
||||||
});
|
});
|
||||||
@ -376,7 +372,6 @@ blockchainTests('LibMath', env => {
|
|||||||
const numerator = new BigNumber(100);
|
const numerator = new BigNumber(100);
|
||||||
const denominator = new BigNumber(101);
|
const denominator = new BigNumber(101);
|
||||||
const target = new BigNumber(92);
|
const target = new BigNumber(92);
|
||||||
// tslint:disable-next-line: boolean-naming
|
|
||||||
const actual = await libsContract.isRoundingErrorCeil(numerator, denominator, target).callAsync();
|
const actual = await libsContract.isRoundingErrorCeil(numerator, denominator, target).callAsync();
|
||||||
expect(actual).to.eq(true);
|
expect(actual).to.eq(true);
|
||||||
});
|
});
|
||||||
@ -385,7 +380,6 @@ blockchainTests('LibMath', env => {
|
|||||||
const numerator = new BigNumber(100);
|
const numerator = new BigNumber(100);
|
||||||
const denominator = new BigNumber(102);
|
const denominator = new BigNumber(102);
|
||||||
const target = new BigNumber(52);
|
const target = new BigNumber(52);
|
||||||
// tslint:disable-next-line: boolean-naming
|
|
||||||
const actual = await libsContract.isRoundingErrorCeil(numerator, denominator, target).callAsync();
|
const actual = await libsContract.isRoundingErrorCeil(numerator, denominator, target).callAsync();
|
||||||
expect(actual).to.eq(false);
|
expect(actual).to.eq(false);
|
||||||
});
|
});
|
||||||
@ -394,9 +388,7 @@ blockchainTests('LibMath', env => {
|
|||||||
const numerator = ONE_ETHER;
|
const numerator = ONE_ETHER;
|
||||||
const denominator = ONE_ETHER.dividedToIntegerBy(2);
|
const denominator = ONE_ETHER.dividedToIntegerBy(2);
|
||||||
const target = ONE_ETHER.times(0.01);
|
const target = ONE_ETHER.times(0.01);
|
||||||
// tslint:disable-next-line: boolean-naming
|
|
||||||
const expected = isRoundingErrorCeil(numerator, denominator, target);
|
const expected = isRoundingErrorCeil(numerator, denominator, target);
|
||||||
// tslint:disable-next-line: boolean-naming
|
|
||||||
const actual = await libsContract.isRoundingErrorCeil(numerator, denominator, target).callAsync();
|
const actual = await libsContract.isRoundingErrorCeil(numerator, denominator, target).callAsync();
|
||||||
expect(actual).to.eq(expected);
|
expect(actual).to.eq(expected);
|
||||||
});
|
});
|
||||||
|
@ -53,7 +53,6 @@ describe('TestLogDecoding', () => {
|
|||||||
.emitEvent()
|
.emitEvent()
|
||||||
.awaitTransactionSuccessAsync();
|
.awaitTransactionSuccessAsync();
|
||||||
expect(txReceipt.logs.length).to.be.equal(1);
|
expect(txReceipt.logs.length).to.be.equal(1);
|
||||||
// tslint:disable no-unnecessary-type-assertion
|
|
||||||
expect((txReceipt.logs[0] as LogWithDecodedArgs<DecodedLogArgs>).args).to.be.deep.equal(expectedEvent);
|
expect((txReceipt.logs[0] as LogWithDecodedArgs<DecodedLogArgs>).args).to.be.deep.equal(expectedEvent);
|
||||||
});
|
});
|
||||||
it('should not decode event args when no dependencies are passed into wrapper', async () => {
|
it('should not decode event args when no dependencies are passed into wrapper', async () => {
|
||||||
@ -61,7 +60,6 @@ describe('TestLogDecoding', () => {
|
|||||||
.emitEventDownstream()
|
.emitEventDownstream()
|
||||||
.awaitTransactionSuccessAsync();
|
.awaitTransactionSuccessAsync();
|
||||||
expect(txReceipt.logs.length).to.be.equal(1);
|
expect(txReceipt.logs.length).to.be.equal(1);
|
||||||
// tslint:disable no-unnecessary-type-assertion
|
|
||||||
expect((txReceipt.logs[0] as LogWithDecodedArgs<DecodedLogArgs>).args).to.be.undefined();
|
expect((txReceipt.logs[0] as LogWithDecodedArgs<DecodedLogArgs>).args).to.be.undefined();
|
||||||
});
|
});
|
||||||
it('should decode args for local but not downstream event when no dependencies are passed into wrapper', async () => {
|
it('should decode args for local but not downstream event when no dependencies are passed into wrapper', async () => {
|
||||||
@ -69,15 +67,12 @@ describe('TestLogDecoding', () => {
|
|||||||
.emitEventsLocalAndDownstream()
|
.emitEventsLocalAndDownstream()
|
||||||
.awaitTransactionSuccessAsync();
|
.awaitTransactionSuccessAsync();
|
||||||
expect(txReceipt.logs.length).to.be.equal(2);
|
expect(txReceipt.logs.length).to.be.equal(2);
|
||||||
// tslint:disable no-unnecessary-type-assertion
|
|
||||||
expect((txReceipt.logs[0] as LogWithDecodedArgs<DecodedLogArgs>).args).to.be.deep.equal(expectedEvent);
|
expect((txReceipt.logs[0] as LogWithDecodedArgs<DecodedLogArgs>).args).to.be.deep.equal(expectedEvent);
|
||||||
// tslint:disable no-unnecessary-type-assertion
|
|
||||||
expect((txReceipt.logs[1] as LogWithDecodedArgs<DecodedLogArgs>).args).to.be.undefined();
|
expect((txReceipt.logs[1] as LogWithDecodedArgs<DecodedLogArgs>).args).to.be.undefined();
|
||||||
});
|
});
|
||||||
it('should decode locally emitted event args when dependencies are passed into wrapper', async () => {
|
it('should decode locally emitted event args when dependencies are passed into wrapper', async () => {
|
||||||
const txReceipt = await testLogDecodingWithDependencies.emitEvent().awaitTransactionSuccessAsync();
|
const txReceipt = await testLogDecodingWithDependencies.emitEvent().awaitTransactionSuccessAsync();
|
||||||
expect(txReceipt.logs.length).to.be.equal(1);
|
expect(txReceipt.logs.length).to.be.equal(1);
|
||||||
// tslint:disable no-unnecessary-type-assertion
|
|
||||||
expect((txReceipt.logs[0] as LogWithDecodedArgs<DecodedLogArgs>).args).to.be.deep.equal(expectedEvent);
|
expect((txReceipt.logs[0] as LogWithDecodedArgs<DecodedLogArgs>).args).to.be.deep.equal(expectedEvent);
|
||||||
});
|
});
|
||||||
it('should decode downstream event args when dependencies are passed into wrapper', async () => {
|
it('should decode downstream event args when dependencies are passed into wrapper', async () => {
|
||||||
@ -85,7 +80,6 @@ describe('TestLogDecoding', () => {
|
|||||||
.emitEventDownstream()
|
.emitEventDownstream()
|
||||||
.awaitTransactionSuccessAsync();
|
.awaitTransactionSuccessAsync();
|
||||||
expect(txReceipt.logs.length).to.be.equal(1);
|
expect(txReceipt.logs.length).to.be.equal(1);
|
||||||
// tslint:disable no-unnecessary-type-assertion
|
|
||||||
expect((txReceipt.logs[0] as LogWithDecodedArgs<DecodedLogArgs>).args).to.be.deep.equal(
|
expect((txReceipt.logs[0] as LogWithDecodedArgs<DecodedLogArgs>).args).to.be.deep.equal(
|
||||||
expectedDownstreamEvent,
|
expectedDownstreamEvent,
|
||||||
);
|
);
|
||||||
@ -95,9 +89,7 @@ describe('TestLogDecoding', () => {
|
|||||||
.emitEventsLocalAndDownstream()
|
.emitEventsLocalAndDownstream()
|
||||||
.awaitTransactionSuccessAsync();
|
.awaitTransactionSuccessAsync();
|
||||||
expect(txReceipt.logs.length).to.be.equal(2);
|
expect(txReceipt.logs.length).to.be.equal(2);
|
||||||
// tslint:disable no-unnecessary-type-assertion
|
|
||||||
expect((txReceipt.logs[0] as LogWithDecodedArgs<DecodedLogArgs>).args).to.be.deep.equal(expectedEvent);
|
expect((txReceipt.logs[0] as LogWithDecodedArgs<DecodedLogArgs>).args).to.be.deep.equal(expectedEvent);
|
||||||
// tslint:disable no-unnecessary-type-assertion
|
|
||||||
expect((txReceipt.logs[1] as LogWithDecodedArgs<DecodedLogArgs>).args).to.be.deep.equal(
|
expect((txReceipt.logs[1] as LogWithDecodedArgs<DecodedLogArgs>).args).to.be.deep.equal(
|
||||||
expectedDownstreamEvent,
|
expectedDownstreamEvent,
|
||||||
);
|
);
|
||||||
|
@ -21,7 +21,6 @@ function bitwiseOrWords(a: string, b: string): string {
|
|||||||
const bBits = hexWordToBitArray(b);
|
const bBits = hexWordToBitArray(b);
|
||||||
const resultBits = aBits.slice();
|
const resultBits = aBits.slice();
|
||||||
for (let i = 0; i < 256; ++i) {
|
for (let i = 0; i < 256; ++i) {
|
||||||
// tslint:disable-next-line: no-bitwise
|
|
||||||
resultBits[i] |= bBits[i];
|
resultBits[i] |= bBits[i];
|
||||||
}
|
}
|
||||||
return bitArrayToHexWord(resultBits);
|
return bitArrayToHexWord(resultBits);
|
||||||
|
@ -19,8 +19,6 @@ import {
|
|||||||
ZeroExContract,
|
ZeroExContract,
|
||||||
} from './wrappers';
|
} from './wrappers';
|
||||||
|
|
||||||
// tslint:disable: completed-docs
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Addresses of minimum features for a deployment of the Exchange Proxy.
|
* Addresses of minimum features for a deployment of the Exchange Proxy.
|
||||||
*/
|
*/
|
||||||
|
@ -20,7 +20,6 @@ export function rlpEncodeNonce(nonce: number): string {
|
|||||||
return ethjs.bufferToHex(ethjs.toBuffer(nonce));
|
return ethjs.bufferToHex(ethjs.toBuffer(nonce));
|
||||||
} else {
|
} else {
|
||||||
const rlpNonce = ethjs.toBuffer(nonce);
|
const rlpNonce = ethjs.toBuffer(nonce);
|
||||||
// tslint:disable-next-line: restrict-plus-operands
|
|
||||||
return hexUtils.concat(rlpNonce.length + 0x80, ethjs.bufferToHex(rlpNonce));
|
return hexUtils.concat(rlpNonce.length + 0x80, ethjs.bufferToHex(rlpNonce));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,8 +3,6 @@ import { MethodAbi } from 'ethereum-types';
|
|||||||
|
|
||||||
import * as wrappers from '../../src/wrappers';
|
import * as wrappers from '../../src/wrappers';
|
||||||
|
|
||||||
// tslint:disable:no-string-literal
|
|
||||||
|
|
||||||
blockchainTests('Selector collision test', env => {
|
blockchainTests('Selector collision test', env => {
|
||||||
it('Function selectors do not collide', () => {
|
it('Function selectors do not collide', () => {
|
||||||
const selectorToSignature: { [selector: string]: string } = {};
|
const selectorToSignature: { [selector: string]: string } = {};
|
||||||
|
@ -272,7 +272,6 @@ blockchainTests.resets('FillQuoteTransformer', env => {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
// tslint:disable-next-line: prefer-for-of
|
|
||||||
for (let i = 0; i < data.fillSequence.length; ++i) {
|
for (let i = 0; i < data.fillSequence.length; ++i) {
|
||||||
const orderType = data.fillSequence[i];
|
const orderType = data.fillSequence[i];
|
||||||
if (data.side === Side.Sell) {
|
if (data.side === Side.Sell) {
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": ["@0x/tslint-config"],
|
|
||||||
"rules": {
|
|
||||||
"custom-no-magic-numbers": false,
|
|
||||||
"max-file-line-count": false,
|
|
||||||
"no-non-null-assertion": false,
|
|
||||||
"no-unnecessary-type-assertion": false,
|
|
||||||
"number-literal-format": false
|
|
||||||
},
|
|
||||||
"linterOptions": {
|
|
||||||
"exclude": ["src/artifacts.ts", "test/artifacts.ts"]
|
|
||||||
}
|
|
||||||
}
|
|
@ -4,7 +4,7 @@
|
|||||||
"version": "independent",
|
"version": "independent",
|
||||||
"command": {
|
"command": {
|
||||||
"publish": {
|
"publish": {
|
||||||
"ignoreChanges": ["test/**/*", "*.md", "scripts", "lib", "tslint.json", "tsconfig.json"]
|
"ignoreChanges": ["test/**/*", "*.md", "scripts", "lib", "tsconfig.json"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"npmClient": "yarn",
|
"npmClient": "yarn",
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
"bundlewatch": "bundlewatch",
|
"bundlewatch": "bundlewatch",
|
||||||
"lint:ts": "wsrun --fast-exit --parallel --exclude-missing -p $PKG -c lint",
|
"lint:ts": "wsrun --fast-exit --parallel --exclude-missing -p $PKG -c lint",
|
||||||
"lint": "yarn lint:ts && yarn lint:contracts",
|
"lint": "yarn lint:ts && yarn lint:contracts",
|
||||||
"upgrade_tools": "node node_modules/@0x/monorepo-scripts/lib/upgrade_deps.js -p '@0x/abi-gen|@0x/assert|@0x/base-contract|@0x/contracts-gen|@0x/dev-utils|@0x/json-schemas|@0x/monorepo-scripts|@0x/sol-compiler|@0x/sol-coverage|@0x/sol-doc|@0x/sol-profiler|@0x/sol-resolver|@0x/sol-trace|@0x/sol-tracing-utils|@0x/subproviders|@0x/tslint-config|@0x/types|@0x/typescript-typings|@0x/utils|@0x/verdaccio|@0x/web3-wrapper|ethereum-types'",
|
"upgrade_tools": "node node_modules/@0x/monorepo-scripts/lib/upgrade_deps.js -p '@0x/abi-gen|@0x/assert|@0x/base-contract|@0x/contracts-gen|@0x/dev-utils|@0x/json-schemas|@0x/monorepo-scripts|@0x/sol-compiler|@0x/sol-coverage|@0x/sol-doc|@0x/sol-profiler|@0x/sol-resolver|@0x/sol-trace|@0x/sol-tracing-utils|@0x/subproviders|@0x/types|@0x/typescript-typings|@0x/utils|@0x/verdaccio|@0x/web3-wrapper|ethereum-types'",
|
||||||
"upgrade_deps": "node node_modules/@0x/monorepo-scripts/lib/upgrade_deps.js",
|
"upgrade_deps": "node node_modules/@0x/monorepo-scripts/lib/upgrade_deps.js",
|
||||||
"verdaccio": "docker run --rm -i -p 4873:4873 0xorg/verdaccio"
|
"verdaccio": "docker run --rm -i -p 4873:4873 0xorg/verdaccio"
|
||||||
},
|
},
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": ["@0x/tslint-config"]
|
|
||||||
}
|
|
@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": ["@0x/tslint-config"]
|
|
||||||
}
|
|
@ -1,6 +1,3 @@
|
|||||||
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma enum-naming
|
|
||||||
// tslint:disable:whitespace no-unbound-method no-trailing-whitespace
|
|
||||||
// tslint:disable:no-unused-variable
|
|
||||||
import {
|
import {
|
||||||
AwaitTransactionSuccessOpts,
|
AwaitTransactionSuccessOpts,
|
||||||
EncoderOverrides,
|
EncoderOverrides,
|
||||||
@ -33,12 +30,8 @@ import { EventCallback, IndexedFilterValues, SimpleContractArtifact } from '@0x/
|
|||||||
import { Web3Wrapper } from '@0x/web3-wrapper';
|
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||||
import { assert } from '@0x/assert';
|
import { assert } from '@0x/assert';
|
||||||
import * as ethers from 'ethers';
|
import * as ethers from 'ethers';
|
||||||
// tslint:enable:no-unused-variable
|
|
||||||
|
|
||||||
/* istanbul ignore next */
|
/* istanbul ignore next */
|
||||||
// tslint:disable:array-type
|
|
||||||
// tslint:disable:no-parameter-reassignment
|
|
||||||
// tslint:disable-next-line:class-name
|
|
||||||
export class BrokerContract extends BaseContract {
|
export class BrokerContract extends BaseContract {
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
@ -515,7 +508,7 @@ export class BrokerContract extends BaseContract {
|
|||||||
|
|
||||||
public getFunctionSignature(methodName: string): string {
|
public getFunctionSignature(methodName: string): string {
|
||||||
const index = this._methodABIIndex[methodName];
|
const index = this._methodABIIndex[methodName];
|
||||||
const methodAbi = BrokerContract.ABI()[index] as MethodAbi; // tslint:disable-line:no-unnecessary-type-assertion
|
const methodAbi = BrokerContract.ABI()[index] as MethodAbi;
|
||||||
const functionSignature = methodAbiToFunctionSignature(methodAbi);
|
const functionSignature = methodAbiToFunctionSignature(methodAbi);
|
||||||
return functionSignature;
|
return functionSignature;
|
||||||
}
|
}
|
||||||
@ -942,7 +935,3 @@ export class BrokerContract extends BaseContract {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// tslint:disable:max-file-line-count
|
|
||||||
// tslint:enable:no-unbound-method no-parameter-reassignment no-consecutive-blank-lines ordered-imports align
|
|
||||||
// tslint:enable:trailing-comma whitespace no-trailing-whitespace
|
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma enum-naming
|
|
||||||
// tslint:disable:whitespace no-unbound-method no-trailing-whitespace
|
|
||||||
// tslint:disable:no-unused-variable
|
|
||||||
import {
|
import {
|
||||||
AwaitTransactionSuccessOpts,
|
AwaitTransactionSuccessOpts,
|
||||||
EncoderOverrides,
|
EncoderOverrides,
|
||||||
@ -33,12 +30,8 @@ import { EventCallback, IndexedFilterValues, SimpleContractArtifact } from '@0x/
|
|||||||
import { Web3Wrapper } from '@0x/web3-wrapper';
|
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||||
import { assert } from '@0x/assert';
|
import { assert } from '@0x/assert';
|
||||||
import * as ethers from 'ethers';
|
import * as ethers from 'ethers';
|
||||||
// tslint:enable:no-unused-variable
|
|
||||||
|
|
||||||
/* istanbul ignore next */
|
/* istanbul ignore next */
|
||||||
// tslint:disable:array-type
|
|
||||||
// tslint:disable:no-parameter-reassignment
|
|
||||||
// tslint:disable-next-line:class-name
|
|
||||||
export class CoordinatorContract extends BaseContract {
|
export class CoordinatorContract extends BaseContract {
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
@ -539,7 +532,7 @@ export class CoordinatorContract extends BaseContract {
|
|||||||
|
|
||||||
public getFunctionSignature(methodName: string): string {
|
public getFunctionSignature(methodName: string): string {
|
||||||
const index = this._methodABIIndex[methodName];
|
const index = this._methodABIIndex[methodName];
|
||||||
const methodAbi = CoordinatorContract.ABI()[index] as MethodAbi; // tslint:disable-line:no-unnecessary-type-assertion
|
const methodAbi = CoordinatorContract.ABI()[index] as MethodAbi;
|
||||||
const functionSignature = methodAbiToFunctionSignature(methodAbi);
|
const functionSignature = methodAbiToFunctionSignature(methodAbi);
|
||||||
return functionSignature;
|
return functionSignature;
|
||||||
}
|
}
|
||||||
@ -1002,6 +995,3 @@ export class CoordinatorContract extends BaseContract {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// tslint:disable:max-file-line-count
|
|
||||||
// tslint:enable:no-unbound-method no-parameter-reassignment no-consecutive-blank-lines ordered-imports align
|
|
||||||
// tslint:enable:trailing-comma whitespace no-trailing-whitespace
|
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma enum-naming
|
|
||||||
// tslint:disable:whitespace no-unbound-method no-trailing-whitespace
|
|
||||||
// tslint:disable:no-unused-variable
|
|
||||||
import {
|
import {
|
||||||
AwaitTransactionSuccessOpts,
|
AwaitTransactionSuccessOpts,
|
||||||
EncoderOverrides,
|
EncoderOverrides,
|
||||||
@ -33,12 +30,8 @@ import { EventCallback, IndexedFilterValues, SimpleContractArtifact } from '@0x/
|
|||||||
import { Web3Wrapper } from '@0x/web3-wrapper';
|
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||||
import { assert } from '@0x/assert';
|
import { assert } from '@0x/assert';
|
||||||
import * as ethers from 'ethers';
|
import * as ethers from 'ethers';
|
||||||
// tslint:enable:no-unused-variable
|
|
||||||
|
|
||||||
/* istanbul ignore next */
|
/* istanbul ignore next */
|
||||||
// tslint:disable:array-type
|
|
||||||
// tslint:disable:no-parameter-reassignment
|
|
||||||
// tslint:disable-next-line:class-name
|
|
||||||
export class DevUtilsContract extends BaseContract {
|
export class DevUtilsContract extends BaseContract {
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
@ -1556,7 +1549,7 @@ export class DevUtilsContract extends BaseContract {
|
|||||||
|
|
||||||
public getFunctionSignature(methodName: string): string {
|
public getFunctionSignature(methodName: string): string {
|
||||||
const index = this._methodABIIndex[methodName];
|
const index = this._methodABIIndex[methodName];
|
||||||
const methodAbi = DevUtilsContract.ABI()[index] as MethodAbi; // tslint:disable-line:no-unnecessary-type-assertion
|
const methodAbi = DevUtilsContract.ABI()[index] as MethodAbi;
|
||||||
const functionSignature = methodAbiToFunctionSignature(methodAbi);
|
const functionSignature = methodAbiToFunctionSignature(methodAbi);
|
||||||
return functionSignature;
|
return functionSignature;
|
||||||
}
|
}
|
||||||
@ -3434,6 +3427,3 @@ export class DevUtilsContract extends BaseContract {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// tslint:disable:max-file-line-count
|
|
||||||
// tslint:enable:no-unbound-method no-parameter-reassignment no-consecutive-blank-lines ordered-imports align
|
|
||||||
// tslint:enable:trailing-comma whitespace no-trailing-whitespace
|
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma enum-naming
|
|
||||||
// tslint:disable:whitespace no-unbound-method no-trailing-whitespace
|
|
||||||
// tslint:disable:no-unused-variable
|
|
||||||
import {
|
import {
|
||||||
AwaitTransactionSuccessOpts,
|
AwaitTransactionSuccessOpts,
|
||||||
EncoderOverrides,
|
EncoderOverrides,
|
||||||
@ -35,7 +32,6 @@ import { EventCallback, IndexedFilterValues, SimpleContractArtifact } from '@0x/
|
|||||||
import { Web3Wrapper } from '@0x/web3-wrapper';
|
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||||
import { assert } from '@0x/assert';
|
import { assert } from '@0x/assert';
|
||||||
import * as ethers from 'ethers';
|
import * as ethers from 'ethers';
|
||||||
// tslint:enable:no-unused-variable
|
|
||||||
|
|
||||||
export type ERC20TokenEventArgs = ERC20TokenApprovalEventArgs | ERC20TokenTransferEventArgs;
|
export type ERC20TokenEventArgs = ERC20TokenApprovalEventArgs | ERC20TokenTransferEventArgs;
|
||||||
|
|
||||||
@ -57,9 +53,6 @@ export interface ERC20TokenTransferEventArgs extends DecodedLogArgs {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* istanbul ignore next */
|
/* istanbul ignore next */
|
||||||
// tslint:disable:array-type
|
|
||||||
// tslint:disable:no-parameter-reassignment
|
|
||||||
// tslint:disable-next-line:class-name
|
|
||||||
export class ERC20TokenContract extends BaseContract {
|
export class ERC20TokenContract extends BaseContract {
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
@ -387,7 +380,7 @@ export class ERC20TokenContract extends BaseContract {
|
|||||||
|
|
||||||
public getFunctionSignature(methodName: string): string {
|
public getFunctionSignature(methodName: string): string {
|
||||||
const index = this._methodABIIndex[methodName];
|
const index = this._methodABIIndex[methodName];
|
||||||
const methodAbi = ERC20TokenContract.ABI()[index] as MethodAbi; // tslint:disable-line:no-unnecessary-type-assertion
|
const methodAbi = ERC20TokenContract.ABI()[index] as MethodAbi;
|
||||||
const functionSignature = methodAbiToFunctionSignature(methodAbi);
|
const functionSignature = methodAbiToFunctionSignature(methodAbi);
|
||||||
return functionSignature;
|
return functionSignature;
|
||||||
}
|
}
|
||||||
@ -794,7 +787,3 @@ export class ERC20TokenContract extends BaseContract {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// tslint:disable:max-file-line-count
|
|
||||||
// tslint:enable:no-unbound-method no-parameter-reassignment no-consecutive-blank-lines ordered-imports align
|
|
||||||
// tslint:enable:trailing-comma whitespace no-trailing-whitespace
|
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma enum-naming
|
|
||||||
// tslint:disable:whitespace no-unbound-method no-trailing-whitespace
|
|
||||||
// tslint:disable:no-unused-variable
|
|
||||||
import {
|
import {
|
||||||
AwaitTransactionSuccessOpts,
|
AwaitTransactionSuccessOpts,
|
||||||
EncoderOverrides,
|
EncoderOverrides,
|
||||||
@ -35,7 +32,6 @@ import { EventCallback, IndexedFilterValues, SimpleContractArtifact } from '@0x/
|
|||||||
import { Web3Wrapper } from '@0x/web3-wrapper';
|
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||||
import { assert } from '@0x/assert';
|
import { assert } from '@0x/assert';
|
||||||
import * as ethers from 'ethers';
|
import * as ethers from 'ethers';
|
||||||
// tslint:enable:no-unused-variable
|
|
||||||
|
|
||||||
export type ERC721TokenEventArgs =
|
export type ERC721TokenEventArgs =
|
||||||
| ERC721TokenApprovalEventArgs
|
| ERC721TokenApprovalEventArgs
|
||||||
@ -67,9 +63,6 @@ export interface ERC721TokenTransferEventArgs extends DecodedLogArgs {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* istanbul ignore next */
|
/* istanbul ignore next */
|
||||||
// tslint:disable:array-type
|
|
||||||
// tslint:disable:no-parameter-reassignment
|
|
||||||
// tslint:disable-next-line:class-name
|
|
||||||
export class ERC721TokenContract extends BaseContract {
|
export class ERC721TokenContract extends BaseContract {
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
@ -477,7 +470,7 @@ export class ERC721TokenContract extends BaseContract {
|
|||||||
|
|
||||||
public getFunctionSignature(methodName: string): string {
|
public getFunctionSignature(methodName: string): string {
|
||||||
const index = this._methodABIIndex[methodName];
|
const index = this._methodABIIndex[methodName];
|
||||||
const methodAbi = ERC721TokenContract.ABI()[index] as MethodAbi; // tslint:disable-line:no-unnecessary-type-assertion
|
const methodAbi = ERC721TokenContract.ABI()[index] as MethodAbi;
|
||||||
const functionSignature = methodAbiToFunctionSignature(methodAbi);
|
const functionSignature = methodAbiToFunctionSignature(methodAbi);
|
||||||
return functionSignature;
|
return functionSignature;
|
||||||
}
|
}
|
||||||
@ -1078,6 +1071,3 @@ export class ERC721TokenContract extends BaseContract {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// tslint:disable:max-file-line-count
|
|
||||||
// tslint:enable:no-unbound-method no-parameter-reassignment no-consecutive-blank-lines ordered-imports align
|
|
||||||
// tslint:enable:trailing-comma whitespace no-trailing-whitespace
|
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma enum-naming
|
|
||||||
// tslint:disable:whitespace no-unbound-method no-trailing-whitespace
|
|
||||||
// tslint:disable:no-unused-variable
|
|
||||||
import {
|
import {
|
||||||
AwaitTransactionSuccessOpts,
|
AwaitTransactionSuccessOpts,
|
||||||
EncoderOverrides,
|
EncoderOverrides,
|
||||||
@ -35,7 +32,6 @@ import { EventCallback, IndexedFilterValues, SimpleContractArtifact } from '@0x/
|
|||||||
import { Web3Wrapper } from '@0x/web3-wrapper';
|
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||||
import { assert } from '@0x/assert';
|
import { assert } from '@0x/assert';
|
||||||
import * as ethers from 'ethers';
|
import * as ethers from 'ethers';
|
||||||
// tslint:enable:no-unused-variable
|
|
||||||
|
|
||||||
export type ExchangeEventArgs =
|
export type ExchangeEventArgs =
|
||||||
| ExchangeAssetProxyRegisteredEventArgs
|
| ExchangeAssetProxyRegisteredEventArgs
|
||||||
@ -123,9 +119,6 @@ export interface ExchangeTransactionExecutionEventArgs extends DecodedLogArgs {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* istanbul ignore next */
|
/* istanbul ignore next */
|
||||||
// tslint:disable:array-type
|
|
||||||
// tslint:disable:no-parameter-reassignment
|
|
||||||
// tslint:disable-next-line:class-name
|
|
||||||
export class ExchangeContract extends BaseContract {
|
export class ExchangeContract extends BaseContract {
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
@ -3187,7 +3180,7 @@ export class ExchangeContract extends BaseContract {
|
|||||||
|
|
||||||
public getFunctionSignature(methodName: string): string {
|
public getFunctionSignature(methodName: string): string {
|
||||||
const index = this._methodABIIndex[methodName];
|
const index = this._methodABIIndex[methodName];
|
||||||
const methodAbi = ExchangeContract.ABI()[index] as MethodAbi; // tslint:disable-line:no-unnecessary-type-assertion
|
const methodAbi = ExchangeContract.ABI()[index] as MethodAbi;
|
||||||
const functionSignature = methodAbiToFunctionSignature(methodAbi);
|
const functionSignature = methodAbiToFunctionSignature(methodAbi);
|
||||||
return functionSignature;
|
return functionSignature;
|
||||||
}
|
}
|
||||||
@ -6334,6 +6327,3 @@ export class ExchangeContract extends BaseContract {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// tslint:disable:max-file-line-count
|
|
||||||
// tslint:enable:no-unbound-method no-parameter-reassignment no-consecutive-blank-lines ordered-imports align
|
|
||||||
// tslint:enable:trailing-comma whitespace no-trailing-whitespace
|
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma enum-naming
|
|
||||||
// tslint:disable:whitespace no-unbound-method no-trailing-whitespace
|
|
||||||
// tslint:disable:no-unused-variable
|
|
||||||
import {
|
import {
|
||||||
AwaitTransactionSuccessOpts,
|
AwaitTransactionSuccessOpts,
|
||||||
EncoderOverrides,
|
EncoderOverrides,
|
||||||
@ -35,7 +32,6 @@ import { EventCallback, IndexedFilterValues, SimpleContractArtifact } from '@0x/
|
|||||||
import { Web3Wrapper } from '@0x/web3-wrapper';
|
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||||
import { assert } from '@0x/assert';
|
import { assert } from '@0x/assert';
|
||||||
import * as ethers from 'ethers';
|
import * as ethers from 'ethers';
|
||||||
// tslint:enable:no-unused-variable
|
|
||||||
|
|
||||||
export type ForwarderEventArgs = ForwarderOwnershipTransferredEventArgs;
|
export type ForwarderEventArgs = ForwarderOwnershipTransferredEventArgs;
|
||||||
|
|
||||||
@ -49,9 +45,6 @@ export interface ForwarderOwnershipTransferredEventArgs extends DecodedLogArgs {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* istanbul ignore next */
|
/* istanbul ignore next */
|
||||||
// tslint:disable:array-type
|
|
||||||
// tslint:disable:no-parameter-reassignment
|
|
||||||
// tslint:disable-next-line:class-name
|
|
||||||
export class ForwarderContract extends BaseContract {
|
export class ForwarderContract extends BaseContract {
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
@ -739,7 +732,7 @@ export class ForwarderContract extends BaseContract {
|
|||||||
|
|
||||||
public getFunctionSignature(methodName: string): string {
|
public getFunctionSignature(methodName: string): string {
|
||||||
const index = this._methodABIIndex[methodName];
|
const index = this._methodABIIndex[methodName];
|
||||||
const methodAbi = ForwarderContract.ABI()[index] as MethodAbi; // tslint:disable-line:no-unnecessary-type-assertion
|
const methodAbi = ForwarderContract.ABI()[index] as MethodAbi;
|
||||||
const functionSignature = methodAbiToFunctionSignature(methodAbi);
|
const functionSignature = methodAbiToFunctionSignature(methodAbi);
|
||||||
return functionSignature;
|
return functionSignature;
|
||||||
}
|
}
|
||||||
@ -1631,6 +1624,3 @@ export class ForwarderContract extends BaseContract {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// tslint:disable:max-file-line-count
|
|
||||||
// tslint:enable:no-unbound-method no-parameter-reassignment no-consecutive-blank-lines ordered-imports align
|
|
||||||
// tslint:enable:trailing-comma whitespace no-trailing-whitespace
|
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma enum-naming
|
|
||||||
// tslint:disable:whitespace no-unbound-method no-trailing-whitespace
|
|
||||||
// tslint:disable:no-unused-variable
|
|
||||||
import {
|
import {
|
||||||
AwaitTransactionSuccessOpts,
|
AwaitTransactionSuccessOpts,
|
||||||
EncoderOverrides,
|
EncoderOverrides,
|
||||||
@ -33,12 +30,8 @@ import { EventCallback, IndexedFilterValues, SimpleContractArtifact } from '@0x/
|
|||||||
import { Web3Wrapper } from '@0x/web3-wrapper';
|
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||||
import { assert } from '@0x/assert';
|
import { assert } from '@0x/assert';
|
||||||
import * as ethers from 'ethers';
|
import * as ethers from 'ethers';
|
||||||
// tslint:enable:no-unused-variable
|
|
||||||
|
|
||||||
/* istanbul ignore next */
|
/* istanbul ignore next */
|
||||||
// tslint:disable:array-type
|
|
||||||
// tslint:disable:no-parameter-reassignment
|
|
||||||
// tslint:disable-next-line:class-name
|
|
||||||
export class GodsUnchainedValidatorContract extends BaseContract {
|
export class GodsUnchainedValidatorContract extends BaseContract {
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
@ -241,7 +234,7 @@ export class GodsUnchainedValidatorContract extends BaseContract {
|
|||||||
|
|
||||||
public getFunctionSignature(methodName: string): string {
|
public getFunctionSignature(methodName: string): string {
|
||||||
const index = this._methodABIIndex[methodName];
|
const index = this._methodABIIndex[methodName];
|
||||||
const methodAbi = GodsUnchainedValidatorContract.ABI()[index] as MethodAbi; // tslint:disable-line:no-unnecessary-type-assertion
|
const methodAbi = GodsUnchainedValidatorContract.ABI()[index] as MethodAbi;
|
||||||
const functionSignature = methodAbiToFunctionSignature(methodAbi);
|
const functionSignature = methodAbiToFunctionSignature(methodAbi);
|
||||||
return functionSignature;
|
return functionSignature;
|
||||||
}
|
}
|
||||||
@ -330,7 +323,3 @@ export class GodsUnchainedValidatorContract extends BaseContract {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// tslint:disable:max-file-line-count
|
|
||||||
// tslint:enable:no-unbound-method no-parameter-reassignment no-consecutive-blank-lines ordered-imports align
|
|
||||||
// tslint:enable:trailing-comma whitespace no-trailing-whitespace
|
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma enum-naming
|
|
||||||
// tslint:disable:whitespace no-unbound-method no-trailing-whitespace
|
|
||||||
// tslint:disable:no-unused-variable
|
|
||||||
import {
|
import {
|
||||||
AwaitTransactionSuccessOpts,
|
AwaitTransactionSuccessOpts,
|
||||||
EncoderOverrides,
|
EncoderOverrides,
|
||||||
@ -33,12 +30,8 @@ import { EventCallback, IndexedFilterValues, SimpleContractArtifact } from '@0x/
|
|||||||
import { Web3Wrapper } from '@0x/web3-wrapper';
|
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||||
import { assert } from '@0x/assert';
|
import { assert } from '@0x/assert';
|
||||||
import * as ethers from 'ethers';
|
import * as ethers from 'ethers';
|
||||||
// tslint:enable:no-unused-variable
|
|
||||||
|
|
||||||
/* istanbul ignore next */
|
/* istanbul ignore next */
|
||||||
// tslint:disable:array-type
|
|
||||||
// tslint:disable:no-parameter-reassignment
|
|
||||||
// tslint:disable-next-line:class-name
|
|
||||||
export class IAssetDataContract extends BaseContract {
|
export class IAssetDataContract extends BaseContract {
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
@ -310,7 +303,7 @@ export class IAssetDataContract extends BaseContract {
|
|||||||
|
|
||||||
public getFunctionSignature(methodName: string): string {
|
public getFunctionSignature(methodName: string): string {
|
||||||
const index = this._methodABIIndex[methodName];
|
const index = this._methodABIIndex[methodName];
|
||||||
const methodAbi = IAssetDataContract.ABI()[index] as MethodAbi; // tslint:disable-line:no-unnecessary-type-assertion
|
const methodAbi = IAssetDataContract.ABI()[index] as MethodAbi;
|
||||||
const functionSignature = methodAbiToFunctionSignature(methodAbi);
|
const functionSignature = methodAbiToFunctionSignature(methodAbi);
|
||||||
return functionSignature;
|
return functionSignature;
|
||||||
}
|
}
|
||||||
@ -790,6 +783,3 @@ export class IAssetDataContract extends BaseContract {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// tslint:disable:max-file-line-count
|
|
||||||
// tslint:enable:no-unbound-method no-parameter-reassignment no-consecutive-blank-lines ordered-imports align
|
|
||||||
// tslint:enable:trailing-comma whitespace no-trailing-whitespace
|
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma enum-naming
|
|
||||||
// tslint:disable:whitespace no-unbound-method no-trailing-whitespace
|
|
||||||
// tslint:disable:no-unused-variable
|
|
||||||
import {
|
import {
|
||||||
AwaitTransactionSuccessOpts,
|
AwaitTransactionSuccessOpts,
|
||||||
EncoderOverrides,
|
EncoderOverrides,
|
||||||
@ -33,12 +30,8 @@ import { EventCallback, IndexedFilterValues, SimpleContractArtifact } from '@0x/
|
|||||||
import { Web3Wrapper } from '@0x/web3-wrapper';
|
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||||
import { assert } from '@0x/assert';
|
import { assert } from '@0x/assert';
|
||||||
import * as ethers from 'ethers';
|
import * as ethers from 'ethers';
|
||||||
// tslint:enable:no-unused-variable
|
|
||||||
|
|
||||||
/* istanbul ignore next */
|
/* istanbul ignore next */
|
||||||
// tslint:disable:array-type
|
|
||||||
// tslint:disable:no-parameter-reassignment
|
|
||||||
// tslint:disable-next-line:class-name
|
|
||||||
export class ILiquidityProviderContract extends BaseContract {
|
export class ILiquidityProviderContract extends BaseContract {
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
@ -291,7 +284,7 @@ export class ILiquidityProviderContract extends BaseContract {
|
|||||||
|
|
||||||
public getFunctionSignature(methodName: string): string {
|
public getFunctionSignature(methodName: string): string {
|
||||||
const index = this._methodABIIndex[methodName];
|
const index = this._methodABIIndex[methodName];
|
||||||
const methodAbi = ILiquidityProviderContract.ABI()[index] as MethodAbi; // tslint:disable-line:no-unnecessary-type-assertion
|
const methodAbi = ILiquidityProviderContract.ABI()[index] as MethodAbi;
|
||||||
const functionSignature = methodAbiToFunctionSignature(methodAbi);
|
const functionSignature = methodAbiToFunctionSignature(methodAbi);
|
||||||
return functionSignature;
|
return functionSignature;
|
||||||
}
|
}
|
||||||
@ -506,6 +499,3 @@ export class ILiquidityProviderContract extends BaseContract {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// tslint:disable:max-file-line-count
|
|
||||||
// tslint:enable:no-unbound-method no-parameter-reassignment no-consecutive-blank-lines ordered-imports align
|
|
||||||
// tslint:enable:trailing-comma whitespace no-trailing-whitespace
|
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma enum-naming
|
|
||||||
// tslint:disable:whitespace no-unbound-method no-trailing-whitespace
|
|
||||||
// tslint:disable:no-unused-variable
|
|
||||||
import {
|
import {
|
||||||
AwaitTransactionSuccessOpts,
|
AwaitTransactionSuccessOpts,
|
||||||
EncoderOverrides,
|
EncoderOverrides,
|
||||||
@ -35,7 +32,6 @@ import { EventCallback, IndexedFilterValues, SimpleContractArtifact } from '@0x/
|
|||||||
import { Web3Wrapper } from '@0x/web3-wrapper';
|
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||||
import { assert } from '@0x/assert';
|
import { assert } from '@0x/assert';
|
||||||
import * as ethers from 'ethers';
|
import * as ethers from 'ethers';
|
||||||
// tslint:enable:no-unused-variable
|
|
||||||
|
|
||||||
export type ITransformERC20EventArgs =
|
export type ITransformERC20EventArgs =
|
||||||
| ITransformERC20QuoteSignerUpdatedEventArgs
|
| ITransformERC20QuoteSignerUpdatedEventArgs
|
||||||
@ -65,9 +61,6 @@ export interface ITransformERC20TransformerDeployerUpdatedEventArgs extends Deco
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* istanbul ignore next */
|
/* istanbul ignore next */
|
||||||
// tslint:disable:array-type
|
|
||||||
// tslint:disable:no-parameter-reassignment
|
|
||||||
// tslint:disable-next-line:class-name
|
|
||||||
export class ITransformERC20Contract extends BaseContract {
|
export class ITransformERC20Contract extends BaseContract {
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
@ -455,7 +448,7 @@ export class ITransformERC20Contract extends BaseContract {
|
|||||||
|
|
||||||
public getFunctionSignature(methodName: string): string {
|
public getFunctionSignature(methodName: string): string {
|
||||||
const index = this._methodABIIndex[methodName];
|
const index = this._methodABIIndex[methodName];
|
||||||
const methodAbi = ITransformERC20Contract.ABI()[index] as MethodAbi; // tslint:disable-line:no-unnecessary-type-assertion
|
const methodAbi = ITransformERC20Contract.ABI()[index] as MethodAbi;
|
||||||
const functionSignature = methodAbiToFunctionSignature(methodAbi);
|
const functionSignature = methodAbiToFunctionSignature(methodAbi);
|
||||||
return functionSignature;
|
return functionSignature;
|
||||||
}
|
}
|
||||||
@ -1120,6 +1113,3 @@ export class ITransformERC20Contract extends BaseContract {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// tslint:disable:max-file-line-count
|
|
||||||
// tslint:enable:no-unbound-method no-parameter-reassignment no-consecutive-blank-lines ordered-imports align
|
|
||||||
// tslint:enable:trailing-comma whitespace no-trailing-whitespace
|
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma enum-naming
|
|
||||||
// tslint:disable:whitespace no-unbound-method no-trailing-whitespace
|
|
||||||
// tslint:disable:no-unused-variable
|
|
||||||
import {
|
import {
|
||||||
AwaitTransactionSuccessOpts,
|
AwaitTransactionSuccessOpts,
|
||||||
EncoderOverrides,
|
EncoderOverrides,
|
||||||
@ -35,7 +32,6 @@ import { EventCallback, IndexedFilterValues, SimpleContractArtifact } from '@0x/
|
|||||||
import { Web3Wrapper } from '@0x/web3-wrapper';
|
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||||
import { assert } from '@0x/assert';
|
import { assert } from '@0x/assert';
|
||||||
import * as ethers from 'ethers';
|
import * as ethers from 'ethers';
|
||||||
// tslint:enable:no-unused-variable
|
|
||||||
|
|
||||||
export type IZeroExEventArgs =
|
export type IZeroExEventArgs =
|
||||||
| IZeroExERC1155OrderCancelledEventArgs
|
| IZeroExERC1155OrderCancelledEventArgs
|
||||||
@ -266,9 +262,6 @@ export interface IZeroExTransformerDeployerUpdatedEventArgs extends DecodedLogAr
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* istanbul ignore next */
|
/* istanbul ignore next */
|
||||||
// tslint:disable:array-type
|
|
||||||
// tslint:disable:no-parameter-reassignment
|
|
||||||
// tslint:disable-next-line:class-name
|
|
||||||
export class IZeroExContract extends BaseContract {
|
export class IZeroExContract extends BaseContract {
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
@ -7189,7 +7182,7 @@ export class IZeroExContract extends BaseContract {
|
|||||||
|
|
||||||
public getFunctionSignature(methodName: string): string {
|
public getFunctionSignature(methodName: string): string {
|
||||||
const index = this._methodABIIndex[methodName];
|
const index = this._methodABIIndex[methodName];
|
||||||
const methodAbi = IZeroExContract.ABI()[index] as MethodAbi; // tslint:disable-line:no-unnecessary-type-assertion
|
const methodAbi = IZeroExContract.ABI()[index] as MethodAbi;
|
||||||
const functionSignature = methodAbiToFunctionSignature(methodAbi);
|
const functionSignature = methodAbiToFunctionSignature(methodAbi);
|
||||||
return functionSignature;
|
return functionSignature;
|
||||||
}
|
}
|
||||||
@ -15479,6 +15472,3 @@ export class IZeroExContract extends BaseContract {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// tslint:disable:max-file-line-count
|
|
||||||
// tslint:enable:no-unbound-method no-parameter-reassignment no-consecutive-blank-lines ordered-imports align
|
|
||||||
// tslint:enable:trailing-comma whitespace no-trailing-whitespace
|
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma enum-naming
|
|
||||||
// tslint:disable:whitespace no-unbound-method no-trailing-whitespace
|
|
||||||
// tslint:disable:no-unused-variable
|
|
||||||
import {
|
import {
|
||||||
AwaitTransactionSuccessOpts,
|
AwaitTransactionSuccessOpts,
|
||||||
EncoderOverrides,
|
EncoderOverrides,
|
||||||
@ -33,12 +30,8 @@ import { EventCallback, IndexedFilterValues, SimpleContractArtifact } from '@0x/
|
|||||||
import { Web3Wrapper } from '@0x/web3-wrapper';
|
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||||
import { assert } from '@0x/assert';
|
import { assert } from '@0x/assert';
|
||||||
import * as ethers from 'ethers';
|
import * as ethers from 'ethers';
|
||||||
// tslint:enable:no-unused-variable
|
|
||||||
|
|
||||||
/* istanbul ignore next */
|
/* istanbul ignore next */
|
||||||
// tslint:disable:array-type
|
|
||||||
// tslint:disable:no-parameter-reassignment
|
|
||||||
// tslint:disable-next-line:class-name
|
|
||||||
export class MaximumGasPriceContract extends BaseContract {
|
export class MaximumGasPriceContract extends BaseContract {
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
@ -213,7 +206,7 @@ export class MaximumGasPriceContract extends BaseContract {
|
|||||||
|
|
||||||
public getFunctionSignature(methodName: string): string {
|
public getFunctionSignature(methodName: string): string {
|
||||||
const index = this._methodABIIndex[methodName];
|
const index = this._methodABIIndex[methodName];
|
||||||
const methodAbi = MaximumGasPriceContract.ABI()[index] as MethodAbi; // tslint:disable-line:no-unnecessary-type-assertion
|
const methodAbi = MaximumGasPriceContract.ABI()[index] as MethodAbi;
|
||||||
const functionSignature = methodAbiToFunctionSignature(methodAbi);
|
const functionSignature = methodAbiToFunctionSignature(methodAbi);
|
||||||
return functionSignature;
|
return functionSignature;
|
||||||
}
|
}
|
||||||
@ -326,6 +319,3 @@ export class MaximumGasPriceContract extends BaseContract {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// tslint:disable:max-file-line-count
|
|
||||||
// tslint:enable:no-unbound-method no-parameter-reassignment no-consecutive-blank-lines ordered-imports align
|
|
||||||
// tslint:enable:trailing-comma whitespace no-trailing-whitespace
|
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma enum-naming
|
|
||||||
// tslint:disable:whitespace no-unbound-method no-trailing-whitespace
|
|
||||||
// tslint:disable:no-unused-variable
|
|
||||||
import {
|
import {
|
||||||
AwaitTransactionSuccessOpts,
|
AwaitTransactionSuccessOpts,
|
||||||
EncoderOverrides,
|
EncoderOverrides,
|
||||||
@ -35,7 +32,6 @@ import { EventCallback, IndexedFilterValues, SimpleContractArtifact } from '@0x/
|
|||||||
import { Web3Wrapper } from '@0x/web3-wrapper';
|
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||||
import { assert } from '@0x/assert';
|
import { assert } from '@0x/assert';
|
||||||
import * as ethers from 'ethers';
|
import * as ethers from 'ethers';
|
||||||
// tslint:enable:no-unused-variable
|
|
||||||
|
|
||||||
export type StakingEventArgs =
|
export type StakingEventArgs =
|
||||||
| StakingAuthorizedAddressAddedEventArgs
|
| StakingAuthorizedAddressAddedEventArgs
|
||||||
@ -168,9 +164,6 @@ export interface StakingUnstakeEventArgs extends DecodedLogArgs {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* istanbul ignore next */
|
/* istanbul ignore next */
|
||||||
// tslint:disable:array-type
|
|
||||||
// tslint:disable:no-parameter-reassignment
|
|
||||||
// tslint:disable-next-line:class-name
|
|
||||||
export class StakingContract extends BaseContract {
|
export class StakingContract extends BaseContract {
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
@ -1656,7 +1649,7 @@ export class StakingContract extends BaseContract {
|
|||||||
|
|
||||||
public getFunctionSignature(methodName: string): string {
|
public getFunctionSignature(methodName: string): string {
|
||||||
const index = this._methodABIIndex[methodName];
|
const index = this._methodABIIndex[methodName];
|
||||||
const methodAbi = StakingContract.ABI()[index] as MethodAbi; // tslint:disable-line:no-unnecessary-type-assertion
|
const methodAbi = StakingContract.ABI()[index] as MethodAbi;
|
||||||
const functionSignature = methodAbiToFunctionSignature(methodAbi);
|
const functionSignature = methodAbiToFunctionSignature(methodAbi);
|
||||||
return functionSignature;
|
return functionSignature;
|
||||||
}
|
}
|
||||||
@ -3810,7 +3803,3 @@ export class StakingContract extends BaseContract {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// tslint:disable:max-file-line-count
|
|
||||||
// tslint:enable:no-unbound-method no-parameter-reassignment no-consecutive-blank-lines ordered-imports align
|
|
||||||
// tslint:enable:trailing-comma whitespace no-trailing-whitespace
|
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma enum-naming
|
|
||||||
// tslint:disable:whitespace no-unbound-method no-trailing-whitespace
|
|
||||||
// tslint:disable:no-unused-variable
|
|
||||||
import {
|
import {
|
||||||
AwaitTransactionSuccessOpts,
|
AwaitTransactionSuccessOpts,
|
||||||
EncoderOverrides,
|
EncoderOverrides,
|
||||||
@ -35,7 +32,6 @@ import { EventCallback, IndexedFilterValues, SimpleContractArtifact } from '@0x/
|
|||||||
import { Web3Wrapper } from '@0x/web3-wrapper';
|
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||||
import { assert } from '@0x/assert';
|
import { assert } from '@0x/assert';
|
||||||
import * as ethers from 'ethers';
|
import * as ethers from 'ethers';
|
||||||
// tslint:enable:no-unused-variable
|
|
||||||
|
|
||||||
export type StakingProxyEventArgs =
|
export type StakingProxyEventArgs =
|
||||||
| StakingProxyAuthorizedAddressAddedEventArgs
|
| StakingProxyAuthorizedAddressAddedEventArgs
|
||||||
@ -74,9 +70,6 @@ export interface StakingProxyStakingContractAttachedToProxyEventArgs extends Dec
|
|||||||
export interface StakingProxyStakingContractDetachedFromProxyEventArgs extends DecodedLogArgs {}
|
export interface StakingProxyStakingContractDetachedFromProxyEventArgs extends DecodedLogArgs {}
|
||||||
|
|
||||||
/* istanbul ignore next */
|
/* istanbul ignore next */
|
||||||
// tslint:disable:array-type
|
|
||||||
// tslint:disable:no-parameter-reassignment
|
|
||||||
// tslint:disable-next-line:class-name
|
|
||||||
export class StakingProxyContract extends BaseContract {
|
export class StakingProxyContract extends BaseContract {
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
@ -783,7 +776,7 @@ export class StakingProxyContract extends BaseContract {
|
|||||||
|
|
||||||
public getFunctionSignature(methodName: string): string {
|
public getFunctionSignature(methodName: string): string {
|
||||||
const index = this._methodABIIndex[methodName];
|
const index = this._methodABIIndex[methodName];
|
||||||
const methodAbi = StakingProxyContract.ABI()[index] as MethodAbi; // tslint:disable-line:no-unnecessary-type-assertion
|
const methodAbi = StakingProxyContract.ABI()[index] as MethodAbi;
|
||||||
const functionSignature = methodAbiToFunctionSignature(methodAbi);
|
const functionSignature = methodAbiToFunctionSignature(methodAbi);
|
||||||
return functionSignature;
|
return functionSignature;
|
||||||
}
|
}
|
||||||
@ -1801,7 +1794,3 @@ export class StakingProxyContract extends BaseContract {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// tslint:disable:max-file-line-count
|
|
||||||
// tslint:enable:no-unbound-method no-parameter-reassignment no-consecutive-blank-lines ordered-imports align
|
|
||||||
// tslint:enable:trailing-comma whitespace no-trailing-whitespace
|
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma enum-naming
|
|
||||||
// tslint:disable:whitespace no-unbound-method no-trailing-whitespace
|
|
||||||
// tslint:disable:no-unused-variable
|
|
||||||
import {
|
import {
|
||||||
AwaitTransactionSuccessOpts,
|
AwaitTransactionSuccessOpts,
|
||||||
EncoderOverrides,
|
EncoderOverrides,
|
||||||
@ -35,7 +32,6 @@ import { EventCallback, IndexedFilterValues, SimpleContractArtifact } from '@0x/
|
|||||||
import { Web3Wrapper } from '@0x/web3-wrapper';
|
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||||
import { assert } from '@0x/assert';
|
import { assert } from '@0x/assert';
|
||||||
import * as ethers from 'ethers';
|
import * as ethers from 'ethers';
|
||||||
// tslint:enable:no-unused-variable
|
|
||||||
|
|
||||||
export type WETH9EventArgs =
|
export type WETH9EventArgs =
|
||||||
| WETH9ApprovalEventArgs
|
| WETH9ApprovalEventArgs
|
||||||
@ -73,9 +69,6 @@ export interface WETH9WithdrawalEventArgs extends DecodedLogArgs {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* istanbul ignore next */
|
/* istanbul ignore next */
|
||||||
// tslint:disable:array-type
|
|
||||||
// tslint:disable:no-parameter-reassignment
|
|
||||||
// tslint:disable-next-line:class-name
|
|
||||||
export class WETH9Contract extends BaseContract {
|
export class WETH9Contract extends BaseContract {
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
@ -511,7 +504,7 @@ export class WETH9Contract extends BaseContract {
|
|||||||
|
|
||||||
public getFunctionSignature(methodName: string): string {
|
public getFunctionSignature(methodName: string): string {
|
||||||
const index = this._methodABIIndex[methodName];
|
const index = this._methodABIIndex[methodName];
|
||||||
const methodAbi = WETH9Contract.ABI()[index] as MethodAbi; // tslint:disable-line:no-unnecessary-type-assertion
|
const methodAbi = WETH9Contract.ABI()[index] as MethodAbi;
|
||||||
const functionSignature = methodAbiToFunctionSignature(methodAbi);
|
const functionSignature = methodAbiToFunctionSignature(methodAbi);
|
||||||
return functionSignature;
|
return functionSignature;
|
||||||
}
|
}
|
||||||
@ -1068,7 +1061,3 @@ export class WETH9Contract extends BaseContract {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// tslint:disable:max-file-line-count
|
|
||||||
// tslint:enable:no-unbound-method no-parameter-reassignment no-consecutive-blank-lines ordered-imports align
|
|
||||||
// tslint:enable:trailing-comma whitespace no-trailing-whitespace
|
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": ["@0x/tslint-config"]
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user