Skip to content

Commit

Permalink
rfq additions
Browse files Browse the repository at this point in the history
  • Loading branch information
corysquid committed Aug 15, 2024
1 parent b62742c commit 78343da
Show file tree
Hide file tree
Showing 4 changed files with 25 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.97",
"version": "0.1.98",
"description": "JS and TS types relating to 0xsquid related projects.",
"main": "dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
3 changes: 3 additions & 0 deletions src/path/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,11 @@ export interface ActionBaseData {

// bridges
name: string;

// rfq
provider: string;
liquidityProvider: string;
fillerAddress: string;
}

export interface PathAction {
Expand Down
19 changes: 19 additions & 0 deletions src/rfq/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,22 @@ export enum HubEventType {
SETTLEMENT_FILLED = "SettlementFilled",
SETTLEMENT_PROCESSED = "SettlementProcessed",
}

export type Order = {
fromAddress: string;
toAddress: string;
filler: string;
fromToken: string;
toToken: string;
expiry: string;
fromAssetType: string;
toAssetType: string;
fromAmount: string;
tokenId: string;
fillAmount: string;
fillTokenId: string;
feeRate: string;
fromChain: string;
toChain: string;
postHookHash: string;
};
2 changes: 2 additions & 0 deletions src/routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ export interface LiquidityProviderDetails {
name: string;
logoURI?: string;
calls?: ChainCall[];
fillerAddress: string;
expiry: string;
}

export interface Integrator {
Expand Down

0 comments on commit 78343da

Please sign in to comment.