@rash2x/bridge-widget 0.1.13 → 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/evaa-bridge.cjs +446 -542
- package/dist/evaa-bridge.cjs.map +1 -1
- package/dist/evaa-bridge.mjs +447 -543
- package/dist/evaa-bridge.mjs.map +1 -1
- package/dist/index.d.ts +2 -10
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -159,8 +159,6 @@ 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 {
|
|
@@ -243,7 +241,7 @@ export declare function getDeliveryStatus(params: DeliveryStatusParams): Promise
|
|
|
243
241
|
|
|
244
242
|
export declare function getDestTokens(srcChainKey: string, srcTokenAddr: string): Promise<TokenWithDestination[]>;
|
|
245
243
|
|
|
246
|
-
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>;
|
|
247
245
|
|
|
248
246
|
/**
|
|
249
247
|
* Get human-readable amounts from quote
|
|
@@ -297,18 +295,12 @@ export declare function getQuotesByPriority(req: QuoteRequest): Promise<Quote |
|
|
|
297
295
|
|
|
298
296
|
export declare function getTokens(): Promise<Token[]>;
|
|
299
297
|
|
|
300
|
-
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>;
|
|
301
299
|
|
|
302
300
|
export declare function getTronBalances(tronWeb: TronWeb, address: string, tokens: Token[]): Promise<WalletBalances>;
|
|
303
301
|
|
|
304
|
-
export declare function isAddressValidForChain(chainKey?: string, addr?: string): boolean;
|
|
305
|
-
|
|
306
|
-
export declare const isEvmAddress: (a?: string) => boolean;
|
|
307
|
-
|
|
308
302
|
export declare function isNativeAddrEqual(chain: Chain | undefined, tokenAddr?: string): boolean;
|
|
309
303
|
|
|
310
|
-
export declare const isTronAddress: (a?: string) => boolean;
|
|
311
|
-
|
|
312
304
|
export declare const isZeroAddr: (a?: string) => boolean;
|
|
313
305
|
|
|
314
306
|
export declare function listAssetsForSelect(tokens: Token[]): Token[];
|
package/package.json
CHANGED