Skip to content

Commit 5ce6438

Browse files
Merge pull request #4 from pinax-network/fusaka
Update upstream deps
2 parents 487c52d + 8dfa312 commit 5ce6438

File tree

7 files changed

+29
-6
lines changed

7 files changed

+29
-6
lines changed

proto/pinax/ethereum/blobs/v1/blobs.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ enum Spec {
1414
CAPELLA = 4;
1515
DENEB = 5;
1616
ELECTRA = 6;
17+
FUSAKA = 7;
1718
}
1819

1920
message Slot {

substreams/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

substreams/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "eth_blobs"
3-
version = "0.7.0"
3+
version = "0.7.1"
44
edition = "2021"
55

66
[lib]

substreams/src/lib.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,17 @@ fn map_blobs(blk: BeaconBlock) -> Result<Slot, substreams::errors::Error> {
3131
kzg_commitment_inclusion_proof: b.kzg_commitment_inclusion_proof,
3232
})
3333
.collect(),
34+
Fusaka(body) => body
35+
.embedded_blobs
36+
.into_iter()
37+
.map(|b| Blob {
38+
index: b.index as u32,
39+
blob: b.blob,
40+
kzg_commitment: b.kzg_commitment,
41+
kzg_proof: b.kzg_proof,
42+
kzg_commitment_inclusion_proof: b.kzg_commitment_inclusion_proof,
43+
})
44+
.collect(),
3445
_ => vec![],
3546
};
3647

substreams/src/pb/pinax.ethereum.blobs.v1.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ pub enum Spec {
4646
Bellatrix = 3,
4747
Capella = 4,
4848
Deneb = 5,
49+
Electra = 6,
50+
Fusaka = 7,
4951
}
5052
impl Spec {
5153
/// String value of the enum field names used in the ProtoBuf definition.
@@ -60,6 +62,8 @@ impl Spec {
6062
Spec::Bellatrix => "BELLATRIX",
6163
Spec::Capella => "CAPELLA",
6264
Spec::Deneb => "DENEB",
65+
Spec::Electra => "ELECTRA",
66+
Spec::Fusaka => "FUSAKA",
6367
}
6468
}
6569
/// Creates an enum from field names used in the ProtoBuf definition.
@@ -71,6 +75,8 @@ impl Spec {
7175
"BELLATRIX" => Some(Self::Bellatrix),
7276
"CAPELLA" => Some(Self::Capella),
7377
"DENEB" => Some(Self::Deneb),
78+
"ELECTRA" => Some(Self::Electra),
79+
"FUSAKA" => Some(Self::Fusaka),
7480
_ => None,
7581
}
7682
}

substreams/src/pb/sf.beacon.type.v1.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub struct Block {
2424
pub signature: ::prost::alloc::vec::Vec<u8>,
2525
#[prost(message, optional, tag="31")]
2626
pub timestamp: ::core::option::Option<::prost_types::Timestamp>,
27-
#[prost(oneof="block::Body", tags="20, 21, 22, 23, 24, 25")]
27+
#[prost(oneof="block::Body", tags="20, 21, 22, 23, 24, 25, 26")]
2828
pub body: ::core::option::Option<block::Body>,
2929
}
3030
/// Nested message and enum types in `Block`.
@@ -44,6 +44,8 @@ pub mod block {
4444
Deneb(super::DenebBody),
4545
#[prost(message, tag="25")]
4646
Electra(super::ElectraBody),
47+
#[prost(message, tag="26")]
48+
Fusaka(super::ElectraBody),
4749
}
4850
}
4951
#[allow(clippy::derive_partial_eq_without_eq)]
@@ -546,6 +548,7 @@ pub enum Spec {
546548
Capella = 4,
547549
Deneb = 5,
548550
Electra = 6,
551+
Fusaka = 7,
549552
}
550553
impl Spec {
551554
/// String value of the enum field names used in the ProtoBuf definition.
@@ -561,6 +564,7 @@ impl Spec {
561564
Spec::Capella => "CAPELLA",
562565
Spec::Deneb => "DENEB",
563566
Spec::Electra => "ELECTRA",
567+
Spec::Fusaka => "FUSAKA",
564568
}
565569
}
566570
/// Creates an enum from field names used in the ProtoBuf definition.
@@ -573,6 +577,7 @@ impl Spec {
573577
"CAPELLA" => Some(Self::Capella),
574578
"DENEB" => Some(Self::Deneb),
575579
"ELECTRA" => Some(Self::Electra),
580+
"FUSAKA" => Some(Self::Fusaka),
576581
_ => None,
577582
}
578583
}

substreams/substreams.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
specVersion: v0.1.0
22
package:
33
name: "eth_blobs"
4-
version: v0.7.0
4+
version: v0.7.1
55
image: ./logo.png
66
doc: |
77
This substreams package lets you stream Consensus Layer EIP-4844 blobs with attached meta data.
@@ -15,9 +15,9 @@ package:
1515
- chiado-cl: chiado-cl.substreams.pinax.network:443
1616
1717
imports:
18-
beacon: https://github.com/pinax-network/firehose-beacon/releases/download/beacon-spkg-v0.6.0/beacon-v0.6.0.spkg
18+
beacon: https://github.com/pinax-network/firehose-beacon/releases/download/v0.7.1/beacon-v0.7.0.spkg
1919
kv: https://github.com/streamingfast/substreams-sink-kv/releases/download/v2.1.6/substreams-sink-kv-v2.1.6.spkg
20-
entity: https://github.com/streamingfast/substreams-entity-change/releases/download/v1.1.0/substreams-entity-change-v1.1.0.spkg
20+
entity: https://github.com/streamingfast/substreams-sink-entity-changes/releases/download/v1.3.2/substreams-sink-entity-changes-v1.3.2.spkg
2121

2222
protobuf:
2323
files:

0 commit comments

Comments
 (0)