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", "name": "Görli",
"title": "Ethereum Testnet Görli", "title": "Ethereum Testnet Görli",
"chain": "ETH", "chain": "ETH",
"network": "goerli",
"rpc": [ "rpc": [
"https://rpc.goerli.mudit.blog/", "https://rpc.goerli.mudit.blog/",
"https://rpc.slock.it/goerli", "https://rpc.slock.it/goerli",

View File

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

View File

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

View File

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

View File

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