mirror of
https://github.com/Instadapp/chains.git
synced 2024-07-29 22:37:19 +00:00
Migrate to KEthereum 0.81.4
This commit is contained in:
parent
ed38dc775a
commit
ce398981c8
|
@ -1,7 +1,7 @@
|
|||
buildscript {
|
||||
ext {
|
||||
KOTLIN_VERSION = "1.3.70"
|
||||
KETHEREUM_VERSION = "0.77.1"
|
||||
KETHEREUM_VERSION = "0.81.4"
|
||||
}
|
||||
|
||||
repositories {
|
||||
|
@ -32,7 +32,7 @@ dependencies {
|
|||
|
||||
implementation "com.github.komputing.kethereum:rpc:${KETHEREUM_VERSION}"
|
||||
implementation "com.github.komputing.kethereum:model:${KETHEREUM_VERSION}"
|
||||
implementation "com.github.komputing.kethereum:functions:${KETHEREUM_VERSION}"
|
||||
implementation "com.github.komputing.kethereum:erc55:${KETHEREUM_VERSION}"
|
||||
implementation "com.github.komputing.kethereum:crypto_impl_bouncycastle:${KETHEREUM_VERSION}"
|
||||
|
||||
implementation 'com.beust:klaxon:5.2'
|
||||
|
|
|
@ -2,7 +2,7 @@ package org.ethereum.lists.chains
|
|||
|
||||
import com.beust.klaxon.JsonObject
|
||||
import com.beust.klaxon.Klaxon
|
||||
import org.kethereum.functions.isValid
|
||||
import org.kethereum.erc55.isValid
|
||||
import org.kethereum.model.Address
|
||||
import org.kethereum.rpc.HttpEthereumRPC
|
||||
import java.io.File
|
||||
|
@ -82,9 +82,9 @@ fun checkChain(it: File, connectRPC: Boolean) {
|
|||
} else {
|
||||
println("connecting to $it")
|
||||
val ethereumRPC = HttpEthereumRPC(it)
|
||||
println("Client:" + ethereumRPC.clientVersion()?.result)
|
||||
println("BlockNumber:" + ethereumRPC.blockNumber()?.result?.tryBigint())
|
||||
println("GasPrice:" + ethereumRPC.gasPrice()?.result?.tryBigint())
|
||||
println("Client:" + ethereumRPC.clientVersion())
|
||||
println("BlockNumber:" + ethereumRPC.blockNumber())
|
||||
println("GasPrice:" + ethereumRPC.gasPrice())
|
||||
}
|
||||
}
|
||||
println()
|
||||
|
|
Loading…
Reference in New Issue
Block a user