diff options
author | Fabio Berger <me@fabioberger.com> | 2018-07-05 21:04:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-05 21:04:58 +0800 |
commit | 87a7a4ad2d55641cbe06d7157df0d8f0996d033a (patch) | |
tree | f0374adf1f3e6d87df25032499f14ec7c231265c /packages/json-schemas/schemas | |
parent | 5176d929fa6d3c6ce414448ea2441bd450f04e3c (diff) | |
parent | a1fb438a8c8722d14c7a1e52e844898ff5451e66 (diff) | |
download | dexon-sol-tools-87a7a4ad2d55641cbe06d7157df0d8f0996d033a.tar dexon-sol-tools-87a7a4ad2d55641cbe06d7157df0d8f0996d033a.tar.gz dexon-sol-tools-87a7a4ad2d55641cbe06d7157df0d8f0996d033a.tar.bz2 dexon-sol-tools-87a7a4ad2d55641cbe06d7157df0d8f0996d033a.tar.lz dexon-sol-tools-87a7a4ad2d55641cbe06d7157df0d8f0996d033a.tar.xz dexon-sol-tools-87a7a4ad2d55641cbe06d7157df0d8f0996d033a.tar.zst dexon-sol-tools-87a7a4ad2d55641cbe06d7157df0d8f0996d033a.zip |
Merge pull request #821 from 0xProject/remove-web3-from-wrapper
Remove Web3.js From 0x-monorepo 🍾
Diffstat (limited to 'packages/json-schemas/schemas')
-rw-r--r-- | packages/json-schemas/schemas/call_data_schema.ts | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/packages/json-schemas/schemas/call_data_schema.ts b/packages/json-schemas/schemas/call_data_schema.ts new file mode 100644 index 000000000..e8fcc7512 --- /dev/null +++ b/packages/json-schemas/schemas/call_data_schema.ts @@ -0,0 +1,27 @@ +export const callDataSchema = { + id: '/TxData', + properties: { + from: { $ref: '/Address' }, + to: { $ref: '/Address' }, + value: { + oneOf: [{ $ref: '/Number' }, { $ref: '/JsNumber' }], + }, + gas: { + oneOf: [{ $ref: '/Number' }, { $ref: '/JsNumber' }], + }, + gasPrice: { + oneOf: [{ $ref: '/Number' }, { $ref: '/JsNumber' }], + }, + data: { + type: 'string', + pattern: '^0x[0-9a-f]*$', + }, + nonce: { + type: 'number', + minimum: 0, + }, + }, + required: [], + type: 'object', + additionalProperties: false, +}; |