mirror of
https://github.com/Instadapp/chains.git
synced 2024-07-29 22:37:19 +00:00
Deprecate the 'network' field
This commit is contained in:
parent
02b0a54d6e
commit
1f02ea7293
|
@ -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",
|
||||||
|
|
|
@ -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>,
|
||||||
|
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -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": [
|
||||||
|
|
|
@ -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 ",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user