@aastar/paymaster 0.16.12 → 0.16.16

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.
@@ -4,6 +4,11 @@ import { type Address, type Hex } from 'viem';
4
4
  * Focus: Integration, Funding, Interaction.
5
5
  */
6
6
  export declare class PaymasterClient {
7
+ /**
8
+ * @private
9
+ * Static utility class, should not be instantiated.
10
+ */
11
+ private constructor();
7
12
  /**
8
13
  * Get user's deposited balance on the Paymaster.
9
14
  */
@@ -6,6 +6,11 @@ import { detectBundlerType } from './BundlerCompat.js';
6
6
  * Focus: Integration, Funding, Interaction.
7
7
  */
8
8
  export class PaymasterClient {
9
+ /**
10
+ * @private
11
+ * Static utility class, should not be instantiated.
12
+ */
13
+ constructor() { }
9
14
  /**
10
15
  * Get user's deposited balance on the Paymaster.
11
16
  */
@@ -13,6 +13,11 @@ export type GaslessTransactionConfig = {
13
13
  * High-level API for SuperPaymaster operations, including dynamic gas estimation.
14
14
  */
15
15
  export declare class SuperPaymasterClient {
16
+ /**
17
+ * @private
18
+ * Static utility class, should not be instantiated.
19
+ */
20
+ private constructor();
16
21
  /**
17
22
  * Submit a gasless transaction using SuperPaymaster.
18
23
  * Automatically handles gas estimation with a smart efficiency buffer.
@@ -6,6 +6,11 @@ import { tuneGasLimit } from './PaymasterUtils';
6
6
  * High-level API for SuperPaymaster operations, including dynamic gas estimation.
7
7
  */
8
8
  export class SuperPaymasterClient {
9
+ /**
10
+ * @private
11
+ * Static utility class, should not be instantiated.
12
+ */
13
+ constructor() { }
9
14
  /**
10
15
  * Submit a gasless transaction using SuperPaymaster.
11
16
  * Automatically handles gas estimation with a smart efficiency buffer.
@@ -26,6 +31,10 @@ export class SuperPaymasterClient {
26
31
  ]
27
32
  });
28
33
  // 2. Initial Gas Estimation (Bundler Query)
34
+ console.log(`[SuperPaymasterClient] 🎯 Target Info:`);
35
+ console.log(` - Paymaster: ${config.paymasterAddress}`);
36
+ console.log(` - Token: ${config.token}`);
37
+ console.log(` - Operator: ${config.operator}`);
29
38
  console.log('[SuperPaymasterClient] ☁️ Estimating Gas usage...');
30
39
  const est = await PaymasterClient.estimateUserOperationGas(client, wallet, aaAddress, entryPoint, config.paymasterAddress, config.token, bundlerUrl, callData, {
31
40
  operator: config.operator,
package/package.json CHANGED
@@ -1,6 +1,10 @@
1
1
  {
2
2
  "name": "@aastar/paymaster",
3
- "version": "0.16.12",
3
+ "version": "0.16.16",
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
7
+ "license": "MIT",
4
8
  "type": "module",
5
9
  "main": "dist/index.js",
6
10
  "types": "dist/index.d.ts",
@@ -9,7 +13,7 @@
9
13
  ],
10
14
  "dependencies": {
11
15
  "viem": "2.43.3",
12
- "@aastar/core": "0.16.12"
16
+ "@aastar/core": "0.16.16"
13
17
  },
14
18
  "devDependencies": {
15
19
  "typescript": "5.6.3"