Skip to content

Commit aa58261

Browse files
committed
sync
1 parent 20fa69f commit aa58261

File tree

2 files changed

+61
-1
lines changed

2 files changed

+61
-1
lines changed

packages/sdk/src/routes/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export const routes = [
3030
"/transactions/index",
3131
"/transactions/single",
3232
"/transactions/status",
33+
"/swap-sources",
3334
"/loadforge.txt",
3435
"/conduit/install",
3536
"/prices/rates",

packages/sdk/src/types/api.ts

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2665,6 +2665,8 @@ export interface paths {
26652665
originGasOverhead?: number;
26662666
/** @description The payer to be set for deposit transactions on solana. This account must have enough for fees and rent. */
26672667
depositFeePayer?: string;
2668+
/** @description Whether to include compute unit limit instruction for solana origin requests. */
2669+
includeComputeUnitLimit?: boolean;
26682670
};
26692671
};
26702672
};
@@ -3891,12 +3893,30 @@ export interface paths {
38913893
s: string;
38923894
}[];
38933895
};
3894-
/** @description Options related to gas fee sponsorship and app referrer */
3896+
/** @description Options related to gas fee sponsorship, app referrer and destination calls */
38953897
executionOptions: {
38963898
/** @description The referrer of the app which is executing the gasless transaction */
38973899
referrer: string;
38983900
/** @description If the app should pay for the fees associated with the request */
38993901
subsidizeFees: boolean;
3902+
/** @description Destination execution data for the gasless transaction */
3903+
destinationChainExecutionData?: {
3904+
/** @description Calls to be executed on the destination chain */
3905+
calls: {
3906+
to?: string;
3907+
value?: string;
3908+
data?: string;
3909+
}[];
3910+
/** @description Authorization list for EIP-7702 transactions to be executed on destination chain */
3911+
authorizationList?: {
3912+
chainId: number;
3913+
address: string;
3914+
nonce: number;
3915+
yParity: number;
3916+
r: string;
3917+
s: string;
3918+
}[];
3919+
};
39003920
};
39013921
/** @description The request ID of the gasless transaction to execute */
39023922
requestId?: string;
@@ -3975,6 +3995,8 @@ export interface paths {
39753995
"application/json": {
39763996
/** @description The request ID of the request that needs to be fast filled */
39773997
requestId: string;
3998+
/** @description The input currency amount that the solver receives on origin */
3999+
solverInputCurrencyAmount?: string;
39784000
};
39794001
};
39804002
};
@@ -4834,6 +4856,13 @@ export interface paths {
48344856
amountUsd?: string;
48354857
amountUsdCurrent?: string;
48364858
}[];
4859+
paidAppFees?: {
4860+
recipient?: string;
4861+
bps?: string;
4862+
amount?: string;
4863+
amountUsd?: string;
4864+
amountUsdCurrent?: string;
4865+
}[];
48374866
metadata?: {
48384867
sender?: string;
48394868
recipient?: string;
@@ -5248,6 +5277,36 @@ export interface paths {
52485277
};
52495278
};
52505279
};
5280+
"/swap-sources": {
5281+
get: {
5282+
parameters: {
5283+
query?: {
5284+
/** @description Chain ID to get swap sources for */
5285+
chainId?: number;
5286+
};
5287+
};
5288+
responses: {
5289+
/** @description Default Response */
5290+
200: {
5291+
content: {
5292+
"application/json": {
5293+
/** @description An array of swap sources */
5294+
sources?: string[];
5295+
};
5296+
};
5297+
};
5298+
/** @description Default Response */
5299+
400: {
5300+
content: {
5301+
"application/json": {
5302+
/** @description Descriptive error message */
5303+
message?: string;
5304+
};
5305+
};
5306+
};
5307+
};
5308+
};
5309+
};
52515310
"/loadforge.txt": {
52525311
get: {
52535312
responses: {

0 commit comments

Comments
 (0)