@zerohash-sdk/fund-js 1.9.1 → 1.10.0

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +12 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -458,6 +458,12 @@ export default Fund;
458
458
  declare type FundCallbacks = CommonCallbacks<FundEvent> & {
459
459
  /** Called when the fund deposit is successfully completed */
460
460
  onCompleted?: (data: FundCompletedData) => void;
461
+ /**
462
+ * Called when a deposit transaction reaches a terminal **failed** state (the
463
+ * "Transaction failed" page). Distinct from `onError`, which signals an SDK/
464
+ * request error — `onFailed` carries the failed transaction's details.
465
+ */
466
+ onFailed?: (data: FundCompletedData) => void;
461
467
  };
462
468
 
463
469
  declare type FundCompletedData = {
@@ -469,6 +475,12 @@ declare type FundCompletedData = {
469
475
  assetSymbol?: string;
470
476
  /** Amount to be deposited */
471
477
  amount?: string;
478
+ /** Backend transaction id for the deposit */
479
+ transactionId?: string;
480
+ /** Fund id the deposit was credited to */
481
+ fundId?: string;
482
+ /** Notional (fiat) amount of the deposit */
483
+ notionalAmount?: string;
472
484
  };
473
485
 
474
486
  export declare interface FundConfig extends BaseConfig<FundEvent>, FundCallbacks {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zerohash-sdk/fund-js",
3
- "version": "1.9.1",
3
+ "version": "1.10.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",