-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Samuel
committed
Jun 22, 2022
1 parent
2601305
commit dacb2cd
Showing
3 changed files
with
105 additions
and
2 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"type": "object", | ||
"properties": { | ||
"supply": { | ||
"type": "integer", | ||
"description": "Number of tokens to create", | ||
"exclusiveMinimum": 0 | ||
}, | ||
"type": { | ||
"type": "string", | ||
"pattern": "fungible|non-fungible", | ||
"description": "Type of token to create" | ||
}, | ||
"name": { | ||
"type": "string", | ||
"description": "Name of the token" | ||
}, | ||
"symbol": { | ||
"type": "string", | ||
"description": "Symbol of the token" | ||
}, | ||
"properties": { | ||
"description": "List of all the token properties (each one being for a token item)", | ||
"type": "array", | ||
"items": { "$ref": "#/$defs/property-list" } | ||
} | ||
}, | ||
"required": [ "supply", "type" ], | ||
"$defs": { | ||
"property-list": { | ||
"type": "array", | ||
"description": "List of the properties for a given token item", | ||
"items": { "$ref": "#/$defs/property" } | ||
}, | ||
"property": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "Name of the property" | ||
}, | ||
"value": { | ||
"type": ["number", "string"], | ||
"description": "Value of the property" | ||
} | ||
}, | ||
"required": ["name", "value"] | ||
} | ||
} | ||
} |
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