more callsigs! (#2302)
This commit is contained in:
parent
72b01161c1
commit
9968944329
|
@ -18,7 +18,6 @@ proc installDebugApiHandlers*(rpcServer: RpcServer, node: BeaconNode) =
|
|||
withStateForStateId(stateId):
|
||||
return state
|
||||
|
||||
rpcServer.rpc("get_v1_debug_beacon_heads") do (
|
||||
stateId: string) -> seq[tuple[root: Eth2Digest, slot: Slot]]:
|
||||
rpcServer.rpc("get_v1_debug_beacon_heads") do () -> seq[tuple[root: Eth2Digest, slot: Slot]]:
|
||||
return node.chainDag.heads.mapIt((it.root, it.slot))
|
||||
|
||||
|
|
|
@ -45,24 +45,16 @@ proc get_v1_beacon_blocks_blockId_root(blockId: string): Eth2Digest
|
|||
proc get_v1_beacon_blocks_blockId_attestations(blockId: string): seq[Attestation]
|
||||
|
||||
# TODO POST /v1/beacon/pool/attester_slashings
|
||||
# TODO GET /v1/beacon/pool/attester_slashings
|
||||
# TODO POST /v1/beacon/pool/proposer_slashings
|
||||
# TODO GET /v1/beacon/pool/proposer_slashings
|
||||
# TODO POST /v1/beacon/pool/voluntary_exits
|
||||
# TODO GET /v1/beacon/pool/voluntary_exits
|
||||
# TODO POST /v1/beacon/pool/attestations
|
||||
# TODO GET /v1/beacon/pool/attestations
|
||||
|
||||
|
||||
proc get_v1_beacon_pool_attestations(slot: Option[uint64], committee_index: Option[uint64]): seq[AttestationTuple]
|
||||
proc post_v1_beacon_pool_attestations(attestation: Attestation): bool
|
||||
|
||||
proc get_v1_beacon_pool_attester_slashings(): seq[AttesterSlashing]
|
||||
|
||||
proc get_v1_beacon_pool_proposer_slashings(): seq[ProposerSlashing]
|
||||
|
||||
proc get_v1_beacon_pool_voluntary_exits(): seq[VoluntaryExit]
|
||||
proc post_v1_beacon_pool_voluntary_exits(exit: SignedVoluntaryExit): bool
|
||||
|
||||
proc get_v1_config_fork_schedule(): seq[Fork]
|
||||
|
||||
# TODO stateId is part of the REST path
|
||||
proc get_v1_debug_beacon_states_stateId(stateId: string): BeaconState
|
||||
|
||||
proc getBeaconHead(): Slot
|
||||
proc getNetworkPeerId()
|
||||
proc getNetworkPeers()
|
||||
proc getNetworkEnr()
|
||||
|
|
|
@ -12,5 +12,7 @@ export
|
|||
eth2_json_rpc_serialization
|
||||
|
||||
createRpcSigs(RpcClient, currentSourcePath.parentDir / "beacon_callsigs.nim")
|
||||
createRpcSigs(RpcClient, currentSourcePath.parentDir / "debug_callsigs.nim")
|
||||
createRpcSigs(RpcClient, currentSourcePath.parentDir / "nimbus_callsigs.nim")
|
||||
createRpcSigs(RpcClient, currentSourcePath.parentDir / "node_callsigs.nim")
|
||||
createRpcSigs(RpcClient, currentSourcePath.parentDir / "validator_callsigs.nim")
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
import
|
||||
options,
|
||||
../[datatypes, digest, crypto],
|
||||
json_rpc/jsonmarshal,
|
||||
callsigs_types
|
||||
|
||||
proc get_v1_debug_beacon_states_stateId(stateId: string): BeaconState
|
||||
proc get_v1_debug_beacon_heads(): seq[tuple[root: Eth2Digest, slot: Slot]]
|
|
@ -0,0 +1,18 @@
|
|||
import
|
||||
options,
|
||||
../[datatypes, digest, crypto],
|
||||
json_rpc/jsonmarshal,
|
||||
callsigs_types
|
||||
|
||||
proc getBeaconHead(): Slot
|
||||
proc getChainHead(): JsonNode
|
||||
proc getSyncing(): bool
|
||||
proc getNetworkPeerId(): string
|
||||
proc getNetworkPeers(): seq[string]
|
||||
proc getNodeVersion(): string
|
||||
proc peers(): JsonNode
|
||||
proc setLogLevel(level: string)
|
||||
proc getEth1Chain(): JsonNode
|
||||
proc getEth1ProposalData(): JsonNode
|
||||
proc getChronosFutures(): JsonNode
|
||||
proc getGossipSubPeers(): JsonNode
|
|
@ -4,6 +4,7 @@ import
|
|||
json_rpc/jsonmarshal,
|
||||
callsigs_types
|
||||
|
||||
proc get_v1_node_identity(): NodeIdentityTuple
|
||||
proc get_v1_node_version(): JsonNode
|
||||
proc get_v1_node_syncing(): SyncInfo
|
||||
proc get_v1_node_health(): JsonNode
|
||||
|
|
Loading…
Reference in New Issue