This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
modules: | |
module DToken { | |
// This module is responsible for an actual dToken. | |
// ----------------------------------------------------------------- | |
// Declare the dToken resource, storing an account's total balance. | |
resource T { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Ajv = require('ajv'); | |
var ajv = new Ajv({ | |
allErrors: true | |
}); | |
var schema = { | |
type: 'object', | |
properties: { | |
date: { |