Skip to content

Commit

Permalink
Merge pull request #365 from tangem/bugfix/AND-5171_infura
Browse files Browse the repository at this point in the history
AND-5171 Removed unnecessary properties.
  • Loading branch information
Sateetas authored Nov 27, 2023
2 parents 39f05b8 + a9a440e commit da15c7a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ sealed class NearAccount {

data class NearNetworkStatus(
val chainId: String,
val version: String,
val latestBlockHash: String,
val latestBlockHeight: Long,
val latestBlockTime: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ class NearNetworkService(

val status = NearNetworkStatus(
chainId = statusResult.chainId,
version = statusResult.version.version,
latestBlockHash = statusResult.syncInfo.latestBlockHash,
latestBlockHeight = statusResult.syncInfo.latestBlockHeight,
latestBlockTime = statusResult.syncInfo.latestBlockTime,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,11 @@ data class NetworkStatusResult(
@Json(name = "chain_id") val chainId: String,
@Json(name = "latest_protocol_version") val latestProtocolVersion: Int,
@Json(name = "node_key") val nodeKey: Any?,
@Json(name = "node_public_key") val nodePublicKey: String,
@Json(name = "protocol_version") val protocolVersion: Int,
@Json(name = "rpc_addr") val rpcIpAddress: String,
@Json(name = "uptime_sec") val uptimeSeconds: Long,
@Json(name = "validator_account_id") val validatorAccountId: Any?,
@Json(name = "validator_public_key") val validatorPublicKey: Any?,
@Json(name = "sync_info") val syncInfo: SyncInfo,
@Json(name = "version") val version: Version,
) {
data class SyncInfo(
@Json(name = "earliest_block_hash") val earliestBlockHash: String,
Expand All @@ -72,11 +69,6 @@ data class NetworkStatusResult(
@Json(name = "syncing") val syncing: Boolean,
)

data class Version(
@Json(name = "build") val build: String,
@Json(name = "rustc_version") val rustcVersion: String,
@Json(name = "version") val version: String,
)
}

@JsonClass(generateAdapter = true)
Expand Down

0 comments on commit da15c7a

Please sign in to comment.