Skip to content

Commit

Permalink
[erc1155-balance-of] add schema (#1685)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaituVR authored Jan 28, 2025
1 parent 7c7b5db commit fd3b9da
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions src/strategies/erc1155-balance-of/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/Strategy",
"definitions": {
"Strategy": {
"title": "Strategy",
"type": "object",
"properties": {
"symbol": {
"type": "string",
"title": "Symbol",
"examples": ["e.g. UNI"],
"maxLength": 16
},
"address": {
"type": "string",
"title": "Contract address",
"examples": ["e.g. 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984"],
"pattern": "^0x[a-fA-F0-9]{40}$",
"minLength": 42,
"maxLength": 42
},
"tokenId": {
"type": "string",
"title": "Token ID",
"examples": ["e.g. 1, 0x8"],
"maxLength": 100
},
"decimals": {
"type": "number",
"title": "Decimals",
"examples": ["e.g. 18"],
"minimum": 0
}
},
"required": ["address", "tokenId", "decimals"],
"additionalProperties": false
}
}
}

0 comments on commit fd3b9da

Please sign in to comment.