Skip to content

Commit f4380cf

Browse files
committed
[AUTOMATED] Update: api/proto/clients/api.gen.ts
1 parent fdd82f3 commit f4380cf

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

packages/api/src/api.gen.ts

+19-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-disable */
2-
// sequence-api v0.4.0 0580c7cd532b929e98c1b5f5021dfc8c68219acf
2+
// sequence-api v0.4.0 9e439c112c52a5710d0d53747f39d2d58a811bbe
33
// --
44
// Code generated by [email protected] with typescript generator. DO NOT EDIT.
55
//
@@ -16,7 +16,7 @@ export const WebRPCVersion = 'v1'
1616
export const WebRPCSchemaVersion = 'v0.4.0'
1717

1818
// Schema hash generated from your RIDL schema
19-
export const WebRPCSchemaHash = '0580c7cd532b929e98c1b5f5021dfc8c68219acf'
19+
export const WebRPCSchemaHash = '9e439c112c52a5710d0d53747f39d2d58a811bbe'
2020

2121
type WebrpcGenVersions = {
2222
webrpcGenVersion: string
@@ -481,6 +481,19 @@ export interface SwapQuote {
481481
approveData: string
482482
}
483483

484+
export interface SwapQuoteV2 {
485+
currencyAddress: string
486+
currencyBalance: string
487+
price: string
488+
maxPrice: string
489+
to: string
490+
transactionData: string
491+
transactionValue: string
492+
approveData: string
493+
amount: string
494+
amountMin: string
495+
}
496+
484497
export interface CurrencyGroup {
485498
name: string
486499
tokens: Array<CurrencyGroupToken>
@@ -1542,14 +1555,15 @@ export interface GetSwapQuoteV2Args {
15421555
userAddress: string
15431556
buyCurrencyAddress: string
15441557
sellCurrencyAddress: string
1545-
buyAmount: string
1558+
buyAmount?: string
1559+
sellAmount?: string
15461560
chainId: number
15471561
includeApprove: boolean
15481562
slippagePercentage?: number
15491563
}
15501564

15511565
export interface GetSwapQuoteV2Return {
1552-
swapQuote: SwapQuote
1566+
swapQuote: SwapQuoteV2
15531567
}
15541568
export interface GetLifiChainsArgs {}
15551569

@@ -2835,7 +2849,7 @@ export class API implements API {
28352849
res => {
28362850
return buildResponse(res).then(_data => {
28372851
return {
2838-
swapQuote: <SwapQuote>_data.swapQuote
2852+
swapQuote: <SwapQuoteV2>_data.swapQuote
28392853
}
28402854
})
28412855
},

0 commit comments

Comments
 (0)