Deprecate the 'network' field

This commit is contained in:
ligi 2021-12-31 09:45:26 +01:00
parent 02b0a54d6e
commit 1f02ea7293
No known key found for this signature in database
GPG Key ID: 8E81894010ABF23D
5 changed files with 3 additions and 5 deletions

View File

@ -2,7 +2,6 @@
"name": "Görli",
"title": "Ethereum Testnet Görli",
"chain": "ETH",
"network": "goerli",
"rpc": [
"https://rpc.goerli.mudit.blog/",
"https://rpc.slock.it/goerli",

View File

@ -7,7 +7,8 @@ data class Chain(
val name: String,
val shortName: String,
val chain: String,
val network: String,
@Deprecated("Will be removed in the future")
val network: String?,
val chainId: Long,
val networkId: Long,
val rpc: List<String>,

View File

@ -8,7 +8,6 @@ val mandatory_fields = listOf(
"name",
"shortName",
"chain",
"network",
"chainId",
"networkId",
"rpc",
@ -22,6 +21,7 @@ val optionalFields = listOf(
"icon",
"explorers",
"title",
"network",
"parent"
)

View File

@ -3,7 +3,6 @@
"name": "Ethereum",
"shortName": "eth",
"chain": "ETH",
"network": "mainnet",
"chainId": 1,
"networkId": 1,
"rpc": [

View File

@ -1,7 +1,6 @@
{
"name": "Ethereum Testnet Görli",
"chain": "ETH",
"network": "goerli",
"rpc": [
"https://rpc.goerli.mudit.blog/",
"https://rpc.slock.it/goerli ",