Skip to content

Commit e57c082

Browse files
committed
re export all types
1 parent d9d1afb commit e57c082

File tree

13 files changed

+19
-26
lines changed

13 files changed

+19
-26
lines changed

builder-client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ version = "0.1.0"
44
edition = "2021"
55

66
[dependencies]
7+
builder-api-types = { path = "../builder-api-types" }
78
ethereum-apis-common = { path = "../common" }
89
reqwest.workspace = true
910
serde.workspace = true
1011
serde_json.workspace = true
11-
types.workspace = true

builder-client/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
pub use builder_api_types::{
2+
builder_bid::SignedBuilderBid, eth_spec::EthSpec, ExecutionBlockHash, ExecutionPayload,
3+
PublicKeyBytes, SignedBlindedBeaconBlock, SignedValidatorRegistrationData, Slot,
4+
};
15
use ethereum_apis_common::ErrorResponse;
26
use reqwest::Client;
37
use reqwest::Url;
48
use serde::de::DeserializeOwned;
5-
use types::{
6-
builder_bid::SignedBuilderBid, eth_spec::EthSpec, ExecutionBlockHash, ExecutionPayload,
7-
PublicKeyBytes, SignedBlindedBeaconBlock, SignedValidatorRegistrationData, Slot,
8-
};
99

1010
#[derive(Debug)]
1111
pub enum Error {

builder-server/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,3 @@ serde.workspace = true
1717
serde_json.workspace = true
1818
tokio.workspace = true
1919
tracing.workspace = true
20-
types.workspace = true

builder-server/src/builder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
use async_trait::async_trait;
2-
use ethereum_apis_common::ErrorResponse;
3-
use types::{
2+
use builder_api_types::{
43
builder_bid::SignedBuilderBid, eth_spec::EthSpec, ExecutionBlockHash, ExecutionPayload,
54
ForkName, PublicKeyBytes, SignedBlindedBeaconBlock, SignedValidatorRegistrationData, Slot,
65
};
6+
use ethereum_apis_common::ErrorResponse;
77

88
#[async_trait]
99
pub trait Builder<E: EthSpec> {

builder-server/src/server.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ use axum::{
66
routing::{get, post},
77
Json, Router,
88
};
9-
use ethereum_apis_common::build_response;
10-
use types::{
9+
use builder_api_types::{
1110
eth_spec::EthSpec, fork_versioned_response::EmptyMetadata, ExecutionBlockHash,
1211
ForkVersionedResponse, PublicKeyBytes, SignedBlindedBeaconBlock,
1312
SignedValidatorRegistrationData, Slot,
1413
};
14+
use ethereum_apis_common::build_response;
1515

1616
use crate::builder::Builder;
1717

common/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ serde.workspace = true
1515
serde_json.workspace = true
1616
tokio.workspace = true
1717
tracing.workspace = true
18-
types.workspace = true
18+
beacon-api-types = { path = "../beacon-api-types" }

common/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ use axum::{
44
extract::{FromRequest, Request},
55
response::{IntoResponse, Response},
66
};
7+
use beacon_api_types::ForkVersionDeserialize;
78
use bytes::Bytes;
89
use flate2::read::GzDecoder;
910
use http::header::CONTENT_ENCODING;
1011
use http::{header::CONTENT_TYPE, HeaderValue, StatusCode};
1112
use serde::{Deserialize, Serialize};
1213
use std::io::Read;
1314
use tracing::error;
14-
use types::ForkVersionDeserialize;
1515

1616
pub const CONSENSUS_VERSION_HEADER: &'static str = "Eth-Consensus-Version";
1717

relay-api-types/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@ ethereum_ssz.workspace = true
1010
ethereum_ssz_derive.workspace = true
1111
serde.workspace = true
1212
superstruct.workspace = true
13-
types.workspace = true

relay-api-types/src/lib.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
use beacon_api_types::BlobsBundle;
2-
use serde::{Deserialize, Serialize};
3-
use serde_utils::quoted_u64::Quoted;
4-
use ssz_derive::{Decode, Encode};
5-
pub use types::{
6-
superstruct, Address, EthSpec, ExecutionBlockHash, ExecutionPayloadBellatrix,
1+
pub use beacon_api_types::{
2+
superstruct, Address, BlobsBundle, EthSpec, ExecutionBlockHash, ExecutionPayloadBellatrix,
73
ExecutionPayloadCapella, ExecutionPayloadDeneb, ExecutionPayloadElectra,
84
ExecutionPayloadHeaderBellatrix, ExecutionPayloadHeaderCapella, ExecutionPayloadHeaderDeneb,
95
ExecutionPayloadHeaderElectra, MainnetEthSpec, MinimalEthSpec, PublicKeyBytes, Signature,
106
SignedValidatorRegistrationData, Slot, Uint256,
117
};
8+
use serde::{Deserialize, Serialize};
9+
use serde_utils::quoted_u64::Quoted;
10+
use ssz_derive::{Decode, Encode};
1211

1312
// Builder API requests
1413

relay-client/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ reqwest.workspace = true
1212
serde.workspace = true
1313
serde_json.workspace = true
1414
tokio-tungstenite.workspace = true
15-
types.workspace = true

0 commit comments

Comments
 (0)