@alien_org/contract 0.2.2 → 0.2.3

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/index.d.cts CHANGED
@@ -51,7 +51,7 @@ type Empty = Record<string, never>;
51
51
  * @since 0.1.1
52
52
  * @schema
53
53
  */
54
- type PaymentErrorCode = 'insufficient_balance' | 'network_error' | 'pre_checkout_rejected' | 'pre_checkout_timeout' | 'unknown';
54
+ type PaymentErrorCode = 'insufficient_balance' | 'network_error' | 'unknown';
55
55
  /**
56
56
  * Webhook status for payment results (on-chain truth).
57
57
  * - `'finalized'`: Transaction confirmed on-chain
@@ -149,8 +149,6 @@ interface Events {
149
149
  * Error code (present when status is 'failed').
150
150
  * - `insufficient_balance`: User doesn't have enough tokens
151
151
  * - `network_error`: Blockchain network issue
152
- * - `pre_checkout_rejected`: Backend rejected the payment in pre-checkout
153
- * - `pre_checkout_timeout`: Backend didn't respond to pre-checkout in time
154
152
  * - `unknown`: Unexpected error
155
153
  * @since 0.1.1
156
154
  * @schema
@@ -356,7 +354,6 @@ interface Methods {
356
354
  *
357
355
  * **Pre-broadcast errors** (no webhook):
358
356
  * `'error:insufficient_balance'`, `'error:network_error'`,
359
- * `'error:pre_checkout_rejected'`, `'error:pre_checkout_timeout'`,
360
357
  * `'error:unknown'`
361
358
  *
362
359
  * @example
package/dist/index.d.mts CHANGED
@@ -51,7 +51,7 @@ type Empty = Record<string, never>;
51
51
  * @since 0.1.1
52
52
  * @schema
53
53
  */
54
- type PaymentErrorCode = 'insufficient_balance' | 'network_error' | 'pre_checkout_rejected' | 'pre_checkout_timeout' | 'unknown';
54
+ type PaymentErrorCode = 'insufficient_balance' | 'network_error' | 'unknown';
55
55
  /**
56
56
  * Webhook status for payment results (on-chain truth).
57
57
  * - `'finalized'`: Transaction confirmed on-chain
@@ -149,8 +149,6 @@ interface Events {
149
149
  * Error code (present when status is 'failed').
150
150
  * - `insufficient_balance`: User doesn't have enough tokens
151
151
  * - `network_error`: Blockchain network issue
152
- * - `pre_checkout_rejected`: Backend rejected the payment in pre-checkout
153
- * - `pre_checkout_timeout`: Backend didn't respond to pre-checkout in time
154
152
  * - `unknown`: Unexpected error
155
153
  * @since 0.1.1
156
154
  * @schema
@@ -356,7 +354,6 @@ interface Methods {
356
354
  *
357
355
  * **Pre-broadcast errors** (no webhook):
358
356
  * `'error:insufficient_balance'`, `'error:network_error'`,
359
- * `'error:pre_checkout_rejected'`, `'error:pre_checkout_timeout'`,
360
357
  * `'error:unknown'`
361
358
  *
362
359
  * @example
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alien_org/contract",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",