Skip to content

Commit

Permalink
chore(f3): upgrade go-f3 to 0.7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
hanabi1224 committed Jan 24, 2025
1 parent bfe406e commit 28c705b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
2 changes: 1 addition & 1 deletion f3-sidecar/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module f3-sidecar/v2
go 1.22.0

require (
github.com/filecoin-project/go-f3 v0.7.3
github.com/filecoin-project/go-f3 v0.7.4-0.20250120154023-9c11ba345092
github.com/filecoin-project/go-jsonrpc v0.7.0
github.com/filecoin-project/go-state-types v0.15.0
github.com/ipfs/go-cid v0.4.1
Expand Down
4 changes: 2 additions & 2 deletions f3-sidecar/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ github.com/filecoin-project/go-bitfield v0.2.4 h1:uZ7MeE+XfM5lqrHJZ93OnhQKc/rveW
github.com/filecoin-project/go-bitfield v0.2.4/go.mod h1:CNl9WG8hgR5mttCnUErjcQjGvuiZjRqK9rHVBsQF4oM=
github.com/filecoin-project/go-clock v0.1.0 h1:SFbYIM75M8NnFm1yMHhN9Ahy3W5bEZV9gd6MPfXbKVU=
github.com/filecoin-project/go-clock v0.1.0/go.mod h1:4uB/O4PvOjlx1VCMdZ9MyDZXRm//gkj1ELEbxfI1AZs=
github.com/filecoin-project/go-f3 v0.7.3 h1:nwRYRKaJs7AV3di/OQyj6tABeixBeL06DkJeoQrr5+0=
github.com/filecoin-project/go-f3 v0.7.3/go.mod h1:wDo5mPi4KXVuA7kvwLpmfVVv2Aw2ZwZk3iqMWr5BOT0=
github.com/filecoin-project/go-f3 v0.7.4-0.20250120154023-9c11ba345092 h1:Yco5dqpG2cgjRGeL0i1T2sL3a3dyqM9ARLRd3zbi9x4=
github.com/filecoin-project/go-f3 v0.7.4-0.20250120154023-9c11ba345092/go.mod h1:zNFGuBM+fYuGXk2fpzl6wW4g2Gyrxgg6z2IVSoGt+60=
github.com/filecoin-project/go-jsonrpc v0.7.0 h1:mqA5pIOlBODx7ascY9cJdBAYonhgbdUOIn2dyYI1YBg=
github.com/filecoin-project/go-jsonrpc v0.7.0/go.mod h1:lAUpS8BSVtKaA8+/CFUMA5dokMiSM7n0ehf8bHOFdpE=
github.com/filecoin-project/go-state-types v0.15.0 h1:GaUSCti0tGMzLg7fVpRjtNVGBvirbMFzLfyWbR+qzWE=
Expand Down
18 changes: 18 additions & 0 deletions src/rpc/methods/f3/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,22 @@ pub struct CertificateExchangeConfig {
pub maximum_poll_interval: Duration,
}

#[derive(PartialEq, Debug, Clone, Serialize, Deserialize, JsonSchema)]
#[serde(rename_all = "PascalCase")]
pub struct PubSubConfig {
pub compression_enabled: bool,
}

#[derive(PartialEq, Debug, Clone, Serialize, Deserialize, JsonSchema)]
#[serde(rename_all = "PascalCase")]
pub struct ChainExchangeConfig {
pub max_chain_length: usize,
pub max_discovered_chains_per_instance: usize,
pub max_instance_lookahead: usize,
pub max_wanted_chains_per_instance: usize,
pub subscription_buffer_size: usize,
}

#[serde_as]
#[derive(PartialEq, Debug, Clone, Serialize, Deserialize, JsonSchema)]
#[serde(rename_all = "PascalCase")]
Expand All @@ -262,6 +278,8 @@ pub struct F3Manifest {
#[serde(rename = "EC")]
pub ec: EcConfig,
pub certificate_exchange: CertificateExchangeConfig,
pub pub_sub: PubSubConfig,
pub chain_exchange: ChainExchangeConfig,
}
lotus_json_with_self!(F3Manifest);

Expand Down

0 comments on commit 28c705b

Please sign in to comment.