0.4.2 • Published 8 months ago

@glitter-finance/widget v0.4.2

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

Glitter Bridge Widget

Installation

npm i @glitter-finance/sdk-web @glitter-finance/widget 

Config & Usage

import type { WidgetConfiguration } from "@glitter-finance/widget";
import { Widget } from "@glitter-finance/widget";
import type { ChainNames } from "@glitter-finance/sdk-web";
import type { Theme } from "@mui/material";

const myConfig: WidgetConfiguration = {
  options: {
    sourceToken: string;
    sourceNetwork: (typeof ChainNames)[keyof typeof ChainNames];
    sourceWalletAddress: string;
    sourceWallet: "defly" | "pera" | "phantom" | "solflare" | "metamask" | "coin98" | "core" | "walletConnect" | "tronlink" | "exodus"
  };
  features: {
    integrationSection: boolean;
  };
  themeOverrides: Partial<Theme>;
}

export function MyApp() {
    return <Widget config={myConfig} />
}
0.4.2

8 months ago

0.4.1

8 months ago

0.4.0

9 months ago

0.3.2

9 months ago

0.3.1

9 months ago

0.3.0

9 months ago

0.2.0

9 months ago

0.1.1

9 months ago

0.1.0

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago