Files
tycho-protocol-sdk/substreams/ethereum-uniswap-v3/proto/v1/uniswap.proto
TAMARA LIPOWSKI 6cc1dcc505 fix: UniswapV3 proto definition
This fixes the error:
test-runner-1  | 2025-09-20T00:59:08.199125Z ERROR Substreams pack command failed: Error: validation failed: module "map_balance_changes" has invalid proto output type "proto:tycho.evm.uniswap.v3.BalanceDeltas": proto message type "tycho.evm.uniswap.v3.BalanceDeltas" not found in package proto definitions

And now it matches how it's done in UniswapV2
2025-09-26 10:31:31 -04:00

29 lines
695 B
Protocol Buffer

syntax = "proto3";
package tycho.evm.uniswap.v3;
message Pool {
bytes address = 1;
bytes token0 = 2;
bytes token1 = 3;
bytes created_tx_hash = 4;
}
// A change to a pool's balance.
message BalanceDelta {
// The address of the ERC20 token.
bytes token_address = 1;
// The delta of the token.
bytes amount = 2;
// The sign of the delta, true for positive, false for negative.
bool sign = 3;
// The address of the pool whose balance changed.
bytes pool_address = 4;
// Used to determine the order of the balance changes. Necessary for the balance store.
uint64 ordinal = 5;
}
// A group of BalanceDelta
message BalanceDeltas {
repeated BalanceDelta deltas = 1;
}