@lifi/perps-sdk 25.0.2 → 27.0.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 (99) hide show
  1. package/README.md +66 -1
  2. package/dist/cjs/client/PerpsClient.d.ts +5 -5
  3. package/dist/cjs/client/PerpsClient.d.ts.map +1 -1
  4. package/dist/cjs/client/PerpsClient.js +73 -75
  5. package/dist/cjs/client/PerpsClient.js.map +1 -1
  6. package/dist/cjs/errors/PerpsExecutionError.d.ts +9 -0
  7. package/dist/cjs/errors/PerpsExecutionError.d.ts.map +1 -0
  8. package/dist/cjs/errors/PerpsExecutionError.js +29 -0
  9. package/dist/cjs/errors/PerpsExecutionError.js.map +1 -0
  10. package/dist/cjs/index.d.ts +6 -4
  11. package/dist/cjs/index.d.ts.map +1 -1
  12. package/dist/cjs/index.js +16 -12
  13. package/dist/cjs/index.js.map +1 -1
  14. package/dist/cjs/math/fills.d.ts +0 -1
  15. package/dist/cjs/math/fills.d.ts.map +1 -1
  16. package/dist/cjs/math/fills.js +0 -18
  17. package/dist/cjs/math/fills.js.map +1 -1
  18. package/dist/cjs/math/order.d.ts +5 -5
  19. package/dist/cjs/math/order.d.ts.map +1 -1
  20. package/dist/cjs/math/order.js +10 -10
  21. package/dist/cjs/math/order.js.map +1 -1
  22. package/dist/cjs/math/position.d.ts +2 -2
  23. package/dist/cjs/math/position.d.ts.map +1 -1
  24. package/dist/cjs/math/position.js +5 -5
  25. package/dist/cjs/math/position.js.map +1 -1
  26. package/dist/cjs/types/api.d.ts +1 -10
  27. package/dist/cjs/types/api.d.ts.map +1 -1
  28. package/dist/cjs/types/provider.d.ts +5 -1
  29. package/dist/cjs/types/provider.d.ts.map +1 -1
  30. package/dist/cjs/utils/actionResult.d.ts +3 -0
  31. package/dist/cjs/utils/actionResult.d.ts.map +1 -0
  32. package/dist/cjs/utils/actionResult.js +9 -0
  33. package/dist/cjs/utils/actionResult.js.map +1 -0
  34. package/dist/cjs/version.d.ts +1 -1
  35. package/dist/cjs/version.js +1 -1
  36. package/dist/esm/client/PerpsClient.d.ts +64 -47
  37. package/dist/esm/client/PerpsClient.d.ts.map +1 -1
  38. package/dist/esm/client/PerpsClient.js +134 -128
  39. package/dist/esm/client/PerpsClient.js.map +1 -1
  40. package/dist/esm/errors/PerpsExecutionError.d.ts +24 -0
  41. package/dist/esm/errors/PerpsExecutionError.d.ts.map +1 -0
  42. package/dist/esm/errors/PerpsExecutionError.js +39 -0
  43. package/dist/esm/errors/PerpsExecutionError.js.map +1 -0
  44. package/dist/esm/index.d.ts +6 -4
  45. package/dist/esm/index.d.ts.map +1 -1
  46. package/dist/esm/index.js +5 -3
  47. package/dist/esm/index.js.map +1 -1
  48. package/dist/esm/math/fills.d.ts +0 -9
  49. package/dist/esm/math/fills.d.ts.map +1 -1
  50. package/dist/esm/math/fills.js +0 -25
  51. package/dist/esm/math/fills.js.map +1 -1
  52. package/dist/esm/math/order.d.ts +6 -6
  53. package/dist/esm/math/order.d.ts.map +1 -1
  54. package/dist/esm/math/order.js +6 -6
  55. package/dist/esm/math/order.js.map +1 -1
  56. package/dist/esm/math/position.d.ts +2 -2
  57. package/dist/esm/math/position.d.ts.map +1 -1
  58. package/dist/esm/math/position.js +3 -3
  59. package/dist/esm/math/position.js.map +1 -1
  60. package/dist/esm/types/api.d.ts +1 -18
  61. package/dist/esm/types/api.d.ts.map +1 -1
  62. package/dist/esm/types/provider.d.ts +21 -4
  63. package/dist/esm/types/provider.d.ts.map +1 -1
  64. package/dist/esm/utils/actionResult.d.ts +4 -0
  65. package/dist/esm/utils/actionResult.d.ts.map +1 -0
  66. package/dist/esm/utils/actionResult.js +7 -0
  67. package/dist/esm/utils/actionResult.js.map +1 -0
  68. package/dist/esm/version.d.ts +1 -1
  69. package/dist/esm/version.js +1 -1
  70. package/dist/types/client/PerpsClient.d.ts +64 -47
  71. package/dist/types/client/PerpsClient.d.ts.map +1 -1
  72. package/dist/types/errors/PerpsExecutionError.d.ts +24 -0
  73. package/dist/types/errors/PerpsExecutionError.d.ts.map +1 -0
  74. package/dist/types/index.d.ts +6 -4
  75. package/dist/types/index.d.ts.map +1 -1
  76. package/dist/types/math/fills.d.ts +0 -9
  77. package/dist/types/math/fills.d.ts.map +1 -1
  78. package/dist/types/math/order.d.ts +6 -6
  79. package/dist/types/math/order.d.ts.map +1 -1
  80. package/dist/types/math/position.d.ts +2 -2
  81. package/dist/types/math/position.d.ts.map +1 -1
  82. package/dist/types/types/api.d.ts +1 -18
  83. package/dist/types/types/api.d.ts.map +1 -1
  84. package/dist/types/types/provider.d.ts +21 -4
  85. package/dist/types/types/provider.d.ts.map +1 -1
  86. package/dist/types/utils/actionResult.d.ts +4 -0
  87. package/dist/types/utils/actionResult.d.ts.map +1 -0
  88. package/dist/types/version.d.ts +1 -1
  89. package/package.json +2 -2
  90. package/src/client/PerpsClient.ts +165 -166
  91. package/src/errors/PerpsExecutionError.ts +54 -0
  92. package/src/index.ts +13 -8
  93. package/src/math/fills.ts +0 -29
  94. package/src/math/order.ts +11 -11
  95. package/src/math/position.ts +3 -3
  96. package/src/types/api.ts +0 -21
  97. package/src/types/provider.ts +22 -4
  98. package/src/utils/actionResult.ts +10 -0
  99. package/src/version.ts +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actionResult.d.ts","sourceRoot":"","sources":["../../../src/utils/actionResult.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAIrD,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAKnE"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isSubmittedOrAccepted = isSubmittedOrAccepted;
4
+ const perps_types_1 = require("@lifi/perps-types");
5
+ function isSubmittedOrAccepted(result) {
6
+ return (result.status === perps_types_1.UserActionStatus.Submitted ||
7
+ result.status === perps_types_1.UserActionStatus.Accepted);
8
+ }
9
+ //# sourceMappingURL=actionResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actionResult.js","sourceRoot":"","sources":["../../../src/utils/actionResult.ts"],"names":[],"mappings":";;AAIA,sDAKC;AARD,mDAAoD;AAGpD,SAAgB,qBAAqB,CAAC,MAAoB;IACxD,OAAO,CACL,MAAM,CAAC,MAAM,KAAK,8BAAgB,CAAC,SAAS;QAC5C,MAAM,CAAC,MAAM,KAAK,8BAAgB,CAAC,QAAQ,CAC5C,CAAA;AACH,CAAC"}
@@ -1,3 +1,3 @@
1
1
  export declare const name = "@lifi/perps-sdk";
2
- export declare const version = "25.0.2";
2
+ export declare const version = "27.0.0";
3
3
  //# sourceMappingURL=version.d.ts.map
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = exports.name = void 0;
4
4
  exports.name = '@lifi/perps-sdk';
5
- exports.version = '25.0.2';
5
+ exports.version = '27.0.0';
6
6
  //# sourceMappingURL=version.js.map
@@ -85,22 +85,35 @@ export declare class PerpsClient {
85
85
  * step with the signer its own descriptor declares; the signed steps come
86
86
  * back in the batch's original order. The plugin owns every signing arm and
87
87
  * branches on `signer` internally, reading the end-user's wallet from the
88
- * {@link SignActionsContext} when an arm signs as the user.
88
+ * {@link SignActionsContext} when an arm signs as the user. Signing stops
89
+ * after the first group that executed a step without an acknowledgement.
89
90
  *
90
91
  * @throws {PerpsError} When a step's action is not declared by the provider,
91
92
  * or the plugin implements no `signActions`.
93
+ * @throws {PerpsExecutionError} When a group throws after an earlier group
94
+ * executed steps.
92
95
  */
93
96
  private delegateSignActions;
94
97
  /**
95
- * Let the plugin observe `/executeAction` per-step results before the core
96
- * surfaces failures — e.g. to evict a locally stored credential the venue
97
- * rejected.
98
+ * Submit `signed` to `/executeAction` when every step the plugin executed
99
+ * while signing was acknowledged, then resolve explorer links and notify the
100
+ * plugin. Resolves to the full report: `executed`, then the `/executeAction`
101
+ * results. An empty report means nothing executed.
102
+ *
103
+ * @throws {PerpsExecutionError} When the submission or the plugin callback
104
+ * throws after a result is known.
105
+ */
106
+ private submitSignedActions;
107
+ /**
108
+ * Let the plugin observe an execution report before the core returns it —
109
+ * e.g. to evict a locally stored credential the venue refused.
98
110
  */
99
111
  private notifyExecuteResults;
100
112
  /**
101
- * Attach a provider-built explorer URL to every result the backend returned a
102
- * venue `txHash` on. The provider owns its explorer target, so core only asks
103
- * — a plugin without the hook leaves results untouched.
113
+ * Attach a provider-built explorer URL to every result that carries a venue
114
+ * `txHash`, whatever its status: an unacknowledged hash is what the user
115
+ * inspects. The provider owns its explorer target, so core only asks — a
116
+ * plugin without the hook leaves results untouched.
104
117
  */
105
118
  private resolveExplorerLinks;
106
119
  /**
@@ -136,18 +149,17 @@ export declare class PerpsClient {
136
149
  */
137
150
  private buildSignActionsContext;
138
151
  /**
139
- * Sign a single provider setup action step by delegating to the provider
140
- * plugin, which branches on the step's signing scheme internally. Lets
141
- * consumers collect signed setup actions without embedding per-method
142
- * signing logic.
152
+ * Sign one provider setup step through the provider plugin and submit it.
153
+ * A step the plugin executed client-side (e.g. Lighter's token-authenticated
154
+ * venue mutations) reports the plugin's own result instead of an
155
+ * `/executeAction` result.
143
156
  *
144
- * Returns `undefined` when the plugin executed the action entirely
145
- * client-side (e.g. Lighter's token-authenticated venue mutations), leaving
146
- * no backend-bound step to submit.
147
- *
148
- * @throws {PerpsError} When the step's action is not declared by the provider.
157
+ * @throws {PerpsError} When the step's action is not declared by the provider,
158
+ * or signing or submission fails before any result is known.
159
+ * @throws {PerpsExecutionError} When a later stage fails after a result is
160
+ * known.
149
161
  */
150
- private signProviderSetupAction;
162
+ private runProviderSetupStep;
151
163
  /**
152
164
  * Build (but do not sign or submit) the unsigned action steps for `action`,
153
165
  * letting the provider plugin contribute any signer-bearing request fields.
@@ -347,9 +359,9 @@ export declare class PerpsClient {
347
359
  * deferred while any staged user-facing step with a lower `sequence` is
348
360
  * outstanding — it cannot succeed before its prerequisite (e.g. SET_REFERRAL
349
361
  * authenticates with the credential REGISTER_API_KEY installs) and each
350
- * doomed attempt is venue traffic. A drain failure is swallowed so it never
351
- * blocks setup — the step stays unsatisfied and is retried on a later
352
- * `checkSetup`.
362
+ * doomed attempt is venue traffic. A drain failure, thrown or reported, is
363
+ * swallowed so it never blocks setup — the step stays unsatisfied and is
364
+ * retried on a later `checkSetup`.
353
365
  */
354
366
  private drainSetup;
355
367
  /**
@@ -368,13 +380,6 @@ export declare class PerpsClient {
368
380
  * @public
369
381
  */
370
382
  buildProviderSetup(params: BuildProviderSetupParams): Promise<CreateActionResponse>;
371
- /**
372
- * Submit the signed setup steps returned by `checkSetup` (and signed by the
373
- * caller / `signProviderSetupAction`). Routes the batch on the first step's
374
- * action and lets the plugin contribute that action's `signerAddress`.
375
- * Throws on any per-step venue rejection.
376
- */
377
- private executeProviderSetup;
378
383
  /**
379
384
  * Sign and submit one pre-staged setup `ActionStep` end-to-end.
380
385
  *
@@ -383,9 +388,15 @@ export declare class PerpsClient {
383
388
  * prerequisites against that same snapshot, without another `createAction`
384
389
  * round-trip.
385
390
  *
391
+ * Resolves to the execution report. A `Failed` or `Indeterminate` action is
392
+ * a result in the report, not an exception.
393
+ *
386
394
  * @throws {PerpsError} When the step's action is not in the provider's
387
- * `setup` descriptors, or when a lower-`sequence` step on the same
388
- * checklist, a choice included, is still unsatisfied.
395
+ * `setup` descriptors, when a lower-`sequence` step on the same
396
+ * checklist, a choice included, is still unsatisfied, or when signing or
397
+ * submission fails before any result is known.
398
+ * @throws {PerpsExecutionError} When a later stage fails after a result is
399
+ * known; its `response` holds the known results.
389
400
  * @public
390
401
  */
391
402
  executeProviderSetupAction(params: {
@@ -393,43 +404,41 @@ export declare class PerpsClient {
393
404
  address: Address;
394
405
  step: ActionStep;
395
406
  checklist: SetupChecklistItem[];
396
- }): Promise<void>;
407
+ }): Promise<ExecuteActionResponse>;
397
408
  /**
398
409
  * Execute one option of a choice setup step (Lighter `ACCOUNT_TYPE`,
399
410
  * Hyperliquid `ACCOUNT_MODE`) end-to-end with its bound `{ type, params }`,
400
- * throwing on a venue rejection.
411
+ * through the same {@link execute} pipeline as a trade.
401
412
  *
402
- * The option runs through the same {@link execute} pipeline as a trade, but
403
- * a per-action `success: false` (returned as a 200 OK) means the user's
404
- * selection was rejected and must surface, not be silently dropped.
413
+ * Resolves to the execution report. Read each result's `status`: a `Failed`
414
+ * or `Indeterminate` selection is a result, not an exception. `Submitted` and
415
+ * `Accepted` mean the selection took effect.
405
416
  *
406
- * @throws {PerpsError} Carrying the venue error when any returned result has
407
- * `success: false`, under that result's `errorCode` when the backend
408
- * classified the failure and `PerpsErrorCode.ExchangeRejected` otherwise;
409
- * also the errors `execute` itself can throw (unregistered provider, no
410
- * signer, signing failure).
417
+ * @throws {PerpsError} The errors {@link execute} throws.
411
418
  * @public
412
419
  */
413
420
  executeProviderOption(params: {
414
421
  provider: string;
415
422
  address: Address;
416
423
  option: SetupOption;
417
- }): Promise<void>;
424
+ }): Promise<ExecuteActionResponse>;
418
425
  /**
419
426
  * Undo a satisfied setup step by executing its `revoke` action through
420
427
  * create, sign and execute, signed with that action's `Provider.actions`
421
428
  * descriptor. The step stages again on the next {@link checkSetup}.
422
429
  *
430
+ * Resolves to the execution report.
431
+ *
423
432
  * @throws {PerpsError} `SDKError` when `step.revoke` is `null` or when
424
433
  * `createAction` stages nothing to revoke; otherwise the errors
425
- * {@link executeProviderOption} throws.
434
+ * {@link execute} throws.
426
435
  * @public
427
436
  */
428
437
  executeProviderRevoke(params: {
429
438
  provider: string;
430
439
  address: Address;
431
440
  step: SetupAction;
432
- }): Promise<void>;
441
+ }): Promise<ExecuteActionResponse>;
433
442
  /**
434
443
  * Place a market or limit order. Convenience wrapper over {@link execute}
435
444
  * with `ActionType.PLACE_ORDER`.
@@ -529,8 +538,15 @@ export declare class PerpsClient {
529
538
  * descriptor's scheme and signer internally), and submit. Core stays
530
539
  * signer-agnostic — the plugin owns WHO signs and HOW.
531
540
  *
541
+ * Resolves to the execution report: one result per executed step, in
542
+ * execution order, each with its own `status`. An empty report means
543
+ * nothing executed.
544
+ *
532
545
  * @throws {PerpsError} When the action is not declared by the provider,
533
- * the plugin cannot sign it, or submission fails.
546
+ * the plugin cannot sign it, or submission fails before any result is
547
+ * known.
548
+ * @throws {PerpsExecutionError} When a later stage fails after a result is
549
+ * known; its `response` holds the known results.
534
550
  * @public
535
551
  */
536
552
  execute<T extends ActionType>(params: {
@@ -576,12 +592,13 @@ export declare class PerpsClient {
576
592
  * typed data with the configured user wallet.
577
593
  *
578
594
  * The backend returns at most one step. Resolves to `{ results: [] }` when it
579
- * returns none, meaning no consent is outstanding for this address.
595
+ * returns none, meaning no consent is outstanding for this address. Else it
596
+ * resolves to the backend's execution report; read each result's `status`.
580
597
  *
581
598
  * @throws {PerpsError} When no user wallet is configured, the backend returns
582
- * more than one step or a non-EIP-712 step, or the submitted step reports a
583
- * failed result. A signature refusal from the wallet client propagates as
584
- * the wallet's own error.
599
+ * more than one step or a non-EIP-712 step, or the submission fails. A
600
+ * signature refusal from the wallet client propagates as the wallet's own
601
+ * error.
585
602
  * @public
586
603
  */
587
604
  executeMetaAction<T extends MetaActionType>(params: ExecuteMetaActionParams<T>): Promise<ExecuteActionResponse>;
@@ -1 +1 @@
1
- {"version":3,"file":"PerpsClient.d.ts","sourceRoot":"","sources":["../../../src/client/PerpsClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,eAAe,EACf,cAAc,EACd,eAAe,EAEf,UAAU,EAEV,gBAAgB,EAChB,oBAAoB,EACpB,aAAa,EACb,qBAAqB,EACrB,SAAS,EACT,cAAc,EACd,cAAc,EACd,KAAK,EACL,cAAc,EACd,wBAAwB,EACxB,QAAQ,EAGR,WAAW,EACX,WAAW,EAEZ,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAEL,UAAU,EAKX,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AASnC,OAAO,EAEL,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G,iBAAiB,CAAC,CAAC,SAAS,cAAc,EAC9C,MAAM,EAAE,uBAAuB,CAAC,CAAC,CAAC,GACjC,OAAO,CAAC,qBAAqB,CAAC;CA+ClC"}
1
+ {"version":3,"file":"PerpsClient.d.ts","sourceRoot":"","sources":["../../../src/client/PerpsClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,eAAe,EACf,cAAc,EACd,eAAe,EAEf,UAAU,EAEV,gBAAgB,EAChB,oBAAoB,EACpB,aAAa,EACb,qBAAqB,EACrB,SAAS,EACT,cAAc,EACd,cAAc,EACd,KAAK,EACL,cAAc,EACd,wBAAwB,EACxB,QAAQ,EAGR,WAAW,EACX,WAAW,EAEZ,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAEL,UAAU,EAKX,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAUnC,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAEL,KAAK,eAAe,EACrB,MAAM,0BAA0B,CAAA;AAEjC,OAAO,KAAK,EACV,wBAAwB,EACxB,kBAAkB,EAClB,qBAAqB,EACrB,8BAA8B,EAC9B,uBAAuB,EACvB,gBAAgB,EAChB,oBAAoB,EACpB,yBAAyB,EACzB,cAAc,EACd,6BAA6B,EAC7B,wBAAwB,EACxB,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,uBAAuB,EACvB,oBAAoB,EACpB,aAAa,EACb,qBAAqB,EACrB,kBAAkB,EAClB,sBAAsB,EACtB,cAAc,EACf,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,EAEV,iBAAiB,EACjB,eAAe,EAChB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,KAAK,EAGV,cAAc,EACd,kBAAkB,EAGnB,MAAM,sBAAsB,CAAA;A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