Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #8 from SocketDotTech/updates/op-rebates
Browse files Browse the repository at this point in the history
chores: added opRebate types
  • Loading branch information
salil-naik authored Jul 19, 2023
2 parents 112fa69 + 12e9e7a commit 5a36269
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/client/models/ExtraData.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { OpRebateData } from "./OpRebateData";

export type ExtraData = {
opRebateData?: OpRebateData;
};
7 changes: 7 additions & 0 deletions src/client/models/OpRebateData.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Token } from "./Token";

export type OpRebateData = {
amount: string;
asset: Token;
amountInUsd: number;
};
6 changes: 6 additions & 0 deletions src/client/models/Route.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { BridgeName } from "./BridgeDetails";
import type { ChainGasBalances } from "./ChainGasBalances";
import { ExtraData } from "./ExtraData";
import type { MinGasBalances } from "./MinGasBalances";
import { Token } from "./Token";
import { UserTx } from "./UserTx";
Expand Down Expand Up @@ -78,4 +79,9 @@ export type Route = {
asset: Token;
feeTakerAddress?: string;
};

/**
* Extra Data, includes OP Rebate details
*/
extraData?: ExtraData
};
2 changes: 2 additions & 0 deletions src/client/models/UserTx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { InsuranceFee } from "./InsuranceFee";
import { PrepareActiveRouteStatus } from "./RouteStatusOutputDTO";
import { TxType } from "./TxType";
import { UserTxType } from "./UserTxType";
import { ExtraData } from "./ExtraData";

export type Step = {
type: string;
Expand All @@ -28,6 +29,7 @@ export type Step = {
swapSlippage?: number;
insuranceFee?: InsuranceFee
minAmountOut?: string;
extraData?: ExtraData
};

export type UserTx = {
Expand Down

0 comments on commit 5a36269

Please sign in to comment.