diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2017-11-14 08:32:01 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2017-11-14 22:42:50 +0800 |
commit | 56b5619d24b44d23f770b58b0c9e1d4a63b89aca (patch) | |
tree | 52c047aa9ce6dbd5af93f495dbb21a8c3a662a6f /packages/json-schemas/schemas/token_schema.ts | |
parent | 08963f269b543d0f6f125ff77efdda23339865ed (diff) | |
download | dexon-sol-tools-56b5619d24b44d23f770b58b0c9e1d4a63b89aca.tar dexon-sol-tools-56b5619d24b44d23f770b58b0c9e1d4a63b89aca.tar.gz dexon-sol-tools-56b5619d24b44d23f770b58b0c9e1d4a63b89aca.tar.bz2 dexon-sol-tools-56b5619d24b44d23f770b58b0c9e1d4a63b89aca.tar.lz dexon-sol-tools-56b5619d24b44d23f770b58b0c9e1d4a63b89aca.tar.xz dexon-sol-tools-56b5619d24b44d23f770b58b0c9e1d4a63b89aca.tar.zst dexon-sol-tools-56b5619d24b44d23f770b58b0c9e1d4a63b89aca.zip |
Add json-schemas package to mono repo
Diffstat (limited to 'packages/json-schemas/schemas/token_schema.ts')
-rw-r--r-- | packages/json-schemas/schemas/token_schema.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/json-schemas/schemas/token_schema.ts b/packages/json-schemas/schemas/token_schema.ts new file mode 100644 index 000000000..aca4d4ad2 --- /dev/null +++ b/packages/json-schemas/schemas/token_schema.ts @@ -0,0 +1,11 @@ +export const tokenSchema = { + id: '/Token', + properties: { + name: {type: 'string'}, + symbol: {type: 'string'}, + decimals: {type: 'number'}, + address: {$ref: '/Address'}, + }, + required: ['name', 'symbol', 'decimals', 'address'], + type: 'object', +}; |