Skip to content

Commit

Permalink
Merge pull request #8 from tinymanorg/feat/add-selectable-assets-para…
Browse files Browse the repository at this point in the history
…meter

feat: Add selectable assets parameter
  • Loading branch information
Anlerkan authored May 30, 2024
2 parents 1b815da + fdd5f19 commit 2b69fcb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/WidgetController.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ export enum SwapWidgetSearchParamKey {
/** The account which the platform fee will be paid to. It is required if ` `PLATFORM_FEE_PERCENTAGE` is provided */
PLATFORM_FEE_ACCOUNT = "platformFeeAccount",

PLATFORM_NAME = "platformName"
PLATFORM_NAME = "platformName",

SELECTABLE_ASSETS = "selectableAssets"
}

export interface SwapWidgetThemeColorVariables {
Expand Down Expand Up @@ -119,7 +121,6 @@ export enum SwapWidgetBorderRadiusSize {

type GenerateWidgetIframeUrlBaseParams = {
platformName: string;

network?: NetworkToggleValue;
/** theme variables to customize the UI of the widget */
themeVariables?: SwapWidgetThemeVariables;
Expand All @@ -132,6 +133,8 @@ type GenerateWidgetIframeUrlBaseParams = {
* order: [assetInId, assetOutId]
*/
assetIds?: [number, number];
/** If provided, only the assets with the given ids will be displayed in the asset select modal */
selectableAssets?: number[];
};

type GenerateWidgetIframeUrlSignerParams =
Expand Down

0 comments on commit 2b69fcb

Please sign in to comment.