@1llet.xyz/erc4337-gasless-sdk 0.1.6 → 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 +19 -0
- package/package.json +1 -1
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
|