pinax-network / substreams-raw-blocks

Substreams Raw Blocks
MIT License
1 stars 2 forks source link

Implement EVM `Beacon` Chain raw blocks #23

Open DenisCarriere opened 2 weeks ago

DenisCarriere commented 2 weeks ago

Tables

Code examples

Blobs Subgraph

https://github.com/pinax-network/firehose-beacon/blob/main/proto/sf/beacon/type/v1/type.proto https://buf.build/pinax/firehose-beacon/docs/main:sf.beacon.type.v1

Dune example

https://dune.com/queries?category=canonical&namespace=beacon

Subgraph example

https://thegraph.com/explorer/subgraphs/AEwmTRZrEdrmsoRLvkXmXgP2q7TvcMVcCdGQUY8Cp6Mm?view=Query&chain=arbitrum-one

Protobuf

message Block {

  uint32 version = 1;

  Spec spec = 2;
  uint64 slot = 3;
  uint64 parent_slot = 4;
  bytes root = 5;
  bytes parent_root = 6;
  bytes state_root = 7;
  uint64 proposer_index = 8;
  bytes body_root = 9;

  oneof Body {
    Phase0Body phase0 = 20;
    AltairBody altair = 21;
    BellatrixBody bellatrix = 22;
    CapellaBody capella = 23;
    DenebBody deneb = 24;
  }

  bytes signature = 30;
  google.protobuf.Timestamp timestamp = 31;
}

message DenebBody {
  bytes rando_reveal = 1;
  Eth1Data eth1_data = 2;
  bytes graffiti = 3;
  repeated ProposerSlashing proposer_slashings = 4;
  repeated AttesterSlashing attester_slashings = 5;
  repeated Attestation attestations = 6;
  repeated Deposit deposits = 7;
  repeated SignedVoluntaryExit voluntary_exits = 8;
  SyncAggregate sync_aggregate = 9;
  DenebExecutionPayload execution_payload = 10;
  repeated SignedBLSToExecutionChange bls_to_execution_changes = 11;
  repeated bytes blob_kzg_commitments = 12;

  repeated Blob embedded_blobs = 20;
}