@obelyzk/sdk 1.0.1 → 1.2.0

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.
@@ -4,12 +4,14 @@ import {
4
4
  GENERATOR_G,
5
5
  GENERATOR_H,
6
6
  ObelyskPrivacy,
7
- __require,
8
7
  ecAdd,
9
8
  ecMul,
10
9
  invMod,
11
10
  randomScalar
12
- } from "../chunk-CGPFHXUF.mjs";
11
+ } from "../chunk-MDF4P52S.mjs";
12
+ import {
13
+ __require
14
+ } from "../chunk-Y6FXYEAI.mjs";
13
15
 
14
16
  // src/obelysk/client.ts
15
17
  import { RpcProvider } from "starknet";
@@ -9,7 +9,7 @@
9
9
  *
10
10
  * @example
11
11
  * ```typescript
12
- * import { ObelyskPrivacy, ConfidentialSwapClient } from '@bitsage/sdk/privacy';
12
+ * import { ObelyskPrivacy, ConfidentialSwapClient } from '@obelyzk/sdk/privacy';
13
13
  *
14
14
  * // Initialize privacy client
15
15
  * const privacy = new ObelyskPrivacy();
@@ -9,7 +9,7 @@
9
9
  *
10
10
  * @example
11
11
  * ```typescript
12
- * import { ObelyskPrivacy, ConfidentialSwapClient } from '@bitsage/sdk/privacy';
12
+ * import { ObelyskPrivacy, ConfidentialSwapClient } from '@obelyzk/sdk/privacy';
13
13
  *
14
14
  * // Initialize privacy client
15
15
  * const privacy = new ObelyskPrivacy();
@@ -19,7 +19,8 @@ import {
19
19
  randomBytes,
20
20
  randomScalar,
21
21
  subMod
22
- } from "../chunk-CGPFHXUF.mjs";
22
+ } from "../chunk-MDF4P52S.mjs";
23
+ import "../chunk-Y6FXYEAI.mjs";
23
24
  export {
24
25
  AssetId,
25
26
  CURVE_ORDER,
@@ -78,7 +78,7 @@ declare const BitSageContext: React.Context<BitSageContextValue | undefined>;
78
78
  *
79
79
  * @example
80
80
  * ```tsx
81
- * import { BitSageProvider } from '@bitsage/sdk/react';
81
+ * import { BitSageProvider } from '@obelyzk/sdk/react';
82
82
  *
83
83
  * function App() {
84
84
  * return (
@@ -189,7 +189,7 @@ declare const PrivacyContext: React.Context<PrivacyContextValue | undefined>;
189
189
  *
190
190
  * @example
191
191
  * ```tsx
192
- * import { BitSageProvider, PrivacyProvider } from '@bitsage/sdk/react';
192
+ * import { BitSageProvider, PrivacyProvider } from '@obelyzk/sdk/react';
193
193
  *
194
194
  * function App() {
195
195
  * return (
@@ -289,7 +289,7 @@ declare const WebSocketContext: React.Context<WebSocketContextValue | undefined>
289
289
  *
290
290
  * @example
291
291
  * ```tsx
292
- * import { BitSageProvider, WebSocketProvider } from '@bitsage/sdk/react';
292
+ * import { BitSageProvider, WebSocketProvider } from '@obelyzk/sdk/react';
293
293
  *
294
294
  * function App() {
295
295
  * return (
@@ -78,7 +78,7 @@ declare const BitSageContext: React.Context<BitSageContextValue | undefined>;
78
78
  *
79
79
  * @example
80
80
  * ```tsx
81
- * import { BitSageProvider } from '@bitsage/sdk/react';
81
+ * import { BitSageProvider } from '@obelyzk/sdk/react';
82
82
  *
83
83
  * function App() {
84
84
  * return (
@@ -189,7 +189,7 @@ declare const PrivacyContext: React.Context<PrivacyContextValue | undefined>;
189
189
  *
190
190
  * @example
191
191
  * ```tsx
192
- * import { BitSageProvider, PrivacyProvider } from '@bitsage/sdk/react';
192
+ * import { BitSageProvider, PrivacyProvider } from '@obelyzk/sdk/react';
193
193
  *
194
194
  * function App() {
195
195
  * return (
@@ -289,7 +289,7 @@ declare const WebSocketContext: React.Context<WebSocketContextValue | undefined>
289
289
  *
290
290
  * @example
291
291
  * ```tsx
292
- * import { BitSageProvider, WebSocketProvider } from '@bitsage/sdk/react';
292
+ * import { BitSageProvider, WebSocketProvider } from '@obelyzk/sdk/react';
293
293
  *
294
294
  * function App() {
295
295
  * return (
@@ -16,7 +16,8 @@ import {
16
16
  WorkersClient,
17
17
  getContractsForNetwork
18
18
  } from "../chunk-LXJT3QK6.mjs";
19
- import "../chunk-CGPFHXUF.mjs";
19
+ import "../chunk-MDF4P52S.mjs";
20
+ import "../chunk-Y6FXYEAI.mjs";
20
21
 
21
22
  // src/react/providers/BitSageProvider.tsx
22
23
  import {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@obelyzk/sdk",
3
- "version": "1.0.1",
3
+ "version": "1.2.0",
4
4
  "description": "BitSage Network SDK - Client library for distributed compute, privacy swaps, and Obelysk encryption",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -21,6 +21,11 @@
21
21
  "import": "./dist/react/index.mjs",
22
22
  "require": "./dist/react/index.js"
23
23
  },
24
+ "./firewall": {
25
+ "types": "./dist/firewall/index.d.ts",
26
+ "import": "./dist/firewall/index.mjs",
27
+ "require": "./dist/firewall/index.js"
28
+ },
24
29
  "./obelysk": {
25
30
  "types": "./dist/obelysk/index.d.ts",
26
31
  "import": "./dist/obelysk/index.mjs",
@@ -54,7 +59,7 @@
54
59
  "zk-proofs"
55
60
  ],
56
61
  "scripts": {
57
- "build": "tsup src/index.ts src/privacy/index.ts src/react/index.ts src/obelysk/index.ts --format cjs,esm --dts",
62
+ "build": "tsup src/index.ts src/privacy/index.ts src/react/index.ts src/obelysk/index.ts src/firewall/index.ts --format cjs,esm --dts",
58
63
  "dev": "tsup src/index.ts src/privacy/index.ts src/react/index.ts src/obelysk/index.ts --format cjs,esm --dts --watch",
59
64
  "lint": "eslint src/",
60
65
  "test": "vitest",
@@ -97,5 +102,9 @@
97
102
  "homepage": "https://bitsage.network",
98
103
  "bugs": {
99
104
  "url": "https://github.com/Bitsage-Network/bitsage-network/issues"
105
+ },
106
+ "optionalDependencies": {
107
+ "@modelcontextprotocol/sdk": "^1.27.1",
108
+ "zod": "^4.3.6"
100
109
  }
101
110
  }