aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contract-wrappers/src/schemas
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-06-29 16:48:18 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-06-29 22:52:54 +0800
commitf7b3fc58bc24decc37f7c64b15573a5ec90e1ceb (patch)
tree169b1d821a6b48065f436b0d262de6f11852f1d2 /packages/contract-wrappers/src/schemas
parentde4049733075d4750617c5129f3c650cea941295 (diff)
downloaddexon-sol-tools-f7b3fc58bc24decc37f7c64b15573a5ec90e1ceb.tar
dexon-sol-tools-f7b3fc58bc24decc37f7c64b15573a5ec90e1ceb.tar.gz
dexon-sol-tools-f7b3fc58bc24decc37f7c64b15573a5ec90e1ceb.tar.bz2
dexon-sol-tools-f7b3fc58bc24decc37f7c64b15573a5ec90e1ceb.tar.lz
dexon-sol-tools-f7b3fc58bc24decc37f7c64b15573a5ec90e1ceb.tar.xz
dexon-sol-tools-f7b3fc58bc24decc37f7c64b15573a5ec90e1ceb.tar.zst
dexon-sol-tools-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.ts7
-rw-r--r--packages/contract-wrappers/src/schemas/tx_opts_schema.ts8
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',
+};