aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contract-wrappers/src
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-08-10 07:22:20 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-08-10 07:22:20 +0800
commit713f285f37a8d897d87b8a5ed835d25d7c4d6fe5 (patch)
tree7652606184ae9dc40e359994286825e2f4fc7a6c /packages/contract-wrappers/src
parent938a99f435ca01853ecb31f9267e2ba4b501d206 (diff)
downloaddexon-sol-tools-713f285f37a8d897d87b8a5ed835d25d7c4d6fe5.tar
dexon-sol-tools-713f285f37a8d897d87b8a5ed835d25d7c4d6fe5.tar.gz
dexon-sol-tools-713f285f37a8d897d87b8a5ed835d25d7c4d6fe5.tar.bz2
dexon-sol-tools-713f285f37a8d897d87b8a5ed835d25d7c4d6fe5.tar.lz
dexon-sol-tools-713f285f37a8d897d87b8a5ed835d25d7c4d6fe5.tar.xz
dexon-sol-tools-713f285f37a8d897d87b8a5ed835d25d7c4d6fe5.tar.zst
dexon-sol-tools-713f285f37a8d897d87b8a5ed835d25d7c4d6fe5.zip
fix contract-wrappers json-schemas
Diffstat (limited to 'packages/contract-wrappers/src')
-rw-r--r--packages/contract-wrappers/src/schemas/contract_wrappers_private_network_config_schema.ts10
-rw-r--r--packages/contract-wrappers/src/schemas/contract_wrappers_public_network_config_schema.ts10
-rw-r--r--packages/contract-wrappers/src/schemas/method_opts_schema.ts2
-rw-r--r--packages/contract-wrappers/src/schemas/tx_opts_schema.ts2
4 files changed, 12 insertions, 12 deletions
diff --git a/packages/contract-wrappers/src/schemas/contract_wrappers_private_network_config_schema.ts b/packages/contract-wrappers/src/schemas/contract_wrappers_private_network_config_schema.ts
index 7e2eca61c..904690ae7 100644
--- a/packages/contract-wrappers/src/schemas/contract_wrappers_private_network_config_schema.ts
+++ b/packages/contract-wrappers/src/schemas/contract_wrappers_private_network_config_schema.ts
@@ -5,11 +5,11 @@ export const contractWrappersPrivateNetworkConfigSchema = {
type: 'number',
minimum: 1,
},
- gasPrice: { $ref: '/Number' },
- zrxContractAddress: { $ref: '/Address' },
- exchangeContractAddress: { $ref: '/Address' },
- erc20ProxyContractAddress: { $ref: '/Address' },
- erc721ProxyContractAddress: { $ref: '/Address' },
+ gasPrice: { $ref: '/numberSchema' },
+ zrxContractAddress: { $ref: '/addressSchema' },
+ exchangeContractAddress: { $ref: '/addressSchema' },
+ erc20ProxyContractAddress: { $ref: '/addressSchema' },
+ erc721ProxyContractAddress: { $ref: '/addressSchema' },
blockPollingIntervalMs: { type: 'number' },
orderWatcherConfig: {
type: 'object',
diff --git a/packages/contract-wrappers/src/schemas/contract_wrappers_public_network_config_schema.ts b/packages/contract-wrappers/src/schemas/contract_wrappers_public_network_config_schema.ts
index b80e04310..5cd008ae0 100644
--- a/packages/contract-wrappers/src/schemas/contract_wrappers_public_network_config_schema.ts
+++ b/packages/contract-wrappers/src/schemas/contract_wrappers_public_network_config_schema.ts
@@ -19,11 +19,11 @@ export const contractWrappersPublicNetworkConfigSchema = {
networkNameToId.ganache,
],
},
- gasPrice: { $ref: '/Number' },
- zrxContractAddress: { $ref: '/Address' },
- exchangeContractAddress: { $ref: '/Address' },
- erc20ProxyContractAddress: { $ref: '/Address' },
- erc721ProxyContractAddress: { $ref: '/Address' },
+ gasPrice: { $ref: '/numberSchema' },
+ zrxContractAddress: { $ref: '/addressSchema' },
+ exchangeContractAddress: { $ref: '/addressSchema' },
+ erc20ProxyContractAddress: { $ref: '/addressSchema' },
+ erc721ProxyContractAddress: { $ref: '/addressSchema' },
blockPollingIntervalMs: { type: 'number' },
orderWatcherConfig: {
type: 'object',
diff --git a/packages/contract-wrappers/src/schemas/method_opts_schema.ts b/packages/contract-wrappers/src/schemas/method_opts_schema.ts
index ef434070a..83003f818 100644
--- a/packages/contract-wrappers/src/schemas/method_opts_schema.ts
+++ b/packages/contract-wrappers/src/schemas/method_opts_schema.ts
@@ -1,7 +1,7 @@
export const methodOptsSchema = {
id: '/MethodOpts',
properties: {
- defaultBlock: { $ref: '/BlockParam' },
+ defaultBlock: { $ref: '/blockParamSchema' },
},
type: 'object',
};
diff --git a/packages/contract-wrappers/src/schemas/tx_opts_schema.ts b/packages/contract-wrappers/src/schemas/tx_opts_schema.ts
index bddc33b6c..83c819be2 100644
--- a/packages/contract-wrappers/src/schemas/tx_opts_schema.ts
+++ b/packages/contract-wrappers/src/schemas/tx_opts_schema.ts
@@ -1,7 +1,7 @@
export const txOptsSchema = {
id: '/TxOpts',
properties: {
- gasPrice: { $ref: '/Number' },
+ gasPrice: { $ref: '/numberSchema' },
gasLimit: { type: 'number' },
},
type: 'object',