1
1
/* eslint-disable */
2
- // sequence-api v0.4.0 0580c7cd532b929e98c1b5f5021dfc8c68219acf
2
+ // sequence-api v0.4.0 9e439c112c52a5710d0d53747f39d2d58a811bbe
3
3
// --
4
4
// Code generated by [email protected] with typescript generator. DO NOT EDIT.
5
5
//
@@ -16,7 +16,7 @@ export const WebRPCVersion = 'v1'
16
16
export const WebRPCSchemaVersion = 'v0.4.0'
17
17
18
18
// Schema hash generated from your RIDL schema
19
- export const WebRPCSchemaHash = '0580c7cd532b929e98c1b5f5021dfc8c68219acf '
19
+ export const WebRPCSchemaHash = '9e439c112c52a5710d0d53747f39d2d58a811bbe '
20
20
21
21
type WebrpcGenVersions = {
22
22
webrpcGenVersion : string
@@ -481,6 +481,19 @@ export interface SwapQuote {
481
481
approveData : string
482
482
}
483
483
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
+
484
497
export interface CurrencyGroup {
485
498
name : string
486
499
tokens : Array < CurrencyGroupToken >
@@ -1542,14 +1555,15 @@ export interface GetSwapQuoteV2Args {
1542
1555
userAddress : string
1543
1556
buyCurrencyAddress : string
1544
1557
sellCurrencyAddress : string
1545
- buyAmount : string
1558
+ buyAmount ?: string
1559
+ sellAmount ?: string
1546
1560
chainId : number
1547
1561
includeApprove : boolean
1548
1562
slippagePercentage ?: number
1549
1563
}
1550
1564
1551
1565
export interface GetSwapQuoteV2Return {
1552
- swapQuote : SwapQuote
1566
+ swapQuote : SwapQuoteV2
1553
1567
}
1554
1568
export interface GetLifiChainsArgs { }
1555
1569
@@ -2835,7 +2849,7 @@ export class API implements API {
2835
2849
res => {
2836
2850
return buildResponse ( res ) . then ( _data => {
2837
2851
return {
2838
- swapQuote : < SwapQuote > _data . swapQuote
2852
+ swapQuote : < SwapQuoteV2 > _data . swapQuote
2839
2853
}
2840
2854
} )
2841
2855
} ,
0 commit comments