Skip to content

Commit

Permalink
make aggregator params optional for now
Browse files Browse the repository at this point in the history
  • Loading branch information
sumxu96 committed Oct 17, 2024
1 parent 680db91 commit 74d465e
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/types/offramp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ export type BaseOffRampAppParams = {
* single address for each network your app supports. Users will be able to cash out any owned assets supported by any of
* the networks you specify. See the assets parameter if you want to restrict the available assets.
*
* Some common examples:
* Example:
*
* Show all assets users have on the base network, only on the base network:
* Show all assets users have on the base, only on the base network:
*
* `{ "0x1": ["base"] }`
*
*/
addresses?: Record<string, string[]>;
/** A URL that the user will be redirected to after to sign their transaction after the transaction has been committed. */
Expand All @@ -18,7 +19,7 @@ export type BaseOffRampAppParams = {
* This optional parameter will restrict the assets available for the user to cash out. It acts as a filter on the
* networks specified in the {addresses} param.
*
* Some common examples:
* Example:
*
* Support only USDC on either the base network or the ethereum network:
*
Expand All @@ -41,12 +42,12 @@ export type BaseOffRampAppParams = {
};

export type OffRampAggregatorAppParams = {
quoteId: string;
defaultAsset: string;
quoteId?: string;
defaultAsset?: string;
defaultNetwork?: string;
defaultCashoutMethod: string; // "CRYPTO_ACCOUNT" | "FIAT_WALLET" | "CARD" | "ACH_BANK_ACCOUNT" | "PAYPAL"
presetFiatAmount: number;
fiatCurrency: string;
defaultCashoutMethod?: string; // "CRYPTO_ACCOUNT" | "FIAT_WALLET" | "CARD" | "ACH_BANK_ACCOUNT" | "PAYPAL"
presetFiatAmount?: number;
fiatCurrency?: string;
};

export type OffRampAppParams =
Expand Down

0 comments on commit 74d465e

Please sign in to comment.