@gasfree-kit/evm-4337 0.3.1 → 0.3.2

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @gasfree-kit/evm-4337
2
2
 
3
- ERC-4337 USDT transfers for EVM chains using WDK-backed Safe smart accounts.
3
+ ERC-4337 USDT transfers for EVM chains using Safe smart accounts.
4
4
 
5
5
  This package gives you:
6
6
 
@@ -23,7 +23,7 @@ This package gives you:
23
23
 
24
24
  v
25
25
  ┌──────────────────────┐ ┌──────────────────────┐
26
- WDK wallet manager │──────>│ Safe smart account │
26
+ Wallet manager │──────>│ Safe smart account │
27
27
  └──────────────────────┘ └──────────┬───────────┘
28
28
 
29
29
  v
@@ -72,17 +72,7 @@ This package depends on [`@gasfree-kit/core`](../core/README.md) for:
72
72
  npm install @gasfree-kit/evm-4337 @gasfree-kit/core
73
73
  ```
74
74
 
75
- Required peer dependency:
76
-
77
- ```bash
78
- npm install @tetherto/wdk-wallet-evm-erc-4337
79
- ```
80
-
81
- Optional passkey peer dependencies:
82
-
83
- ```bash
84
- npm install @safe-global/protocol-kit @safe-global/relay-kit
85
- ```
75
+ After installing, your package manager will prompt you to install the required peer dependencies listed in `package.json`. Some peer dependencies are marked optional and only needed if you enable passkey linking.
86
76
 
87
77
  ## Choose Your Gas Mode
88
78
 
@@ -291,7 +281,7 @@ await unlinkPasskeyFromSafe(seedPhrase, sponsoredConfig, passkey.credential);
291
281
 
292
282
  | Export | What it does |
293
283
  | ------------------------------------------------------------------------------ | ---------------------------------------------------------------------------- |
294
- | `setupErc4337Wallet` | Creates a WDK-backed ERC-4337 wallet and resolves the Safe address |
284
+ | `setupErc4337Wallet` | Creates an ERC-4337 wallet from a seed phrase and resolves the Safe address |
295
285
  | `EvmTransfer` | Estimates, checks balance, sends single transfers, and sends batch transfers |
296
286
  | `PasskeyTransfer` | Sends passkey-signed transfers after a passkey has been linked |
297
287
  | `linkPasskeyToSafe` | Registers a passkey and adds its signer to the Safe owner set |
package/dist/index.d.mts CHANGED
@@ -32,7 +32,6 @@ type EVM4337ClientConfig = {
32
32
  };
33
33
  /**
34
34
  * Build the full ERC-4337 network config from user-provided client config.
35
- * Matches the structure expected by @tetherto/wdk-wallet-evm-erc-4337.
36
35
  */
37
36
  declare function getErc4337ConfigForChain(config: EVM4337ClientConfig): EvmErc4337NetworkConfig;
38
37
  /** Conservative gas fee fallback estimates per chain (USDT 6 decimals). */
@@ -89,12 +88,14 @@ declare const SAFE_WEBAUTHN_SIGNER_FACTORY: Record<string, string>;
89
88
  declare const FCL_P256_VERIFIER: Record<string, string>;
90
89
 
91
90
  /**
92
- * Set up an ERC-4337 wallet via WDK.
91
+ * Set up an ERC-4337 wallet.
93
92
  *
94
- * Dynamically imports @tetherto/wdk-wallet-evm-erc-4337 and builds the
95
- * correct discriminated-union config:
96
- * - Sponsored mode → EvmErc4337WalletSponsorshipPolicyConfig
97
- * - Non-sponsored → EvmErc4337WalletPaymasterTokenConfig
93
+ * Builds the correct discriminated-union config:
94
+ * - Sponsored mode → sponsorship-policy config
95
+ * - Non-sponsored → paymaster-token config
96
+ *
97
+ * Derives the EOA at the BIP-44 path m/44'/60'/0'/0/{accountIndex} so the
98
+ * resulting Safe address stays stable across underlying-library upgrades.
98
99
  *
99
100
  * Optionally links a passkey to the Safe account when passkeyOptions is provided.
100
101
  */
package/dist/index.d.ts CHANGED
@@ -32,7 +32,6 @@ type EVM4337ClientConfig = {
32
32
  };
33
33
  /**
34
34
  * Build the full ERC-4337 network config from user-provided client config.
35
- * Matches the structure expected by @tetherto/wdk-wallet-evm-erc-4337.
36
35
  */
37
36
  declare function getErc4337ConfigForChain(config: EVM4337ClientConfig): EvmErc4337NetworkConfig;
38
37
  /** Conservative gas fee fallback estimates per chain (USDT 6 decimals). */
@@ -89,12 +88,14 @@ declare const SAFE_WEBAUTHN_SIGNER_FACTORY: Record<string, string>;
89
88
  declare const FCL_P256_VERIFIER: Record<string, string>;
90
89
 
91
90
  /**
92
- * Set up an ERC-4337 wallet via WDK.
91
+ * Set up an ERC-4337 wallet.
93
92
  *
94
- * Dynamically imports @tetherto/wdk-wallet-evm-erc-4337 and builds the
95
- * correct discriminated-union config:
96
- * - Sponsored mode → EvmErc4337WalletSponsorshipPolicyConfig
97
- * - Non-sponsored → EvmErc4337WalletPaymasterTokenConfig
93
+ * Builds the correct discriminated-union config:
94
+ * - Sponsored mode → sponsorship-policy config
95
+ * - Non-sponsored → paymaster-token config
96
+ *
97
+ * Derives the EOA at the BIP-44 path m/44'/60'/0'/0/{accountIndex} so the
98
+ * resulting Safe address stays stable across underlying-library upgrades.
98
99
  *
99
100
  * Optionally links a passkey to the Safe account when passkeyOptions is provided.
100
101
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gasfree-kit/evm-4337",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "ERC-4337 gasless transactions for EVM chains — powered by WDK",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -19,7 +19,7 @@
19
19
  "dependencies": {
20
20
  "@noble/hashes": "^2.0.1",
21
21
  "abstractionkit": "^0.2.30",
22
- "@gasfree-kit/core": "0.2.0"
22
+ "@gasfree-kit/core": "0.2.1"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "@safe-global/protocol-kit": "^5.0.0",