@spicenet-io/spiceflow-ui 1.7.2 → 1.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -34,7 +34,7 @@ export interface BalanceData {
34
34
  creditItems?: AccountItem[];
35
35
  }
36
36
  export interface SpiceBalanceProps {
37
- balanceData?: BalanceData;
37
+ balanceData: BalanceData;
38
38
  isLoading?: boolean;
39
39
  onRefresh?: () => void;
40
40
  styles?: any;
@@ -19,7 +19,8 @@ export interface SpiceDepositResponse {
19
19
  }
20
20
  export interface DepositWidgetProps {
21
21
  depositBatches: ChainBatch[];
22
- tokenAddress?: Address;
22
+ tokenAddress: Address;
23
+ tokenDecimals: number;
23
24
  supportedChains: number[];
24
25
  theme?: ThemeMode;
25
26
  styles?: CustomStyles;
@@ -54,6 +54,15 @@ export declare class RelayerService {
54
54
  status: "pending" | "processing" | "success" | "failed";
55
55
  };
56
56
  }>;
57
+ requestSpiceUsdAirdrop(params: {
58
+ chainId: number;
59
+ address: string;
60
+ }): Promise<{
61
+ success: boolean;
62
+ txHash?: string;
63
+ amount?: string;
64
+ errorMessage?: string;
65
+ }>;
57
66
  }
58
67
  export declare const relayerService: RelayerService;
59
68
  export declare const createInitialSteps: (chainBatches: ChainBatch[], customGetChainName?: (chainId: number) => string) => SwapStep[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spicenet-io/spiceflow-ui",
3
- "version": "1.7.2",
3
+ "version": "1.7.4",
4
4
  "description": "Spiceflow UI SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs.js",