Fix nimble requirements (#305)
* [build] Update nim-ethers to 0.2.4 * [build] set correct lrucache requirement in nimble file
This commit is contained in:
parent
88f1be388a
commit
cdd175279c
|
@ -13,7 +13,7 @@ requires "nim >= 1.2.0",
|
||||||
"chronicles >= 0.7.2",
|
"chronicles >= 0.7.2",
|
||||||
"chronos >= 2.5.2",
|
"chronos >= 2.5.2",
|
||||||
"confutils",
|
"confutils",
|
||||||
"ethers >= 0.2.0 & < 0.3.0",
|
"ethers >= 0.2.4 & < 0.3.0",
|
||||||
"libbacktrace",
|
"libbacktrace",
|
||||||
"libp2p",
|
"libp2p",
|
||||||
"metrics",
|
"metrics",
|
||||||
|
@ -25,7 +25,7 @@ requires "nim >= 1.2.0",
|
||||||
"secp256k1",
|
"secp256k1",
|
||||||
"stew",
|
"stew",
|
||||||
"upraises >= 0.1.0 & < 0.2.0",
|
"upraises >= 0.1.0 & < 0.2.0",
|
||||||
"lrucache",
|
"https://github.com/status-im/lrucache.nim#1.2.2",
|
||||||
"leopard >= 0.1.0 & < 0.2.0",
|
"leopard >= 0.1.0 & < 0.2.0",
|
||||||
"blscurve",
|
"blscurve",
|
||||||
"libp2pdht",
|
"libp2pdht",
|
||||||
|
|
|
@ -104,9 +104,6 @@ func solidityType*(_: type StorageAsk): string =
|
||||||
func solidityType*(_: type StorageRequest): string =
|
func solidityType*(_: type StorageRequest): string =
|
||||||
solidityType(StorageRequest.fieldTypes)
|
solidityType(StorageRequest.fieldTypes)
|
||||||
|
|
||||||
func solidityType*[T: RequestId | SlotId | Nonce](_: type T): string =
|
|
||||||
solidityType(array[32, byte])
|
|
||||||
|
|
||||||
func encode*(encoder: var AbiEncoder, por: StoragePoR) =
|
func encode*(encoder: var AbiEncoder, por: StoragePoR) =
|
||||||
encoder.write(por.fieldValues)
|
encoder.write(por.fieldValues)
|
||||||
|
|
||||||
|
@ -125,11 +122,6 @@ func encode*(encoder: var AbiEncoder, id: RequestId | SlotId | Nonce) =
|
||||||
func encode*(encoder: var AbiEncoder, request: StorageRequest) =
|
func encode*(encoder: var AbiEncoder, request: StorageRequest) =
|
||||||
encoder.write(request.fieldValues)
|
encoder.write(request.fieldValues)
|
||||||
|
|
||||||
func decode*[T: RequestId | SlotId | Nonce](decoder: var AbiDecoder,
|
|
||||||
_: type T): ?!T =
|
|
||||||
let nonce = ?decoder.read(type array[32, byte])
|
|
||||||
success T(nonce)
|
|
||||||
|
|
||||||
func decode*(decoder: var AbiDecoder, T: type StoragePoR): ?!T =
|
func decode*(decoder: var AbiDecoder, T: type StoragePoR): ?!T =
|
||||||
let tupl = ?decoder.read(StoragePoR.fieldTypes)
|
let tupl = ?decoder.read(StoragePoR.fieldTypes)
|
||||||
success StoragePoR.fromTuple(tupl)
|
success StoragePoR.fromTuple(tupl)
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit b111c27b619fc1d81fb1c6942372824a18a71960
|
Subproject commit 61f8f59b3917d8e27c6eb4330a6d8cf428e98b2d
|
|
@ -1 +1 @@
|
||||||
Subproject commit e8592bb92219f5fcec25af22bed474a4f95c0a54
|
Subproject commit e462649aecc9dedc1cdc1319a9089d2e40578284
|
Loading…
Reference in New Issue