@interest-protocol/vortex-sdk 7.4.0 → 7.6.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/dist/index.js +53 -470
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +53 -470
- package/dist/index.mjs.map +1 -1
- package/dist/utils/decrypt.d.ts.map +1 -1
- package/dist/utils/prove.d.ts +2 -2
- package/dist/utils/prove.d.ts.map +1 -1
- package/dist/vortex-B4vJEPJu.js +161 -0
- package/dist/vortex-B4vJEPJu.js.map +1 -0
- package/dist/vortex-CG5eotma.js +315 -0
- package/dist/vortex-CG5eotma.js.map +1 -0
- package/dist/vortex-CqFkd5YM.mjs +158 -0
- package/dist/vortex-CqFkd5YM.mjs.map +1 -0
- package/dist/vortex-api.d.ts +2 -1
- package/dist/vortex-api.d.ts.map +1 -1
- package/dist/vortex-api.types.d.ts +25 -8
- package/dist/vortex-api.types.d.ts.map +1 -1
- package/dist/vortex-pJNVBvjP.mjs +313 -0
- package/dist/vortex-pJNVBvjP.mjs.map +1 -0
- package/package.json +3 -3
- package/rollup.config.js +6 -2
- package/src/utils/decrypt.ts +5 -2
- package/src/utils/deposit.ts +2 -2
- package/src/utils/prove.ts +32 -10
- package/src/utils/withdraw.ts +2 -2
- package/src/vortex-api.ts +24 -6
- package/src/vortex-api.types.ts +26 -8
package/src/vortex-api.types.ts
CHANGED
|
@@ -6,10 +6,16 @@ export interface VortexAPIConstructorArgs {
|
|
|
6
6
|
apiUrl?: string;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
+
export type ServiceStatus = 'healthy' | 'unhealthy';
|
|
10
|
+
|
|
9
11
|
export interface HealthStatus {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
status: 'healthy' | 'degraded';
|
|
13
|
+
services: {
|
|
14
|
+
mongodb: ServiceStatus;
|
|
15
|
+
redis: ServiceStatus;
|
|
16
|
+
sui: ServiceStatus;
|
|
17
|
+
};
|
|
18
|
+
timestamp: string;
|
|
13
19
|
}
|
|
14
20
|
|
|
15
21
|
export interface HealthResponse {
|
|
@@ -18,8 +24,12 @@ export interface HealthResponse {
|
|
|
18
24
|
}
|
|
19
25
|
|
|
20
26
|
export interface Account {
|
|
21
|
-
|
|
27
|
+
id: string;
|
|
28
|
+
objectId: string;
|
|
22
29
|
hashedSecret: string;
|
|
30
|
+
owner: string;
|
|
31
|
+
createdAt: string;
|
|
32
|
+
txDigest: string;
|
|
23
33
|
}
|
|
24
34
|
|
|
25
35
|
export interface AccountsResponse {
|
|
@@ -38,10 +48,13 @@ export interface AccountResponse {
|
|
|
38
48
|
}
|
|
39
49
|
|
|
40
50
|
export interface Pool {
|
|
51
|
+
id: string;
|
|
41
52
|
objectId: string;
|
|
42
53
|
coinType: string;
|
|
43
|
-
|
|
44
|
-
|
|
54
|
+
digest: string;
|
|
55
|
+
sender: string;
|
|
56
|
+
checkpoint: number;
|
|
57
|
+
checkpointTimestampMs: number;
|
|
45
58
|
}
|
|
46
59
|
|
|
47
60
|
export interface Pagination {
|
|
@@ -68,10 +81,15 @@ export interface GetPoolsArgs {
|
|
|
68
81
|
}
|
|
69
82
|
|
|
70
83
|
export interface Commitment {
|
|
71
|
-
|
|
84
|
+
id: string;
|
|
72
85
|
index: number;
|
|
86
|
+
commitment: string;
|
|
73
87
|
coinType: string;
|
|
74
|
-
encryptedOutput:
|
|
88
|
+
encryptedOutput: number[];
|
|
89
|
+
digest: string;
|
|
90
|
+
sender: string;
|
|
91
|
+
checkpoint: number;
|
|
92
|
+
checkpointTimestampMs: number;
|
|
75
93
|
}
|
|
76
94
|
|
|
77
95
|
export interface CommitmentsResponse {
|