Skip to content

Commit

Permalink
update beacon proto definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
YaroShkvorets committed Feb 22, 2024
1 parent 8182e5d commit 0c856ae
Show file tree
Hide file tree
Showing 9 changed files with 135 additions and 1,194 deletions.
4 changes: 2 additions & 2 deletions eth.blobs/Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
ENDPOINT ?= goerli-scdm37.mar.eosn.io:10016
ENDPOINT ?= goerli-scdm37b.mar.eosn.io:10016

.PHONY: build
build:
cargo build --target wasm32-unknown-unknown --release

.PHONY: codegen
codegen:
substreams protogen ./substreams.yaml --exclude-paths="sf/substreams,google"
substreams protogen ./substreams.yaml --exclude-paths="sf/substreams,google,sf/ethereum"

.PHONE: package
package: build
Expand Down
4 changes: 2 additions & 2 deletions eth.blobs/proto/blobs.proto
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ message Blob {
uint32 index = 11;
uint32 length = 12;
bytes data = 13;
string kzg_commitment = 14;
string kzg_proof = 15;
bytes kzg_commitment = 14;
bytes kzg_proof = 15;
}
267 changes: 0 additions & 267 deletions eth.blobs/proto/sf/beacon/type/v1/type.proto

This file was deleted.

8 changes: 4 additions & 4 deletions eth.blobs/src/pb/eth.blobs.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ pub struct Blob {
pub length: u32,
#[prost(bytes="vec", tag="13")]
pub data: ::prost::alloc::vec::Vec<u8>,
#[prost(string, tag="14")]
pub kzg_commitment: ::prost::alloc::string::String,
#[prost(string, tag="15")]
pub kzg_proof: ::prost::alloc::string::String,
#[prost(bytes="vec", tag="14")]
pub kzg_commitment: ::prost::alloc::vec::Vec<u8>,
#[prost(bytes="vec", tag="15")]
pub kzg_proof: ::prost::alloc::vec::Vec<u8>,
}
// @@protoc_insertion_point(module)
16 changes: 0 additions & 16 deletions eth.blobs/src/pb/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,4 @@ pub mod sf {
}
}
}
pub mod ethereum {
pub mod r#type {
// @@protoc_insertion_point(attribute:sf.ethereum.type.v1)
pub mod v1 {
include!("sf.ethereum.type.v1.rs");
// @@protoc_insertion_point(sf.ethereum.type.v1)
}
}
pub mod substreams {
// @@protoc_insertion_point(attribute:sf.ethereum.substreams.v1)
pub mod v1 {
include!("sf.ethereum.substreams.v1.rs");
// @@protoc_insertion_point(sf.ethereum.substreams.v1)
}
}
}
}
Loading

0 comments on commit 0c856ae

Please sign in to comment.