@ledgerhq/revault-sdk 0.12.2 → 0.16.1
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/lib/bake.cjs +90 -42
- package/lib/bake.cjs.map +1 -1
- package/lib/bake.d.cts +227 -103
- package/lib/bake.d.ts +227 -103
- package/lib/bake.js +90 -42
- package/lib/bake.js.map +1 -1
- package/lib/{chunk-DPHEFR6E.js → chunk-BGVGHXMO.js} +7 -3
- package/lib/chunk-BGVGHXMO.js.map +1 -0
- package/lib/{chunk-VCAQTGQE.cjs → chunk-R2LW7L74.cjs} +7 -3
- package/lib/chunk-R2LW7L74.cjs.map +1 -0
- package/lib/device.cjs +2 -2
- package/lib/device.d.cts +1 -1
- package/lib/device.d.ts +1 -1
- package/lib/device.js +1 -1
- package/lib/engine.cjs +107 -44
- package/lib/engine.cjs.map +1 -1
- package/lib/engine.d.cts +3 -3
- package/lib/engine.d.ts +3 -3
- package/lib/engine.js +87 -24
- package/lib/engine.js.map +1 -1
- package/lib/onboarding.cjs +30 -15
- package/lib/onboarding.cjs.map +1 -1
- package/lib/onboarding.d.cts +262 -262
- package/lib/onboarding.d.ts +262 -262
- package/lib/onboarding.js +26 -11
- package/lib/onboarding.js.map +1 -1
- package/lib/{types-DHZzeq9X.d.ts → types-BxfmwEOw.d.cts} +3 -7
- package/lib/{types-CsvE9Mlb.d.cts → types-DJfbanPz.d.cts} +11 -3
- package/lib/{types-CsvE9Mlb.d.ts → types-DJfbanPz.d.ts} +11 -3
- package/lib/{types-BYNH6EdK.d.cts → types-ZEEgdlx2.d.ts} +3 -7
- package/package.json +17 -17
- package/lib/chunk-DPHEFR6E.js.map +0 -1
- package/lib/chunk-VCAQTGQE.cjs.map +0 -1
package/lib/bake.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Logger } from './index.cjs';
|
|
2
2
|
import z from 'zod';
|
|
3
|
-
import { E as Engine, f as WithWorkspace, o as RouterInputs, c as WithDevice, l as WithPsdAuth } from './types-
|
|
3
|
+
import { E as Engine, f as WithWorkspace, o as RouterInputs, c as WithDevice, l as WithPsdAuth } from './types-BxfmwEOw.cjs';
|
|
4
4
|
import { VaultRequestResponse } from '@ledgerhq/revault-api';
|
|
5
|
-
import './types-
|
|
5
|
+
import './types-DJfbanPz.cjs';
|
|
6
6
|
import '@trpc/client';
|
|
7
7
|
import '@trpc/server';
|
|
8
8
|
|
|
@@ -12,10 +12,27 @@ type BakeOptions = {
|
|
|
12
12
|
workspaceName?: string;
|
|
13
13
|
rootAuthToken?: string;
|
|
14
14
|
};
|
|
15
|
+
declare const zManifestApiUser: z.ZodObject<{
|
|
16
|
+
name: z.ZodString;
|
|
17
|
+
role: z.ZodDefault<z.ZodEnum<["ADMIN", "OPERATOR"]>>;
|
|
18
|
+
pubKey: z.ZodString;
|
|
19
|
+
viewAll: z.ZodBoolean;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
name: string;
|
|
22
|
+
role: "ADMIN" | "OPERATOR";
|
|
23
|
+
pubKey: string;
|
|
24
|
+
viewAll: boolean;
|
|
25
|
+
}, {
|
|
26
|
+
name: string;
|
|
27
|
+
pubKey: string;
|
|
28
|
+
viewAll: boolean;
|
|
29
|
+
role?: "ADMIN" | "OPERATOR" | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
type ManifestApiUser = z.infer<typeof zManifestApiUser>;
|
|
15
32
|
declare const zManifestGroup: z.ZodObject<{
|
|
16
33
|
name: z.ZodString;
|
|
17
34
|
members: z.ZodArray<z.ZodNumber, "many">;
|
|
18
|
-
}, "
|
|
35
|
+
}, "strict", z.ZodTypeAny, {
|
|
19
36
|
name: string;
|
|
20
37
|
members: number[];
|
|
21
38
|
}, {
|
|
@@ -32,7 +49,7 @@ declare const zManifestWhitelist: z.ZodObject<{
|
|
|
32
49
|
currency: z.ZodString;
|
|
33
50
|
address: z.ZodString;
|
|
34
51
|
destinationTags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
35
|
-
}, "
|
|
52
|
+
}, "strict", z.ZodTypeAny, {
|
|
36
53
|
name: string;
|
|
37
54
|
currency: string;
|
|
38
55
|
address: string;
|
|
@@ -43,7 +60,7 @@ declare const zManifestWhitelist: z.ZodObject<{
|
|
|
43
60
|
address: string;
|
|
44
61
|
destinationTags?: string[] | undefined;
|
|
45
62
|
}>, "many">;
|
|
46
|
-
}, "
|
|
63
|
+
}, "strict", z.ZodTypeAny, {
|
|
47
64
|
type: "TRANSACTION" | "SMART_CONTRACT";
|
|
48
65
|
name: string;
|
|
49
66
|
description: string;
|
|
@@ -70,7 +87,7 @@ declare const zManifestGovernanceRule: z.ZodObject<{
|
|
|
70
87
|
steps: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
71
88
|
quorum: z.ZodNumber;
|
|
72
89
|
members: z.ZodArray<z.ZodNumber, "many">;
|
|
73
|
-
}, "
|
|
90
|
+
}, "strict", z.ZodTypeAny, {
|
|
74
91
|
members: number[];
|
|
75
92
|
quorum: number;
|
|
76
93
|
}, {
|
|
@@ -79,14 +96,14 @@ declare const zManifestGovernanceRule: z.ZodObject<{
|
|
|
79
96
|
}>, z.ZodObject<{
|
|
80
97
|
quorum: z.ZodNumber;
|
|
81
98
|
group: z.ZodString;
|
|
82
|
-
}, "
|
|
99
|
+
}, "strict", z.ZodTypeAny, {
|
|
83
100
|
quorum: number;
|
|
84
101
|
group: string;
|
|
85
102
|
}, {
|
|
86
103
|
quorum: number;
|
|
87
104
|
group: string;
|
|
88
105
|
}>]>, "many">;
|
|
89
|
-
}, "
|
|
106
|
+
}, "strict", z.ZodTypeAny, {
|
|
90
107
|
type: "SEND" | "STAKE" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "SIGN_DIGESTS" | "SIGN_MESSAGE";
|
|
91
108
|
steps: ({
|
|
92
109
|
members: number[];
|
|
@@ -114,7 +131,7 @@ declare const zManifestPolicy: z.ZodObject<{
|
|
|
114
131
|
steps: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
115
132
|
quorum: z.ZodNumber;
|
|
116
133
|
members: z.ZodArray<z.ZodNumber, "many">;
|
|
117
|
-
}, "
|
|
134
|
+
}, "strict", z.ZodTypeAny, {
|
|
118
135
|
members: number[];
|
|
119
136
|
quorum: number;
|
|
120
137
|
}, {
|
|
@@ -123,14 +140,14 @@ declare const zManifestPolicy: z.ZodObject<{
|
|
|
123
140
|
}>, z.ZodObject<{
|
|
124
141
|
quorum: z.ZodNumber;
|
|
125
142
|
group: z.ZodString;
|
|
126
|
-
}, "
|
|
143
|
+
}, "strict", z.ZodTypeAny, {
|
|
127
144
|
quorum: number;
|
|
128
145
|
group: string;
|
|
129
146
|
}, {
|
|
130
147
|
quorum: number;
|
|
131
148
|
group: string;
|
|
132
149
|
}>]>, "many">;
|
|
133
|
-
}, "
|
|
150
|
+
}, "strict", z.ZodTypeAny, {
|
|
134
151
|
type: "SEND" | "STAKE" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "SIGN_DIGESTS" | "SIGN_MESSAGE";
|
|
135
152
|
steps: ({
|
|
136
153
|
members: number[];
|
|
@@ -149,7 +166,7 @@ declare const zManifestPolicy: z.ZodObject<{
|
|
|
149
166
|
group: string;
|
|
150
167
|
})[];
|
|
151
168
|
}>, "many">;
|
|
152
|
-
}, "
|
|
169
|
+
}, "strict", z.ZodTypeAny, {
|
|
153
170
|
name: string;
|
|
154
171
|
currency: string;
|
|
155
172
|
rules: {
|
|
@@ -180,6 +197,7 @@ type ManifestPolicy = z.infer<typeof zManifestPolicy>;
|
|
|
180
197
|
declare const zManifestAccount: z.ZodObject<{
|
|
181
198
|
name: z.ZodString;
|
|
182
199
|
currency: z.ZodString;
|
|
200
|
+
index: z.ZodOptional<z.ZodNumber>;
|
|
183
201
|
contractAddress: z.ZodOptional<z.ZodString>;
|
|
184
202
|
governance: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
185
203
|
type: z.ZodLiteral<"CLASSIC">;
|
|
@@ -188,7 +206,7 @@ declare const zManifestAccount: z.ZodObject<{
|
|
|
188
206
|
steps: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
189
207
|
quorum: z.ZodNumber;
|
|
190
208
|
members: z.ZodArray<z.ZodNumber, "many">;
|
|
191
|
-
}, "
|
|
209
|
+
}, "strict", z.ZodTypeAny, {
|
|
192
210
|
members: number[];
|
|
193
211
|
quorum: number;
|
|
194
212
|
}, {
|
|
@@ -197,14 +215,14 @@ declare const zManifestAccount: z.ZodObject<{
|
|
|
197
215
|
}>, z.ZodObject<{
|
|
198
216
|
quorum: z.ZodNumber;
|
|
199
217
|
group: z.ZodString;
|
|
200
|
-
}, "
|
|
218
|
+
}, "strict", z.ZodTypeAny, {
|
|
201
219
|
quorum: number;
|
|
202
220
|
group: string;
|
|
203
221
|
}, {
|
|
204
222
|
quorum: number;
|
|
205
223
|
group: string;
|
|
206
224
|
}>]>, "many">;
|
|
207
|
-
}, "
|
|
225
|
+
}, "strict", z.ZodTypeAny, {
|
|
208
226
|
type: "SEND" | "STAKE" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "SIGN_DIGESTS" | "SIGN_MESSAGE";
|
|
209
227
|
steps: ({
|
|
210
228
|
members: number[];
|
|
@@ -223,7 +241,7 @@ declare const zManifestAccount: z.ZodObject<{
|
|
|
223
241
|
group: string;
|
|
224
242
|
})[];
|
|
225
243
|
}>, "many">;
|
|
226
|
-
}, "
|
|
244
|
+
}, "strict", z.ZodTypeAny, {
|
|
227
245
|
type: "CLASSIC";
|
|
228
246
|
rules: {
|
|
229
247
|
type: "SEND" | "STAKE" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "SIGN_DIGESTS" | "SIGN_MESSAGE";
|
|
@@ -254,7 +272,7 @@ declare const zManifestAccount: z.ZodObject<{
|
|
|
254
272
|
name: z.ZodString;
|
|
255
273
|
repledgeAuthorized: z.ZodOptional<z.ZodBoolean>;
|
|
256
274
|
needsAssetManagerApprovalForSettlements: z.ZodOptional<z.ZodBoolean>;
|
|
257
|
-
}, "
|
|
275
|
+
}, "strict", z.ZodTypeAny, {
|
|
258
276
|
name: string;
|
|
259
277
|
repledgeAuthorized?: boolean | undefined;
|
|
260
278
|
needsAssetManagerApprovalForSettlements?: boolean | undefined;
|
|
@@ -263,7 +281,7 @@ declare const zManifestAccount: z.ZodObject<{
|
|
|
263
281
|
repledgeAuthorized?: boolean | undefined;
|
|
264
282
|
needsAssetManagerApprovalForSettlements?: boolean | undefined;
|
|
265
283
|
}>, "many">;
|
|
266
|
-
}, "
|
|
284
|
+
}, "strict", z.ZodTypeAny, {
|
|
267
285
|
type: "TRADELINK";
|
|
268
286
|
exchanges: {
|
|
269
287
|
name: string;
|
|
@@ -280,7 +298,7 @@ declare const zManifestAccount: z.ZodObject<{
|
|
|
280
298
|
}[];
|
|
281
299
|
assetManager: string;
|
|
282
300
|
}>]>;
|
|
283
|
-
}, "
|
|
301
|
+
}, "strict", z.ZodTypeAny, {
|
|
284
302
|
name: string;
|
|
285
303
|
currency: string;
|
|
286
304
|
governance: {
|
|
@@ -304,6 +322,7 @@ declare const zManifestAccount: z.ZodObject<{
|
|
|
304
322
|
}[];
|
|
305
323
|
assetManager: string;
|
|
306
324
|
};
|
|
325
|
+
index?: number | undefined;
|
|
307
326
|
contractAddress?: string | undefined;
|
|
308
327
|
}, {
|
|
309
328
|
name: string;
|
|
@@ -329,6 +348,7 @@ declare const zManifestAccount: z.ZodObject<{
|
|
|
329
348
|
}[];
|
|
330
349
|
assetManager: string;
|
|
331
350
|
};
|
|
351
|
+
index?: number | undefined;
|
|
332
352
|
contractAddress?: string | undefined;
|
|
333
353
|
}>;
|
|
334
354
|
type ManifestAccount = z.infer<typeof zManifestAccount>;
|
|
@@ -336,7 +356,7 @@ declare const zManifestPledgeAdjustment: z.ZodObject<{
|
|
|
336
356
|
account: z.ZodString;
|
|
337
357
|
exchange: z.ZodString;
|
|
338
358
|
amount: z.ZodString;
|
|
339
|
-
}, "
|
|
359
|
+
}, "strict", z.ZodTypeAny, {
|
|
340
360
|
account: string;
|
|
341
361
|
exchange: string;
|
|
342
362
|
amount: string;
|
|
@@ -349,7 +369,7 @@ type ManifestPledgeAdjustment = z.infer<typeof zManifestPledgeAdjustment>;
|
|
|
349
369
|
declare const zManifestTradelinkGroup: z.ZodObject<{
|
|
350
370
|
members: z.ZodArray<z.ZodNumber, "many">;
|
|
351
371
|
quorum: z.ZodNumber;
|
|
352
|
-
}, "
|
|
372
|
+
}, "strict", z.ZodTypeAny, {
|
|
353
373
|
members: number[];
|
|
354
374
|
quorum: number;
|
|
355
375
|
}, {
|
|
@@ -362,7 +382,7 @@ declare const zManifestTradelinkEntity: z.ZodObject<{
|
|
|
362
382
|
groups: z.ZodArray<z.ZodObject<{
|
|
363
383
|
members: z.ZodArray<z.ZodNumber, "many">;
|
|
364
384
|
quorum: z.ZodNumber;
|
|
365
|
-
}, "
|
|
385
|
+
}, "strict", z.ZodTypeAny, {
|
|
366
386
|
members: number[];
|
|
367
387
|
quorum: number;
|
|
368
388
|
}, {
|
|
@@ -373,7 +393,7 @@ declare const zManifestTradelinkEntity: z.ZodObject<{
|
|
|
373
393
|
name: z.ZodString;
|
|
374
394
|
currency: z.ZodString;
|
|
375
395
|
address: z.ZodString;
|
|
376
|
-
}, "
|
|
396
|
+
}, "strict", z.ZodTypeAny, {
|
|
377
397
|
name: string;
|
|
378
398
|
currency: string;
|
|
379
399
|
address: string;
|
|
@@ -382,7 +402,7 @@ declare const zManifestTradelinkEntity: z.ZodObject<{
|
|
|
382
402
|
currency: string;
|
|
383
403
|
address: string;
|
|
384
404
|
}>, "many">;
|
|
385
|
-
}, "
|
|
405
|
+
}, "strict", z.ZodTypeAny, {
|
|
386
406
|
name: string;
|
|
387
407
|
groups: {
|
|
388
408
|
members: number[];
|
|
@@ -410,7 +430,7 @@ declare const zManifestTradelinkNetworkBlueprint: z.ZodObject<{
|
|
|
410
430
|
custodian: z.ZodString;
|
|
411
431
|
exchanges: z.ZodArray<z.ZodString, "many">;
|
|
412
432
|
assetManagers: z.ZodArray<z.ZodString, "many">;
|
|
413
|
-
}, "
|
|
433
|
+
}, "strict", z.ZodTypeAny, {
|
|
414
434
|
exchanges: string[];
|
|
415
435
|
assetManagers: string[];
|
|
416
436
|
custodian: string;
|
|
@@ -425,7 +445,7 @@ declare const zManifestTradelinkNetwork: z.ZodObject<{
|
|
|
425
445
|
custodian: z.ZodString;
|
|
426
446
|
exchanges: z.ZodArray<z.ZodString, "many">;
|
|
427
447
|
assetManagers: z.ZodArray<z.ZodString, "many">;
|
|
428
|
-
}, "
|
|
448
|
+
}, "strict", z.ZodTypeAny, {
|
|
429
449
|
exchanges: string[];
|
|
430
450
|
assetManagers: string[];
|
|
431
451
|
custodian: string;
|
|
@@ -438,7 +458,7 @@ declare const zManifestTradelinkNetwork: z.ZodObject<{
|
|
|
438
458
|
settlement: z.ZodArray<z.ZodObject<{
|
|
439
459
|
members: z.ZodArray<z.ZodNumber, "many">;
|
|
440
460
|
quorum: z.ZodNumber;
|
|
441
|
-
}, "
|
|
461
|
+
}, "strict", z.ZodTypeAny, {
|
|
442
462
|
members: number[];
|
|
443
463
|
quorum: number;
|
|
444
464
|
}, {
|
|
@@ -448,7 +468,7 @@ declare const zManifestTradelinkNetwork: z.ZodObject<{
|
|
|
448
468
|
withdraw: z.ZodArray<z.ZodObject<{
|
|
449
469
|
members: z.ZodArray<z.ZodNumber, "many">;
|
|
450
470
|
quorum: z.ZodNumber;
|
|
451
|
-
}, "
|
|
471
|
+
}, "strict", z.ZodTypeAny, {
|
|
452
472
|
members: number[];
|
|
453
473
|
quorum: number;
|
|
454
474
|
}, {
|
|
@@ -458,14 +478,14 @@ declare const zManifestTradelinkNetwork: z.ZodObject<{
|
|
|
458
478
|
arbitration: z.ZodArray<z.ZodObject<{
|
|
459
479
|
members: z.ZodArray<z.ZodNumber, "many">;
|
|
460
480
|
quorum: z.ZodNumber;
|
|
461
|
-
}, "
|
|
481
|
+
}, "strict", z.ZodTypeAny, {
|
|
462
482
|
members: number[];
|
|
463
483
|
quorum: number;
|
|
464
484
|
}, {
|
|
465
485
|
members: number[];
|
|
466
486
|
quorum: number;
|
|
467
487
|
}>, "many">;
|
|
468
|
-
}, "
|
|
488
|
+
}, "strict", z.ZodTypeAny, {
|
|
469
489
|
settlement: {
|
|
470
490
|
members: number[];
|
|
471
491
|
quorum: number;
|
|
@@ -497,7 +517,7 @@ declare const zManifestTradelinkNetwork: z.ZodObject<{
|
|
|
497
517
|
groups: z.ZodArray<z.ZodObject<{
|
|
498
518
|
members: z.ZodArray<z.ZodNumber, "many">;
|
|
499
519
|
quorum: z.ZodNumber;
|
|
500
|
-
}, "
|
|
520
|
+
}, "strict", z.ZodTypeAny, {
|
|
501
521
|
members: number[];
|
|
502
522
|
quorum: number;
|
|
503
523
|
}, {
|
|
@@ -508,7 +528,7 @@ declare const zManifestTradelinkNetwork: z.ZodObject<{
|
|
|
508
528
|
name: z.ZodString;
|
|
509
529
|
currency: z.ZodString;
|
|
510
530
|
address: z.ZodString;
|
|
511
|
-
}, "
|
|
531
|
+
}, "strict", z.ZodTypeAny, {
|
|
512
532
|
name: string;
|
|
513
533
|
currency: string;
|
|
514
534
|
address: string;
|
|
@@ -517,7 +537,7 @@ declare const zManifestTradelinkNetwork: z.ZodObject<{
|
|
|
517
537
|
currency: string;
|
|
518
538
|
address: string;
|
|
519
539
|
}>, "many">;
|
|
520
|
-
}, "
|
|
540
|
+
}, "strict", z.ZodTypeAny, {
|
|
521
541
|
name: string;
|
|
522
542
|
groups: {
|
|
523
543
|
members: number[];
|
|
@@ -545,7 +565,7 @@ declare const zManifestTradelinkNetwork: z.ZodObject<{
|
|
|
545
565
|
groups: z.ZodArray<z.ZodObject<{
|
|
546
566
|
members: z.ZodArray<z.ZodNumber, "many">;
|
|
547
567
|
quorum: z.ZodNumber;
|
|
548
|
-
}, "
|
|
568
|
+
}, "strict", z.ZodTypeAny, {
|
|
549
569
|
members: number[];
|
|
550
570
|
quorum: number;
|
|
551
571
|
}, {
|
|
@@ -556,7 +576,7 @@ declare const zManifestTradelinkNetwork: z.ZodObject<{
|
|
|
556
576
|
name: z.ZodString;
|
|
557
577
|
currency: z.ZodString;
|
|
558
578
|
address: z.ZodString;
|
|
559
|
-
}, "
|
|
579
|
+
}, "strict", z.ZodTypeAny, {
|
|
560
580
|
name: string;
|
|
561
581
|
currency: string;
|
|
562
582
|
address: string;
|
|
@@ -565,7 +585,7 @@ declare const zManifestTradelinkNetwork: z.ZodObject<{
|
|
|
565
585
|
currency: string;
|
|
566
586
|
address: string;
|
|
567
587
|
}>, "many">;
|
|
568
|
-
}, "
|
|
588
|
+
}, "strict", z.ZodTypeAny, {
|
|
569
589
|
name: string;
|
|
570
590
|
groups: {
|
|
571
591
|
members: number[];
|
|
@@ -588,7 +608,7 @@ declare const zManifestTradelinkNetwork: z.ZodObject<{
|
|
|
588
608
|
address: string;
|
|
589
609
|
}[];
|
|
590
610
|
}>, "many">>;
|
|
591
|
-
}, "
|
|
611
|
+
}, "strict", z.ZodTypeAny, {
|
|
592
612
|
exchanges?: {
|
|
593
613
|
name: string;
|
|
594
614
|
groups: {
|
|
@@ -684,7 +704,7 @@ declare const zManifestWorkspace: z.ZodObject<{
|
|
|
684
704
|
custodian: z.ZodString;
|
|
685
705
|
exchanges: z.ZodArray<z.ZodString, "many">;
|
|
686
706
|
assetManagers: z.ZodArray<z.ZodString, "many">;
|
|
687
|
-
}, "
|
|
707
|
+
}, "strict", z.ZodTypeAny, {
|
|
688
708
|
exchanges: string[];
|
|
689
709
|
assetManagers: string[];
|
|
690
710
|
custodian: string;
|
|
@@ -697,7 +717,7 @@ declare const zManifestWorkspace: z.ZodObject<{
|
|
|
697
717
|
settlement: z.ZodArray<z.ZodObject<{
|
|
698
718
|
members: z.ZodArray<z.ZodNumber, "many">;
|
|
699
719
|
quorum: z.ZodNumber;
|
|
700
|
-
}, "
|
|
720
|
+
}, "strict", z.ZodTypeAny, {
|
|
701
721
|
members: number[];
|
|
702
722
|
quorum: number;
|
|
703
723
|
}, {
|
|
@@ -707,7 +727,7 @@ declare const zManifestWorkspace: z.ZodObject<{
|
|
|
707
727
|
withdraw: z.ZodArray<z.ZodObject<{
|
|
708
728
|
members: z.ZodArray<z.ZodNumber, "many">;
|
|
709
729
|
quorum: z.ZodNumber;
|
|
710
|
-
}, "
|
|
730
|
+
}, "strict", z.ZodTypeAny, {
|
|
711
731
|
members: number[];
|
|
712
732
|
quorum: number;
|
|
713
733
|
}, {
|
|
@@ -717,14 +737,14 @@ declare const zManifestWorkspace: z.ZodObject<{
|
|
|
717
737
|
arbitration: z.ZodArray<z.ZodObject<{
|
|
718
738
|
members: z.ZodArray<z.ZodNumber, "many">;
|
|
719
739
|
quorum: z.ZodNumber;
|
|
720
|
-
}, "
|
|
740
|
+
}, "strict", z.ZodTypeAny, {
|
|
721
741
|
members: number[];
|
|
722
742
|
quorum: number;
|
|
723
743
|
}, {
|
|
724
744
|
members: number[];
|
|
725
745
|
quorum: number;
|
|
726
746
|
}>, "many">;
|
|
727
|
-
}, "
|
|
747
|
+
}, "strict", z.ZodTypeAny, {
|
|
728
748
|
settlement: {
|
|
729
749
|
members: number[];
|
|
730
750
|
quorum: number;
|
|
@@ -756,7 +776,7 @@ declare const zManifestWorkspace: z.ZodObject<{
|
|
|
756
776
|
groups: z.ZodArray<z.ZodObject<{
|
|
757
777
|
members: z.ZodArray<z.ZodNumber, "many">;
|
|
758
778
|
quorum: z.ZodNumber;
|
|
759
|
-
}, "
|
|
779
|
+
}, "strict", z.ZodTypeAny, {
|
|
760
780
|
members: number[];
|
|
761
781
|
quorum: number;
|
|
762
782
|
}, {
|
|
@@ -767,7 +787,7 @@ declare const zManifestWorkspace: z.ZodObject<{
|
|
|
767
787
|
name: z.ZodString;
|
|
768
788
|
currency: z.ZodString;
|
|
769
789
|
address: z.ZodString;
|
|
770
|
-
}, "
|
|
790
|
+
}, "strict", z.ZodTypeAny, {
|
|
771
791
|
name: string;
|
|
772
792
|
currency: string;
|
|
773
793
|
address: string;
|
|
@@ -776,7 +796,7 @@ declare const zManifestWorkspace: z.ZodObject<{
|
|
|
776
796
|
currency: string;
|
|
777
797
|
address: string;
|
|
778
798
|
}>, "many">;
|
|
779
|
-
}, "
|
|
799
|
+
}, "strict", z.ZodTypeAny, {
|
|
780
800
|
name: string;
|
|
781
801
|
groups: {
|
|
782
802
|
members: number[];
|
|
@@ -804,7 +824,7 @@ declare const zManifestWorkspace: z.ZodObject<{
|
|
|
804
824
|
groups: z.ZodArray<z.ZodObject<{
|
|
805
825
|
members: z.ZodArray<z.ZodNumber, "many">;
|
|
806
826
|
quorum: z.ZodNumber;
|
|
807
|
-
}, "
|
|
827
|
+
}, "strict", z.ZodTypeAny, {
|
|
808
828
|
members: number[];
|
|
809
829
|
quorum: number;
|
|
810
830
|
}, {
|
|
@@ -815,7 +835,7 @@ declare const zManifestWorkspace: z.ZodObject<{
|
|
|
815
835
|
name: z.ZodString;
|
|
816
836
|
currency: z.ZodString;
|
|
817
837
|
address: z.ZodString;
|
|
818
|
-
}, "
|
|
838
|
+
}, "strict", z.ZodTypeAny, {
|
|
819
839
|
name: string;
|
|
820
840
|
currency: string;
|
|
821
841
|
address: string;
|
|
@@ -824,7 +844,7 @@ declare const zManifestWorkspace: z.ZodObject<{
|
|
|
824
844
|
currency: string;
|
|
825
845
|
address: string;
|
|
826
846
|
}>, "many">;
|
|
827
|
-
}, "
|
|
847
|
+
}, "strict", z.ZodTypeAny, {
|
|
828
848
|
name: string;
|
|
829
849
|
groups: {
|
|
830
850
|
members: number[];
|
|
@@ -847,7 +867,7 @@ declare const zManifestWorkspace: z.ZodObject<{
|
|
|
847
867
|
address: string;
|
|
848
868
|
}[];
|
|
849
869
|
}>, "many">>;
|
|
850
|
-
}, "
|
|
870
|
+
}, "strict", z.ZodTypeAny, {
|
|
851
871
|
exchanges?: {
|
|
852
872
|
name: string;
|
|
853
873
|
groups: {
|
|
@@ -939,17 +959,45 @@ declare const zManifestWorkspace: z.ZodObject<{
|
|
|
939
959
|
users: z.ZodOptional<z.ZodObject<{
|
|
940
960
|
admins: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
941
961
|
operators: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
962
|
+
api: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
963
|
+
name: z.ZodString;
|
|
964
|
+
role: z.ZodDefault<z.ZodEnum<["ADMIN", "OPERATOR"]>>;
|
|
965
|
+
pubKey: z.ZodString;
|
|
966
|
+
viewAll: z.ZodBoolean;
|
|
967
|
+
}, "strip", z.ZodTypeAny, {
|
|
968
|
+
name: string;
|
|
969
|
+
role: "ADMIN" | "OPERATOR";
|
|
970
|
+
pubKey: string;
|
|
971
|
+
viewAll: boolean;
|
|
972
|
+
}, {
|
|
973
|
+
name: string;
|
|
974
|
+
pubKey: string;
|
|
975
|
+
viewAll: boolean;
|
|
976
|
+
role?: "ADMIN" | "OPERATOR" | undefined;
|
|
977
|
+
}>, "many">>;
|
|
942
978
|
}, "strip", z.ZodTypeAny, {
|
|
943
979
|
admins?: number[] | undefined;
|
|
944
980
|
operators?: number[] | undefined;
|
|
981
|
+
api?: {
|
|
982
|
+
name: string;
|
|
983
|
+
role: "ADMIN" | "OPERATOR";
|
|
984
|
+
pubKey: string;
|
|
985
|
+
viewAll: boolean;
|
|
986
|
+
}[] | undefined;
|
|
945
987
|
}, {
|
|
946
988
|
admins?: number[] | undefined;
|
|
947
989
|
operators?: number[] | undefined;
|
|
990
|
+
api?: {
|
|
991
|
+
name: string;
|
|
992
|
+
pubKey: string;
|
|
993
|
+
viewAll: boolean;
|
|
994
|
+
role?: "ADMIN" | "OPERATOR" | undefined;
|
|
995
|
+
}[] | undefined;
|
|
948
996
|
}>>;
|
|
949
997
|
groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
950
998
|
name: z.ZodString;
|
|
951
999
|
members: z.ZodArray<z.ZodNumber, "many">;
|
|
952
|
-
}, "
|
|
1000
|
+
}, "strict", z.ZodTypeAny, {
|
|
953
1001
|
name: string;
|
|
954
1002
|
members: number[];
|
|
955
1003
|
}, {
|
|
@@ -965,7 +1013,7 @@ declare const zManifestWorkspace: z.ZodObject<{
|
|
|
965
1013
|
currency: z.ZodString;
|
|
966
1014
|
address: z.ZodString;
|
|
967
1015
|
destinationTags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
968
|
-
}, "
|
|
1016
|
+
}, "strict", z.ZodTypeAny, {
|
|
969
1017
|
name: string;
|
|
970
1018
|
currency: string;
|
|
971
1019
|
address: string;
|
|
@@ -976,7 +1024,7 @@ declare const zManifestWorkspace: z.ZodObject<{
|
|
|
976
1024
|
address: string;
|
|
977
1025
|
destinationTags?: string[] | undefined;
|
|
978
1026
|
}>, "many">;
|
|
979
|
-
}, "
|
|
1027
|
+
}, "strict", z.ZodTypeAny, {
|
|
980
1028
|
type: "TRANSACTION" | "SMART_CONTRACT";
|
|
981
1029
|
name: string;
|
|
982
1030
|
description: string;
|
|
@@ -1005,7 +1053,7 @@ declare const zManifestWorkspace: z.ZodObject<{
|
|
|
1005
1053
|
steps: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
1006
1054
|
quorum: z.ZodNumber;
|
|
1007
1055
|
members: z.ZodArray<z.ZodNumber, "many">;
|
|
1008
|
-
}, "
|
|
1056
|
+
}, "strict", z.ZodTypeAny, {
|
|
1009
1057
|
members: number[];
|
|
1010
1058
|
quorum: number;
|
|
1011
1059
|
}, {
|
|
@@ -1014,14 +1062,14 @@ declare const zManifestWorkspace: z.ZodObject<{
|
|
|
1014
1062
|
}>, z.ZodObject<{
|
|
1015
1063
|
quorum: z.ZodNumber;
|
|
1016
1064
|
group: z.ZodString;
|
|
1017
|
-
}, "
|
|
1065
|
+
}, "strict", z.ZodTypeAny, {
|
|
1018
1066
|
quorum: number;
|
|
1019
1067
|
group: string;
|
|
1020
1068
|
}, {
|
|
1021
1069
|
quorum: number;
|
|
1022
1070
|
group: string;
|
|
1023
1071
|
}>]>, "many">;
|
|
1024
|
-
}, "
|
|
1072
|
+
}, "strict", z.ZodTypeAny, {
|
|
1025
1073
|
type: "SEND" | "STAKE" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "SIGN_DIGESTS" | "SIGN_MESSAGE";
|
|
1026
1074
|
steps: ({
|
|
1027
1075
|
members: number[];
|
|
@@ -1040,7 +1088,7 @@ declare const zManifestWorkspace: z.ZodObject<{
|
|
|
1040
1088
|
group: string;
|
|
1041
1089
|
})[];
|
|
1042
1090
|
}>, "many">;
|
|
1043
|
-
}, "
|
|
1091
|
+
}, "strict", z.ZodTypeAny, {
|
|
1044
1092
|
name: string;
|
|
1045
1093
|
currency: string;
|
|
1046
1094
|
rules: {
|
|
@@ -1070,6 +1118,7 @@ declare const zManifestWorkspace: z.ZodObject<{
|
|
|
1070
1118
|
accounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1071
1119
|
name: z.ZodString;
|
|
1072
1120
|
currency: z.ZodString;
|
|
1121
|
+
index: z.ZodOptional<z.ZodNumber>;
|
|
1073
1122
|
contractAddress: z.ZodOptional<z.ZodString>;
|
|
1074
1123
|
governance: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1075
1124
|
type: z.ZodLiteral<"CLASSIC">;
|
|
@@ -1078,7 +1127,7 @@ declare const zManifestWorkspace: z.ZodObject<{
|
|
|
1078
1127
|
steps: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
1079
1128
|
quorum: z.ZodNumber;
|
|
1080
1129
|
members: z.ZodArray<z.ZodNumber, "many">;
|
|
1081
|
-
}, "
|
|
1130
|
+
}, "strict", z.ZodTypeAny, {
|
|
1082
1131
|
members: number[];
|
|
1083
1132
|
quorum: number;
|
|
1084
1133
|
}, {
|
|
@@ -1087,14 +1136,14 @@ declare const zManifestWorkspace: z.ZodObject<{
|
|
|
1087
1136
|
}>, z.ZodObject<{
|
|
1088
1137
|
quorum: z.ZodNumber;
|
|
1089
1138
|
group: z.ZodString;
|
|
1090
|
-
}, "
|
|
1139
|
+
}, "strict", z.ZodTypeAny, {
|
|
1091
1140
|
quorum: number;
|
|
1092
1141
|
group: string;
|
|
1093
1142
|
}, {
|
|
1094
1143
|
quorum: number;
|
|
1095
1144
|
group: string;
|
|
1096
1145
|
}>]>, "many">;
|
|
1097
|
-
}, "
|
|
1146
|
+
}, "strict", z.ZodTypeAny, {
|
|
1098
1147
|
type: "SEND" | "STAKE" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "SIGN_DIGESTS" | "SIGN_MESSAGE";
|
|
1099
1148
|
steps: ({
|
|
1100
1149
|
members: number[];
|
|
@@ -1113,7 +1162,7 @@ declare const zManifestWorkspace: z.ZodObject<{
|
|
|
1113
1162
|
group: string;
|
|
1114
1163
|
})[];
|
|
1115
1164
|
}>, "many">;
|
|
1116
|
-
}, "
|
|
1165
|
+
}, "strict", z.ZodTypeAny, {
|
|
1117
1166
|
type: "CLASSIC";
|
|
1118
1167
|
rules: {
|
|
1119
1168
|
type: "SEND" | "STAKE" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "SIGN_DIGESTS" | "SIGN_MESSAGE";
|
|
@@ -1144,7 +1193,7 @@ declare const zManifestWorkspace: z.ZodObject<{
|
|
|
1144
1193
|
name: z.ZodString;
|
|
1145
1194
|
repledgeAuthorized: z.ZodOptional<z.ZodBoolean>;
|
|
1146
1195
|
needsAssetManagerApprovalForSettlements: z.ZodOptional<z.ZodBoolean>;
|
|
1147
|
-
}, "
|
|
1196
|
+
}, "strict", z.ZodTypeAny, {
|
|
1148
1197
|
name: string;
|
|
1149
1198
|
repledgeAuthorized?: boolean | undefined;
|
|
1150
1199
|
needsAssetManagerApprovalForSettlements?: boolean | undefined;
|
|
@@ -1153,7 +1202,7 @@ declare const zManifestWorkspace: z.ZodObject<{
|
|
|
1153
1202
|
repledgeAuthorized?: boolean | undefined;
|
|
1154
1203
|
needsAssetManagerApprovalForSettlements?: boolean | undefined;
|
|
1155
1204
|
}>, "many">;
|
|
1156
|
-
}, "
|
|
1205
|
+
}, "strict", z.ZodTypeAny, {
|
|
1157
1206
|
type: "TRADELINK";
|
|
1158
1207
|
exchanges: {
|
|
1159
1208
|
name: string;
|
|
@@ -1170,7 +1219,7 @@ declare const zManifestWorkspace: z.ZodObject<{
|
|
|
1170
1219
|
}[];
|
|
1171
1220
|
assetManager: string;
|
|
1172
1221
|
}>]>;
|
|
1173
|
-
}, "
|
|
1222
|
+
}, "strict", z.ZodTypeAny, {
|
|
1174
1223
|
name: string;
|
|
1175
1224
|
currency: string;
|
|
1176
1225
|
governance: {
|
|
@@ -1194,6 +1243,7 @@ declare const zManifestWorkspace: z.ZodObject<{
|
|
|
1194
1243
|
}[];
|
|
1195
1244
|
assetManager: string;
|
|
1196
1245
|
};
|
|
1246
|
+
index?: number | undefined;
|
|
1197
1247
|
contractAddress?: string | undefined;
|
|
1198
1248
|
}, {
|
|
1199
1249
|
name: string;
|
|
@@ -1219,13 +1269,14 @@ declare const zManifestWorkspace: z.ZodObject<{
|
|
|
1219
1269
|
}[];
|
|
1220
1270
|
assetManager: string;
|
|
1221
1271
|
};
|
|
1272
|
+
index?: number | undefined;
|
|
1222
1273
|
contractAddress?: string | undefined;
|
|
1223
1274
|
}>, "many">>;
|
|
1224
1275
|
pledges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1225
1276
|
account: z.ZodString;
|
|
1226
1277
|
exchange: z.ZodString;
|
|
1227
1278
|
amount: z.ZodString;
|
|
1228
|
-
}, "
|
|
1279
|
+
}, "strict", z.ZodTypeAny, {
|
|
1229
1280
|
account: string;
|
|
1230
1281
|
exchange: string;
|
|
1231
1282
|
amount: string;
|
|
@@ -1234,7 +1285,7 @@ declare const zManifestWorkspace: z.ZodObject<{
|
|
|
1234
1285
|
exchange: string;
|
|
1235
1286
|
amount: string;
|
|
1236
1287
|
}>, "many">>;
|
|
1237
|
-
}, "
|
|
1288
|
+
}, "strict", z.ZodTypeAny, {
|
|
1238
1289
|
tradelink?: {
|
|
1239
1290
|
exchanges?: {
|
|
1240
1291
|
name: string;
|
|
@@ -1287,6 +1338,12 @@ declare const zManifestWorkspace: z.ZodObject<{
|
|
|
1287
1338
|
users?: {
|
|
1288
1339
|
admins?: number[] | undefined;
|
|
1289
1340
|
operators?: number[] | undefined;
|
|
1341
|
+
api?: {
|
|
1342
|
+
name: string;
|
|
1343
|
+
role: "ADMIN" | "OPERATOR";
|
|
1344
|
+
pubKey: string;
|
|
1345
|
+
viewAll: boolean;
|
|
1346
|
+
}[] | undefined;
|
|
1290
1347
|
} | undefined;
|
|
1291
1348
|
whitelists?: {
|
|
1292
1349
|
type: "TRANSACTION" | "SMART_CONTRACT";
|
|
@@ -1337,6 +1394,7 @@ declare const zManifestWorkspace: z.ZodObject<{
|
|
|
1337
1394
|
}[];
|
|
1338
1395
|
assetManager: string;
|
|
1339
1396
|
};
|
|
1397
|
+
index?: number | undefined;
|
|
1340
1398
|
contractAddress?: string | undefined;
|
|
1341
1399
|
}[] | undefined;
|
|
1342
1400
|
pledges?: {
|
|
@@ -1397,6 +1455,12 @@ declare const zManifestWorkspace: z.ZodObject<{
|
|
|
1397
1455
|
users?: {
|
|
1398
1456
|
admins?: number[] | undefined;
|
|
1399
1457
|
operators?: number[] | undefined;
|
|
1458
|
+
api?: {
|
|
1459
|
+
name: string;
|
|
1460
|
+
pubKey: string;
|
|
1461
|
+
viewAll: boolean;
|
|
1462
|
+
role?: "ADMIN" | "OPERATOR" | undefined;
|
|
1463
|
+
}[] | undefined;
|
|
1400
1464
|
} | undefined;
|
|
1401
1465
|
whitelists?: {
|
|
1402
1466
|
name: string;
|
|
@@ -1447,6 +1511,7 @@ declare const zManifestWorkspace: z.ZodObject<{
|
|
|
1447
1511
|
}[];
|
|
1448
1512
|
assetManager: string;
|
|
1449
1513
|
};
|
|
1514
|
+
index?: number | undefined;
|
|
1450
1515
|
contractAddress?: string | undefined;
|
|
1451
1516
|
}[] | undefined;
|
|
1452
1517
|
pledges?: {
|
|
@@ -1461,7 +1526,7 @@ declare const zManifestTradelinkOrg: z.ZodObject<{
|
|
|
1461
1526
|
name: z.ZodString;
|
|
1462
1527
|
code: z.ZodString;
|
|
1463
1528
|
logo: z.ZodString;
|
|
1464
|
-
}, "
|
|
1529
|
+
}, "strict", z.ZodTypeAny, {
|
|
1465
1530
|
code: string;
|
|
1466
1531
|
name: string;
|
|
1467
1532
|
logo: string;
|
|
@@ -1474,7 +1539,7 @@ declare const zManifestTradelinkOrg: z.ZodObject<{
|
|
|
1474
1539
|
name: z.ZodString;
|
|
1475
1540
|
code: z.ZodString;
|
|
1476
1541
|
logo: z.ZodString;
|
|
1477
|
-
}, "
|
|
1542
|
+
}, "strict", z.ZodTypeAny, {
|
|
1478
1543
|
code: string;
|
|
1479
1544
|
name: string;
|
|
1480
1545
|
logo: string;
|
|
@@ -1487,7 +1552,7 @@ declare const zManifestTradelinkOrg: z.ZodObject<{
|
|
|
1487
1552
|
name: z.ZodString;
|
|
1488
1553
|
code: z.ZodString;
|
|
1489
1554
|
logo: z.ZodString;
|
|
1490
|
-
}, "
|
|
1555
|
+
}, "strict", z.ZodTypeAny, {
|
|
1491
1556
|
code: string;
|
|
1492
1557
|
name: string;
|
|
1493
1558
|
logo: string;
|
|
@@ -1496,7 +1561,7 @@ declare const zManifestTradelinkOrg: z.ZodObject<{
|
|
|
1496
1561
|
name: string;
|
|
1497
1562
|
logo: string;
|
|
1498
1563
|
}>, "many">>;
|
|
1499
|
-
}, "
|
|
1564
|
+
}, "strict", z.ZodTypeAny, {
|
|
1500
1565
|
exchanges?: {
|
|
1501
1566
|
code: string;
|
|
1502
1567
|
name: string;
|
|
@@ -1537,7 +1602,7 @@ declare const zManifest: z.ZodObject<{
|
|
|
1537
1602
|
name: z.ZodString;
|
|
1538
1603
|
code: z.ZodString;
|
|
1539
1604
|
logo: z.ZodString;
|
|
1540
|
-
}, "
|
|
1605
|
+
}, "strict", z.ZodTypeAny, {
|
|
1541
1606
|
code: string;
|
|
1542
1607
|
name: string;
|
|
1543
1608
|
logo: string;
|
|
@@ -1550,7 +1615,7 @@ declare const zManifest: z.ZodObject<{
|
|
|
1550
1615
|
name: z.ZodString;
|
|
1551
1616
|
code: z.ZodString;
|
|
1552
1617
|
logo: z.ZodString;
|
|
1553
|
-
}, "
|
|
1618
|
+
}, "strict", z.ZodTypeAny, {
|
|
1554
1619
|
code: string;
|
|
1555
1620
|
name: string;
|
|
1556
1621
|
logo: string;
|
|
@@ -1563,7 +1628,7 @@ declare const zManifest: z.ZodObject<{
|
|
|
1563
1628
|
name: z.ZodString;
|
|
1564
1629
|
code: z.ZodString;
|
|
1565
1630
|
logo: z.ZodString;
|
|
1566
|
-
}, "
|
|
1631
|
+
}, "strict", z.ZodTypeAny, {
|
|
1567
1632
|
code: string;
|
|
1568
1633
|
name: string;
|
|
1569
1634
|
logo: string;
|
|
@@ -1572,7 +1637,7 @@ declare const zManifest: z.ZodObject<{
|
|
|
1572
1637
|
name: string;
|
|
1573
1638
|
logo: string;
|
|
1574
1639
|
}>, "many">>;
|
|
1575
|
-
}, "
|
|
1640
|
+
}, "strict", z.ZodTypeAny, {
|
|
1576
1641
|
exchanges?: {
|
|
1577
1642
|
code: string;
|
|
1578
1643
|
name: string;
|
|
@@ -1611,7 +1676,7 @@ declare const zManifest: z.ZodObject<{
|
|
|
1611
1676
|
custodian: z.ZodString;
|
|
1612
1677
|
exchanges: z.ZodArray<z.ZodString, "many">;
|
|
1613
1678
|
assetManagers: z.ZodArray<z.ZodString, "many">;
|
|
1614
|
-
}, "
|
|
1679
|
+
}, "strict", z.ZodTypeAny, {
|
|
1615
1680
|
exchanges: string[];
|
|
1616
1681
|
assetManagers: string[];
|
|
1617
1682
|
custodian: string;
|
|
@@ -1624,7 +1689,7 @@ declare const zManifest: z.ZodObject<{
|
|
|
1624
1689
|
settlement: z.ZodArray<z.ZodObject<{
|
|
1625
1690
|
members: z.ZodArray<z.ZodNumber, "many">;
|
|
1626
1691
|
quorum: z.ZodNumber;
|
|
1627
|
-
}, "
|
|
1692
|
+
}, "strict", z.ZodTypeAny, {
|
|
1628
1693
|
members: number[];
|
|
1629
1694
|
quorum: number;
|
|
1630
1695
|
}, {
|
|
@@ -1634,7 +1699,7 @@ declare const zManifest: z.ZodObject<{
|
|
|
1634
1699
|
withdraw: z.ZodArray<z.ZodObject<{
|
|
1635
1700
|
members: z.ZodArray<z.ZodNumber, "many">;
|
|
1636
1701
|
quorum: z.ZodNumber;
|
|
1637
|
-
}, "
|
|
1702
|
+
}, "strict", z.ZodTypeAny, {
|
|
1638
1703
|
members: number[];
|
|
1639
1704
|
quorum: number;
|
|
1640
1705
|
}, {
|
|
@@ -1644,14 +1709,14 @@ declare const zManifest: z.ZodObject<{
|
|
|
1644
1709
|
arbitration: z.ZodArray<z.ZodObject<{
|
|
1645
1710
|
members: z.ZodArray<z.ZodNumber, "many">;
|
|
1646
1711
|
quorum: z.ZodNumber;
|
|
1647
|
-
}, "
|
|
1712
|
+
}, "strict", z.ZodTypeAny, {
|
|
1648
1713
|
members: number[];
|
|
1649
1714
|
quorum: number;
|
|
1650
1715
|
}, {
|
|
1651
1716
|
members: number[];
|
|
1652
1717
|
quorum: number;
|
|
1653
1718
|
}>, "many">;
|
|
1654
|
-
}, "
|
|
1719
|
+
}, "strict", z.ZodTypeAny, {
|
|
1655
1720
|
settlement: {
|
|
1656
1721
|
members: number[];
|
|
1657
1722
|
quorum: number;
|
|
@@ -1683,7 +1748,7 @@ declare const zManifest: z.ZodObject<{
|
|
|
1683
1748
|
groups: z.ZodArray<z.ZodObject<{
|
|
1684
1749
|
members: z.ZodArray<z.ZodNumber, "many">;
|
|
1685
1750
|
quorum: z.ZodNumber;
|
|
1686
|
-
}, "
|
|
1751
|
+
}, "strict", z.ZodTypeAny, {
|
|
1687
1752
|
members: number[];
|
|
1688
1753
|
quorum: number;
|
|
1689
1754
|
}, {
|
|
@@ -1694,7 +1759,7 @@ declare const zManifest: z.ZodObject<{
|
|
|
1694
1759
|
name: z.ZodString;
|
|
1695
1760
|
currency: z.ZodString;
|
|
1696
1761
|
address: z.ZodString;
|
|
1697
|
-
}, "
|
|
1762
|
+
}, "strict", z.ZodTypeAny, {
|
|
1698
1763
|
name: string;
|
|
1699
1764
|
currency: string;
|
|
1700
1765
|
address: string;
|
|
@@ -1703,7 +1768,7 @@ declare const zManifest: z.ZodObject<{
|
|
|
1703
1768
|
currency: string;
|
|
1704
1769
|
address: string;
|
|
1705
1770
|
}>, "many">;
|
|
1706
|
-
}, "
|
|
1771
|
+
}, "strict", z.ZodTypeAny, {
|
|
1707
1772
|
name: string;
|
|
1708
1773
|
groups: {
|
|
1709
1774
|
members: number[];
|
|
@@ -1731,7 +1796,7 @@ declare const zManifest: z.ZodObject<{
|
|
|
1731
1796
|
groups: z.ZodArray<z.ZodObject<{
|
|
1732
1797
|
members: z.ZodArray<z.ZodNumber, "many">;
|
|
1733
1798
|
quorum: z.ZodNumber;
|
|
1734
|
-
}, "
|
|
1799
|
+
}, "strict", z.ZodTypeAny, {
|
|
1735
1800
|
members: number[];
|
|
1736
1801
|
quorum: number;
|
|
1737
1802
|
}, {
|
|
@@ -1742,7 +1807,7 @@ declare const zManifest: z.ZodObject<{
|
|
|
1742
1807
|
name: z.ZodString;
|
|
1743
1808
|
currency: z.ZodString;
|
|
1744
1809
|
address: z.ZodString;
|
|
1745
|
-
}, "
|
|
1810
|
+
}, "strict", z.ZodTypeAny, {
|
|
1746
1811
|
name: string;
|
|
1747
1812
|
currency: string;
|
|
1748
1813
|
address: string;
|
|
@@ -1751,7 +1816,7 @@ declare const zManifest: z.ZodObject<{
|
|
|
1751
1816
|
currency: string;
|
|
1752
1817
|
address: string;
|
|
1753
1818
|
}>, "many">;
|
|
1754
|
-
}, "
|
|
1819
|
+
}, "strict", z.ZodTypeAny, {
|
|
1755
1820
|
name: string;
|
|
1756
1821
|
groups: {
|
|
1757
1822
|
members: number[];
|
|
@@ -1774,7 +1839,7 @@ declare const zManifest: z.ZodObject<{
|
|
|
1774
1839
|
address: string;
|
|
1775
1840
|
}[];
|
|
1776
1841
|
}>, "many">>;
|
|
1777
|
-
}, "
|
|
1842
|
+
}, "strict", z.ZodTypeAny, {
|
|
1778
1843
|
exchanges?: {
|
|
1779
1844
|
name: string;
|
|
1780
1845
|
groups: {
|
|
@@ -1866,17 +1931,45 @@ declare const zManifest: z.ZodObject<{
|
|
|
1866
1931
|
users: z.ZodOptional<z.ZodObject<{
|
|
1867
1932
|
admins: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
1868
1933
|
operators: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
1934
|
+
api: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1935
|
+
name: z.ZodString;
|
|
1936
|
+
role: z.ZodDefault<z.ZodEnum<["ADMIN", "OPERATOR"]>>;
|
|
1937
|
+
pubKey: z.ZodString;
|
|
1938
|
+
viewAll: z.ZodBoolean;
|
|
1939
|
+
}, "strip", z.ZodTypeAny, {
|
|
1940
|
+
name: string;
|
|
1941
|
+
role: "ADMIN" | "OPERATOR";
|
|
1942
|
+
pubKey: string;
|
|
1943
|
+
viewAll: boolean;
|
|
1944
|
+
}, {
|
|
1945
|
+
name: string;
|
|
1946
|
+
pubKey: string;
|
|
1947
|
+
viewAll: boolean;
|
|
1948
|
+
role?: "ADMIN" | "OPERATOR" | undefined;
|
|
1949
|
+
}>, "many">>;
|
|
1869
1950
|
}, "strip", z.ZodTypeAny, {
|
|
1870
1951
|
admins?: number[] | undefined;
|
|
1871
1952
|
operators?: number[] | undefined;
|
|
1953
|
+
api?: {
|
|
1954
|
+
name: string;
|
|
1955
|
+
role: "ADMIN" | "OPERATOR";
|
|
1956
|
+
pubKey: string;
|
|
1957
|
+
viewAll: boolean;
|
|
1958
|
+
}[] | undefined;
|
|
1872
1959
|
}, {
|
|
1873
1960
|
admins?: number[] | undefined;
|
|
1874
1961
|
operators?: number[] | undefined;
|
|
1962
|
+
api?: {
|
|
1963
|
+
name: string;
|
|
1964
|
+
pubKey: string;
|
|
1965
|
+
viewAll: boolean;
|
|
1966
|
+
role?: "ADMIN" | "OPERATOR" | undefined;
|
|
1967
|
+
}[] | undefined;
|
|
1875
1968
|
}>>;
|
|
1876
1969
|
groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1877
1970
|
name: z.ZodString;
|
|
1878
1971
|
members: z.ZodArray<z.ZodNumber, "many">;
|
|
1879
|
-
}, "
|
|
1972
|
+
}, "strict", z.ZodTypeAny, {
|
|
1880
1973
|
name: string;
|
|
1881
1974
|
members: number[];
|
|
1882
1975
|
}, {
|
|
@@ -1892,7 +1985,7 @@ declare const zManifest: z.ZodObject<{
|
|
|
1892
1985
|
currency: z.ZodString;
|
|
1893
1986
|
address: z.ZodString;
|
|
1894
1987
|
destinationTags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1895
|
-
}, "
|
|
1988
|
+
}, "strict", z.ZodTypeAny, {
|
|
1896
1989
|
name: string;
|
|
1897
1990
|
currency: string;
|
|
1898
1991
|
address: string;
|
|
@@ -1903,7 +1996,7 @@ declare const zManifest: z.ZodObject<{
|
|
|
1903
1996
|
address: string;
|
|
1904
1997
|
destinationTags?: string[] | undefined;
|
|
1905
1998
|
}>, "many">;
|
|
1906
|
-
}, "
|
|
1999
|
+
}, "strict", z.ZodTypeAny, {
|
|
1907
2000
|
type: "TRANSACTION" | "SMART_CONTRACT";
|
|
1908
2001
|
name: string;
|
|
1909
2002
|
description: string;
|
|
@@ -1932,7 +2025,7 @@ declare const zManifest: z.ZodObject<{
|
|
|
1932
2025
|
steps: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
1933
2026
|
quorum: z.ZodNumber;
|
|
1934
2027
|
members: z.ZodArray<z.ZodNumber, "many">;
|
|
1935
|
-
}, "
|
|
2028
|
+
}, "strict", z.ZodTypeAny, {
|
|
1936
2029
|
members: number[];
|
|
1937
2030
|
quorum: number;
|
|
1938
2031
|
}, {
|
|
@@ -1941,14 +2034,14 @@ declare const zManifest: z.ZodObject<{
|
|
|
1941
2034
|
}>, z.ZodObject<{
|
|
1942
2035
|
quorum: z.ZodNumber;
|
|
1943
2036
|
group: z.ZodString;
|
|
1944
|
-
}, "
|
|
2037
|
+
}, "strict", z.ZodTypeAny, {
|
|
1945
2038
|
quorum: number;
|
|
1946
2039
|
group: string;
|
|
1947
2040
|
}, {
|
|
1948
2041
|
quorum: number;
|
|
1949
2042
|
group: string;
|
|
1950
2043
|
}>]>, "many">;
|
|
1951
|
-
}, "
|
|
2044
|
+
}, "strict", z.ZodTypeAny, {
|
|
1952
2045
|
type: "SEND" | "STAKE" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "SIGN_DIGESTS" | "SIGN_MESSAGE";
|
|
1953
2046
|
steps: ({
|
|
1954
2047
|
members: number[];
|
|
@@ -1967,7 +2060,7 @@ declare const zManifest: z.ZodObject<{
|
|
|
1967
2060
|
group: string;
|
|
1968
2061
|
})[];
|
|
1969
2062
|
}>, "many">;
|
|
1970
|
-
}, "
|
|
2063
|
+
}, "strict", z.ZodTypeAny, {
|
|
1971
2064
|
name: string;
|
|
1972
2065
|
currency: string;
|
|
1973
2066
|
rules: {
|
|
@@ -1997,6 +2090,7 @@ declare const zManifest: z.ZodObject<{
|
|
|
1997
2090
|
accounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1998
2091
|
name: z.ZodString;
|
|
1999
2092
|
currency: z.ZodString;
|
|
2093
|
+
index: z.ZodOptional<z.ZodNumber>;
|
|
2000
2094
|
contractAddress: z.ZodOptional<z.ZodString>;
|
|
2001
2095
|
governance: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
2002
2096
|
type: z.ZodLiteral<"CLASSIC">;
|
|
@@ -2005,7 +2099,7 @@ declare const zManifest: z.ZodObject<{
|
|
|
2005
2099
|
steps: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
2006
2100
|
quorum: z.ZodNumber;
|
|
2007
2101
|
members: z.ZodArray<z.ZodNumber, "many">;
|
|
2008
|
-
}, "
|
|
2102
|
+
}, "strict", z.ZodTypeAny, {
|
|
2009
2103
|
members: number[];
|
|
2010
2104
|
quorum: number;
|
|
2011
2105
|
}, {
|
|
@@ -2014,14 +2108,14 @@ declare const zManifest: z.ZodObject<{
|
|
|
2014
2108
|
}>, z.ZodObject<{
|
|
2015
2109
|
quorum: z.ZodNumber;
|
|
2016
2110
|
group: z.ZodString;
|
|
2017
|
-
}, "
|
|
2111
|
+
}, "strict", z.ZodTypeAny, {
|
|
2018
2112
|
quorum: number;
|
|
2019
2113
|
group: string;
|
|
2020
2114
|
}, {
|
|
2021
2115
|
quorum: number;
|
|
2022
2116
|
group: string;
|
|
2023
2117
|
}>]>, "many">;
|
|
2024
|
-
}, "
|
|
2118
|
+
}, "strict", z.ZodTypeAny, {
|
|
2025
2119
|
type: "SEND" | "STAKE" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "SIGN_DIGESTS" | "SIGN_MESSAGE";
|
|
2026
2120
|
steps: ({
|
|
2027
2121
|
members: number[];
|
|
@@ -2040,7 +2134,7 @@ declare const zManifest: z.ZodObject<{
|
|
|
2040
2134
|
group: string;
|
|
2041
2135
|
})[];
|
|
2042
2136
|
}>, "many">;
|
|
2043
|
-
}, "
|
|
2137
|
+
}, "strict", z.ZodTypeAny, {
|
|
2044
2138
|
type: "CLASSIC";
|
|
2045
2139
|
rules: {
|
|
2046
2140
|
type: "SEND" | "STAKE" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "SIGN_DIGESTS" | "SIGN_MESSAGE";
|
|
@@ -2071,7 +2165,7 @@ declare const zManifest: z.ZodObject<{
|
|
|
2071
2165
|
name: z.ZodString;
|
|
2072
2166
|
repledgeAuthorized: z.ZodOptional<z.ZodBoolean>;
|
|
2073
2167
|
needsAssetManagerApprovalForSettlements: z.ZodOptional<z.ZodBoolean>;
|
|
2074
|
-
}, "
|
|
2168
|
+
}, "strict", z.ZodTypeAny, {
|
|
2075
2169
|
name: string;
|
|
2076
2170
|
repledgeAuthorized?: boolean | undefined;
|
|
2077
2171
|
needsAssetManagerApprovalForSettlements?: boolean | undefined;
|
|
@@ -2080,7 +2174,7 @@ declare const zManifest: z.ZodObject<{
|
|
|
2080
2174
|
repledgeAuthorized?: boolean | undefined;
|
|
2081
2175
|
needsAssetManagerApprovalForSettlements?: boolean | undefined;
|
|
2082
2176
|
}>, "many">;
|
|
2083
|
-
}, "
|
|
2177
|
+
}, "strict", z.ZodTypeAny, {
|
|
2084
2178
|
type: "TRADELINK";
|
|
2085
2179
|
exchanges: {
|
|
2086
2180
|
name: string;
|
|
@@ -2097,7 +2191,7 @@ declare const zManifest: z.ZodObject<{
|
|
|
2097
2191
|
}[];
|
|
2098
2192
|
assetManager: string;
|
|
2099
2193
|
}>]>;
|
|
2100
|
-
}, "
|
|
2194
|
+
}, "strict", z.ZodTypeAny, {
|
|
2101
2195
|
name: string;
|
|
2102
2196
|
currency: string;
|
|
2103
2197
|
governance: {
|
|
@@ -2121,6 +2215,7 @@ declare const zManifest: z.ZodObject<{
|
|
|
2121
2215
|
}[];
|
|
2122
2216
|
assetManager: string;
|
|
2123
2217
|
};
|
|
2218
|
+
index?: number | undefined;
|
|
2124
2219
|
contractAddress?: string | undefined;
|
|
2125
2220
|
}, {
|
|
2126
2221
|
name: string;
|
|
@@ -2146,13 +2241,14 @@ declare const zManifest: z.ZodObject<{
|
|
|
2146
2241
|
}[];
|
|
2147
2242
|
assetManager: string;
|
|
2148
2243
|
};
|
|
2244
|
+
index?: number | undefined;
|
|
2149
2245
|
contractAddress?: string | undefined;
|
|
2150
2246
|
}>, "many">>;
|
|
2151
2247
|
pledges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2152
2248
|
account: z.ZodString;
|
|
2153
2249
|
exchange: z.ZodString;
|
|
2154
2250
|
amount: z.ZodString;
|
|
2155
|
-
}, "
|
|
2251
|
+
}, "strict", z.ZodTypeAny, {
|
|
2156
2252
|
account: string;
|
|
2157
2253
|
exchange: string;
|
|
2158
2254
|
amount: string;
|
|
@@ -2161,7 +2257,7 @@ declare const zManifest: z.ZodObject<{
|
|
|
2161
2257
|
exchange: string;
|
|
2162
2258
|
amount: string;
|
|
2163
2259
|
}>, "many">>;
|
|
2164
|
-
}, "
|
|
2260
|
+
}, "strict", z.ZodTypeAny, {
|
|
2165
2261
|
tradelink?: {
|
|
2166
2262
|
exchanges?: {
|
|
2167
2263
|
name: string;
|
|
@@ -2214,6 +2310,12 @@ declare const zManifest: z.ZodObject<{
|
|
|
2214
2310
|
users?: {
|
|
2215
2311
|
admins?: number[] | undefined;
|
|
2216
2312
|
operators?: number[] | undefined;
|
|
2313
|
+
api?: {
|
|
2314
|
+
name: string;
|
|
2315
|
+
role: "ADMIN" | "OPERATOR";
|
|
2316
|
+
pubKey: string;
|
|
2317
|
+
viewAll: boolean;
|
|
2318
|
+
}[] | undefined;
|
|
2217
2319
|
} | undefined;
|
|
2218
2320
|
whitelists?: {
|
|
2219
2321
|
type: "TRANSACTION" | "SMART_CONTRACT";
|
|
@@ -2264,6 +2366,7 @@ declare const zManifest: z.ZodObject<{
|
|
|
2264
2366
|
}[];
|
|
2265
2367
|
assetManager: string;
|
|
2266
2368
|
};
|
|
2369
|
+
index?: number | undefined;
|
|
2267
2370
|
contractAddress?: string | undefined;
|
|
2268
2371
|
}[] | undefined;
|
|
2269
2372
|
pledges?: {
|
|
@@ -2324,6 +2427,12 @@ declare const zManifest: z.ZodObject<{
|
|
|
2324
2427
|
users?: {
|
|
2325
2428
|
admins?: number[] | undefined;
|
|
2326
2429
|
operators?: number[] | undefined;
|
|
2430
|
+
api?: {
|
|
2431
|
+
name: string;
|
|
2432
|
+
pubKey: string;
|
|
2433
|
+
viewAll: boolean;
|
|
2434
|
+
role?: "ADMIN" | "OPERATOR" | undefined;
|
|
2435
|
+
}[] | undefined;
|
|
2327
2436
|
} | undefined;
|
|
2328
2437
|
whitelists?: {
|
|
2329
2438
|
name: string;
|
|
@@ -2374,6 +2483,7 @@ declare const zManifest: z.ZodObject<{
|
|
|
2374
2483
|
}[];
|
|
2375
2484
|
assetManager: string;
|
|
2376
2485
|
};
|
|
2486
|
+
index?: number | undefined;
|
|
2377
2487
|
contractAddress?: string | undefined;
|
|
2378
2488
|
}[] | undefined;
|
|
2379
2489
|
pledges?: {
|
|
@@ -2382,7 +2492,7 @@ declare const zManifest: z.ZodObject<{
|
|
|
2382
2492
|
amount: string;
|
|
2383
2493
|
}[] | undefined;
|
|
2384
2494
|
}>>;
|
|
2385
|
-
}, "
|
|
2495
|
+
}, "strict", z.ZodTypeAny, {
|
|
2386
2496
|
manifestVersion: 2;
|
|
2387
2497
|
tradelink?: {
|
|
2388
2498
|
exchanges?: {
|
|
@@ -2454,6 +2564,12 @@ declare const zManifest: z.ZodObject<{
|
|
|
2454
2564
|
users?: {
|
|
2455
2565
|
admins?: number[] | undefined;
|
|
2456
2566
|
operators?: number[] | undefined;
|
|
2567
|
+
api?: {
|
|
2568
|
+
name: string;
|
|
2569
|
+
role: "ADMIN" | "OPERATOR";
|
|
2570
|
+
pubKey: string;
|
|
2571
|
+
viewAll: boolean;
|
|
2572
|
+
}[] | undefined;
|
|
2457
2573
|
} | undefined;
|
|
2458
2574
|
whitelists?: {
|
|
2459
2575
|
type: "TRANSACTION" | "SMART_CONTRACT";
|
|
@@ -2504,6 +2620,7 @@ declare const zManifest: z.ZodObject<{
|
|
|
2504
2620
|
}[];
|
|
2505
2621
|
assetManager: string;
|
|
2506
2622
|
};
|
|
2623
|
+
index?: number | undefined;
|
|
2507
2624
|
contractAddress?: string | undefined;
|
|
2508
2625
|
}[] | undefined;
|
|
2509
2626
|
pledges?: {
|
|
@@ -2584,6 +2701,12 @@ declare const zManifest: z.ZodObject<{
|
|
|
2584
2701
|
users?: {
|
|
2585
2702
|
admins?: number[] | undefined;
|
|
2586
2703
|
operators?: number[] | undefined;
|
|
2704
|
+
api?: {
|
|
2705
|
+
name: string;
|
|
2706
|
+
pubKey: string;
|
|
2707
|
+
viewAll: boolean;
|
|
2708
|
+
role?: "ADMIN" | "OPERATOR" | undefined;
|
|
2709
|
+
}[] | undefined;
|
|
2587
2710
|
} | undefined;
|
|
2588
2711
|
whitelists?: {
|
|
2589
2712
|
name: string;
|
|
@@ -2634,6 +2757,7 @@ declare const zManifest: z.ZodObject<{
|
|
|
2634
2757
|
}[];
|
|
2635
2758
|
assetManager: string;
|
|
2636
2759
|
};
|
|
2760
|
+
index?: number | undefined;
|
|
2637
2761
|
contractAddress?: string | undefined;
|
|
2638
2762
|
}[] | undefined;
|
|
2639
2763
|
pledges?: {
|
|
@@ -2656,4 +2780,4 @@ declare function createAndApproveRequest(input: CreateRequestInput, approvers: E
|
|
|
2656
2780
|
|
|
2657
2781
|
declare function bakeManifest(options: BakeOptions, logger: Logger): Promise<void>;
|
|
2658
2782
|
|
|
2659
|
-
export { type BakeOptions, type Manifest, type ManifestAccount, type ManifestGovernanceRule, type ManifestGroup, type ManifestPledgeAdjustment, type ManifestPolicy, type ManifestTradelinkEntity, type ManifestTradelinkGroup, type ManifestTradelinkNetwork, type ManifestTradelinkNetworkBlueprint, type ManifestTradelinkOrg, type ManifestWhitelist, type ManifestWorkspace, bakeManifest, bakePledgeAdjustment, createAndApproveRequest, zManifest, zManifestPolicy };
|
|
2783
|
+
export { type BakeOptions, type Manifest, type ManifestAccount, type ManifestApiUser, type ManifestGovernanceRule, type ManifestGroup, type ManifestPledgeAdjustment, type ManifestPolicy, type ManifestTradelinkEntity, type ManifestTradelinkGroup, type ManifestTradelinkNetwork, type ManifestTradelinkNetworkBlueprint, type ManifestTradelinkOrg, type ManifestWhitelist, type ManifestWorkspace, bakeManifest, bakePledgeAdjustment, createAndApproveRequest, zManifest, zManifestPolicy };
|