diff options
Diffstat (limited to 'packages/contract-wrappers')
-rw-r--r-- | packages/contract-wrappers/src/contract_wrappers.ts | 16 | ||||
-rw-r--r-- | packages/contract-wrappers/src/index.ts | 2 | ||||
-rw-r--r-- | packages/contract-wrappers/src/schemas/contract_wrappers_config_schema.ts (renamed from packages/contract-wrappers/src/schemas/zero_ex_contract_config_schema.ts) | 4 | ||||
-rw-r--r-- | packages/contract-wrappers/src/schemas/contract_wrappers_private_network_config_schema.ts (renamed from packages/contract-wrappers/src/schemas/zero_ex_contract_private_network_config_schema.ts) | 2 | ||||
-rw-r--r-- | packages/contract-wrappers/src/schemas/contract_wrappers_public_network_config_schema.ts (renamed from packages/contract-wrappers/src/schemas/zero_ex_contract_public_network_config_schema.ts) | 2 | ||||
-rw-r--r-- | packages/contract-wrappers/src/types.ts | 2 |
6 files changed, 14 insertions, 14 deletions
diff --git a/packages/contract-wrappers/src/contract_wrappers.ts b/packages/contract-wrappers/src/contract_wrappers.ts index 1934ea2d0..381c4a63f 100644 --- a/packages/contract-wrappers/src/contract_wrappers.ts +++ b/packages/contract-wrappers/src/contract_wrappers.ts @@ -18,10 +18,10 @@ import { ExchangeWrapper } from './contract_wrappers/exchange_wrapper'; import { TokenRegistryWrapper } from './contract_wrappers/token_registry_wrapper'; import { TokenTransferProxyWrapper } from './contract_wrappers/token_transfer_proxy_wrapper'; import { TokenWrapper } from './contract_wrappers/token_wrapper'; -import { zeroExContractConfigSchema } from './schemas/zero_ex_contract_config_schema'; -import { zeroExContractPrivateNetworkConfigSchema } from './schemas/zero_ex_contract_private_network_config_schema'; -import { zeroExContractPublicNetworkConfigSchema } from './schemas/zero_ex_contract_public_network_config_schema'; -import { ZeroExContractConfig } from './types'; +import { ContractWrappersConfigSchema } from './schemas/contract_wrappers_config_schema'; +import { contractWrappersPrivateNetworkConfigSchema } from './schemas/contract_wrappers_private_network_config_schema'; +import { contractWrappersPublicNetworkConfigSchema } from './schemas/contract_wrappers_public_network_config_schema'; +import { ContractWrappersConfig } from './types'; import { assert } from './utils/assert'; import { constants } from './utils/constants'; import { decorators } from './utils/decorators'; @@ -62,11 +62,11 @@ export class ContractWrappers { * @param config The configuration object. Look up the type for the description. * @return An instance of the ContractWrappers class. */ - constructor(provider: Provider, config: ZeroExContractConfig) { + constructor(provider: Provider, config: ContractWrappersConfig) { assert.isWeb3Provider('provider', provider); - assert.doesConformToSchema('config', config, zeroExContractConfigSchema, [ - zeroExContractPrivateNetworkConfigSchema, - zeroExContractPublicNetworkConfigSchema, + assert.doesConformToSchema('config', config, ContractWrappersConfigSchema, [ + contractWrappersPrivateNetworkConfigSchema, + contractWrappersPublicNetworkConfigSchema, ]); const artifactJSONs = _.values(artifacts); const abiArrays = _.map(artifactJSONs, artifact => artifact.abi); diff --git a/packages/contract-wrappers/src/index.ts b/packages/contract-wrappers/src/index.ts index f88313eb1..45af8a707 100644 --- a/packages/contract-wrappers/src/index.ts +++ b/packages/contract-wrappers/src/index.ts @@ -15,7 +15,7 @@ export { OrderCancellationRequest, OrderFillRequest, ContractEventArgs, - ZeroExContractConfig, + ContractWrappersConfig, MethodOpts, OrderTransactionOpts, TransactionOpts, diff --git a/packages/contract-wrappers/src/schemas/zero_ex_contract_config_schema.ts b/packages/contract-wrappers/src/schemas/contract_wrappers_config_schema.ts index eec386643..ac248b2d4 100644 --- a/packages/contract-wrappers/src/schemas/zero_ex_contract_config_schema.ts +++ b/packages/contract-wrappers/src/schemas/contract_wrappers_config_schema.ts @@ -1,5 +1,5 @@ -export const zeroExContractConfigSchema = { - id: '/ZeroExContractConfig', +export const ContractWrappersConfigSchema = { + id: '/ContractWrappersConfig', oneOf: [{ $ref: '/ZeroExContractPrivateNetworkConfig' }, { $ref: '/ZeroExContractPublicNetworkConfig' }], type: 'object', }; diff --git a/packages/contract-wrappers/src/schemas/zero_ex_contract_private_network_config_schema.ts b/packages/contract-wrappers/src/schemas/contract_wrappers_private_network_config_schema.ts index 6d93d4e60..759078feb 100644 --- a/packages/contract-wrappers/src/schemas/zero_ex_contract_private_network_config_schema.ts +++ b/packages/contract-wrappers/src/schemas/contract_wrappers_private_network_config_schema.ts @@ -1,4 +1,4 @@ -export const zeroExContractPrivateNetworkConfigSchema = { +export const contractWrappersPrivateNetworkConfigSchema = { id: '/ZeroExContractPrivateNetworkConfig', properties: { networkId: { diff --git a/packages/contract-wrappers/src/schemas/zero_ex_contract_public_network_config_schema.ts b/packages/contract-wrappers/src/schemas/contract_wrappers_public_network_config_schema.ts index 79a241cd2..bf1000afa 100644 --- a/packages/contract-wrappers/src/schemas/zero_ex_contract_public_network_config_schema.ts +++ b/packages/contract-wrappers/src/schemas/contract_wrappers_public_network_config_schema.ts @@ -1,4 +1,4 @@ -export const zeroExContractPublicNetworkConfigSchema = { +export const contractWrappersPublicNetworkConfigSchema = { id: '/ZeroExContractPublicNetworkConfig', properties: { networkId: { diff --git a/packages/contract-wrappers/src/types.ts b/packages/contract-wrappers/src/types.ts index 301b5abf9..9a463d635 100644 --- a/packages/contract-wrappers/src/types.ts +++ b/packages/contract-wrappers/src/types.ts @@ -127,7 +127,7 @@ export type SyncMethod = (...args: any[]) => any; * tokenTransferProxyContractAddress: The address of the token transfer proxy contract to use * orderWatcherConfig: All the configs related to the orderWatcher */ -export interface ZeroExContractConfig { +export interface ContractWrappersConfig { networkId: number; gasPrice?: BigNumber; exchangeContractAddress?: string; |