2022-01-18 14:26:41 +01:00
|
|
|
import ./basics
|
2022-01-20 12:56:18 +01:00
|
|
|
import ./transaction
|
2022-01-24 12:14:31 +01:00
|
|
|
import ./blocktag
|
2022-01-18 14:26:41 +01:00
|
|
|
|
|
|
|
export basics
|
2022-01-20 12:56:18 +01:00
|
|
|
export transaction
|
2022-01-24 12:14:31 +01:00
|
|
|
export blocktag
|
2022-01-18 14:26:41 +01:00
|
|
|
|
2022-01-18 14:51:53 +01:00
|
|
|
push: {.upraises: [].}
|
|
|
|
|
2022-01-18 12:10:20 +01:00
|
|
|
type
|
|
|
|
Provider* = ref object of RootObj
|
2022-01-18 14:26:41 +01:00
|
|
|
|
|
|
|
method getBlockNumber*(provider: Provider): Future[UInt256] {.base.} =
|
|
|
|
doAssert false, "not implemented"
|
2022-01-20 12:56:18 +01:00
|
|
|
|
|
|
|
method call*(provider: Provider, tx: Transaction): Future[seq[byte]] {.base.} =
|
|
|
|
doAssert false, "not implemented"
|
2022-01-24 12:12:52 +01:00
|
|
|
|
|
|
|
method getGasPrice*(provider: Provider): Future[UInt256] {.base.} =
|
|
|
|
doAssert false, "not implemented"
|
2022-01-24 12:14:31 +01:00
|
|
|
|
|
|
|
method getTransactionCount*(provider: Provider,
|
|
|
|
address: Address,
|
|
|
|
blockTag = BlockTag.latest):
|
|
|
|
Future[UInt256] {.base.} =
|
|
|
|
doAssert false, "not implemented"
|
2022-01-24 14:40:47 +01:00
|
|
|
|
|
|
|
method estimateGas*(provider: Provider,
|
|
|
|
transaction: Transaction): Future[UInt256] {.base.} =
|
|
|
|
doAssert false, "not implemented"
|
2022-01-24 17:29:25 +01:00
|
|
|
|
|
|
|
method getChainId*(provider: Provider): Future[UInt256] {.base.} =
|
|
|
|
doAssert false, "not implemented"
|