@rash2x/bridge-widget 0.1.12 → 0.1.15

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.
package/dist/index.d.ts CHANGED
@@ -159,14 +159,13 @@ declare interface DeliveryStatusParams {
159
159
  srcTxHash: string;
160
160
  }
161
161
 
162
- export declare function dollarsFromNativeFees(feeNative: string, feeLzToken: string, chain: Chain | undefined, tokens: Token[] | undefined): number;
163
-
164
162
  export declare const EvaaBridge: (props: EvaaBridgeProps) => JSX.Element;
165
163
 
166
164
  export declare interface EvaaBridgeProps {
167
165
  className?: string;
168
166
  tonClient?: TonClient;
169
167
  tonApiKey?: string;
168
+ defaultLanguage?: string;
170
169
  onInitialized?: () => void;
171
170
  onSwapStart?: (data: SwapStartData) => void;
172
171
  onSwapSuccess?: (data: SwapSuccessData) => void;
@@ -242,7 +241,7 @@ export declare function getDeliveryStatus(params: DeliveryStatusParams): Promise
242
241
 
243
242
  export declare function getDestTokens(srcChainKey: string, srcTokenAddr: string): Promise<TokenWithDestination[]>;
244
243
 
245
- export declare function getEvmBalances(publicClient: PublicClient, address: string, tokens: Token[], priorityToken?: Token): Promise<WalletBalances>;
244
+ export declare function getEvmBalances(publicClient: PublicClient, address: string, tokens: Token[], chainKey: string, priorityToken?: Token): Promise<WalletBalances>;
246
245
 
247
246
  /**
248
247
  * Get human-readable amounts from quote
@@ -296,18 +295,12 @@ export declare function getQuotesByPriority(req: QuoteRequest): Promise<Quote |
296
295
 
297
296
  export declare function getTokens(): Promise<Token[]>;
298
297
 
299
- export declare function getTonBalances(address: string, tokens: Token[], customTonClient?: TonClient, tonApiKey?: string): Promise<WalletBalances>;
298
+ export declare function getTonBalances(address: string, tokens: Token[], chainKey: string, customTonClient?: TonClient, tonApiKey?: string): Promise<WalletBalances>;
300
299
 
301
300
  export declare function getTronBalances(tronWeb: TronWeb, address: string, tokens: Token[]): Promise<WalletBalances>;
302
301
 
303
- export declare function isAddressValidForChain(chainKey?: string, addr?: string): boolean;
304
-
305
- export declare const isEvmAddress: (a?: string) => boolean;
306
-
307
302
  export declare function isNativeAddrEqual(chain: Chain | undefined, tokenAddr?: string): boolean;
308
303
 
309
- export declare const isTronAddress: (a?: string) => boolean;
310
-
311
304
  export declare const isZeroAddr: (a?: string) => boolean;
312
305
 
313
306
  export declare function listAssetsForSelect(tokens: Token[]): Token[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rash2x/bridge-widget",
3
- "version": "0.1.12",
3
+ "version": "0.1.15",
4
4
  "description": "Cross-chain bridge widget powered by Stargate Protocol with multi-chain wallet support",
5
5
  "type": "module",
6
6
  "main": "./dist/evaa-bridge.cjs",