@1llet.xyz/erc4337-gasless-sdk 0.1.5 → 0.1.7

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
@@ -165,6 +165,25 @@ const nonce = await aa.getNonce();
165
165
  const hash = aa.getUserOpHash(userOp);
166
166
  ```
167
167
 
168
+ ### Constants & Exports
169
+
170
+ The SDK exports useful constants and ABIs so you don't need to redefine them:
171
+
172
+ ```typescript
173
+ import {
174
+ DEPLOYMENTS,
175
+ erc20Abi,
176
+ factoryAbi,
177
+ entryPointAbi
178
+ } from "@1llet.xyz/erc4337-gasless-sdk";
179
+
180
+ // Access known contract addresses
181
+ const usdcOnBase = DEPLOYMENTS[8453].usdc;
182
+
183
+ // Use ABIs directly
184
+ console.log(erc20Abi);
185
+ ```
186
+
168
187
  ## �📄 License
169
188
 
170
189
  MIT
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.1.5",
6
+ "version": "0.1.7",
7
7
  "description": "SDK for ERC-4337 Gasless Transfers",
8
8
  "main": "./dist/index.js",
9
9
  "module": "./dist/index.mjs",
package/src/index.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from "./AccountAbstraction";
2
2
  export * from "./types";
3
3
  export * from "./constants";
4
+ export * from "./deployments";