@rash2x/bridge-widget 0.6.53 → 0.6.58
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 +1 -7
- package/dist/evaa-bridge.cjs.map +1 -1
- package/dist/evaa-bridge.mjs +29 -35
- package/dist/{index-BTwKvCVG.cjs → index-BLC0Ys74.cjs} +2 -2
- package/dist/{index-BTwKvCVG.cjs.map → index-BLC0Ys74.cjs.map} +1 -1
- package/dist/{index-CePOaHyN.js → index-CDUxAooI.js} +584 -1032
- package/dist/index-CDUxAooI.js.map +1 -0
- package/dist/{index-C_cDfEeV.js → index-D8sxoZ5P.js} +2 -2
- package/dist/{index-C_cDfEeV.js.map → index-D8sxoZ5P.js.map} +1 -1
- package/dist/{index-CTtu-a2U.cjs → index-DiF0Z4eu.cjs} +554 -1002
- package/dist/index-DiF0Z4eu.cjs.map +1 -0
- package/dist/index.d.ts +1 -40
- package/package.json +1 -1
- package/dist/index-CTtu-a2U.cjs.map +0 -1
- package/dist/index-CePOaHyN.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,25 +6,8 @@ import { TonClient } from '@ton/ton';
|
|
|
6
6
|
import { TronWeb } from 'tronweb';
|
|
7
7
|
import { UseBoundStore } from 'zustand';
|
|
8
8
|
|
|
9
|
-
/**
|
|
10
|
-
* Add EVM network fee to quote fees
|
|
11
|
-
*/
|
|
12
|
-
export declare function addEvmNetworkFee(quote: Quote | undefined, chains: Chain[] | undefined, estimatedFee?: string): Quote | undefined;
|
|
13
|
-
|
|
14
9
|
export declare function addrForApi(chainKey: string, addr: string): string;
|
|
15
10
|
|
|
16
|
-
/**
|
|
17
|
-
* Add TON network fee to quote fees (if source chain is TON)
|
|
18
|
-
* This ensures the user sees the estimated network fee before transaction
|
|
19
|
-
*/
|
|
20
|
-
export declare function addTonNetworkFee(quote: Quote | undefined, chains: Chain[] | undefined, estimatedFee?: string): Quote | undefined;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Add TRON network fee to quote fees (if source chain is TRON)
|
|
24
|
-
* This ensures the user sees the estimated network fee before transaction
|
|
25
|
-
*/
|
|
26
|
-
export declare function addTronNetworkFee(quote: Quote | undefined, chains: Chain[] | undefined, estimatedFee?: string): Quote | undefined;
|
|
27
|
-
|
|
28
11
|
export declare type AssetMatrix = Record<string, Record<string, Token>>;
|
|
29
12
|
|
|
30
13
|
declare interface BalanceData {
|
|
@@ -188,35 +171,13 @@ declare interface DeliveryStatusParams {
|
|
|
188
171
|
srcTxHash: string;
|
|
189
172
|
}
|
|
190
173
|
|
|
191
|
-
/**
|
|
192
|
-
* Estimate EVM network fee (gas cost) based on quote steps
|
|
193
|
-
* Returns fee in Wei (LD format as string)
|
|
194
|
-
*/
|
|
195
|
-
export declare function estimateEvmNetworkFee(publicClient: PublicClient, quote: Quote, chainKey: string): Promise<string>;
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* Estimate TON network fee based on transaction messages
|
|
199
|
-
* Returns fee in nanoton (LD format as string)
|
|
200
|
-
*
|
|
201
|
-
* TON fees are based on:
|
|
202
|
-
* - Number of messages
|
|
203
|
-
* - Message complexity (payload size)
|
|
204
|
-
* - Storage fees
|
|
205
|
-
*/
|
|
206
|
-
export declare function estimateTonNetworkFee(quote: Quote): string;
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* Estimate TRON network fee based on user's Energy balance
|
|
210
|
-
* Returns fee in SUN (LD format)
|
|
211
|
-
*/
|
|
212
|
-
export declare function estimateTronNetworkFee(tronWeb: TronWeb, quote: Quote, userAddress: string): Promise<string>;
|
|
213
|
-
|
|
214
174
|
export declare const EvaaBridge: (props: EvaaBridgeProps) => JSX.Element;
|
|
215
175
|
|
|
216
176
|
export declare interface EvaaBridgeProps {
|
|
217
177
|
className?: string;
|
|
218
178
|
tonClient?: TonClient;
|
|
219
179
|
tonApiKey?: string;
|
|
180
|
+
tronApiKey?: string;
|
|
220
181
|
walletConnectProjectId?: string;
|
|
221
182
|
defaultLanguage?: string;
|
|
222
183
|
transactionIcons?: TransactionIcons;
|
package/package.json
CHANGED