@settlemint/dalp-sdk 3.1.19-main.35965976645 → 3.1.19-main.35976312082
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 +35 -6
- package/dist/auth.js +1 -1
- package/dist/{chunk-aah0cyt2.js → chunk-2zdzpdjd.js} +1 -6
- package/dist/chunk-r0qxmssa.js +5 -0
- package/dist/{chunk-q0m452fs.js → chunk-rykty1xt.js} +1 -1
- package/dist/{chunk-mjw17gfz.js → chunk-ta940xb3.js} +1 -1
- package/dist/{chunk-tp9pkx71.js → chunk-ttmeq3rx.js} +1 -1
- package/dist/effect.js +2 -2
- package/dist/generated/api-types.d.ts +218 -565
- package/dist/index.js +4 -4
- package/dist/react-query.js +1 -1
- package/dist/routes/console.js +3 -3
- package/dist/routes/index.js +1 -1
- package/package.json +1 -6
- package/dist/bundler.d.ts +0 -24
- package/dist/bundler.js +0 -101
- package/dist/chunk-67af82pa.js +0 -5
- package/dist/generated/bundler-routes.d.ts +0 -12
package/README.md
CHANGED
|
@@ -178,14 +178,43 @@ routes. The API key guide in the DALP API reference has the details.
|
|
|
178
178
|
|
|
179
179
|
## Bundler and paymaster
|
|
180
180
|
|
|
181
|
+
Use JSON-RPC 2.0 over `POST https://dalp.example.com/bundler/{chainId}` for
|
|
182
|
+
account-abstraction calls. `{chainId}` is the decimal EVM chain ID; this is
|
|
183
|
+
not an `/api/v2` REST route and is not exposed through `dalp.api` or a separate
|
|
184
|
+
SDK bundler client. From a server, send a write-capable API key in `x-api-key`;
|
|
185
|
+
the key's active organization selects the tenant. Never put the key in browser
|
|
186
|
+
code.
|
|
187
|
+
|
|
188
|
+
The mount serves these standard methods:
|
|
189
|
+
|
|
190
|
+
| Method | Params |
|
|
191
|
+
| ------------------------------ | ----------------------------- |
|
|
192
|
+
| `eth_sendUserOperation` | `[userOperation, entryPoint]` |
|
|
193
|
+
| `eth_estimateUserOperationGas` | `[userOperation, entryPoint]` |
|
|
194
|
+
| `eth_getUserOperationByHash` | `[userOperationHash]` |
|
|
195
|
+
| `eth_getUserOperationReceipt` | `[userOperationHash]` |
|
|
196
|
+
| `eth_supportedEntryPoints` | `[]` |
|
|
197
|
+
| `pm_getPaymasterData` | `[userOperation, entryPoint]` |
|
|
198
|
+
|
|
199
|
+
The UserOperation must be signed by your account-abstraction stack before
|
|
200
|
+
`eth_sendUserOperation`. The mount accepts EntryPoint v0.7 UserOperations and
|
|
201
|
+
returns JSON-RPC `result` or `error` envelopes, not REST `{ data, links }`
|
|
202
|
+
resources. There is no `eth_chainId` or `pm_getPaymasterStubData` method on
|
|
203
|
+
this mount; the chain is selected by the URL. Consult the platform's bundler
|
|
204
|
+
method policy before depending on a method being enabled for your credential.
|
|
205
|
+
|
|
181
206
|
```ts
|
|
182
|
-
|
|
207
|
+
const response = await fetch("https://dalp.example.com/bundler/1", {
|
|
208
|
+
method: "POST",
|
|
209
|
+
headers: {
|
|
210
|
+
"content-type": "application/json",
|
|
211
|
+
"x-api-key": apiKey,
|
|
212
|
+
},
|
|
213
|
+
body: JSON.stringify({ jsonrpc: "2.0", id: 1, method: "eth_supportedEntryPoints", params: [] }),
|
|
214
|
+
});
|
|
215
|
+
const answer = await response.json(); // { jsonrpc: "2.0", id: 1, result: [...] } or { error: ... }
|
|
183
216
|
```
|
|
184
217
|
|
|
185
|
-
`createDalpBundlerClient` keeps the eight established ERC-4337 method names
|
|
186
|
-
while calling the v2 REST resources underneath. It accepts EntryPoint v0.9
|
|
187
|
-
`viem` shapes and returns the corresponding typed values.
|
|
188
|
-
|
|
189
218
|
## Webhooks and transaction wait
|
|
190
219
|
|
|
191
220
|
- `./verify-webhook` verifies an inbound webhook signature.
|
|
@@ -198,7 +227,7 @@ while calling the v2 REST resources underneath. It accepts EntryPoint v0.9
|
|
|
198
227
|
|
|
199
228
|
The root stays small: the client factory, its options and errors, cookie-store
|
|
200
229
|
transport, and the version constants. A consumer who only
|
|
201
|
-
calls routes never pays for auth,
|
|
230
|
+
calls routes never pays for auth, TanStack Query, or webhook code.
|
|
202
231
|
|
|
203
232
|
## Documentation
|
|
204
233
|
|
package/dist/auth.js
CHANGED
|
@@ -102,7 +102,7 @@ function createCookieStoreFetch2(cookieStore, fetchImpl = globalThis.fetch) {
|
|
|
102
102
|
// package.json
|
|
103
103
|
var package_default = {
|
|
104
104
|
name: "@settlemint/dalp-sdk",
|
|
105
|
-
version: "3.1.19-main.
|
|
105
|
+
version: "3.1.19-main.35976312082",
|
|
106
106
|
private: false,
|
|
107
107
|
description: "Fully typed SDK for the DALP tokenization platform API",
|
|
108
108
|
homepage: "https://settlemint.com",
|
|
@@ -156,11 +156,6 @@ var package_default = {
|
|
|
156
156
|
import: "./dist/auth.js",
|
|
157
157
|
default: "./dist/auth.js"
|
|
158
158
|
},
|
|
159
|
-
"./bundler": {
|
|
160
|
-
types: "./dist/bundler.d.ts",
|
|
161
|
-
import: "./dist/bundler.js",
|
|
162
|
-
default: "./dist/bundler.js"
|
|
163
|
-
},
|
|
164
159
|
"./verify-webhook": {
|
|
165
160
|
types: "./dist/verify-webhook.d.ts",
|
|
166
161
|
import: "./dist/verify-webhook.js",
|