@rash2x/bridge-widget 0.7.4 → 0.7.6
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 +3 -1
- package/dist/evaa-bridge.cjs.map +1 -1
- package/dist/evaa-bridge.mjs +14 -12
- package/dist/{index-Giyq4_RJ.js → index-CDaFAnWU.js} +2 -2
- package/dist/{index-Giyq4_RJ.js.map → index-CDaFAnWU.js.map} +1 -1
- package/dist/{index-DGMnvCZU.js → index-CF3yEUFF.js} +113 -49
- package/dist/index-CF3yEUFF.js.map +1 -0
- package/dist/{index-Cvo_dMKt.cjs → index-CbuEGPY8.cjs} +102 -38
- package/dist/index-CbuEGPY8.cjs.map +1 -0
- package/dist/{index-B9T9OLH8.cjs → index-DzUouoJg.cjs} +2 -2
- package/dist/{index-B9T9OLH8.cjs.map → index-DzUouoJg.cjs.map} +1 -1
- package/dist/index.d.ts +9 -3
- package/package.json +1 -1
- package/dist/index-Cvo_dMKt.cjs.map +0 -1
- package/dist/index-DGMnvCZU.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -198,7 +198,7 @@ declare class ChainStrategyRegistry {
|
|
|
198
198
|
* Compute fee breakdown: message fee in native token, bridge fee in transfer token,
|
|
199
199
|
* gas on destination in dst native token, total in USD
|
|
200
200
|
*/
|
|
201
|
-
export declare function computeFeeBreakdownUsd(quote: Quote | undefined, srcToken: Token | undefined, tokens: Token[] | undefined, chains: Chain[] | undefined): FeeBreakdown;
|
|
201
|
+
export declare function computeFeeBreakdownUsd(quote: Quote | undefined, srcToken: Token | undefined, tokens: Token[] | undefined, chains: Chain[] | undefined, srcChain?: Chain, dstChain?: Chain): FeeBreakdown;
|
|
202
202
|
|
|
203
203
|
declare interface ConnectedWalletActions {
|
|
204
204
|
setTonConnected: (connected: boolean) => void;
|
|
@@ -391,7 +391,7 @@ export declare function getQuoteAmounts(quote: Quote | undefined, srcToken: Toke
|
|
|
391
391
|
/**
|
|
392
392
|
* Get complete quote details for UI display
|
|
393
393
|
*/
|
|
394
|
-
export declare function getQuoteDetails(quote: Quote | undefined, srcToken: Token | undefined, dstToken: Token | undefined, tokens: Token[] | undefined, chains: Chain[] | undefined, slippageBps: number): {
|
|
394
|
+
export declare function getQuoteDetails(quote: Quote | undefined, srcToken: Token | undefined, dstToken: Token | undefined, tokens: Token[] | undefined, chains: Chain[] | undefined, slippageBps: number, srcChain?: Chain, dstChain?: Chain): {
|
|
395
395
|
inputAmount: number;
|
|
396
396
|
outputAmount: number;
|
|
397
397
|
outputAmountRounded: string;
|
|
@@ -415,6 +415,10 @@ export declare function getTonBalances(address: string, tokens: Token[], customT
|
|
|
415
415
|
|
|
416
416
|
export declare function getTronBalances(tronWeb: TronWeb, address: string, tokens: Token[]): Promise<WalletBalances>;
|
|
417
417
|
|
|
418
|
+
export declare function isAllowedFromChain(chainKey: string): boolean;
|
|
419
|
+
|
|
420
|
+
export declare function isAllowedToChain(chainKey: string): boolean;
|
|
421
|
+
|
|
418
422
|
export declare function isNativeAddrEqual(chain: Chain | undefined, tokenAddr?: string): boolean;
|
|
419
423
|
|
|
420
424
|
export declare function isNativeAddress(addr?: string): boolean;
|
|
@@ -467,7 +471,9 @@ declare interface PollUntilDeliveredParams {
|
|
|
467
471
|
|
|
468
472
|
export declare interface Quote {
|
|
469
473
|
route: string;
|
|
470
|
-
error:
|
|
474
|
+
error: {
|
|
475
|
+
message: string;
|
|
476
|
+
} | null;
|
|
471
477
|
srcAmount: string;
|
|
472
478
|
dstAmount: string;
|
|
473
479
|
srcAmountMax: string;
|
package/package.json
CHANGED