Clone proto and substreams from tycho-indexer

This commit is contained in:
pistomat
2023-12-20 14:29:26 +01:00
parent 4f280b9b9c
commit 8a7271bc59
22 changed files with 2599 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
syntax = "proto3";
package tycho.evm.v1;
message Block {
bytes hash = 1;
bytes parent_hash = 2;
uint64 number = 3;
uint64 ts = 4;
}
message Transaction {
bytes hash = 1;
bytes from = 2;
bytes to = 3;
uint64 index = 4;
}
enum ChangeType {
CHANGE_TYPE_UNSPECIFIED = 0;
CHANGE_TYPE_UPDATE = 1;
CHANGE_TYPE_CREATION = 2;
CHANGE_TYPE_DELETION = 3;
}
message Attribute {
string name = 1;
bytes value = 2;
ChangeType change = 3;
}
message ProtocolComponent {
string id = 1;
repeated bytes tokens = 2;
repeated string contracts = 3;
repeated Attribute static_att = 4;
ChangeType change = 5;
}
message BalanceChange {
bytes token = 1;
bytes balance = 2;
bytes component_id = 3;
}