33 lines
1.0 KiB
Protocol Buffer
33 lines
1.0 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package tycho.evm.v1;
|
|
|
|
import "tycho/evm/v1/common.proto";
|
|
|
|
// This file contains the definition for the native integration of Substreams.
|
|
|
|
// A component is a set of attributes that are associated with a custom entity.
|
|
message EntityChanges {
|
|
// A unique identifier of the entity within the protocol.
|
|
string component_id = 1;
|
|
// The set of attributes that are associated with the entity.
|
|
repeated Attribute attributes = 2;
|
|
}
|
|
|
|
message TransactionEntityChanges {
|
|
Transaction tx = 1;
|
|
repeated EntityChanges entity_changes = 2;
|
|
// An array of newly added components.
|
|
repeated ProtocolComponent component_changes = 3;
|
|
// An array of balance changes to components.
|
|
repeated BalanceChange balance_changes = 4;
|
|
}
|
|
|
|
// A set of transaction changes within a single block.
|
|
message BlockEntityChanges {
|
|
// The block for which these changes are collectively computed.
|
|
Block block = 1;
|
|
// The set of transaction changes observed in the specified block.
|
|
repeated TransactionEntityChanges changes = 2;
|
|
}
|