Introduce features - closes #1901 (#1928)

This commit is contained in:
ligi 2022-11-23 22:11:33 +01:00 committed by GitHub
parent e5ba875086
commit 82d08c1377
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 2 deletions

View File

@ -8,6 +8,7 @@
"https://api.mycryptoapi.com/eth",
"https://cloudflare-eth.com"
],
"features": [{ "name": "EIP155" }, { "name": "EIP1559" }],
"faucets": [],
"nativeCurrency": {
"name": "Ether",

View File

@ -20,6 +20,7 @@ val mandatory_fields = listOf(
"nativeCurrency"
)
val optionalFields = listOf(
"features",
"slip44",
"ens",
"icon",

View File

@ -36,7 +36,19 @@
"type":"string"
}
},
"nativeCurrency":{
"features":{
"type":"array",
"items":{
"type":"object",
"properties": {
"name":{
"type":"string",
"description": "feature name - e.g. EIP155"
}
}
}
},
"nativeCurrency":{
"type":"object",
"properties": {
"name":{
@ -129,4 +141,4 @@
}
},
"additionalProperties": false
}
}