Skip to content

Commit

Permalink
feat: hook and postHook type changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdev3 committed May 20, 2024
1 parent f66adce commit d73c32a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
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.66",
"version": "0.1.67",
"description": "JS and TS types relating to 0xsquid related projects.",
"main": "dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
7 changes: 4 additions & 3 deletions src/routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export interface RouteRequest {
quoteOnly?: boolean;
enableBoost?: boolean;
preHook?: Hook;
postHook?: Hook;
postHook?: Omit<Hook, "fundAmount" | "fundToken">;
prefer?: DexName[];
receiveGasOnDestination?: boolean;
fallbackAddresses?: FallbackAddress[];
Expand All @@ -53,7 +53,7 @@ export interface RouteRequestPopulated {
quoteOnly?: boolean;
enableBoost?: boolean;
preHook?: Hook;
postHook?: Hook;
postHook?: Omit<Hook, "fundAmount" | "fundToken">;
prefer?: DexName[];
receiveGasOnDestination?: boolean;
fallbackAddresses?: FallbackAddress[];
Expand Down Expand Up @@ -160,7 +160,8 @@ export interface Hook {
fundToken: string;
calls: ChainCall[];
description: string;
hookUri?: string;
hookUri: string;
provider: string;
}

export interface FallbackAddress {
Expand Down

0 comments on commit d73c32a

Please sign in to comment.