Move types part of pkg exported interfaces to @0x/types from base-contract so more easily accessible
This commit is contained in:
		| @@ -43,7 +43,6 @@ export { | |||||||
|     ZRXTokenTransferEventArgs, |     ZRXTokenTransferEventArgs, | ||||||
|     ZRXTokenApprovalEventArgs, |     ZRXTokenApprovalEventArgs, | ||||||
|     ZRXTokenContract, |     ZRXTokenContract, | ||||||
|     EventCallback, |  | ||||||
|     ExchangeProtocolFeeCollectorAddressEventArgs, |     ExchangeProtocolFeeCollectorAddressEventArgs, | ||||||
|     ExchangeProtocolFeeMultiplierEventArgs, |     ExchangeProtocolFeeMultiplierEventArgs, | ||||||
|     ExchangeTransactionExecutionEventArgs, |     ExchangeTransactionExecutionEventArgs, | ||||||
| @@ -84,6 +83,8 @@ export { | |||||||
|     SimpleEvmOutput, |     SimpleEvmOutput, | ||||||
|     SimpleEvmBytecodeOutput, |     SimpleEvmBytecodeOutput, | ||||||
|     EIP712DomainWithDefaultSchema, |     EIP712DomainWithDefaultSchema, | ||||||
|  |     EventCallback, | ||||||
|  |     IndexedFilterValues, | ||||||
| } from '@0x/types'; | } from '@0x/types'; | ||||||
|  |  | ||||||
| export { | export { | ||||||
| @@ -132,6 +133,5 @@ export { | |||||||
|     OutputField, |     OutputField, | ||||||
|     ParamDescription, |     ParamDescription, | ||||||
|     EvmBytecodeOutput, |     EvmBytecodeOutput, | ||||||
|     IndexedFilterValues, |  | ||||||
|     RevertErrorAbi, |     RevertErrorAbi, | ||||||
| } from 'ethereum-types'; | } from 'ethereum-types'; | ||||||
|   | |||||||
| @@ -1,13 +1,7 @@ | |||||||
| // tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma | // tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma | ||||||
| // tslint:disable:whitespace no-unbound-method no-trailing-whitespace | // tslint:disable:whitespace no-unbound-method no-trailing-whitespace | ||||||
| // tslint:disable:no-unused-variable | // tslint:disable:no-unused-variable | ||||||
| import { | import { BaseContract, SubscriptionManager, PromiseWithTransactionHash } from '@0x/base-contract'; | ||||||
|     BaseContract, |  | ||||||
|     EventCallback, |  | ||||||
|     IndexedFilterValues, |  | ||||||
|     SubscriptionManager, |  | ||||||
|     PromiseWithTransactionHash, |  | ||||||
| } from '@0x/base-contract'; |  | ||||||
| import { schemas } from '@0x/json-schemas'; | import { schemas } from '@0x/json-schemas'; | ||||||
| import { | import { | ||||||
|     BlockParam, |     BlockParam, | ||||||
| @@ -25,7 +19,7 @@ import { | |||||||
|     SupportedProvider, |     SupportedProvider, | ||||||
| } from 'ethereum-types'; | } from 'ethereum-types'; | ||||||
| import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | ||||||
| import { SimpleContractArtifact } from '@0x/types'; | import { SimpleContractArtifact, EventCallback, IndexedFilterValues } from '@0x/types'; | ||||||
| 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'; | ||||||
|   | |||||||
| @@ -18,7 +18,7 @@ import { | |||||||
|     SupportedProvider, |     SupportedProvider, | ||||||
| } from 'ethereum-types'; | } from 'ethereum-types'; | ||||||
| import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | ||||||
| import { SimpleContractArtifact } from '@0x/types'; | import { SimpleContractArtifact, EventCallback, IndexedFilterValues } from '@0x/types'; | ||||||
| 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'; | ||||||
|   | |||||||
| @@ -1,13 +1,7 @@ | |||||||
| // tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma | // tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma | ||||||
| // tslint:disable:whitespace no-unbound-method no-trailing-whitespace | // tslint:disable:whitespace no-unbound-method no-trailing-whitespace | ||||||
| // tslint:disable:no-unused-variable | // tslint:disable:no-unused-variable | ||||||
| import { | import { BaseContract, SubscriptionManager, PromiseWithTransactionHash } from '@0x/base-contract'; | ||||||
|     BaseContract, |  | ||||||
|     EventCallback, |  | ||||||
|     IndexedFilterValues, |  | ||||||
|     SubscriptionManager, |  | ||||||
|     PromiseWithTransactionHash, |  | ||||||
| } from '@0x/base-contract'; |  | ||||||
| import { schemas } from '@0x/json-schemas'; | import { schemas } from '@0x/json-schemas'; | ||||||
| import { | import { | ||||||
|     BlockParam, |     BlockParam, | ||||||
| @@ -25,7 +19,7 @@ import { | |||||||
|     SupportedProvider, |     SupportedProvider, | ||||||
| } from 'ethereum-types'; | } from 'ethereum-types'; | ||||||
| import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | ||||||
| import { SimpleContractArtifact } from '@0x/types'; | import { SimpleContractArtifact, EventCallback, IndexedFilterValues } from '@0x/types'; | ||||||
| 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'; | ||||||
|   | |||||||
| @@ -18,7 +18,7 @@ import { | |||||||
|     SupportedProvider, |     SupportedProvider, | ||||||
| } from 'ethereum-types'; | } from 'ethereum-types'; | ||||||
| import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | ||||||
| import { SimpleContractArtifact } from '@0x/types'; | import { SimpleContractArtifact, EventCallback, IndexedFilterValues } from '@0x/types'; | ||||||
| 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'; | ||||||
|   | |||||||
| @@ -1,13 +1,7 @@ | |||||||
| // tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma | // tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma | ||||||
| // tslint:disable:whitespace no-unbound-method no-trailing-whitespace | // tslint:disable:whitespace no-unbound-method no-trailing-whitespace | ||||||
| // tslint:disable:no-unused-variable | // tslint:disable:no-unused-variable | ||||||
| import { | import { BaseContract, SubscriptionManager, PromiseWithTransactionHash } from '@0x/base-contract'; | ||||||
|     BaseContract, |  | ||||||
|     EventCallback, |  | ||||||
|     IndexedFilterValues, |  | ||||||
|     SubscriptionManager, |  | ||||||
|     PromiseWithTransactionHash, |  | ||||||
| } from '@0x/base-contract'; |  | ||||||
| import { schemas } from '@0x/json-schemas'; | import { schemas } from '@0x/json-schemas'; | ||||||
| import { | import { | ||||||
|     BlockParam, |     BlockParam, | ||||||
| @@ -25,7 +19,7 @@ import { | |||||||
|     SupportedProvider, |     SupportedProvider, | ||||||
| } from 'ethereum-types'; | } from 'ethereum-types'; | ||||||
| import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | ||||||
| import { SimpleContractArtifact } from '@0x/types'; | import { SimpleContractArtifact, EventCallback, IndexedFilterValues } from '@0x/types'; | ||||||
| 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'; | ||||||
|   | |||||||
| @@ -1,13 +1,7 @@ | |||||||
| // tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma | // tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma | ||||||
| // tslint:disable:whitespace no-unbound-method no-trailing-whitespace | // tslint:disable:whitespace no-unbound-method no-trailing-whitespace | ||||||
| // tslint:disable:no-unused-variable | // tslint:disable:no-unused-variable | ||||||
| import { | import { BaseContract, SubscriptionManager, PromiseWithTransactionHash } from '@0x/base-contract'; | ||||||
|     BaseContract, |  | ||||||
|     EventCallback, |  | ||||||
|     IndexedFilterValues, |  | ||||||
|     SubscriptionManager, |  | ||||||
|     PromiseWithTransactionHash, |  | ||||||
| } from '@0x/base-contract'; |  | ||||||
| import { schemas } from '@0x/json-schemas'; | import { schemas } from '@0x/json-schemas'; | ||||||
| import { | import { | ||||||
|     BlockParam, |     BlockParam, | ||||||
| @@ -25,7 +19,7 @@ import { | |||||||
|     SupportedProvider, |     SupportedProvider, | ||||||
| } from 'ethereum-types'; | } from 'ethereum-types'; | ||||||
| import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | ||||||
| import { SimpleContractArtifact } from '@0x/types'; | import { SimpleContractArtifact, EventCallback, IndexedFilterValues } from '@0x/types'; | ||||||
| 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'; | ||||||
|   | |||||||
| @@ -18,7 +18,7 @@ import { | |||||||
|     SupportedProvider, |     SupportedProvider, | ||||||
| } from 'ethereum-types'; | } from 'ethereum-types'; | ||||||
| import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | ||||||
| import { SimpleContractArtifact } from '@0x/types'; | import { SimpleContractArtifact, EventCallback, IndexedFilterValues } from '@0x/types'; | ||||||
| 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'; | ||||||
|   | |||||||
| @@ -1,13 +1,7 @@ | |||||||
| // tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma | // tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma | ||||||
| // tslint:disable:whitespace no-unbound-method no-trailing-whitespace | // tslint:disable:whitespace no-unbound-method no-trailing-whitespace | ||||||
| // tslint:disable:no-unused-variable | // tslint:disable:no-unused-variable | ||||||
| import { | import { BaseContract, SubscriptionManager, PromiseWithTransactionHash } from '@0x/base-contract'; | ||||||
|     BaseContract, |  | ||||||
|     EventCallback, |  | ||||||
|     IndexedFilterValues, |  | ||||||
|     SubscriptionManager, |  | ||||||
|     PromiseWithTransactionHash, |  | ||||||
| } from '@0x/base-contract'; |  | ||||||
| import { schemas } from '@0x/json-schemas'; | import { schemas } from '@0x/json-schemas'; | ||||||
| import { | import { | ||||||
|     BlockParam, |     BlockParam, | ||||||
| @@ -25,7 +19,7 @@ import { | |||||||
|     SupportedProvider, |     SupportedProvider, | ||||||
| } from 'ethereum-types'; | } from 'ethereum-types'; | ||||||
| import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | ||||||
| import { SimpleContractArtifact } from '@0x/types'; | import { SimpleContractArtifact, EventCallback, IndexedFilterValues } from '@0x/types'; | ||||||
| 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'; | ||||||
|   | |||||||
| @@ -1,13 +1,7 @@ | |||||||
| // tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma | // tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma | ||||||
| // tslint:disable:whitespace no-unbound-method no-trailing-whitespace | // tslint:disable:whitespace no-unbound-method no-trailing-whitespace | ||||||
| // tslint:disable:no-unused-variable | // tslint:disable:no-unused-variable | ||||||
| import { | import { BaseContract, SubscriptionManager, PromiseWithTransactionHash } from '@0x/base-contract'; | ||||||
|     BaseContract, |  | ||||||
|     EventCallback, |  | ||||||
|     IndexedFilterValues, |  | ||||||
|     SubscriptionManager, |  | ||||||
|     PromiseWithTransactionHash, |  | ||||||
| } from '@0x/base-contract'; |  | ||||||
| import { schemas } from '@0x/json-schemas'; | import { schemas } from '@0x/json-schemas'; | ||||||
| import { | import { | ||||||
|     BlockParam, |     BlockParam, | ||||||
| @@ -25,7 +19,7 @@ import { | |||||||
|     SupportedProvider, |     SupportedProvider, | ||||||
| } from 'ethereum-types'; | } from 'ethereum-types'; | ||||||
| import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | ||||||
| import { SimpleContractArtifact } from '@0x/types'; | import { SimpleContractArtifact, EventCallback, IndexedFilterValues } from '@0x/types'; | ||||||
| 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'; | ||||||
|   | |||||||
| @@ -1,13 +1,7 @@ | |||||||
| // tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma | // tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma | ||||||
| // tslint:disable:whitespace no-unbound-method no-trailing-whitespace | // tslint:disable:whitespace no-unbound-method no-trailing-whitespace | ||||||
| // tslint:disable:no-unused-variable | // tslint:disable:no-unused-variable | ||||||
| import { | import { BaseContract, SubscriptionManager, PromiseWithTransactionHash } from '@0x/base-contract'; | ||||||
|     BaseContract, |  | ||||||
|     EventCallback, |  | ||||||
|     IndexedFilterValues, |  | ||||||
|     SubscriptionManager, |  | ||||||
|     PromiseWithTransactionHash, |  | ||||||
| } from '@0x/base-contract'; |  | ||||||
| import { schemas } from '@0x/json-schemas'; | import { schemas } from '@0x/json-schemas'; | ||||||
| import { | import { | ||||||
|     BlockParam, |     BlockParam, | ||||||
| @@ -25,7 +19,7 @@ import { | |||||||
|     SupportedProvider, |     SupportedProvider, | ||||||
| } from 'ethereum-types'; | } from 'ethereum-types'; | ||||||
| import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | ||||||
| import { SimpleContractArtifact } from '@0x/types'; | import { SimpleContractArtifact, EventCallback, IndexedFilterValues } from '@0x/types'; | ||||||
| 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'; | ||||||
|   | |||||||
| @@ -1,13 +1,7 @@ | |||||||
| // tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma | // tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma | ||||||
| // tslint:disable:whitespace no-unbound-method no-trailing-whitespace | // tslint:disable:whitespace no-unbound-method no-trailing-whitespace | ||||||
| // tslint:disable:no-unused-variable | // tslint:disable:no-unused-variable | ||||||
| import { | import { BaseContract, SubscriptionManager, PromiseWithTransactionHash } from '@0x/base-contract'; | ||||||
|     BaseContract, |  | ||||||
|     EventCallback, |  | ||||||
|     IndexedFilterValues, |  | ||||||
|     SubscriptionManager, |  | ||||||
|     PromiseWithTransactionHash, |  | ||||||
| } from '@0x/base-contract'; |  | ||||||
| import { schemas } from '@0x/json-schemas'; | import { schemas } from '@0x/json-schemas'; | ||||||
| import { | import { | ||||||
|     BlockParam, |     BlockParam, | ||||||
| @@ -25,7 +19,7 @@ import { | |||||||
|     SupportedProvider, |     SupportedProvider, | ||||||
| } from 'ethereum-types'; | } from 'ethereum-types'; | ||||||
| import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | ||||||
| import { SimpleContractArtifact } from '@0x/types'; | import { SimpleContractArtifact, EventCallback, IndexedFilterValues } from '@0x/types'; | ||||||
| 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'; | ||||||
|   | |||||||
| @@ -1,13 +1,7 @@ | |||||||
| // tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma | // tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma | ||||||
| // tslint:disable:whitespace no-unbound-method no-trailing-whitespace | // tslint:disable:whitespace no-unbound-method no-trailing-whitespace | ||||||
| // tslint:disable:no-unused-variable | // tslint:disable:no-unused-variable | ||||||
| import { | import { BaseContract, SubscriptionManager, PromiseWithTransactionHash } from '@0x/base-contract'; | ||||||
|     BaseContract, |  | ||||||
|     EventCallback, |  | ||||||
|     IndexedFilterValues, |  | ||||||
|     SubscriptionManager, |  | ||||||
|     PromiseWithTransactionHash, |  | ||||||
| } from '@0x/base-contract'; |  | ||||||
| import { schemas } from '@0x/json-schemas'; | import { schemas } from '@0x/json-schemas'; | ||||||
| import { | import { | ||||||
|     BlockParam, |     BlockParam, | ||||||
| @@ -25,7 +19,7 @@ import { | |||||||
|     SupportedProvider, |     SupportedProvider, | ||||||
| } from 'ethereum-types'; | } from 'ethereum-types'; | ||||||
| import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | ||||||
| import { SimpleContractArtifact } from '@0x/types'; | import { SimpleContractArtifact, EventCallback, IndexedFilterValues } from '@0x/types'; | ||||||
| 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'; | ||||||
|   | |||||||
| @@ -18,7 +18,7 @@ import { | |||||||
|     SupportedProvider, |     SupportedProvider, | ||||||
| } from 'ethereum-types'; | } from 'ethereum-types'; | ||||||
| import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | ||||||
| import { SimpleContractArtifact } from '@0x/types'; | import { SimpleContractArtifact, EventCallback, IndexedFilterValues } from '@0x/types'; | ||||||
| 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'; | ||||||
|   | |||||||
| @@ -1,13 +1,7 @@ | |||||||
| // tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma | // tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma | ||||||
| // tslint:disable:whitespace no-unbound-method no-trailing-whitespace | // tslint:disable:whitespace no-unbound-method no-trailing-whitespace | ||||||
| // tslint:disable:no-unused-variable | // tslint:disable:no-unused-variable | ||||||
| import { | import { BaseContract, SubscriptionManager, PromiseWithTransactionHash } from '@0x/base-contract'; | ||||||
|     BaseContract, |  | ||||||
|     EventCallback, |  | ||||||
|     IndexedFilterValues, |  | ||||||
|     SubscriptionManager, |  | ||||||
|     PromiseWithTransactionHash, |  | ||||||
| } from '@0x/base-contract'; |  | ||||||
| import { schemas } from '@0x/json-schemas'; | import { schemas } from '@0x/json-schemas'; | ||||||
| import { | import { | ||||||
|     BlockParam, |     BlockParam, | ||||||
| @@ -25,7 +19,7 @@ import { | |||||||
|     SupportedProvider, |     SupportedProvider, | ||||||
| } from 'ethereum-types'; | } from 'ethereum-types'; | ||||||
| import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | ||||||
| import { SimpleContractArtifact } from '@0x/types'; | import { SimpleContractArtifact, EventCallback, IndexedFilterValues } from '@0x/types'; | ||||||
| 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'; | ||||||
|   | |||||||
| @@ -18,7 +18,7 @@ import { | |||||||
|     SupportedProvider, |     SupportedProvider, | ||||||
| } from 'ethereum-types'; | } from 'ethereum-types'; | ||||||
| import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | ||||||
| import { SimpleContractArtifact } from '@0x/types'; | import { SimpleContractArtifact, EventCallback, IndexedFilterValues } from '@0x/types'; | ||||||
| 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'; | ||||||
|   | |||||||
| @@ -18,7 +18,7 @@ import { | |||||||
|     SupportedProvider, |     SupportedProvider, | ||||||
| } from 'ethereum-types'; | } from 'ethereum-types'; | ||||||
| import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | ||||||
| import { SimpleContractArtifact } from '@0x/types'; | import { SimpleContractArtifact, EventCallback, IndexedFilterValues } from '@0x/types'; | ||||||
| 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'; | ||||||
|   | |||||||
| @@ -18,7 +18,7 @@ import { | |||||||
|     SupportedProvider, |     SupportedProvider, | ||||||
| } from 'ethereum-types'; | } from 'ethereum-types'; | ||||||
| import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | ||||||
| import { SimpleContractArtifact } from '@0x/types'; | import { SimpleContractArtifact, EventCallback, IndexedFilterValues } from '@0x/types'; | ||||||
| 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'; | ||||||
|   | |||||||
| @@ -18,7 +18,7 @@ import { | |||||||
|     SupportedProvider, |     SupportedProvider, | ||||||
| } from 'ethereum-types'; | } from 'ethereum-types'; | ||||||
| import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | ||||||
| import { SimpleContractArtifact } from '@0x/types'; | import { SimpleContractArtifact, EventCallback, IndexedFilterValues } from '@0x/types'; | ||||||
| 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'; | ||||||
|   | |||||||
| @@ -1,13 +1,7 @@ | |||||||
| // tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma | // tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma | ||||||
| // tslint:disable:whitespace no-unbound-method no-trailing-whitespace | // tslint:disable:whitespace no-unbound-method no-trailing-whitespace | ||||||
| // tslint:disable:no-unused-variable | // tslint:disable:no-unused-variable | ||||||
| import { | import { BaseContract, SubscriptionManager, PromiseWithTransactionHash } from '@0x/base-contract'; | ||||||
|     BaseContract, |  | ||||||
|     EventCallback, |  | ||||||
|     IndexedFilterValues, |  | ||||||
|     SubscriptionManager, |  | ||||||
|     PromiseWithTransactionHash, |  | ||||||
| } from '@0x/base-contract'; |  | ||||||
| import { schemas } from '@0x/json-schemas'; | import { schemas } from '@0x/json-schemas'; | ||||||
| import { | import { | ||||||
|     BlockParam, |     BlockParam, | ||||||
| @@ -25,7 +19,7 @@ import { | |||||||
|     SupportedProvider, |     SupportedProvider, | ||||||
| } from 'ethereum-types'; | } from 'ethereum-types'; | ||||||
| import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | ||||||
| import { SimpleContractArtifact } from '@0x/types'; | import { SimpleContractArtifact, EventCallback, IndexedFilterValues } from '@0x/types'; | ||||||
| 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'; | ||||||
|   | |||||||
| @@ -18,7 +18,7 @@ import { | |||||||
|     SupportedProvider, |     SupportedProvider, | ||||||
| } from 'ethereum-types'; | } from 'ethereum-types'; | ||||||
| import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | ||||||
| import { SimpleContractArtifact } from '@0x/types'; | import { SimpleContractArtifact, EventCallback, IndexedFilterValues } from '@0x/types'; | ||||||
| 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'; | ||||||
|   | |||||||
| @@ -18,7 +18,7 @@ import { | |||||||
|     SupportedProvider, |     SupportedProvider, | ||||||
| } from 'ethereum-types'; | } from 'ethereum-types'; | ||||||
| import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | ||||||
| import { SimpleContractArtifact } from '@0x/types'; | import { SimpleContractArtifact, EventCallback, IndexedFilterValues } from '@0x/types'; | ||||||
| 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'; | ||||||
|   | |||||||
| @@ -1,13 +1,7 @@ | |||||||
| // tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma | // tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma | ||||||
| // tslint:disable:whitespace no-unbound-method no-trailing-whitespace | // tslint:disable:whitespace no-unbound-method no-trailing-whitespace | ||||||
| // tslint:disable:no-unused-variable | // tslint:disable:no-unused-variable | ||||||
| import { | import { BaseContract, SubscriptionManager, PromiseWithTransactionHash } from '@0x/base-contract'; | ||||||
|     BaseContract, |  | ||||||
|     EventCallback, |  | ||||||
|     IndexedFilterValues, |  | ||||||
|     SubscriptionManager, |  | ||||||
|     PromiseWithTransactionHash, |  | ||||||
| } from '@0x/base-contract'; |  | ||||||
| import { schemas } from '@0x/json-schemas'; | import { schemas } from '@0x/json-schemas'; | ||||||
| import { | import { | ||||||
|     BlockParam, |     BlockParam, | ||||||
| @@ -25,7 +19,7 @@ import { | |||||||
|     SupportedProvider, |     SupportedProvider, | ||||||
| } from 'ethereum-types'; | } from 'ethereum-types'; | ||||||
| import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | ||||||
| import { SimpleContractArtifact } from '@0x/types'; | import { SimpleContractArtifact, EventCallback, IndexedFilterValues } from '@0x/types'; | ||||||
| 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'; | ||||||
|   | |||||||
| @@ -1,13 +1,7 @@ | |||||||
| // tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma | // tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma | ||||||
| // tslint:disable:whitespace no-unbound-method no-trailing-whitespace | // tslint:disable:whitespace no-unbound-method no-trailing-whitespace | ||||||
| // tslint:disable:no-unused-variable | // tslint:disable:no-unused-variable | ||||||
| import { | import { BaseContract, SubscriptionManager, PromiseWithTransactionHash } from '@0x/base-contract'; | ||||||
|     BaseContract, |  | ||||||
|     EventCallback, |  | ||||||
|     IndexedFilterValues, |  | ||||||
|     SubscriptionManager, |  | ||||||
|     PromiseWithTransactionHash, |  | ||||||
| } from '@0x/base-contract'; |  | ||||||
| import { schemas } from '@0x/json-schemas'; | import { schemas } from '@0x/json-schemas'; | ||||||
| import { | import { | ||||||
|     BlockParam, |     BlockParam, | ||||||
| @@ -25,7 +19,7 @@ import { | |||||||
|     SupportedProvider, |     SupportedProvider, | ||||||
| } from 'ethereum-types'; | } from 'ethereum-types'; | ||||||
| import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | ||||||
| import { SimpleContractArtifact } from '@0x/types'; | import { SimpleContractArtifact, EventCallback, IndexedFilterValues } from '@0x/types'; | ||||||
| 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'; | ||||||
|   | |||||||
| @@ -2,8 +2,6 @@ | |||||||
| // tslint:disable:whitespace no-unbound-method no-trailing-whitespace | // tslint:disable:whitespace no-unbound-method no-trailing-whitespace | ||||||
| // tslint:disable:no-unused-variable | // tslint:disable:no-unused-variable | ||||||
| import { BaseContract{{#if events}}, | import { BaseContract{{#if events}}, | ||||||
|     EventCallback, |  | ||||||
|     IndexedFilterValues, |  | ||||||
|     SubscriptionManager{{/if}},PromiseWithTransactionHash } from '@0x/base-contract'; |     SubscriptionManager{{/if}},PromiseWithTransactionHash } from '@0x/base-contract'; | ||||||
| import { schemas } from '@0x/json-schemas'; | import { schemas } from '@0x/json-schemas'; | ||||||
| import { | import { | ||||||
| @@ -22,7 +20,7 @@ import { | |||||||
|     SupportedProvider, |     SupportedProvider, | ||||||
| } from 'ethereum-types'; | } from 'ethereum-types'; | ||||||
| import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | ||||||
| import { SimpleContractArtifact } from '@0x/types'; | import { SimpleContractArtifact, EventCallback, IndexedFilterValues } from '@0x/types'; | ||||||
| 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'; | ||||||
|   | |||||||
| @@ -1,13 +1,7 @@ | |||||||
| // tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma | // tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma | ||||||
| // tslint:disable:whitespace no-unbound-method no-trailing-whitespace | // tslint:disable:whitespace no-unbound-method no-trailing-whitespace | ||||||
| // tslint:disable:no-unused-variable | // tslint:disable:no-unused-variable | ||||||
| import { | import { BaseContract, SubscriptionManager, PromiseWithTransactionHash } from '@0x/base-contract'; | ||||||
|     BaseContract, |  | ||||||
|     EventCallback, |  | ||||||
|     IndexedFilterValues, |  | ||||||
|     SubscriptionManager, |  | ||||||
|     PromiseWithTransactionHash, |  | ||||||
| } from '@0x/base-contract'; |  | ||||||
| import { schemas } from '@0x/json-schemas'; | import { schemas } from '@0x/json-schemas'; | ||||||
| import { | import { | ||||||
|     BlockParam, |     BlockParam, | ||||||
| @@ -25,7 +19,7 @@ import { | |||||||
|     SupportedProvider, |     SupportedProvider, | ||||||
| } from 'ethereum-types'; | } from 'ethereum-types'; | ||||||
| import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | ||||||
| import { SimpleContractArtifact } from '@0x/types'; | import { EventCallback, IndexedFilterValues, SimpleContractArtifact } from '@0x/types'; | ||||||
| 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'; | ||||||
|   | |||||||
| @@ -18,7 +18,7 @@ import { | |||||||
|     SupportedProvider, |     SupportedProvider, | ||||||
| } from 'ethereum-types'; | } from 'ethereum-types'; | ||||||
| import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | ||||||
| import { SimpleContractArtifact } from '@0x/types'; | import { SimpleContractArtifact, EventCallback, IndexedFilterValues } from '@0x/types'; | ||||||
| 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'; | ||||||
|   | |||||||
| @@ -18,7 +18,7 @@ import { | |||||||
|     SupportedProvider, |     SupportedProvider, | ||||||
| } from 'ethereum-types'; | } from 'ethereum-types'; | ||||||
| import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; | ||||||
| import { SimpleContractArtifact } from '@0x/types'; | import { SimpleContractArtifact, EventCallback, IndexedFilterValues } from '@0x/types'; | ||||||
| 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'; | ||||||
|   | |||||||
| @@ -1,3 +1,4 @@ | |||||||
|  | import { IndexedFilterValues } from '@0x/types'; | ||||||
| import { BigNumber } from '@0x/utils'; | import { BigNumber } from '@0x/utils'; | ||||||
| import { BlockRange, ContractAbi, EventAbi, FilterObject, LogEntry } from 'ethereum-types'; | import { BlockRange, ContractAbi, EventAbi, FilterObject, LogEntry } from 'ethereum-types'; | ||||||
| import * as ethUtil from 'ethereumjs-util'; | import * as ethUtil from 'ethereumjs-util'; | ||||||
| @@ -5,8 +6,6 @@ import * as jsSHA3 from 'js-sha3'; | |||||||
| import * as _ from 'lodash'; | import * as _ from 'lodash'; | ||||||
| import * as uuid from 'uuid/v4'; | import * as uuid from 'uuid/v4'; | ||||||
|  |  | ||||||
| import { IndexedFilterValues } from '../types'; |  | ||||||
|  |  | ||||||
| const TOPIC_LENGTH = 32; | const TOPIC_LENGTH = 32; | ||||||
|  |  | ||||||
| export const filterUtils = { | export const filterUtils = { | ||||||
|   | |||||||
| @@ -83,13 +83,10 @@ export { | |||||||
|     ForwarderError, |     ForwarderError, | ||||||
|     CoordinatorServerCancellationResponse, |     CoordinatorServerCancellationResponse, | ||||||
|     CoordinatorServerError, |     CoordinatorServerError, | ||||||
|     IndexedFilterValues, |  | ||||||
|     ContractWrappersConfig, |     ContractWrappersConfig, | ||||||
|     OrderTransactionOpts, |     OrderTransactionOpts, | ||||||
|     TransactionOpts, |     TransactionOpts, | ||||||
|     OrderInfo, |     OrderInfo, | ||||||
|     EventCallback, |  | ||||||
|     DecodedLogEvent, |  | ||||||
| } from './types'; | } from './types'; | ||||||
|  |  | ||||||
| export { | export { | ||||||
| @@ -158,6 +155,9 @@ export { | |||||||
|     SimpleEvmOutput, |     SimpleEvmOutput, | ||||||
|     SimpleEvmBytecodeOutput, |     SimpleEvmBytecodeOutput, | ||||||
|     EIP712DomainWithDefaultSchema, |     EIP712DomainWithDefaultSchema, | ||||||
|  |     EventCallback, | ||||||
|  |     DecodedLogEvent, | ||||||
|  |     IndexedFilterValues, | ||||||
| } from '@0x/types'; | } from '@0x/types'; | ||||||
|  |  | ||||||
| export { AbiDecoder, DecodedCalldata } from '@0x/utils'; | export { AbiDecoder, DecodedCalldata } from '@0x/utils'; | ||||||
|   | |||||||
| @@ -1,18 +1,6 @@ | |||||||
| import { ContractAddresses } from '@0x/contract-addresses'; | import { ContractAddresses } from '@0x/contract-addresses'; | ||||||
| import { BigNumber } from '@0x/utils'; | import { BigNumber } from '@0x/utils'; | ||||||
|  |  | ||||||
| import { ContractEventArg, DecodedLogArgs, LogWithDecodedArgs } from 'ethereum-types'; |  | ||||||
|  |  | ||||||
| export interface DecodedLogEvent<ArgsType extends DecodedLogArgs> { |  | ||||||
|     isRemoved: boolean; |  | ||||||
|     log: LogWithDecodedArgs<ArgsType>; |  | ||||||
| } |  | ||||||
|  |  | ||||||
| export type EventCallback<ArgsType extends DecodedLogArgs> = ( |  | ||||||
|     err: null | Error, |  | ||||||
|     log?: DecodedLogEvent<ArgsType>, |  | ||||||
| ) => void; |  | ||||||
|  |  | ||||||
| export interface TxOpts { | export interface TxOpts { | ||||||
|     from: string; |     from: string; | ||||||
|     gas?: number; |     gas?: number; | ||||||
| @@ -20,10 +8,6 @@ export interface TxOpts { | |||||||
|     gasPrice?: BigNumber; |     gasPrice?: BigNumber; | ||||||
| } | } | ||||||
|  |  | ||||||
| export interface IndexedFilterValues { |  | ||||||
|     [index: string]: ContractEventArg; |  | ||||||
| } |  | ||||||
|  |  | ||||||
| export enum ForwarderError { | export enum ForwarderError { | ||||||
|     CompleteFillFailed = 'COMPLETE_FILL_FAILED', |     CompleteFillFailed = 'COMPLETE_FILL_FAILED', | ||||||
| } | } | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| // tslint:disable:max-file-line-count | // tslint:disable:max-file-line-count | ||||||
|  |  | ||||||
| import { BigNumber } from 'bignumber.js'; | import { BigNumber } from 'bignumber.js'; | ||||||
| import { ContractAbi, ContractNetworks, DevdocOutput } from 'ethereum-types'; | import { ContractAbi, ContractEventArg, ContractNetworks, DecodedLogArgs, DevdocOutput, LogWithDecodedArgs } from 'ethereum-types'; | ||||||
|  |  | ||||||
| export interface Order { | export interface Order { | ||||||
|     chainId: number; |     chainId: number; | ||||||
| @@ -841,3 +841,17 @@ export interface OrderInfo { | |||||||
|     orderHash: string; |     orderHash: string; | ||||||
|     orderTakerAssetFilledAmount: BigNumber; |     orderTakerAssetFilledAmount: BigNumber; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | export interface DecodedLogEvent<ArgsType extends DecodedLogArgs> { | ||||||
|  |     isRemoved: boolean; | ||||||
|  |     log: LogWithDecodedArgs<ArgsType>; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | export type EventCallback<ArgsType extends DecodedLogArgs> = ( | ||||||
|  |     err: null | Error, | ||||||
|  |     log?: DecodedLogEvent<ArgsType>, | ||||||
|  | ) => void; | ||||||
|  |  | ||||||
|  | export interface IndexedFilterValues { | ||||||
|  |     [index: string]: ContractEventArg; | ||||||
|  | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user