x402z-shared 0.0.4 → 0.0.5

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/web.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { C as ConfidentialErrorCode, i as ConfidentialPaymentAuthorization, l as ConfidentialPaymentInput, j as ConfidentialPaymentPayload, k as ConfidentialRequirementsExtra, S as SetObserverOptions, d as confidentialErrorCodes, b as confidentialPaymentTypes, c as confidentialTokenAbi, e as createNonce, h as hashEncryptedAmountInput, n as normalizeAmount, s as setObserver } from './types-Cy4f8wJ6.mjs';
2
- import { createInstance } from '@zama-fhe/relayer-sdk/bundle';
3
- export { SepoliaConfig, initSDK } from '@zama-fhe/relayer-sdk/bundle';
2
+ import { createInstance } from '@zama-fhe/relayer-sdk/web';
3
+ export { SepoliaConfig, initSDK } from '@zama-fhe/relayer-sdk/web';
4
4
  import { WalletClient } from 'viem';
5
5
  export * from '@x402/core/types';
6
6
  import '@zama-fhe/relayer-sdk/node';
package/dist/web.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { C as ConfidentialErrorCode, i as ConfidentialPaymentAuthorization, l as ConfidentialPaymentInput, j as ConfidentialPaymentPayload, k as ConfidentialRequirementsExtra, S as SetObserverOptions, d as confidentialErrorCodes, b as confidentialPaymentTypes, c as confidentialTokenAbi, e as createNonce, h as hashEncryptedAmountInput, n as normalizeAmount, s as setObserver } from './types-Cy4f8wJ6.js';
2
- import { createInstance } from '@zama-fhe/relayer-sdk/bundle';
3
- export { SepoliaConfig, initSDK } from '@zama-fhe/relayer-sdk/bundle';
2
+ import { createInstance } from '@zama-fhe/relayer-sdk/web';
3
+ export { SepoliaConfig, initSDK } from '@zama-fhe/relayer-sdk/web';
4
4
  import { WalletClient } from 'viem';
5
5
  export * from '@x402/core/types';
6
6
  import '@zama-fhe/relayer-sdk/node';
package/dist/web.js CHANGED
@@ -20,7 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/web.ts
21
21
  var web_exports = {};
22
22
  __export(web_exports, {
23
- SepoliaConfig: () => import_bundle.SepoliaConfig,
23
+ SepoliaConfig: () => import_web.SepoliaConfig,
24
24
  confidentialErrorCodes: () => confidentialErrorCodes,
25
25
  confidentialPaymentTypes: () => confidentialPaymentTypes,
26
26
  confidentialTokenAbi: () => confidentialTokenAbi,
@@ -28,7 +28,7 @@ __export(web_exports, {
28
28
  createNonce: () => createNonce,
29
29
  createRelayerInstance: () => createRelayerInstance,
30
30
  hashEncryptedAmountInput: () => hashEncryptedAmountInput,
31
- initSDK: () => import_bundle.initSDK,
31
+ initSDK: () => import_web.initSDK,
32
32
  normalizeAmount: () => normalizeAmount,
33
33
  publicDecrypt: () => publicDecrypt,
34
34
  setObserver: () => setObserver,
@@ -154,10 +154,10 @@ function normalizeAmount(amount) {
154
154
  }
155
155
 
156
156
  // src/relayer-web.ts
157
- var import_bundle = require("@zama-fhe/relayer-sdk/bundle");
157
+ var import_web = require("@zama-fhe/relayer-sdk/web");
158
158
  var import_viem2 = require("viem");
159
159
  async function createRelayerInstance(config) {
160
- const instance = await (0, import_bundle.createInstance)(config);
160
+ const instance = await (0, import_web.createInstance)(config);
161
161
  if (typeof config.network === "string") {
162
162
  instance.network = config.network;
163
163
  }
package/dist/web.mjs CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-LTE4V3LT.mjs";
10
10
 
11
11
  // src/relayer-web.ts
12
- import { createInstance, initSDK, SepoliaConfig } from "@zama-fhe/relayer-sdk/bundle";
12
+ import { createInstance, initSDK, SepoliaConfig } from "@zama-fhe/relayer-sdk/web";
13
13
  import { getAddress, toHex } from "viem";
14
14
  async function createRelayerInstance(config) {
15
15
  const instance = await createInstance(config);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x402z-shared",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",