File tree 2 files changed +8
-11
lines changed
2 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 1
1
import type { TokenId } from "@wormhole-foundation/sdk-definitions" ;
2
- import type { AttestationReceipt , TransferReceipt } from "../types.js" ;
2
+ import type { AttestationReceipt , QuoteWarning , TransferReceipt } from "../types.js" ;
3
3
import type { amount } from "@wormhole-foundation/sdk-base" ;
4
4
5
5
// Extend Options to provide custom options
@@ -80,8 +80,3 @@ export type QuoteError = {
80
80
success : false ;
81
81
error : Error ;
82
82
} ;
83
-
84
- export type QuoteWarning = {
85
- message : string ;
86
- url ?: string ;
87
- } ;
Original file line number Diff line number Diff line change @@ -176,10 +176,12 @@ export interface TransferQuote {
176
176
destinationNativeGas ?: bigint ;
177
177
// If the transfer being quoted has any warnings
178
178
// such as high slippage or a delay, they will be included here
179
- warnings ?: TransferQuoteWarning [ ] ;
179
+ warnings ?: QuoteWarning [ ] ;
180
180
}
181
181
182
- export interface TransferQuoteWarning {
183
- message : string ;
184
- url ?: string ;
185
- }
182
+ export type QuoteWarning = DestinationCapacityWarning ;
183
+
184
+ export type DestinationCapacityWarning = {
185
+ type : "DestinationCapacityWarning" ;
186
+ delayDurationSec ?: number ;
187
+ } ;
You can’t perform that action at this time.
0 commit comments