2024-01-03 05:58:34 +00:00
|
|
|
# Copyright (c) 2018-2024 Status Research & Development GmbH
|
2021-08-03 15:17:11 +00:00
|
|
|
# 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.
|
|
|
|
|
2023-01-20 14:14:37 +00:00
|
|
|
{.push raises: [].}
|
2021-08-03 15:17:11 +00:00
|
|
|
|
|
|
|
import
|
2024-01-13 09:54:24 +00:00
|
|
|
presto/client,
|
2021-08-03 15:17:11 +00:00
|
|
|
"."/[rest_types, eth2_rest_serialization]
|
|
|
|
|
2024-01-13 09:54:24 +00:00
|
|
|
export client, rest_types, eth2_rest_serialization
|
2021-08-03 15:17:11 +00:00
|
|
|
|
2023-03-03 20:20:01 +00:00
|
|
|
proc getForkSchedulePlain*(): RestPlainResponse {.
|
|
|
|
rest, endpoint: "/eth/v1/config/fork_schedule", meth: MethodGet.}
|
|
|
|
## https://ethereum.github.io/beacon-APIs/#/Config/getForkSchedule
|
|
|
|
|
2021-10-20 09:58:38 +00:00
|
|
|
proc getSpecVC*(): RestResponse[GetSpecVCResponse] {.
|
|
|
|
rest, endpoint: "/eth/v1/config/spec", meth: MethodGet.}
|
|
|
|
## https://ethereum.github.io/beacon-APIs/#/Config/getSpec
|
|
|
|
|
2021-08-03 15:17:11 +00:00
|
|
|
proc getDepositContract*(): RestResponse[GetDepositContractResponse] {.
|
|
|
|
rest, endpoint: "/eth/v1/config/deposit_contract", meth: MethodGet.}
|
2021-08-27 09:00:06 +00:00
|
|
|
## https://ethereum.github.io/beacon-APIs/#/Config/getDepositContract
|