This commit is contained in:
tim
2025-09-25 13:07:16 -04:00
parent adb80ee7c9
commit ebce35c972
2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
package stream.dto;
enum Exchange {
UNISWAP_V2,
UNISWAP_V3,
UNISWAP_V4,
}

View File

@@ -0,0 +1,18 @@
package stream.dto;
import java.io.Serial;
import java.math.BigDecimal;
public class Swap extends ChainId {
@Serial
private static final long serialVersionUID = 1L;
Long time; // milliseconds
Exchange exchange;
String pool; // address
String takerAsset; // token address
String makerAsset; // token address
BigDecimal amount; // positive means the taker bought; negative means the taker sold.
BigDecimal price;
}