2024-08-27 12:35:27 +00:00
|
|
|
# fluffy
|
|
|
|
# Copyright (c) 2021-2024 Status Research & Development GmbH
|
|
|
|
# Licensed and distributed under either of
|
|
|
|
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
|
|
|
|
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
|
|
|
|
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
|
|
|
|
|
|
|
{.push raises: [].}
|
|
|
|
|
|
|
|
import stint, json_rpc/[client, jsonmarshal], web3/conversions, web3/eth_api_types
|
|
|
|
|
|
|
|
export eth_api_types
|
|
|
|
|
|
|
|
createRpcSigsFromNim(RpcClient):
|
2024-10-16 06:51:38 +00:00
|
|
|
proc debug_getBalanceByStateRoot(data: Address, stateRoot: Hash32): UInt256
|
|
|
|
proc debug_getTransactionCountByStateRoot(data: Address, stateRoot: Hash32): Quantity
|
2024-08-27 12:35:27 +00:00
|
|
|
proc debug_getStorageAtByStateRoot(
|
2024-10-16 06:51:38 +00:00
|
|
|
data: Address, slot: UInt256, stateRoot: Hash32
|
2024-08-27 12:35:27 +00:00
|
|
|
): FixedBytes[32]
|
|
|
|
|
2024-10-16 06:51:38 +00:00
|
|
|
proc debug_getCodeByStateRoot(data: Address, stateRoot: Hash32): seq[byte]
|