@settlemint/dalp-sdk 3.1.19-main.34953227821 → 3.1.19-main.34958175732

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/dist/auth.js CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  makeCookieStore2,
11
11
  createCookieStoreFetch2,
12
12
  SDK_USER_AGENT2
13
- } from "./chunk-w74pp4pw.js";
13
+ } from "./chunk-0ns4zjz2.js";
14
14
 
15
15
  // src/auth/live.ts
16
16
  import { apiKeyClient } from "@better-auth/api-key/client";
package/dist/bundler.js CHANGED
@@ -1,14 +1,17 @@
1
- import"./chunk-0chh7bgg.js";
2
1
  import"./chunk-j4sxrfzz.js";
3
2
  import"./chunk-tmyd93kk.js";
4
3
  import"./chunk-xp3fx2yt.js";
5
4
  import {
6
- createDalpClient2
7
- } from "./chunk-3x5a8n2z.js";
8
- import"./chunk-7y52nnrf.js";
5
+ buildDalpClient
6
+ } from "./chunk-7y52nnrf.js";
9
7
 
10
8
  // src/bundler.ts
11
9
  import { getAddress, hexToBigInt, isHex } from "viem";
10
+
11
+ // src/generated/bundler-routes.ts
12
+ var data = JSON.parse('{"version":1,"routes":{"transactions/bundler/estimateUserOperationGas":{"method":"POST","path":"/bundler/user-operation-gas-estimates","params":[],"hasPayload":true,"bodyParams":[],"queryParams":[],"successStatuses":[200],"errorStatuses":[400,401,403,404,409,500,503],"queueBacked":false,"settlementTrait":"immediate","serializer":"decimal","auth":"api-key","access":"write","idempotency":true,"scalars":{}},"transactions/bundler/getChainId":{"method":"GET","path":"/bundler/chain-id","params":[],"hasPayload":false,"bodyParams":[],"queryParams":[],"successStatuses":[200],"errorStatuses":[400,401,403,404,409,500,503],"queueBacked":false,"settlementTrait":"immediate","serializer":"decimal","auth":"api-key","access":"read","idempotency":false,"scalars":{}},"transactions/bundler/getPaymasterData":{"method":"POST","path":"/bundler/paymaster-data","params":[],"hasPayload":true,"bodyParams":[],"queryParams":[],"successStatuses":[200],"errorStatuses":[400,401,403,404,409,500,503],"queueBacked":false,"settlementTrait":"immediate","serializer":"decimal","auth":"api-key","access":"write","idempotency":true,"scalars":{}},"transactions/bundler/getPaymasterStubData":{"method":"POST","path":"/bundler/paymaster-stub-data","params":[],"hasPayload":true,"bodyParams":[],"queryParams":[],"successStatuses":[200],"errorStatuses":[400,401,403,404,409,500,503],"queueBacked":false,"settlementTrait":"immediate","serializer":"decimal","auth":"api-key","access":"write","idempotency":true,"scalars":{}},"transactions/bundler/getSupportedEntryPoints":{"method":"GET","path":"/bundler/entry-points","params":[],"hasPayload":false,"bodyParams":[],"queryParams":[],"successStatuses":[200],"errorStatuses":[400,401,403,404,409,500,503],"queueBacked":false,"settlementTrait":"immediate","serializer":"decimal","auth":"api-key","access":"read","idempotency":false,"scalars":{}},"transactions/bundler/getUserOperationByHash":{"method":"GET","path":"/bundler/user-operations/:userOperationHash","params":["userOperationHash"],"hasPayload":false,"bodyParams":[],"queryParams":[],"successStatuses":[200],"errorStatuses":[400,401,403,404,409,500,503],"queueBacked":false,"settlementTrait":"immediate","serializer":"decimal","auth":"api-key","access":"read","idempotency":false,"scalars":{"params.userOperationHash":"EthereumHex"}},"transactions/bundler/getUserOperationReceipt":{"method":"GET","path":"/bundler/user-operation-receipts/:userOperationHash","params":["userOperationHash"],"hasPayload":false,"bodyParams":[],"queryParams":[],"successStatuses":[200],"errorStatuses":[400,401,403,404,409,500,503],"queueBacked":false,"settlementTrait":"immediate","serializer":"decimal","auth":"api-key","access":"read","idempotency":false,"scalars":{"params.userOperationHash":"EthereumHex"}},"transactions/bundler/sendUserOperation":{"method":"POST","path":"/bundler/user-operations","params":[],"hasPayload":true,"bodyParams":[],"queryParams":[],"successStatuses":[200],"errorStatuses":[400,401,403,404,409,500,503],"queueBacked":false,"settlementTrait":"immediate","serializer":"decimal","auth":"api-key","access":"write","idempotency":true,"scalars":{}}},"settlementDisagreements":[]}');
13
+
14
+ // src/bundler.ts
12
15
  var responseData = (result) => {
13
16
  const body = result !== null && typeof result === "object" ? Reflect.get(result, "data") : undefined;
14
17
  const unwrapped = body ?? result;
@@ -21,13 +24,13 @@ var requireHex = (value, field) => {
21
24
  return value;
22
25
  };
23
26
  function createDalpBundlerClient(config) {
24
- const client = createDalpClient2({
27
+ const client = buildDalpClient({
25
28
  baseUrl: config.url,
26
29
  apiKey: config.apiKey,
27
30
  context: { organizationId: config.organizationId },
28
31
  fetch: config.fetch,
29
32
  runtime: "server"
30
- });
33
+ }, data);
31
34
  return {
32
35
  async sendUserOperation(operation, entryPoint) {
33
36
  const result = await client.execute("transactions/bundler/sendUserOperation", {
@@ -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.34953227821",
105
+ version: "3.1.19-main.34958175732",
106
106
  private: false,
107
107
  description: "Fully typed SDK for the DALP tokenization platform API",
108
108
  homepage: "https://settlemint.com",