feat: lots of refactoring (file splitting

- `lib.rs` split into multiple files with `modules.rs` being the main entrypoint for substreams
- contract changes are tracked similiarly to ambient (generalized to use a store of tracked contracts)
- static attributes were pruned of the dynamic ones
This commit is contained in:
0xMochan
2024-01-29 11:11:06 -05:00
parent 4d56335f2e
commit 9f82671082
9 changed files with 744 additions and 502 deletions

View File

@@ -70,8 +70,13 @@ message ProtocolComponent {
ChangeType change = 5;
}
message ProtocolComponents {
repeated ProtocolComponent components = 1;
message TransactionProtocolComponents {
Transaction tx = 1;
repeated ProtocolComponent components = 2;
}
message GroupedTransactionProtocolComponents {
repeated TransactionProtocolComponents tx_components = 1;
}
// A struct for following the changes of Total Value Locked (TVL) of a protocol component.