Skip to content

Commit

Permalink
feat: Trader Joe v2.1 types (#63)
Browse files Browse the repository at this point in the history
* feat: Trader Joe v2.1 types

- Add Trader Joe v2.1 DexName and DexType
- Add binStep to ActionBaseData and SwapDetails type
  • Loading branch information
corysquid authored Jun 7, 2024
1 parent 3f45d7e commit b38a790
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 2 additions & 0 deletions src/dexes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/path/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export interface ActionBaseData {
}[];
buckets: Buckets;
tickSpacing: number;
binStep: number;

// wrappers
address: string;
Expand Down
1 change: 1 addition & 0 deletions src/routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ export interface SwapDetails {
poolId: string;
poolFee: string;
tickSpacing: number;
binStep: number;
osmosisPools: {
poolId: string;
tokenOutDenom: string;
Expand Down

0 comments on commit b38a790

Please sign in to comment.