@silentswap/react 0.0.79 → 0.0.81

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.
@@ -290,7 +290,8 @@ export function useSilentQuote({ client, address, evmAddress, solAddress, wallet
290
290
  const result = await executeEvmSwap(sourceAsset, sourceAmountInUnits, effectiveUsdcAmount, // Use amount from solveOptimalUsdcAmount (matches Svelte)
291
291
  providerForSwap, orderResponse, evmSignerAddress, // Use EVM signer address, not normalizedAddress
292
292
  viewingAuth, executeEvmBridge, senderContactId, // Pass sender contact ID to extract sender address
293
- integratorId);
293
+ integratorId, // Pass integratorId
294
+ effectiveAllowanceTarget);
294
295
  setOrderId(result.orderId);
295
296
  setViewingAuth(result.viewingAuth);
296
297
  return result;
@@ -504,7 +505,8 @@ viewingAuth, createOrder, executeBitcoinBridge, facilitatorGroup, integratorId)
504
505
  */
505
506
  async function executeEvmSwap(sourceAsset, sourceAmount, usdcAmount, provider, orderResponse, evmSignerAddress, // EVM signer address (matches Svelte's s0x_signer)
506
507
  viewingAuth, executeEvmBridge, senderContactId, // Sender contact ID to extract sender address
507
- integratorId) {
508
+ integratorId, // Optional integrator ID
509
+ allowanceTarget) {
508
510
  // Parse source asset to get chain ID and token address
509
511
  const sourceEvmParsed = parseEvmCaip19(sourceAsset);
510
512
  if (!sourceEvmParsed) {
@@ -531,7 +533,7 @@ integratorId) {
531
533
  const bridgeResult = await executeEvmBridge(sourceChainId, sourceTokenAddress, sourceAmount, usdcAmount, // Use amount from solveOptimalUsdcAmount (matches Svelte)
532
534
  depositParams, evmSignerAddress, // Use EVM signer address for deposit calldata
533
535
  evmSenderAddress, // Use EVM sender address for bridge quotes
534
- provider);
536
+ provider, allowanceTarget);
535
537
  const resultOrderId = orderResponse.response.orderId;
536
538
  // Note: setOrderId is not available in this function scope,
537
539
  // but the orderId will be set by the calling executeSwap function
package/dist/index.d.ts CHANGED
@@ -15,7 +15,7 @@ export { useSilentOrders } from './hooks/silent/useSilentOrders.js';
15
15
  export { useAuth } from './hooks/silent/useAuth.js';
16
16
  export { useWallet } from './hooks/silent/useWallet.js';
17
17
  export { useSilentQuote } from './hooks/silent/useSilentQuote.js';
18
- export { useOrderTracking, OutputStage, getStatusTextFromStage, getProgressFromStage, } from './hooks/silent/useOrderTracking.js';
18
+ export { useOrderTracking, OutputStage, getStatusTextFromStage, getProgressFromStage, getOrderTrackingCacheKey, } from './hooks/silent/useOrderTracking.js';
19
19
  export { useRefund } from './hooks/silent/useRefund.js';
20
20
  export { useTransaction } from './hooks/useTransaction.js';
21
21
  export { useQuote } from './hooks/useQuote.js';
@@ -54,9 +54,10 @@ export type { useTransactionOptions, useTransactionReturn } from './hooks/useTra
54
54
  export type { useQuoteOptions, useQuoteReturn } from './hooks/useQuote.js';
55
55
  export type { OrderEstimateResult, UseOrderEstimatesOptions } from './hooks/useOrderEstimates.js';
56
56
  export type { usePricesOptions, usePricesReturn, CachedPrice } from './hooks/usePrices.js';
57
- export type { UseOrderTrackingOptions, UseOrderTrackingReturn, OrderDeposit, OutputStatus, OrderStatus, StatusUpdate, } from './hooks/silent/useOrderTracking.js';
57
+ export type { UseOrderTrackingOptions, UseOrderTrackingReturn, OrderDeposit, OutputStatus, OrderStatus, StatusUpdate, OrderTrackingState, OrderTrackingOptions, } from './hooks/silent/useOrderTracking.js';
58
58
  export type { UseRefundOptions, UseRefundReturn } from './hooks/silent/useRefund.js';
59
59
  export { createSolanaTransactionExecutor, convertRelaySolanaStepToTransaction, } from './hooks/silent/solana-transaction.js';
60
60
  export type { SolanaWalletConnector, SolanaConnection } from './hooks/silent/solana-transaction.js';
61
61
  export { createBitcoinTransactionExecutor, convertRelayBitcoinStepToTransaction, } from './hooks/silent/bitcoin-transaction.js';
62
62
  export type { BitcoinWalletConnector, BitcoinConnection } from './hooks/silent/bitcoin-transaction.js';
63
+ export type { Outputs, IOutput } from './contexts/orderTrackingTypes.js';
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ export { useSilentOrders } from './hooks/silent/useSilentOrders.js';
9
9
  export { useAuth } from './hooks/silent/useAuth.js';
10
10
  export { useWallet } from './hooks/silent/useWallet.js';
11
11
  export { useSilentQuote } from './hooks/silent/useSilentQuote.js';
12
- export { useOrderTracking, OutputStage, getStatusTextFromStage, getProgressFromStage, } from './hooks/silent/useOrderTracking.js';
12
+ export { useOrderTracking, OutputStage, getStatusTextFromStage, getProgressFromStage, getOrderTrackingCacheKey, } from './hooks/silent/useOrderTracking.js';
13
13
  export { useRefund } from './hooks/silent/useRefund.js';
14
14
  export { useTransaction } from './hooks/useTransaction.js';
15
15
  export { useQuote } from './hooks/useQuote.js';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@silentswap/react",
3
3
  "type": "module",
4
- "version": "0.0.79",
4
+ "version": "0.0.81",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -24,8 +24,8 @@
24
24
  "dependencies": {
25
25
  "@bigmi/core": "^0.6.5",
26
26
  "@ensdomains/ensjs": "^4.2.0",
27
- "@silentswap/sdk": "0.0.79",
28
- "@silentswap/ui-kit": "0.0.79",
27
+ "@silentswap/sdk": "0.0.81",
28
+ "@silentswap/ui-kit": "0.0.81",
29
29
  "@solana/codecs-strings": "^5.1.0",
30
30
  "@solana/kit": "^5.1.0",
31
31
  "@solana/rpc": "^5.1.0",