aboutsummaryrefslogtreecommitdiffstats
path: root/src/schemas/token_schema.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-05-30 18:37:25 +0800
committerGitHub <noreply@github.com>2017-05-30 18:37:25 +0800
commit911ab437b8f9371f70e835f680d799b7c62fb140 (patch)
tree658094383e06e2b4df944486f7caeb54550007ea /src/schemas/token_schema.ts
parent73ae3df172b1fdb7e6a3f5cbb866b09fb5f9d032 (diff)
parent02d7f808ab0a38e145c619b360738dc976898d54 (diff)
downloaddexon-sol-tools-911ab437b8f9371f70e835f680d799b7c62fb140.tar
dexon-sol-tools-911ab437b8f9371f70e835f680d799b7c62fb140.tar.gz
dexon-sol-tools-911ab437b8f9371f70e835f680d799b7c62fb140.tar.bz2
dexon-sol-tools-911ab437b8f9371f70e835f680d799b7c62fb140.tar.lz
dexon-sol-tools-911ab437b8f9371f70e835f680d799b7c62fb140.tar.xz
dexon-sol-tools-911ab437b8f9371f70e835f680d799b7c62fb140.tar.zst
dexon-sol-tools-911ab437b8f9371f70e835f680d799b7c62fb140.zip
Merge pull request #24 from 0xProject/tokenRegistry
TokenRegistryWrapper
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',
+};