aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/src
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-07-12 00:46:12 +0800
committerFabio Berger <me@fabioberger.com>2018-07-12 00:46:12 +0800
commit3824ea9079f3034fb34750c8b80125462f42c79c (patch)
tree5b8b9aa5a2b6ad026e168f09130c17cde0fcdd9d /packages/0x.js/src
parent5e22ce05c5ce8416538452c6b582f412330712f3 (diff)
downloaddexon-sol-tools-3824ea9079f3034fb34750c8b80125462f42c79c.tar
dexon-sol-tools-3824ea9079f3034fb34750c8b80125462f42c79c.tar.gz
dexon-sol-tools-3824ea9079f3034fb34750c8b80125462f42c79c.tar.bz2
dexon-sol-tools-3824ea9079f3034fb34750c8b80125462f42c79c.tar.lz
dexon-sol-tools-3824ea9079f3034fb34750c8b80125462f42c79c.tar.xz
dexon-sol-tools-3824ea9079f3034fb34750c8b80125462f42c79c.tar.zst
dexon-sol-tools-3824ea9079f3034fb34750c8b80125462f42c79c.zip
Remove TokenRegistry from 0x.js
Diffstat (limited to 'packages/0x.js/src')
-rw-r--r--packages/0x.js/src/0x.ts9
-rw-r--r--packages/0x.js/src/schemas/zero_ex_private_network_config_schema.ts2
-rw-r--r--packages/0x.js/src/schemas/zero_ex_public_network_config_schema.ts1
3 files changed, 2 insertions, 10 deletions
diff --git a/packages/0x.js/src/0x.ts b/packages/0x.js/src/0x.ts
index 3d2f23002..c6315ac7a 100644
--- a/packages/0x.js/src/0x.ts
+++ b/packages/0x.js/src/0x.ts
@@ -2,11 +2,10 @@ import { assert } from '@0xproject/assert';
import {
ContractWrappers,
ContractWrappersConfig,
+ ERC20ProxyWrapper,
+ ERC20TokenWrapper,
EtherTokenWrapper,
ExchangeWrapper,
- TokenRegistryWrapper,
- TokenTransferProxyWrapper,
- TokenWrapper,
} from '@0xproject/contract-wrappers';
import {
generatePseudoRandomSalt,
@@ -37,10 +36,7 @@ export class ZeroEx {
*/
public exchange: ExchangeWrapper;
/**
- * An instance of the TokenRegistryWrapper class containing methods for interacting with the 0x
- * TokenRegistry smart contract.
*/
- public tokenRegistry: TokenRegistryWrapper;
/**
* An instance of the TokenWrapper class containing methods for interacting with any ERC20 token smart contract.
*/
@@ -136,7 +132,6 @@ export class ZeroEx {
this.proxy = this._contractWrappers.proxy;
this.token = this._contractWrappers.token;
this.exchange = this._contractWrappers.exchange;
- this.tokenRegistry = this._contractWrappers.tokenRegistry;
this.etherToken = this._contractWrappers.etherToken;
}
/**
diff --git a/packages/0x.js/src/schemas/zero_ex_private_network_config_schema.ts b/packages/0x.js/src/schemas/zero_ex_private_network_config_schema.ts
index f7f649a6d..6036b2695 100644
--- a/packages/0x.js/src/schemas/zero_ex_private_network_config_schema.ts
+++ b/packages/0x.js/src/schemas/zero_ex_private_network_config_schema.ts
@@ -8,7 +8,6 @@ export const zeroExPrivateNetworkConfigSchema = {
gasPrice: { $ref: '/Number' },
zrxContractAddress: { $ref: '/Address' },
exchangeContractAddress: { $ref: '/Address' },
- tokenRegistryContractAddress: { $ref: '/Address' },
tokenTransferProxyContractAddress: { $ref: '/Address' },
orderWatcherConfig: {
type: 'object',
@@ -29,7 +28,6 @@ export const zeroExPrivateNetworkConfigSchema = {
'networkId',
'zrxContractAddress',
'exchangeContractAddress',
- 'tokenRegistryContractAddress',
'tokenTransferProxyContractAddress',
],
};
diff --git a/packages/0x.js/src/schemas/zero_ex_public_network_config_schema.ts b/packages/0x.js/src/schemas/zero_ex_public_network_config_schema.ts
index f7f6727f0..7bedb7438 100644
--- a/packages/0x.js/src/schemas/zero_ex_public_network_config_schema.ts
+++ b/packages/0x.js/src/schemas/zero_ex_public_network_config_schema.ts
@@ -22,7 +22,6 @@ export const zeroExPublicNetworkConfigSchema = {
gasPrice: { $ref: '/Number' },
zrxContractAddress: { $ref: '/Address' },
exchangeContractAddress: { $ref: '/Address' },
- tokenRegistryContractAddress: { $ref: '/Address' },
tokenTransferProxyContractAddress: { $ref: '/Address' },
orderWatcherConfig: {
type: 'object',