@@ -155,23 +155,47 @@ export async function quote(options: quote.Options): Promise<quote.Result> {
155155 } ;
156156}
157157
158+ /**
159+ * Namespace containing types for the buy quote function.
160+ * @namespace quote
161+ * @bridge Buy
162+ */
158163export declare namespace quote {
164+ /**
165+ * Options for getting a buy quote.
166+ * @interface Options
167+ * @bridge Buy
168+ */
159169 type Options = {
170+ /** The origin chain ID */
160171 originChainId : number ;
172+ /** The origin token address */
161173 originTokenAddress : ox__Address . Address ;
174+ /** The destination chain ID */
162175 destinationChainId : number ;
176+ /** The destination token address */
163177 destinationTokenAddress : ox__Address . Address ;
178+ /** Your thirdweb client */
164179 client : ThirdwebClient ;
180+ /** Maximum number of steps in the route */
165181 maxSteps ?: number ;
166182 } & (
167183 | {
184+ /** The amount to buy in wei */
168185 buyAmountWei : bigint ;
169186 }
170187 | {
188+ /** The amount to spend in wei */
171189 amount : bigint ;
172190 }
173191 ) ;
174192
193+ /**
194+ * Result returned from getting a buy quote.
195+ * Contains quote details and intent information.
196+ * @interface Result
197+ * @bridge Buy
198+ */
175199 type Result = Quote & {
176200 intent : {
177201 originChainId : number ;
@@ -404,24 +428,50 @@ export async function prepare(
404428 } ;
405429}
406430
431+ /**
432+ * Namespace containing types for the buy prepare function.
433+ * @namespace prepare
434+ * @bridge Buy
435+ */
407436export declare namespace prepare {
437+ /**
438+ * Options for preparing a buy transaction.
439+ * @interface Options
440+ * @bridge Buy
441+ */
408442 type Options = {
443+ /** The origin chain ID */
409444 originChainId : number ;
445+ /** The origin token address */
410446 originTokenAddress : ox__Address . Address ;
447+ /** The destination chain ID */
411448 destinationChainId : number ;
449+ /** The destination token address */
412450 destinationTokenAddress : ox__Address . Address ;
451+ /** The sender address */
413452 sender : ox__Address . Address ;
453+ /** The receiver address */
414454 receiver : ox__Address . Address ;
455+ /** The amount to buy in wei */
415456 amount : bigint ;
457+ /** Your thirdweb client */
416458 client : ThirdwebClient ;
459+ /** Arbitrary purchase data */
417460 purchaseData ?: PurchaseData ;
461+ /** Maximum number of steps in the route */
418462 maxSteps ?: number ;
419463 /**
420464 * @hidden
421465 */
422466 paymentLinkId ?: string ;
423467 } ;
424468
469+ /**
470+ * Result returned from preparing a buy transaction.
471+ * Contains prepared quote with transaction data and intent information.
472+ * @interface Result
473+ * @bridge Buy
474+ */
425475 type Result = PreparedQuote & {
426476 intent : {
427477 originChainId : number ;
0 commit comments