@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.
- package/README.md +110 -405
- package/bin/bitsage-demo.ts +0 -0
- package/dist/chunk-BHUXKNDT.mjs +206 -0
- package/dist/chunk-MDF4P52S.mjs +697 -0
- package/dist/chunk-Y6FXYEAI.mjs +10 -0
- package/dist/firewall/index.d.mts +166 -0
- package/dist/firewall/index.d.ts +166 -0
- package/dist/firewall/index.js +232 -0
- package/dist/firewall/index.mjs +7 -0
- package/dist/index.d.mts +54 -8
- package/dist/index.d.ts +54 -8
- package/dist/index.js +251 -6
- package/dist/index.mjs +52 -7
- package/dist/obelysk/index.mjs +4 -2
- package/dist/privacy/index.d.mts +1 -1
- package/dist/privacy/index.d.ts +1 -1
- package/dist/privacy/index.mjs +2 -1
- package/dist/react/index.d.mts +3 -3
- package/dist/react/index.d.ts +3 -3
- package/dist/react/index.mjs +2 -1
- package/package.json +11 -2
package/dist/obelysk/index.mjs
CHANGED
|
@@ -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-
|
|
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";
|
package/dist/privacy/index.d.mts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* ```typescript
|
|
12
|
-
* import { ObelyskPrivacy, ConfidentialSwapClient } from '@
|
|
12
|
+
* import { ObelyskPrivacy, ConfidentialSwapClient } from '@obelyzk/sdk/privacy';
|
|
13
13
|
*
|
|
14
14
|
* // Initialize privacy client
|
|
15
15
|
* const privacy = new ObelyskPrivacy();
|
package/dist/privacy/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* ```typescript
|
|
12
|
-
* import { ObelyskPrivacy, ConfidentialSwapClient } from '@
|
|
12
|
+
* import { ObelyskPrivacy, ConfidentialSwapClient } from '@obelyzk/sdk/privacy';
|
|
13
13
|
*
|
|
14
14
|
* // Initialize privacy client
|
|
15
15
|
* const privacy = new ObelyskPrivacy();
|
package/dist/privacy/index.mjs
CHANGED
package/dist/react/index.d.mts
CHANGED
|
@@ -78,7 +78,7 @@ declare const BitSageContext: React.Context<BitSageContextValue | undefined>;
|
|
|
78
78
|
*
|
|
79
79
|
* @example
|
|
80
80
|
* ```tsx
|
|
81
|
-
* import { BitSageProvider } from '@
|
|
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 '@
|
|
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 '@
|
|
292
|
+
* import { BitSageProvider, WebSocketProvider } from '@obelyzk/sdk/react';
|
|
293
293
|
*
|
|
294
294
|
* function App() {
|
|
295
295
|
* return (
|
package/dist/react/index.d.ts
CHANGED
|
@@ -78,7 +78,7 @@ declare const BitSageContext: React.Context<BitSageContextValue | undefined>;
|
|
|
78
78
|
*
|
|
79
79
|
* @example
|
|
80
80
|
* ```tsx
|
|
81
|
-
* import { BitSageProvider } from '@
|
|
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 '@
|
|
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 '@
|
|
292
|
+
* import { BitSageProvider, WebSocketProvider } from '@obelyzk/sdk/react';
|
|
293
293
|
*
|
|
294
294
|
* function App() {
|
|
295
295
|
* return (
|
package/dist/react/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@obelyzk/sdk",
|
|
3
|
-
"version": "1.0
|
|
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
|
}
|