@t402/paywall 2.3.0 → 2.4.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.
@@ -43,6 +43,28 @@ declare class PaywallBuilder {
43
43
  */
44
44
  declare function createPaywall(): PaywallBuilder;
45
45
 
46
+ /**
47
+ * Gasless ERC-4337 paywall handler for EVM networks.
48
+ *
49
+ * Renders a paywall page that indicates the payment will be gasless
50
+ * (sponsored by a paymaster). Use this handler instead of `evmPaywall`
51
+ * when your application supports gasless payments.
52
+ *
53
+ * The handler checks for `eip155:` network prefix AND
54
+ * the `extra.gasless` field in payment requirements.
55
+ *
56
+ * @example
57
+ * ```typescript
58
+ * import { createPaywall, gaslessPaywall, evmPaywall } from '@t402/paywall';
59
+ *
60
+ * const paywall = createPaywall()
61
+ * .withNetwork(gaslessPaywall) // gasless first (checked before evm)
62
+ * .withNetwork(evmPaywall) // fallback to regular EVM
63
+ * .build();
64
+ * ```
65
+ */
66
+ declare const gaslessPaywall: PaywallNetworkHandler;
67
+
46
68
  /**
47
69
  * Transaction status states
48
70
  */
@@ -85,4 +107,4 @@ declare function useTransactionStatus(): {
85
107
  hasTransaction: boolean;
86
108
  };
87
109
 
88
- export { PaywallBuilder, PaywallConfig, PaywallNetworkHandler, PaywallProvider, TransactionStatus, type TransactionStatusProps, type TxStatus, createPaywall, useTransactionStatus };
110
+ export { PaywallBuilder, PaywallConfig, PaywallNetworkHandler, PaywallProvider, TransactionStatus, type TransactionStatusProps, type TxStatus, createPaywall, gaslessPaywall, useTransactionStatus };