diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-06-29 16:48:18 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-06-29 22:52:54 +0800 |
commit | f7b3fc58bc24decc37f7c64b15573a5ec90e1ceb (patch) | |
tree | 169b1d821a6b48065f436b0d262de6f11852f1d2 /packages/contract-wrappers/src/schemas | |
parent | de4049733075d4750617c5129f3c650cea941295 (diff) | |
download | dexon-0x-contracts-f7b3fc58bc24decc37f7c64b15573a5ec90e1ceb.tar.gz dexon-0x-contracts-f7b3fc58bc24decc37f7c64b15573a5ec90e1ceb.tar.zst dexon-0x-contracts-f7b3fc58bc24decc37f7c64b15573a5ec90e1ceb.zip |
Add assertions for txOpts and methodOpts
Diffstat (limited to 'packages/contract-wrappers/src/schemas')
-rw-r--r-- | packages/contract-wrappers/src/schemas/method_opts_schema.ts | 7 | ||||
-rw-r--r-- | packages/contract-wrappers/src/schemas/tx_opts_schema.ts | 8 |
2 files changed, 15 insertions, 0 deletions
diff --git a/packages/contract-wrappers/src/schemas/method_opts_schema.ts b/packages/contract-wrappers/src/schemas/method_opts_schema.ts new file mode 100644 index 000000000..ef434070a --- /dev/null +++ b/packages/contract-wrappers/src/schemas/method_opts_schema.ts @@ -0,0 +1,7 @@ +export const methodOptsSchema = { + id: '/MethodOpts', + properties: { + defaultBlock: { $ref: '/BlockParam' }, + }, + type: 'object', +}; diff --git a/packages/contract-wrappers/src/schemas/tx_opts_schema.ts b/packages/contract-wrappers/src/schemas/tx_opts_schema.ts new file mode 100644 index 000000000..bddc33b6c --- /dev/null +++ b/packages/contract-wrappers/src/schemas/tx_opts_schema.ts @@ -0,0 +1,8 @@ +export const txOptsSchema = { + id: '/TxOpts', + properties: { + gasPrice: { $ref: '/Number' }, + gasLimit: { type: 'number' }, + }, + type: 'object', +}; |