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://api.mycryptoapi.com/eth",
"https://cloudflare-eth.com" "https://cloudflare-eth.com"
], ],
"features": [{ "name": "EIP155" }, { "name": "EIP1559" }],
"faucets": [], "faucets": [],
"nativeCurrency": { "nativeCurrency": {
"name": "Ether", "name": "Ether",

View File

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

View File

@ -36,6 +36,18 @@
"type":"string" "type":"string"
} }
}, },
"features":{
"type":"array",
"items":{
"type":"object",
"properties": {
"name":{
"type":"string",
"description": "feature name - e.g. EIP155"
}
}
}
},
"nativeCurrency":{ "nativeCurrency":{
"type":"object", "type":"object",
"properties": { "properties": {