MCPcopy Create free account
hub / github.com/Commit-Boost/commit-boost-client / to_pbs_config

Function to_pbs_config

tests/src/utils.rs:91–106  ·  view source on GitHub ↗
(
    chain: Chain,
    pbs_config: PbsConfig,
    relays: Vec<RelayClient>,
)

Source from the content-addressed store, hash-verified

89}
90
91pub fn to_pbs_config(
92 chain: Chain,
93 pbs_config: PbsConfig,
94 relays: Vec<RelayClient>,
95) -> PbsModuleConfig {
96 PbsModuleConfig {
97 chain,
98 endpoint: SocketAddr::new(pbs_config.host.into(), pbs_config.port),
99 pbs_config: Arc::new(pbs_config),
100 signer_client: None,
101 all_relays: relays.clone(),
102 relays,
103 registry_muxes: None,
104 mux_lookup: None,
105 }
106}
107
108pub fn get_signer_config(loader: SignerLoader) -> SignerConfig {
109 SignerConfig {

Calls

no outgoing calls