Skip to content

Commit

Permalink
Merge pull request #33 from moonstream-to/default-protobuf-encoder
Browse files Browse the repository at this point in the history
Modified proto structure
  • Loading branch information
Andrei-Dolgolev authored Jul 10, 2024
2 parents 0463d25 + 2317b0c commit e435f32
Show file tree
Hide file tree
Showing 42 changed files with 5,434 additions and 2,995 deletions.
479 changes: 330 additions & 149 deletions blockchain/arbitrum_one/arbitrum_one.go

Large diffs are not rendered by default.

243 changes: 160 additions & 83 deletions blockchain/arbitrum_one/arbitrum_one_index_types.pb.go

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions blockchain/arbitrum_one/arbitrum_one_index_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ message ArbitrumOneTransaction {
string v = 18; // Used as a field to match potential EIP-1559 transaction types
string r = 19; // Used as a field to match potential EIP-1559 transaction types
string s = 20; // Used as a field to match potential EIP-1559 transaction types

repeated ArbitrumOneTransactionAccessList access_list = 21;
string y_parity = 22; // Used as a field to match potential EIP-1559 transaction types
repeated ArbitrumOneEventLog logs = 25; // The logs included in this block
}

// Represents a block in the Arbitrum blockchain
Expand All @@ -57,7 +57,6 @@ message ArbitrumOneBlock {
string transactions_root = 18; // The root hash of the transactions trie
uint64 indexed_at = 19; // When the block was indexed by crawler
repeated ArbitrumOneTransaction transactions = 20; // The transactions included in this block

string mix_hash = 21; // The timestamp of this block
string send_count = 22; // The number of sends in this block
string send_root = 23; // The root hash of the sends trie
Expand All @@ -74,4 +73,8 @@ message ArbitrumOneEventLog {
bool removed = 7; // True if the log was reverted due to a chain reorganization
uint64 log_index = 8; // The index of the log in the block
uint64 transaction_index = 9; // The index of the transaction in the block
}
}

message ArbitrumOneBlocksBatch {
repeated ArbitrumOneBlock blocks = 1;
}
Loading

0 comments on commit e435f32

Please sign in to comment.