aboutsummaryrefslogtreecommitdiffstats
path: root/src/schemas
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-09 21:20:30 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-09 21:20:30 +0800
commitb46ebc76ea727056b3fa15ad814ee9dea511f225 (patch)
treeb4cf214c25245cb35c5d9f7b84fb9ce4eb9f419d /src/schemas
parent44f8d189624281b3f97926aa821faf99ad314ae5 (diff)
downloaddexon-sol-tools-b46ebc76ea727056b3fa15ad814ee9dea511f225.tar
dexon-sol-tools-b46ebc76ea727056b3fa15ad814ee9dea511f225.tar.gz
dexon-sol-tools-b46ebc76ea727056b3fa15ad814ee9dea511f225.tar.bz2
dexon-sol-tools-b46ebc76ea727056b3fa15ad814ee9dea511f225.tar.lz
dexon-sol-tools-b46ebc76ea727056b3fa15ad814ee9dea511f225.tar.xz
dexon-sol-tools-b46ebc76ea727056b3fa15ad814ee9dea511f225.tar.zst
dexon-sol-tools-b46ebc76ea727056b3fa15ad814ee9dea511f225.zip
Add tests for TokenSchema
Diffstat (limited to 'src/schemas')
-rw-r--r--src/schemas/token_schema.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/schemas/token_schema.ts b/src/schemas/token_schema.ts
index 01702af68..383c28490 100644
--- a/src/schemas/token_schema.ts
+++ b/src/schemas/token_schema.ts
@@ -4,8 +4,11 @@ export const tokenSchema = {
name: {type: 'string'},
symbol: {type: 'string'},
decimals: {type: 'number'},
- address: {type: 'string'},
- url: {type: 'string'},
+ address: {$ref: '/addressSchema'},
+ url: {
+ type: 'string',
+ format: 'uri',
+ },
},
required: ['name', 'symbol', 'decimals', 'address', 'url'],
type: 'object',