diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-07-05 22:00:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-05 22:00:50 +0800 |
commit | 01c6efeaf10524a9f412c7c638c99afcf0fd3070 (patch) | |
tree | fa5dc6f41c56970dd82e9bf0a8d407dee43f823b /packages/json-schemas/schemas | |
parent | 22cf7bee5b089384d43e6df0101699491c17847f (diff) | |
parent | 87a7a4ad2d55641cbe06d7157df0d8f0996d033a (diff) | |
download | dexon-sol-tools-01c6efeaf10524a9f412c7c638c99afcf0fd3070.tar dexon-sol-tools-01c6efeaf10524a9f412c7c638c99afcf0fd3070.tar.gz dexon-sol-tools-01c6efeaf10524a9f412c7c638c99afcf0fd3070.tar.bz2 dexon-sol-tools-01c6efeaf10524a9f412c7c638c99afcf0fd3070.tar.lz dexon-sol-tools-01c6efeaf10524a9f412c7c638c99afcf0fd3070.tar.xz dexon-sol-tools-01c6efeaf10524a9f412c7c638c99afcf0fd3070.tar.zst dexon-sol-tools-01c6efeaf10524a9f412c7c638c99afcf0fd3070.zip |
Merge branch 'v2-prototype' into v2-contract-wrappers-WIP
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, +}; |