aboutsummaryrefslogtreecommitdiffstats
path: root/src/schemas/token_schema.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-05-30 18:37:45 +0800
committerFabio Berger <me@fabioberger.com>2017-05-30 18:37:45 +0800
commite8a52ce1da454ab3a30b6f7d314aa85cf9534a05 (patch)
tree530fb9f1d2173d19b76b96ae48a6cff90bdc9925 /src/schemas/token_schema.ts
parentd15002a1109ea00f4d92c7ae6259b5b657f5e4b3 (diff)
parent911ab437b8f9371f70e835f680d799b7c62fb140 (diff)
downloaddexon-sol-tools-e8a52ce1da454ab3a30b6f7d314aa85cf9534a05.tar
dexon-sol-tools-e8a52ce1da454ab3a30b6f7d314aa85cf9534a05.tar.gz
dexon-sol-tools-e8a52ce1da454ab3a30b6f7d314aa85cf9534a05.tar.bz2
dexon-sol-tools-e8a52ce1da454ab3a30b6f7d314aa85cf9534a05.tar.lz
dexon-sol-tools-e8a52ce1da454ab3a30b6f7d314aa85cf9534a05.tar.xz
dexon-sol-tools-e8a52ce1da454ab3a30b6f7d314aa85cf9534a05.tar.zst
dexon-sol-tools-e8a52ce1da454ab3a30b6f7d314aa85cf9534a05.zip
Merge branch 'master' into dontReinstantiateContractInstances
Diffstat (limited to 'src/schemas/token_schema.ts')
-rw-r--r--src/schemas/token_schema.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/schemas/token_schema.ts b/src/schemas/token_schema.ts
new file mode 100644
index 000000000..01702af68
--- /dev/null
+++ b/src/schemas/token_schema.ts
@@ -0,0 +1,12 @@
+export const tokenSchema = {
+ id: '/token',
+ properties: {
+ name: {type: 'string'},
+ symbol: {type: 'string'},
+ decimals: {type: 'number'},
+ address: {type: 'string'},
+ url: {type: 'string'},
+ },
+ required: ['name', 'symbol', 'decimals', 'address', 'url'],
+ type: 'object',
+};