From b38a79071fcc4340bf37b7c8433ff67fd308d8e2 Mon Sep 17 00:00:00 2001 From: Cory <146833132+corysquid@users.noreply.github.com> Date: Thu, 6 Jun 2024 18:25:45 -0700 Subject: [PATCH] feat: Trader Joe v2.1 types (#63) * feat: Trader Joe v2.1 types - Add Trader Joe v2.1 DexName and DexType - Add binStep to ActionBaseData and SwapDetails type --- package.json | 2 +- src/dexes/index.ts | 2 ++ src/path/index.ts | 1 + src/routes/index.ts | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 8a3b008..c07f652 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@0xsquid/squid-types", - "version": "0.1.76", + "version": "0.1.77", "description": "JS and TS types relating to 0xsquid related projects.", "main": "dist/index.js", "types": "./dist/index.d.ts", diff --git a/src/dexes/index.ts b/src/dexes/index.ts index e96c0a2..7c9751a 100644 --- a/src/dexes/index.ts +++ b/src/dexes/index.ts @@ -56,6 +56,7 @@ export enum DexName { THENA_SOLIDLY = "Thena Solidly", THENA_V3 = "Thena V3", TRADERJOE_V2 = "Trader Joe V2", + TRADERJOE_V21 = "Trader Joe V2.1", TRIDENT = "Trident", THRUSTER_V3 = "Thruster V3", UBESWAP_V2 = "Ubeswap V2", @@ -86,6 +87,7 @@ export enum DexType { SADDLE = "saddle", SLIPSTREAM = "slipstream", SOLIDLY = "solidly", + TRADERJOE_V21 = "traderjoe-v21", TRIDENT = "trident", WOMBAT = "wombat", UNISWAP_V2 = "uniswap-v2", diff --git a/src/path/index.ts b/src/path/index.ts index ff86cb4..374ae13 100644 --- a/src/path/index.ts +++ b/src/path/index.ts @@ -55,6 +55,7 @@ export interface ActionBaseData { }[]; buckets: Buckets; tickSpacing: number; + binStep: number; // wrappers address: string; diff --git a/src/routes/index.ts b/src/routes/index.ts index 763bdc8..3a25414 100644 --- a/src/routes/index.ts +++ b/src/routes/index.ts @@ -126,6 +126,7 @@ export interface SwapDetails { poolId: string; poolFee: string; tickSpacing: number; + binStep: number; osmosisPools: { poolId: string; tokenOutDenom: string;