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 +2 -2
- package/dist/web.d.ts +2 -2
- package/dist/web.js +4 -4
- package/dist/web.mjs +1 -1
- package/package.json +1 -1
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/
|
|
3
|
-
export { SepoliaConfig, initSDK } from '@zama-fhe/relayer-sdk/
|
|
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/
|
|
3
|
-
export { SepoliaConfig, initSDK } from '@zama-fhe/relayer-sdk/
|
|
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: () =>
|
|
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: () =>
|
|
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
|
|
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,
|
|
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/
|
|
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);
|