@ledgerhq/revault-sdk 0.25.0 → 0.25.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 +1214 -1359
- package/lib/bake.cjs.map +1 -1
- package/lib/bake.d.cts +564 -562
- package/lib/bake.d.ts +564 -562
- package/lib/bake.js +1204 -1359
- package/lib/bake.js.map +1 -1
- package/lib/chunk-CKQMccvm.cjs +28 -0
- package/lib/crypto-BDBF_rfw.cjs +268 -0
- package/lib/crypto-BDBF_rfw.cjs.map +1 -0
- package/lib/crypto-CPCBrCSZ.js +245 -0
- package/lib/crypto-CPCBrCSZ.js.map +1 -0
- package/lib/crypto.cjs +5 -11
- package/lib/crypto.d.cts +10 -7
- package/lib/crypto.d.ts +10 -7
- package/lib/crypto.js +2 -11
- package/lib/device-0lcfYGHr.cjs +793 -0
- package/lib/device-0lcfYGHr.cjs.map +1 -0
- package/lib/device-B8Fww8_6.js +719 -0
- package/lib/device-B8Fww8_6.js.map +1 -0
- package/lib/device.cjs +6 -13
- package/lib/device.d.cts +2 -50
- package/lib/device.d.ts +2 -50
- package/lib/device.js +2 -13
- package/lib/engine.cjs +835 -886
- package/lib/engine.cjs.map +1 -1
- package/lib/engine.d.cts +3 -25
- package/lib/engine.d.ts +3 -25
- package/lib/engine.js +828 -885
- package/lib/engine.js.map +1 -1
- package/lib/index--fscLDTT.d.ts +237 -0
- package/lib/index-BE7oUpCb.d.cts +237 -0
- package/lib/index-C4Xjiv0k.d.cts +23 -0
- package/lib/index-CVjhPoZh.d.ts +23 -0
- package/lib/index.cjs +0 -1
- package/lib/index.d.cts +10 -5
- package/lib/index.d.ts +10 -5
- package/lib/index.js +1 -1
- package/lib/logger-Cme0iL1f.d.cts +10 -0
- package/lib/logger-DWLViq7U.d.ts +10 -0
- package/lib/onboarding.cjs +179 -181
- package/lib/onboarding.cjs.map +1 -1
- package/lib/onboarding.d.cts +1751 -1722
- package/lib/onboarding.d.ts +1751 -1722
- package/lib/onboarding.js +175 -181
- package/lib/onboarding.js.map +1 -1
- package/lib/trpc-CWGPr8Ox.d.ts +20 -0
- package/lib/trpc-C_dUOB1u.d.cts +20 -0
- package/lib/types-4CfR5--z.d.ts +203 -0
- package/lib/types-Byf9V35t.d.cts +203 -0
- package/lib/types-CQROu0nu.d.cts +6 -0
- package/lib/types-_QeBv1U4.d.ts +6 -0
- package/lib/types.cjs +0 -1
- package/lib/types.d.cts +3 -4
- package/lib/types.d.ts +3 -4
- package/lib/types.js +1 -1
- package/lib/utils-BGbdjOP9.js +61 -0
- package/lib/utils-BGbdjOP9.js.map +1 -0
- package/lib/utils-DbSFXp4c.cjs +86 -0
- package/lib/utils-DbSFXp4c.cjs.map +1 -0
- package/package.json +6 -6
- package/lib/chunk-2WGM7EWA.cjs +0 -282
- package/lib/chunk-2WGM7EWA.cjs.map +0 -1
- package/lib/chunk-AXI72NFY.js +0 -50
- package/lib/chunk-AXI72NFY.js.map +0 -1
- package/lib/chunk-DRMYBKL3.cjs +0 -820
- package/lib/chunk-DRMYBKL3.cjs.map +0 -1
- package/lib/chunk-KV5FO7N5.js +0 -282
- package/lib/chunk-KV5FO7N5.js.map +0 -1
- package/lib/chunk-LH4QQXUH.cjs +0 -50
- package/lib/chunk-LH4QQXUH.cjs.map +0 -1
- package/lib/chunk-PFZIW6UP.js +0 -820
- package/lib/chunk-PFZIW6UP.js.map +0 -1
- package/lib/crypto.cjs.map +0 -1
- package/lib/crypto.js.map +0 -1
- package/lib/device.cjs.map +0 -1
- package/lib/device.js.map +0 -1
- package/lib/index.cjs.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/logger-C-TPbnjv.d.cts +0 -9
- package/lib/logger-C-TPbnjv.d.ts +0 -9
- package/lib/types-C-ngtI5m.d.ts +0 -202
- package/lib/types-CpGEbAxh.d.cts +0 -19
- package/lib/types-CpGEbAxh.d.ts +0 -19
- package/lib/types-CryvY9pW.d.cts +0 -202
- package/lib/types-DJfbanPz.d.cts +0 -167
- package/lib/types-DJfbanPz.d.ts +0 -167
- package/lib/types.cjs.map +0 -1
- package/lib/types.js.map +0 -1
package/lib/bake.d.ts
CHANGED
|
@@ -1,667 +1,669 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import './types-DJfbanPz.js';
|
|
7
|
-
import '@trpc/client';
|
|
8
|
-
import '@trpc/server';
|
|
1
|
+
import { t as Logger } from "./logger-DWLViq7U.js";
|
|
2
|
+
import { n as RouterInputs } from "./trpc-CWGPr8Ox.js";
|
|
3
|
+
import { b as WithPsdAuth, d as Engine, v as WithDevice, x as WithWorkspace } from "./types-4CfR5--z.js";
|
|
4
|
+
import z from "zod";
|
|
5
|
+
import { VaultRequestResponse } from "@ledgerhq/revault-api";
|
|
9
6
|
|
|
7
|
+
//#region src/bake/types.d.ts
|
|
10
8
|
type BakeOptions = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
manifest: Manifest;
|
|
10
|
+
engine: Engine;
|
|
11
|
+
workspaceName?: string;
|
|
12
|
+
rootAuthToken?: string;
|
|
15
13
|
};
|
|
16
14
|
declare const zManifestApiUser: z.ZodObject<{
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
15
|
+
name: z.ZodString;
|
|
16
|
+
role: z.ZodDefault<z.ZodEnum<{
|
|
17
|
+
ADMIN: "ADMIN";
|
|
18
|
+
OPERATOR: "OPERATOR";
|
|
19
|
+
}>>;
|
|
20
|
+
pubKey: z.ZodOptional<z.ZodString>;
|
|
21
|
+
viewAll: z.ZodBoolean;
|
|
24
22
|
}, z.core.$strip>;
|
|
25
23
|
type ManifestApiUser = z.infer<typeof zManifestApiUser>;
|
|
26
24
|
declare const zManifestGroup: z.ZodObject<{
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
name: z.ZodString;
|
|
26
|
+
members: z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
29
27
|
}, z.core.$strict>;
|
|
30
28
|
type ManifestGroup = z.infer<typeof zManifestGroup>;
|
|
31
29
|
declare const zManifestWhitelist: z.ZodObject<{
|
|
30
|
+
name: z.ZodString;
|
|
31
|
+
description: z.ZodOptional<z.ZodString>;
|
|
32
|
+
type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
33
|
+
SMART_CONTRACT: "SMART_CONTRACT";
|
|
34
|
+
TRANSACTION: "TRANSACTION";
|
|
35
|
+
}>>>;
|
|
36
|
+
addresses: z.ZodArray<z.ZodObject<{
|
|
32
37
|
name: z.ZodString;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}>>>;
|
|
38
|
-
addresses: z.ZodArray<z.ZodObject<{
|
|
39
|
-
name: z.ZodString;
|
|
40
|
-
currency: z.ZodString;
|
|
41
|
-
address: z.ZodString;
|
|
42
|
-
destinationTags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
43
|
-
}, z.core.$strict>>;
|
|
38
|
+
currency: z.ZodString;
|
|
39
|
+
address: z.ZodString;
|
|
40
|
+
destinationTags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
41
|
+
}, z.core.$strict>>;
|
|
44
42
|
}, z.core.$strict>;
|
|
45
43
|
type ManifestWhitelist = z.infer<typeof zManifestWhitelist>;
|
|
46
44
|
declare const zManifestGovernanceRule: z.ZodObject<{
|
|
45
|
+
type: z.ZodEnum<{
|
|
46
|
+
DEPLOY_CONTRACT: "DEPLOY_CONTRACT";
|
|
47
|
+
EXECUTE_CONTRACT: "EXECUTE_CONTRACT";
|
|
48
|
+
RECEIVE: "RECEIVE";
|
|
49
|
+
SEND: "SEND";
|
|
50
|
+
SIGN_MESSAGE: "SIGN_MESSAGE";
|
|
51
|
+
STAKE: "STAKE";
|
|
52
|
+
}>;
|
|
53
|
+
steps: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
54
|
+
quorum: z.ZodNumber;
|
|
55
|
+
members: z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
56
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
57
|
+
quorum: z.ZodNumber;
|
|
58
|
+
group: z.ZodString;
|
|
59
|
+
}, z.core.$strict>]>>;
|
|
60
|
+
threshold: z.ZodOptional<z.ZodObject<{
|
|
61
|
+
min: z.ZodNullable<z.ZodString>;
|
|
62
|
+
max: z.ZodNullable<z.ZodString>;
|
|
63
|
+
}, z.core.$strip>>;
|
|
64
|
+
whitelistNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
65
|
+
}, z.core.$strict>;
|
|
66
|
+
type ManifestGovernanceRule = z.infer<typeof zManifestGovernanceRule>;
|
|
67
|
+
declare const zManifestPolicy: z.ZodObject<{
|
|
68
|
+
name: z.ZodString;
|
|
69
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
70
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
47
71
|
type: z.ZodEnum<{
|
|
48
|
-
|
|
49
|
-
|
|
72
|
+
DEPLOY_CONTRACT: "DEPLOY_CONTRACT";
|
|
73
|
+
EXECUTE_CONTRACT: "EXECUTE_CONTRACT";
|
|
74
|
+
RECEIVE: "RECEIVE";
|
|
75
|
+
SEND: "SEND";
|
|
76
|
+
SIGN_MESSAGE: "SIGN_MESSAGE";
|
|
77
|
+
STAKE: "STAKE";
|
|
78
|
+
}>;
|
|
79
|
+
steps: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
80
|
+
quorum: z.ZodNumber;
|
|
81
|
+
members: z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
82
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
83
|
+
quorum: z.ZodNumber;
|
|
84
|
+
group: z.ZodString;
|
|
85
|
+
}, z.core.$strict>]>>;
|
|
86
|
+
threshold: z.ZodOptional<z.ZodObject<{
|
|
87
|
+
min: z.ZodNullable<z.ZodString>;
|
|
88
|
+
max: z.ZodNullable<z.ZodString>;
|
|
89
|
+
}, z.core.$strip>>;
|
|
90
|
+
whitelistNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
91
|
+
}, z.core.$strict>>;
|
|
92
|
+
}, z.core.$strict>;
|
|
93
|
+
type ManifestPolicy = z.infer<typeof zManifestPolicy>;
|
|
94
|
+
declare const zManifestRawSigningGovernanceRule: z.ZodObject<{
|
|
95
|
+
type: z.ZodLiteral<"SIGN_DIGESTS">;
|
|
96
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
97
|
+
quorum: z.ZodNumber;
|
|
98
|
+
members: z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
99
|
+
}, z.core.$strict>>;
|
|
100
|
+
}, z.core.$strict>;
|
|
101
|
+
type ManifestRawSigningGovernanceRule = z.infer<typeof zManifestRawSigningGovernanceRule>;
|
|
102
|
+
declare const zManifestAccount: z.ZodObject<{
|
|
103
|
+
name: z.ZodString;
|
|
104
|
+
currency: z.ZodString;
|
|
105
|
+
index: z.ZodNumber;
|
|
106
|
+
contractAddress: z.ZodOptional<z.ZodString>;
|
|
107
|
+
tokenIdentifier: z.ZodOptional<z.ZodString>;
|
|
108
|
+
governance: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
109
|
+
type: z.ZodLiteral<"CLASSIC">;
|
|
110
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
111
|
+
type: z.ZodEnum<{
|
|
50
112
|
DEPLOY_CONTRACT: "DEPLOY_CONTRACT";
|
|
51
113
|
EXECUTE_CONTRACT: "EXECUTE_CONTRACT";
|
|
52
|
-
SIGN_MESSAGE: "SIGN_MESSAGE";
|
|
53
114
|
RECEIVE: "RECEIVE";
|
|
54
|
-
|
|
55
|
-
|
|
115
|
+
SEND: "SEND";
|
|
116
|
+
SIGN_MESSAGE: "SIGN_MESSAGE";
|
|
117
|
+
STAKE: "STAKE";
|
|
118
|
+
}>;
|
|
119
|
+
steps: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
56
120
|
quorum: z.ZodNumber;
|
|
57
121
|
members: z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
58
|
-
|
|
122
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
59
123
|
quorum: z.ZodNumber;
|
|
60
124
|
group: z.ZodString;
|
|
61
|
-
|
|
62
|
-
|
|
125
|
+
}, z.core.$strict>]>>;
|
|
126
|
+
threshold: z.ZodOptional<z.ZodObject<{
|
|
63
127
|
min: z.ZodNullable<z.ZodString>;
|
|
64
128
|
max: z.ZodNullable<z.ZodString>;
|
|
65
|
-
|
|
66
|
-
|
|
129
|
+
}, z.core.$strip>>;
|
|
130
|
+
whitelistNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
131
|
+
}, z.core.$strict>>;
|
|
132
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
133
|
+
type: z.ZodLiteral<"TRADELINK">;
|
|
134
|
+
assetManager: z.ZodString;
|
|
135
|
+
exchanges: z.ZodArray<z.ZodObject<{
|
|
136
|
+
name: z.ZodString;
|
|
137
|
+
repledgeAuthorized: z.ZodOptional<z.ZodBoolean>;
|
|
138
|
+
needsAssetManagerApprovalForSettlements: z.ZodOptional<z.ZodBoolean>;
|
|
139
|
+
}, z.core.$strict>>;
|
|
140
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
141
|
+
type: z.ZodLiteral<"RAW_SIGNING">;
|
|
142
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
143
|
+
type: z.ZodLiteral<"SIGN_DIGESTS">;
|
|
144
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
145
|
+
quorum: z.ZodNumber;
|
|
146
|
+
members: z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
147
|
+
}, z.core.$strict>>;
|
|
148
|
+
}, z.core.$strict>>;
|
|
149
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
150
|
+
type: z.ZodLiteral<"POLICY">;
|
|
151
|
+
policy: z.ZodString;
|
|
152
|
+
}, z.core.$strict>], "type">;
|
|
67
153
|
}, z.core.$strict>;
|
|
68
|
-
type
|
|
69
|
-
declare const
|
|
154
|
+
type ManifestAccount = z.infer<typeof zManifestAccount>;
|
|
155
|
+
declare const zManifestEntity: z.ZodObject<{
|
|
156
|
+
name: z.ZodString;
|
|
157
|
+
accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
158
|
+
members: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
159
|
+
}, z.core.$strict>;
|
|
160
|
+
type ManifestEntity = z.infer<typeof zManifestEntity>;
|
|
161
|
+
declare const zManifestHederaData: z.ZodObject<{
|
|
162
|
+
index: z.ZodNumber;
|
|
163
|
+
onChainId: z.ZodString;
|
|
164
|
+
activate: z.ZodDefault<z.ZodBoolean>;
|
|
165
|
+
}, z.core.$strict>;
|
|
166
|
+
type ManifestHederaData = z.infer<typeof zManifestHederaData>;
|
|
167
|
+
declare const zManifestPledgeAdjustment: z.ZodObject<{
|
|
168
|
+
account: z.ZodString;
|
|
169
|
+
exchange: z.ZodString;
|
|
170
|
+
amount: z.ZodString;
|
|
171
|
+
}, z.core.$strict>;
|
|
172
|
+
type ManifestPledgeAdjustment = z.infer<typeof zManifestPledgeAdjustment>;
|
|
173
|
+
declare const zManifestTradelinkGroup: z.ZodObject<{
|
|
174
|
+
members: z.ZodArray<z.ZodNumber>;
|
|
175
|
+
quorum: z.ZodNumber;
|
|
176
|
+
}, z.core.$strict>;
|
|
177
|
+
type ManifestTradelinkGroup = z.infer<typeof zManifestTradelinkGroup>;
|
|
178
|
+
declare const zManifestTradelinkEntity: z.ZodObject<{
|
|
179
|
+
name: z.ZodString;
|
|
180
|
+
groups: z.ZodArray<z.ZodObject<{
|
|
181
|
+
members: z.ZodArray<z.ZodNumber>;
|
|
182
|
+
quorum: z.ZodNumber;
|
|
183
|
+
}, z.core.$strict>>;
|
|
184
|
+
whitelist: z.ZodArray<z.ZodObject<{
|
|
70
185
|
name: z.ZodString;
|
|
71
|
-
currency: z.
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
186
|
+
currency: z.ZodString;
|
|
187
|
+
address: z.ZodString;
|
|
188
|
+
}, z.core.$strict>>;
|
|
189
|
+
}, z.core.$strict>;
|
|
190
|
+
type ManifestTradelinkEntity = z.infer<typeof zManifestTradelinkEntity>;
|
|
191
|
+
declare const zManifestTradelinkNetworkBlueprint: z.ZodObject<{
|
|
192
|
+
custodian: z.ZodString;
|
|
193
|
+
exchanges: z.ZodArray<z.ZodString>;
|
|
194
|
+
assetManagers: z.ZodArray<z.ZodString>;
|
|
195
|
+
}, z.core.$strict>;
|
|
196
|
+
type ManifestTradelinkNetworkBlueprint = z.infer<typeof zManifestTradelinkNetworkBlueprint>;
|
|
197
|
+
declare const zManifestTradelinkNetwork: z.ZodObject<{
|
|
198
|
+
networkBlueprint: z.ZodOptional<z.ZodObject<{
|
|
199
|
+
custodian: z.ZodString;
|
|
200
|
+
exchanges: z.ZodArray<z.ZodString>;
|
|
201
|
+
assetManagers: z.ZodArray<z.ZodString>;
|
|
202
|
+
}, z.core.$strict>>;
|
|
203
|
+
custodian: z.ZodOptional<z.ZodObject<{
|
|
204
|
+
settlement: z.ZodArray<z.ZodObject<{
|
|
205
|
+
members: z.ZodArray<z.ZodNumber>;
|
|
206
|
+
quorum: z.ZodNumber;
|
|
207
|
+
}, z.core.$strict>>;
|
|
208
|
+
withdraw: z.ZodArray<z.ZodObject<{
|
|
209
|
+
members: z.ZodArray<z.ZodNumber>;
|
|
210
|
+
quorum: z.ZodNumber;
|
|
211
|
+
}, z.core.$strict>>;
|
|
212
|
+
arbitration: z.ZodArray<z.ZodObject<{
|
|
213
|
+
members: z.ZodArray<z.ZodNumber>;
|
|
214
|
+
quorum: z.ZodNumber;
|
|
93
215
|
}, z.core.$strict>>;
|
|
216
|
+
}, z.core.$strict>>;
|
|
217
|
+
exchanges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
218
|
+
name: z.ZodString;
|
|
219
|
+
groups: z.ZodArray<z.ZodObject<{
|
|
220
|
+
members: z.ZodArray<z.ZodNumber>;
|
|
221
|
+
quorum: z.ZodNumber;
|
|
222
|
+
}, z.core.$strict>>;
|
|
223
|
+
whitelist: z.ZodArray<z.ZodObject<{
|
|
224
|
+
name: z.ZodString;
|
|
225
|
+
currency: z.ZodString;
|
|
226
|
+
address: z.ZodString;
|
|
227
|
+
}, z.core.$strict>>;
|
|
228
|
+
}, z.core.$strict>>>;
|
|
229
|
+
assetManagers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
230
|
+
name: z.ZodString;
|
|
231
|
+
groups: z.ZodArray<z.ZodObject<{
|
|
232
|
+
members: z.ZodArray<z.ZodNumber>;
|
|
233
|
+
quorum: z.ZodNumber;
|
|
234
|
+
}, z.core.$strict>>;
|
|
235
|
+
whitelist: z.ZodArray<z.ZodObject<{
|
|
236
|
+
name: z.ZodString;
|
|
237
|
+
currency: z.ZodString;
|
|
238
|
+
address: z.ZodString;
|
|
239
|
+
}, z.core.$strict>>;
|
|
240
|
+
}, z.core.$strict>>>;
|
|
94
241
|
}, z.core.$strict>;
|
|
95
|
-
type
|
|
96
|
-
declare const
|
|
97
|
-
|
|
98
|
-
|
|
242
|
+
type ManifestTradelinkNetwork = z.infer<typeof zManifestTradelinkNetwork>;
|
|
243
|
+
declare const zManifestWorkspaceRule: z.ZodObject<{
|
|
244
|
+
permission: z.ZodEnum<{
|
|
245
|
+
CREATE_ACCOUNT_WITH_POLICY: "CREATE_ACCOUNT_WITH_POLICY";
|
|
246
|
+
}>;
|
|
247
|
+
quorum: z.ZodNumber;
|
|
248
|
+
members: z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
249
|
+
}, z.core.$strict>;
|
|
250
|
+
type ManifestWorkspaceRule = z.infer<typeof zManifestWorkspaceRule>;
|
|
251
|
+
declare const zManifestWorkspace: z.ZodObject<{
|
|
252
|
+
tradelink: z.ZodOptional<z.ZodObject<{
|
|
253
|
+
networkBlueprint: z.ZodOptional<z.ZodObject<{
|
|
254
|
+
custodian: z.ZodString;
|
|
255
|
+
exchanges: z.ZodArray<z.ZodString>;
|
|
256
|
+
assetManagers: z.ZodArray<z.ZodString>;
|
|
257
|
+
}, z.core.$strict>>;
|
|
258
|
+
custodian: z.ZodOptional<z.ZodObject<{
|
|
259
|
+
settlement: z.ZodArray<z.ZodObject<{
|
|
260
|
+
members: z.ZodArray<z.ZodNumber>;
|
|
261
|
+
quorum: z.ZodNumber;
|
|
262
|
+
}, z.core.$strict>>;
|
|
263
|
+
withdraw: z.ZodArray<z.ZodObject<{
|
|
264
|
+
members: z.ZodArray<z.ZodNumber>;
|
|
265
|
+
quorum: z.ZodNumber;
|
|
266
|
+
}, z.core.$strict>>;
|
|
267
|
+
arbitration: z.ZodArray<z.ZodObject<{
|
|
268
|
+
members: z.ZodArray<z.ZodNumber>;
|
|
269
|
+
quorum: z.ZodNumber;
|
|
270
|
+
}, z.core.$strict>>;
|
|
271
|
+
}, z.core.$strict>>;
|
|
272
|
+
exchanges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
273
|
+
name: z.ZodString;
|
|
274
|
+
groups: z.ZodArray<z.ZodObject<{
|
|
275
|
+
members: z.ZodArray<z.ZodNumber>;
|
|
276
|
+
quorum: z.ZodNumber;
|
|
277
|
+
}, z.core.$strict>>;
|
|
278
|
+
whitelist: z.ZodArray<z.ZodObject<{
|
|
279
|
+
name: z.ZodString;
|
|
280
|
+
currency: z.ZodString;
|
|
281
|
+
address: z.ZodString;
|
|
282
|
+
}, z.core.$strict>>;
|
|
283
|
+
}, z.core.$strict>>>;
|
|
284
|
+
assetManagers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
285
|
+
name: z.ZodString;
|
|
286
|
+
groups: z.ZodArray<z.ZodObject<{
|
|
287
|
+
members: z.ZodArray<z.ZodNumber>;
|
|
288
|
+
quorum: z.ZodNumber;
|
|
289
|
+
}, z.core.$strict>>;
|
|
290
|
+
whitelist: z.ZodArray<z.ZodObject<{
|
|
291
|
+
name: z.ZodString;
|
|
292
|
+
currency: z.ZodString;
|
|
293
|
+
address: z.ZodString;
|
|
294
|
+
}, z.core.$strict>>;
|
|
295
|
+
}, z.core.$strict>>>;
|
|
296
|
+
}, z.core.$strict>>;
|
|
297
|
+
users: z.ZodOptional<z.ZodObject<{
|
|
298
|
+
admins: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
299
|
+
operators: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
300
|
+
api: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
301
|
+
name: z.ZodString;
|
|
302
|
+
role: z.ZodDefault<z.ZodEnum<{
|
|
303
|
+
ADMIN: "ADMIN";
|
|
304
|
+
OPERATOR: "OPERATOR";
|
|
305
|
+
}>>;
|
|
306
|
+
pubKey: z.ZodOptional<z.ZodString>;
|
|
307
|
+
viewAll: z.ZodBoolean;
|
|
308
|
+
}, z.core.$strip>>>;
|
|
309
|
+
}, z.core.$strip>>;
|
|
310
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
311
|
+
name: z.ZodString;
|
|
312
|
+
members: z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
313
|
+
}, z.core.$strict>>>;
|
|
314
|
+
whitelists: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
315
|
+
name: z.ZodString;
|
|
316
|
+
description: z.ZodOptional<z.ZodString>;
|
|
317
|
+
type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
318
|
+
SMART_CONTRACT: "SMART_CONTRACT";
|
|
319
|
+
TRANSACTION: "TRANSACTION";
|
|
320
|
+
}>>>;
|
|
321
|
+
addresses: z.ZodArray<z.ZodObject<{
|
|
322
|
+
name: z.ZodString;
|
|
323
|
+
currency: z.ZodString;
|
|
324
|
+
address: z.ZodString;
|
|
325
|
+
destinationTags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
326
|
+
}, z.core.$strict>>;
|
|
327
|
+
}, z.core.$strict>>>;
|
|
328
|
+
policies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
329
|
+
name: z.ZodString;
|
|
330
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
331
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
332
|
+
type: z.ZodEnum<{
|
|
333
|
+
DEPLOY_CONTRACT: "DEPLOY_CONTRACT";
|
|
334
|
+
EXECUTE_CONTRACT: "EXECUTE_CONTRACT";
|
|
335
|
+
RECEIVE: "RECEIVE";
|
|
336
|
+
SEND: "SEND";
|
|
337
|
+
SIGN_MESSAGE: "SIGN_MESSAGE";
|
|
338
|
+
STAKE: "STAKE";
|
|
339
|
+
}>;
|
|
340
|
+
steps: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
99
341
|
quorum: z.ZodNumber;
|
|
100
342
|
members: z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
343
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
344
|
+
quorum: z.ZodNumber;
|
|
345
|
+
group: z.ZodString;
|
|
346
|
+
}, z.core.$strict>]>>;
|
|
347
|
+
threshold: z.ZodOptional<z.ZodObject<{
|
|
348
|
+
min: z.ZodNullable<z.ZodString>;
|
|
349
|
+
max: z.ZodNullable<z.ZodString>;
|
|
350
|
+
}, z.core.$strip>>;
|
|
351
|
+
whitelistNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
101
352
|
}, z.core.$strict>>;
|
|
102
|
-
}, z.core.$strict
|
|
103
|
-
|
|
104
|
-
declare const zManifestAccount: z.ZodObject<{
|
|
353
|
+
}, z.core.$strict>>>;
|
|
354
|
+
accounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
105
355
|
name: z.ZodString;
|
|
106
356
|
currency: z.ZodString;
|
|
107
357
|
index: z.ZodNumber;
|
|
108
358
|
contractAddress: z.ZodOptional<z.ZodString>;
|
|
109
359
|
tokenIdentifier: z.ZodOptional<z.ZodString>;
|
|
110
360
|
governance: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
361
|
+
type: z.ZodLiteral<"CLASSIC">;
|
|
362
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
363
|
+
type: z.ZodEnum<{
|
|
364
|
+
DEPLOY_CONTRACT: "DEPLOY_CONTRACT";
|
|
365
|
+
EXECUTE_CONTRACT: "EXECUTE_CONTRACT";
|
|
366
|
+
RECEIVE: "RECEIVE";
|
|
367
|
+
SEND: "SEND";
|
|
368
|
+
SIGN_MESSAGE: "SIGN_MESSAGE";
|
|
369
|
+
STAKE: "STAKE";
|
|
370
|
+
}>;
|
|
371
|
+
steps: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
372
|
+
quorum: z.ZodNumber;
|
|
373
|
+
members: z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
374
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
375
|
+
quorum: z.ZodNumber;
|
|
376
|
+
group: z.ZodString;
|
|
377
|
+
}, z.core.$strict>]>>;
|
|
378
|
+
threshold: z.ZodOptional<z.ZodObject<{
|
|
379
|
+
min: z.ZodNullable<z.ZodString>;
|
|
380
|
+
max: z.ZodNullable<z.ZodString>;
|
|
381
|
+
}, z.core.$strip>>;
|
|
382
|
+
whitelistNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
383
|
+
}, z.core.$strict>>;
|
|
134
384
|
}, z.core.$strict>, z.ZodObject<{
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
385
|
+
type: z.ZodLiteral<"TRADELINK">;
|
|
386
|
+
assetManager: z.ZodString;
|
|
387
|
+
exchanges: z.ZodArray<z.ZodObject<{
|
|
388
|
+
name: z.ZodString;
|
|
389
|
+
repledgeAuthorized: z.ZodOptional<z.ZodBoolean>;
|
|
390
|
+
needsAssetManagerApprovalForSettlements: z.ZodOptional<z.ZodBoolean>;
|
|
391
|
+
}, z.core.$strict>>;
|
|
142
392
|
}, z.core.$strict>, z.ZodObject<{
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
}, z.core.$strict>>;
|
|
393
|
+
type: z.ZodLiteral<"RAW_SIGNING">;
|
|
394
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
395
|
+
type: z.ZodLiteral<"SIGN_DIGESTS">;
|
|
396
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
397
|
+
quorum: z.ZodNumber;
|
|
398
|
+
members: z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
150
399
|
}, z.core.$strict>>;
|
|
400
|
+
}, z.core.$strict>>;
|
|
151
401
|
}, z.core.$strict>, z.ZodObject<{
|
|
152
|
-
|
|
153
|
-
|
|
402
|
+
type: z.ZodLiteral<"POLICY">;
|
|
403
|
+
policy: z.ZodString;
|
|
154
404
|
}, z.core.$strict>], "type">;
|
|
155
|
-
}, z.core.$strict
|
|
156
|
-
|
|
157
|
-
declare const zManifestEntity: z.ZodObject<{
|
|
405
|
+
}, z.core.$strict>>>;
|
|
406
|
+
entities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
158
407
|
name: z.ZodString;
|
|
159
408
|
accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
160
409
|
members: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
161
|
-
}, z.core.$strict
|
|
162
|
-
|
|
163
|
-
declare const zManifestHederaData: z.ZodObject<{
|
|
410
|
+
}, z.core.$strict>>>;
|
|
411
|
+
hederaData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
164
412
|
index: z.ZodNumber;
|
|
165
413
|
onChainId: z.ZodString;
|
|
166
414
|
activate: z.ZodDefault<z.ZodBoolean>;
|
|
167
|
-
}, z.core.$strict
|
|
168
|
-
|
|
169
|
-
declare const zManifestPledgeAdjustment: z.ZodObject<{
|
|
415
|
+
}, z.core.$strict>>>>;
|
|
416
|
+
pledges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
170
417
|
account: z.ZodString;
|
|
171
418
|
exchange: z.ZodString;
|
|
172
419
|
amount: z.ZodString;
|
|
173
|
-
}, z.core.$strict
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
420
|
+
}, z.core.$strict>>>;
|
|
421
|
+
workspaceRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
422
|
+
permission: z.ZodEnum<{
|
|
423
|
+
CREATE_ACCOUNT_WITH_POLICY: "CREATE_ACCOUNT_WITH_POLICY";
|
|
424
|
+
}>;
|
|
177
425
|
quorum: z.ZodNumber;
|
|
426
|
+
members: z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
427
|
+
}, z.core.$strict>>>;
|
|
178
428
|
}, z.core.$strict>;
|
|
179
|
-
type
|
|
180
|
-
declare const
|
|
429
|
+
type ManifestWorkspace = z.infer<typeof zManifestWorkspace>;
|
|
430
|
+
declare const zManifestTradelinkOrg: z.ZodObject<{
|
|
431
|
+
exchanges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
181
432
|
name: z.ZodString;
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
exchanges: z.ZodArray<z.ZodString>;
|
|
196
|
-
assetManagers: z.ZodArray<z.ZodString>;
|
|
433
|
+
code: z.ZodString;
|
|
434
|
+
logo: z.ZodString;
|
|
435
|
+
}, z.core.$strict>>>;
|
|
436
|
+
assetManagers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
437
|
+
name: z.ZodString;
|
|
438
|
+
code: z.ZodString;
|
|
439
|
+
logo: z.ZodString;
|
|
440
|
+
}, z.core.$strict>>>;
|
|
441
|
+
custodians: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
442
|
+
name: z.ZodString;
|
|
443
|
+
code: z.ZodString;
|
|
444
|
+
logo: z.ZodString;
|
|
445
|
+
}, z.core.$strict>>>;
|
|
197
446
|
}, z.core.$strict>;
|
|
198
|
-
type
|
|
199
|
-
declare const
|
|
200
|
-
|
|
447
|
+
type ManifestTradelinkOrg = z.infer<typeof zManifestTradelinkOrg>;
|
|
448
|
+
declare const zManifest: z.ZodObject<{
|
|
449
|
+
manifestVersion: z.ZodLiteral<2>;
|
|
450
|
+
tradelink: z.ZodOptional<z.ZodObject<{
|
|
451
|
+
exchanges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
452
|
+
name: z.ZodString;
|
|
453
|
+
code: z.ZodString;
|
|
454
|
+
logo: z.ZodString;
|
|
455
|
+
}, z.core.$strict>>>;
|
|
456
|
+
assetManagers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
457
|
+
name: z.ZodString;
|
|
458
|
+
code: z.ZodString;
|
|
459
|
+
logo: z.ZodString;
|
|
460
|
+
}, z.core.$strict>>>;
|
|
461
|
+
custodians: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
462
|
+
name: z.ZodString;
|
|
463
|
+
code: z.ZodString;
|
|
464
|
+
logo: z.ZodString;
|
|
465
|
+
}, z.core.$strict>>>;
|
|
466
|
+
}, z.core.$strict>>;
|
|
467
|
+
workspace: z.ZodOptional<z.ZodObject<{
|
|
468
|
+
tradelink: z.ZodOptional<z.ZodObject<{
|
|
469
|
+
networkBlueprint: z.ZodOptional<z.ZodObject<{
|
|
201
470
|
custodian: z.ZodString;
|
|
202
471
|
exchanges: z.ZodArray<z.ZodString>;
|
|
203
472
|
assetManagers: z.ZodArray<z.ZodString>;
|
|
204
|
-
|
|
205
|
-
|
|
473
|
+
}, z.core.$strict>>;
|
|
474
|
+
custodian: z.ZodOptional<z.ZodObject<{
|
|
206
475
|
settlement: z.ZodArray<z.ZodObject<{
|
|
207
|
-
|
|
208
|
-
|
|
476
|
+
members: z.ZodArray<z.ZodNumber>;
|
|
477
|
+
quorum: z.ZodNumber;
|
|
209
478
|
}, z.core.$strict>>;
|
|
210
479
|
withdraw: z.ZodArray<z.ZodObject<{
|
|
211
|
-
|
|
212
|
-
|
|
480
|
+
members: z.ZodArray<z.ZodNumber>;
|
|
481
|
+
quorum: z.ZodNumber;
|
|
213
482
|
}, z.core.$strict>>;
|
|
214
483
|
arbitration: z.ZodArray<z.ZodObject<{
|
|
215
|
-
|
|
216
|
-
|
|
484
|
+
members: z.ZodArray<z.ZodNumber>;
|
|
485
|
+
quorum: z.ZodNumber;
|
|
217
486
|
}, z.core.$strict>>;
|
|
218
|
-
|
|
219
|
-
|
|
487
|
+
}, z.core.$strict>>;
|
|
488
|
+
exchanges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
220
489
|
name: z.ZodString;
|
|
221
490
|
groups: z.ZodArray<z.ZodObject<{
|
|
222
|
-
|
|
223
|
-
|
|
491
|
+
members: z.ZodArray<z.ZodNumber>;
|
|
492
|
+
quorum: z.ZodNumber;
|
|
224
493
|
}, z.core.$strict>>;
|
|
225
494
|
whitelist: z.ZodArray<z.ZodObject<{
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
495
|
+
name: z.ZodString;
|
|
496
|
+
currency: z.ZodString;
|
|
497
|
+
address: z.ZodString;
|
|
229
498
|
}, z.core.$strict>>;
|
|
230
|
-
|
|
231
|
-
|
|
499
|
+
}, z.core.$strict>>>;
|
|
500
|
+
assetManagers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
232
501
|
name: z.ZodString;
|
|
233
502
|
groups: z.ZodArray<z.ZodObject<{
|
|
234
|
-
|
|
235
|
-
|
|
503
|
+
members: z.ZodArray<z.ZodNumber>;
|
|
504
|
+
quorum: z.ZodNumber;
|
|
236
505
|
}, z.core.$strict>>;
|
|
237
506
|
whitelist: z.ZodArray<z.ZodObject<{
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
}, z.core.$strict>>;
|
|
242
|
-
}, z.core.$strict>>>;
|
|
243
|
-
}, z.core.$strict>;
|
|
244
|
-
type ManifestTradelinkNetwork = z.infer<typeof zManifestTradelinkNetwork>;
|
|
245
|
-
declare const zManifestWorkspaceRule: z.ZodObject<{
|
|
246
|
-
permission: z.ZodEnum<{
|
|
247
|
-
CREATE_ACCOUNT_WITH_POLICY: "CREATE_ACCOUNT_WITH_POLICY";
|
|
248
|
-
}>;
|
|
249
|
-
quorum: z.ZodNumber;
|
|
250
|
-
members: z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
251
|
-
}, z.core.$strict>;
|
|
252
|
-
type ManifestWorkspaceRule = z.infer<typeof zManifestWorkspaceRule>;
|
|
253
|
-
declare const zManifestWorkspace: z.ZodObject<{
|
|
254
|
-
tradelink: z.ZodOptional<z.ZodObject<{
|
|
255
|
-
networkBlueprint: z.ZodOptional<z.ZodObject<{
|
|
256
|
-
custodian: z.ZodString;
|
|
257
|
-
exchanges: z.ZodArray<z.ZodString>;
|
|
258
|
-
assetManagers: z.ZodArray<z.ZodString>;
|
|
259
|
-
}, z.core.$strict>>;
|
|
260
|
-
custodian: z.ZodOptional<z.ZodObject<{
|
|
261
|
-
settlement: z.ZodArray<z.ZodObject<{
|
|
262
|
-
members: z.ZodArray<z.ZodNumber>;
|
|
263
|
-
quorum: z.ZodNumber;
|
|
264
|
-
}, z.core.$strict>>;
|
|
265
|
-
withdraw: z.ZodArray<z.ZodObject<{
|
|
266
|
-
members: z.ZodArray<z.ZodNumber>;
|
|
267
|
-
quorum: z.ZodNumber;
|
|
268
|
-
}, z.core.$strict>>;
|
|
269
|
-
arbitration: z.ZodArray<z.ZodObject<{
|
|
270
|
-
members: z.ZodArray<z.ZodNumber>;
|
|
271
|
-
quorum: z.ZodNumber;
|
|
272
|
-
}, z.core.$strict>>;
|
|
507
|
+
name: z.ZodString;
|
|
508
|
+
currency: z.ZodString;
|
|
509
|
+
address: z.ZodString;
|
|
273
510
|
}, z.core.$strict>>;
|
|
274
|
-
|
|
275
|
-
name: z.ZodString;
|
|
276
|
-
groups: z.ZodArray<z.ZodObject<{
|
|
277
|
-
members: z.ZodArray<z.ZodNumber>;
|
|
278
|
-
quorum: z.ZodNumber;
|
|
279
|
-
}, z.core.$strict>>;
|
|
280
|
-
whitelist: z.ZodArray<z.ZodObject<{
|
|
281
|
-
name: z.ZodString;
|
|
282
|
-
currency: z.ZodString;
|
|
283
|
-
address: z.ZodString;
|
|
284
|
-
}, z.core.$strict>>;
|
|
285
|
-
}, z.core.$strict>>>;
|
|
286
|
-
assetManagers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
287
|
-
name: z.ZodString;
|
|
288
|
-
groups: z.ZodArray<z.ZodObject<{
|
|
289
|
-
members: z.ZodArray<z.ZodNumber>;
|
|
290
|
-
quorum: z.ZodNumber;
|
|
291
|
-
}, z.core.$strict>>;
|
|
292
|
-
whitelist: z.ZodArray<z.ZodObject<{
|
|
293
|
-
name: z.ZodString;
|
|
294
|
-
currency: z.ZodString;
|
|
295
|
-
address: z.ZodString;
|
|
296
|
-
}, z.core.$strict>>;
|
|
297
|
-
}, z.core.$strict>>>;
|
|
511
|
+
}, z.core.$strict>>>;
|
|
298
512
|
}, z.core.$strict>>;
|
|
299
513
|
users: z.ZodOptional<z.ZodObject<{
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
514
|
+
admins: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
515
|
+
operators: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
516
|
+
api: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
517
|
+
name: z.ZodString;
|
|
518
|
+
role: z.ZodDefault<z.ZodEnum<{
|
|
519
|
+
ADMIN: "ADMIN";
|
|
520
|
+
OPERATOR: "OPERATOR";
|
|
521
|
+
}>>;
|
|
522
|
+
pubKey: z.ZodOptional<z.ZodString>;
|
|
523
|
+
viewAll: z.ZodBoolean;
|
|
524
|
+
}, z.core.$strip>>>;
|
|
311
525
|
}, z.core.$strip>>;
|
|
312
526
|
groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
313
|
-
|
|
314
|
-
|
|
527
|
+
name: z.ZodString;
|
|
528
|
+
members: z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
315
529
|
}, z.core.$strict>>>;
|
|
316
530
|
whitelists: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
531
|
+
name: z.ZodString;
|
|
532
|
+
description: z.ZodOptional<z.ZodString>;
|
|
533
|
+
type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
534
|
+
SMART_CONTRACT: "SMART_CONTRACT";
|
|
535
|
+
TRANSACTION: "TRANSACTION";
|
|
536
|
+
}>>>;
|
|
537
|
+
addresses: z.ZodArray<z.ZodObject<{
|
|
317
538
|
name: z.ZodString;
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
}>>>;
|
|
323
|
-
addresses: z.ZodArray<z.ZodObject<{
|
|
324
|
-
name: z.ZodString;
|
|
325
|
-
currency: z.ZodString;
|
|
326
|
-
address: z.ZodString;
|
|
327
|
-
destinationTags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
328
|
-
}, z.core.$strict>>;
|
|
539
|
+
currency: z.ZodString;
|
|
540
|
+
address: z.ZodString;
|
|
541
|
+
destinationTags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
542
|
+
}, z.core.$strict>>;
|
|
329
543
|
}, z.core.$strict>>>;
|
|
330
544
|
policies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
545
|
+
name: z.ZodString;
|
|
546
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
547
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
548
|
+
type: z.ZodEnum<{
|
|
549
|
+
DEPLOY_CONTRACT: "DEPLOY_CONTRACT";
|
|
550
|
+
EXECUTE_CONTRACT: "EXECUTE_CONTRACT";
|
|
551
|
+
RECEIVE: "RECEIVE";
|
|
552
|
+
SEND: "SEND";
|
|
553
|
+
SIGN_MESSAGE: "SIGN_MESSAGE";
|
|
554
|
+
STAKE: "STAKE";
|
|
555
|
+
}>;
|
|
556
|
+
steps: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
557
|
+
quorum: z.ZodNumber;
|
|
558
|
+
members: z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
559
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
560
|
+
quorum: z.ZodNumber;
|
|
561
|
+
group: z.ZodString;
|
|
562
|
+
}, z.core.$strict>]>>;
|
|
563
|
+
threshold: z.ZodOptional<z.ZodObject<{
|
|
564
|
+
min: z.ZodNullable<z.ZodString>;
|
|
565
|
+
max: z.ZodNullable<z.ZodString>;
|
|
566
|
+
}, z.core.$strip>>;
|
|
567
|
+
whitelistNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
568
|
+
}, z.core.$strict>>;
|
|
355
569
|
}, z.core.$strict>>>;
|
|
356
570
|
accounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
571
|
+
name: z.ZodString;
|
|
572
|
+
currency: z.ZodString;
|
|
573
|
+
index: z.ZodNumber;
|
|
574
|
+
contractAddress: z.ZodOptional<z.ZodString>;
|
|
575
|
+
tokenIdentifier: z.ZodOptional<z.ZodString>;
|
|
576
|
+
governance: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
577
|
+
type: z.ZodLiteral<"CLASSIC">;
|
|
578
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
579
|
+
type: z.ZodEnum<{
|
|
580
|
+
DEPLOY_CONTRACT: "DEPLOY_CONTRACT";
|
|
581
|
+
EXECUTE_CONTRACT: "EXECUTE_CONTRACT";
|
|
582
|
+
RECEIVE: "RECEIVE";
|
|
583
|
+
SEND: "SEND";
|
|
584
|
+
SIGN_MESSAGE: "SIGN_MESSAGE";
|
|
585
|
+
STAKE: "STAKE";
|
|
586
|
+
}>;
|
|
587
|
+
steps: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
588
|
+
quorum: z.ZodNumber;
|
|
589
|
+
members: z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
590
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
591
|
+
quorum: z.ZodNumber;
|
|
592
|
+
group: z.ZodString;
|
|
593
|
+
}, z.core.$strict>]>>;
|
|
594
|
+
threshold: z.ZodOptional<z.ZodObject<{
|
|
595
|
+
min: z.ZodNullable<z.ZodString>;
|
|
596
|
+
max: z.ZodNullable<z.ZodString>;
|
|
597
|
+
}, z.core.$strip>>;
|
|
598
|
+
whitelistNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
599
|
+
}, z.core.$strict>>;
|
|
600
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
601
|
+
type: z.ZodLiteral<"TRADELINK">;
|
|
602
|
+
assetManager: z.ZodString;
|
|
603
|
+
exchanges: z.ZodArray<z.ZodObject<{
|
|
604
|
+
name: z.ZodString;
|
|
605
|
+
repledgeAuthorized: z.ZodOptional<z.ZodBoolean>;
|
|
606
|
+
needsAssetManagerApprovalForSettlements: z.ZodOptional<z.ZodBoolean>;
|
|
607
|
+
}, z.core.$strict>>;
|
|
608
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
609
|
+
type: z.ZodLiteral<"RAW_SIGNING">;
|
|
610
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
611
|
+
type: z.ZodLiteral<"SIGN_DIGESTS">;
|
|
612
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
613
|
+
quorum: z.ZodNumber;
|
|
614
|
+
members: z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
615
|
+
}, z.core.$strict>>;
|
|
616
|
+
}, z.core.$strict>>;
|
|
617
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
618
|
+
type: z.ZodLiteral<"POLICY">;
|
|
619
|
+
policy: z.ZodString;
|
|
620
|
+
}, z.core.$strict>], "type">;
|
|
407
621
|
}, z.core.$strict>>>;
|
|
408
622
|
entities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
623
|
+
name: z.ZodString;
|
|
624
|
+
accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
625
|
+
members: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
412
626
|
}, z.core.$strict>>>;
|
|
413
627
|
hederaData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
628
|
+
index: z.ZodNumber;
|
|
629
|
+
onChainId: z.ZodString;
|
|
630
|
+
activate: z.ZodDefault<z.ZodBoolean>;
|
|
417
631
|
}, z.core.$strict>>>>;
|
|
418
632
|
pledges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
633
|
+
account: z.ZodString;
|
|
634
|
+
exchange: z.ZodString;
|
|
635
|
+
amount: z.ZodString;
|
|
422
636
|
}, z.core.$strict>>>;
|
|
423
637
|
workspaceRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
}, z.core.$strict>>>;
|
|
430
|
-
}, z.core.$strict>;
|
|
431
|
-
type ManifestWorkspace = z.infer<typeof zManifestWorkspace>;
|
|
432
|
-
declare const zManifestTradelinkOrg: z.ZodObject<{
|
|
433
|
-
exchanges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
434
|
-
name: z.ZodString;
|
|
435
|
-
code: z.ZodString;
|
|
436
|
-
logo: z.ZodString;
|
|
437
|
-
}, z.core.$strict>>>;
|
|
438
|
-
assetManagers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
439
|
-
name: z.ZodString;
|
|
440
|
-
code: z.ZodString;
|
|
441
|
-
logo: z.ZodString;
|
|
442
|
-
}, z.core.$strict>>>;
|
|
443
|
-
custodians: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
444
|
-
name: z.ZodString;
|
|
445
|
-
code: z.ZodString;
|
|
446
|
-
logo: z.ZodString;
|
|
638
|
+
permission: z.ZodEnum<{
|
|
639
|
+
CREATE_ACCOUNT_WITH_POLICY: "CREATE_ACCOUNT_WITH_POLICY";
|
|
640
|
+
}>;
|
|
641
|
+
quorum: z.ZodNumber;
|
|
642
|
+
members: z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
447
643
|
}, z.core.$strict>>>;
|
|
448
|
-
}, z.core.$strict
|
|
449
|
-
type ManifestTradelinkOrg = z.infer<typeof zManifestTradelinkOrg>;
|
|
450
|
-
declare const zManifest: z.ZodObject<{
|
|
451
|
-
manifestVersion: z.ZodLiteral<2>;
|
|
452
|
-
tradelink: z.ZodOptional<z.ZodObject<{
|
|
453
|
-
exchanges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
454
|
-
name: z.ZodString;
|
|
455
|
-
code: z.ZodString;
|
|
456
|
-
logo: z.ZodString;
|
|
457
|
-
}, z.core.$strict>>>;
|
|
458
|
-
assetManagers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
459
|
-
name: z.ZodString;
|
|
460
|
-
code: z.ZodString;
|
|
461
|
-
logo: z.ZodString;
|
|
462
|
-
}, z.core.$strict>>>;
|
|
463
|
-
custodians: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
464
|
-
name: z.ZodString;
|
|
465
|
-
code: z.ZodString;
|
|
466
|
-
logo: z.ZodString;
|
|
467
|
-
}, z.core.$strict>>>;
|
|
468
|
-
}, z.core.$strict>>;
|
|
469
|
-
workspace: z.ZodOptional<z.ZodObject<{
|
|
470
|
-
tradelink: z.ZodOptional<z.ZodObject<{
|
|
471
|
-
networkBlueprint: z.ZodOptional<z.ZodObject<{
|
|
472
|
-
custodian: z.ZodString;
|
|
473
|
-
exchanges: z.ZodArray<z.ZodString>;
|
|
474
|
-
assetManagers: z.ZodArray<z.ZodString>;
|
|
475
|
-
}, z.core.$strict>>;
|
|
476
|
-
custodian: z.ZodOptional<z.ZodObject<{
|
|
477
|
-
settlement: z.ZodArray<z.ZodObject<{
|
|
478
|
-
members: z.ZodArray<z.ZodNumber>;
|
|
479
|
-
quorum: z.ZodNumber;
|
|
480
|
-
}, z.core.$strict>>;
|
|
481
|
-
withdraw: z.ZodArray<z.ZodObject<{
|
|
482
|
-
members: z.ZodArray<z.ZodNumber>;
|
|
483
|
-
quorum: z.ZodNumber;
|
|
484
|
-
}, z.core.$strict>>;
|
|
485
|
-
arbitration: z.ZodArray<z.ZodObject<{
|
|
486
|
-
members: z.ZodArray<z.ZodNumber>;
|
|
487
|
-
quorum: z.ZodNumber;
|
|
488
|
-
}, z.core.$strict>>;
|
|
489
|
-
}, z.core.$strict>>;
|
|
490
|
-
exchanges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
491
|
-
name: z.ZodString;
|
|
492
|
-
groups: z.ZodArray<z.ZodObject<{
|
|
493
|
-
members: z.ZodArray<z.ZodNumber>;
|
|
494
|
-
quorum: z.ZodNumber;
|
|
495
|
-
}, z.core.$strict>>;
|
|
496
|
-
whitelist: z.ZodArray<z.ZodObject<{
|
|
497
|
-
name: z.ZodString;
|
|
498
|
-
currency: z.ZodString;
|
|
499
|
-
address: z.ZodString;
|
|
500
|
-
}, z.core.$strict>>;
|
|
501
|
-
}, z.core.$strict>>>;
|
|
502
|
-
assetManagers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
503
|
-
name: z.ZodString;
|
|
504
|
-
groups: z.ZodArray<z.ZodObject<{
|
|
505
|
-
members: z.ZodArray<z.ZodNumber>;
|
|
506
|
-
quorum: z.ZodNumber;
|
|
507
|
-
}, z.core.$strict>>;
|
|
508
|
-
whitelist: z.ZodArray<z.ZodObject<{
|
|
509
|
-
name: z.ZodString;
|
|
510
|
-
currency: z.ZodString;
|
|
511
|
-
address: z.ZodString;
|
|
512
|
-
}, z.core.$strict>>;
|
|
513
|
-
}, z.core.$strict>>>;
|
|
514
|
-
}, z.core.$strict>>;
|
|
515
|
-
users: z.ZodOptional<z.ZodObject<{
|
|
516
|
-
admins: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
517
|
-
operators: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
518
|
-
api: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
519
|
-
name: z.ZodString;
|
|
520
|
-
role: z.ZodDefault<z.ZodEnum<{
|
|
521
|
-
ADMIN: "ADMIN";
|
|
522
|
-
OPERATOR: "OPERATOR";
|
|
523
|
-
}>>;
|
|
524
|
-
pubKey: z.ZodOptional<z.ZodString>;
|
|
525
|
-
viewAll: z.ZodBoolean;
|
|
526
|
-
}, z.core.$strip>>>;
|
|
527
|
-
}, z.core.$strip>>;
|
|
528
|
-
groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
529
|
-
name: z.ZodString;
|
|
530
|
-
members: z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
531
|
-
}, z.core.$strict>>>;
|
|
532
|
-
whitelists: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
533
|
-
name: z.ZodString;
|
|
534
|
-
description: z.ZodOptional<z.ZodString>;
|
|
535
|
-
type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
536
|
-
TRANSACTION: "TRANSACTION";
|
|
537
|
-
SMART_CONTRACT: "SMART_CONTRACT";
|
|
538
|
-
}>>>;
|
|
539
|
-
addresses: z.ZodArray<z.ZodObject<{
|
|
540
|
-
name: z.ZodString;
|
|
541
|
-
currency: z.ZodString;
|
|
542
|
-
address: z.ZodString;
|
|
543
|
-
destinationTags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
544
|
-
}, z.core.$strict>>;
|
|
545
|
-
}, z.core.$strict>>>;
|
|
546
|
-
policies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
547
|
-
name: z.ZodString;
|
|
548
|
-
currency: z.ZodNullable<z.ZodString>;
|
|
549
|
-
rules: z.ZodArray<z.ZodObject<{
|
|
550
|
-
type: z.ZodEnum<{
|
|
551
|
-
SEND: "SEND";
|
|
552
|
-
STAKE: "STAKE";
|
|
553
|
-
DEPLOY_CONTRACT: "DEPLOY_CONTRACT";
|
|
554
|
-
EXECUTE_CONTRACT: "EXECUTE_CONTRACT";
|
|
555
|
-
SIGN_MESSAGE: "SIGN_MESSAGE";
|
|
556
|
-
RECEIVE: "RECEIVE";
|
|
557
|
-
}>;
|
|
558
|
-
steps: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
559
|
-
quorum: z.ZodNumber;
|
|
560
|
-
members: z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
561
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
562
|
-
quorum: z.ZodNumber;
|
|
563
|
-
group: z.ZodString;
|
|
564
|
-
}, z.core.$strict>]>>;
|
|
565
|
-
threshold: z.ZodOptional<z.ZodObject<{
|
|
566
|
-
min: z.ZodNullable<z.ZodString>;
|
|
567
|
-
max: z.ZodNullable<z.ZodString>;
|
|
568
|
-
}, z.core.$strip>>;
|
|
569
|
-
whitelistNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
570
|
-
}, z.core.$strict>>;
|
|
571
|
-
}, z.core.$strict>>>;
|
|
572
|
-
accounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
573
|
-
name: z.ZodString;
|
|
574
|
-
currency: z.ZodString;
|
|
575
|
-
index: z.ZodNumber;
|
|
576
|
-
contractAddress: z.ZodOptional<z.ZodString>;
|
|
577
|
-
tokenIdentifier: z.ZodOptional<z.ZodString>;
|
|
578
|
-
governance: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
579
|
-
type: z.ZodLiteral<"CLASSIC">;
|
|
580
|
-
rules: z.ZodArray<z.ZodObject<{
|
|
581
|
-
type: z.ZodEnum<{
|
|
582
|
-
SEND: "SEND";
|
|
583
|
-
STAKE: "STAKE";
|
|
584
|
-
DEPLOY_CONTRACT: "DEPLOY_CONTRACT";
|
|
585
|
-
EXECUTE_CONTRACT: "EXECUTE_CONTRACT";
|
|
586
|
-
SIGN_MESSAGE: "SIGN_MESSAGE";
|
|
587
|
-
RECEIVE: "RECEIVE";
|
|
588
|
-
}>;
|
|
589
|
-
steps: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
590
|
-
quorum: z.ZodNumber;
|
|
591
|
-
members: z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
592
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
593
|
-
quorum: z.ZodNumber;
|
|
594
|
-
group: z.ZodString;
|
|
595
|
-
}, z.core.$strict>]>>;
|
|
596
|
-
threshold: z.ZodOptional<z.ZodObject<{
|
|
597
|
-
min: z.ZodNullable<z.ZodString>;
|
|
598
|
-
max: z.ZodNullable<z.ZodString>;
|
|
599
|
-
}, z.core.$strip>>;
|
|
600
|
-
whitelistNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
601
|
-
}, z.core.$strict>>;
|
|
602
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
603
|
-
type: z.ZodLiteral<"TRADELINK">;
|
|
604
|
-
assetManager: z.ZodString;
|
|
605
|
-
exchanges: z.ZodArray<z.ZodObject<{
|
|
606
|
-
name: z.ZodString;
|
|
607
|
-
repledgeAuthorized: z.ZodOptional<z.ZodBoolean>;
|
|
608
|
-
needsAssetManagerApprovalForSettlements: z.ZodOptional<z.ZodBoolean>;
|
|
609
|
-
}, z.core.$strict>>;
|
|
610
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
611
|
-
type: z.ZodLiteral<"RAW_SIGNING">;
|
|
612
|
-
rules: z.ZodArray<z.ZodObject<{
|
|
613
|
-
type: z.ZodLiteral<"SIGN_DIGESTS">;
|
|
614
|
-
steps: z.ZodArray<z.ZodObject<{
|
|
615
|
-
quorum: z.ZodNumber;
|
|
616
|
-
members: z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
617
|
-
}, z.core.$strict>>;
|
|
618
|
-
}, z.core.$strict>>;
|
|
619
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
620
|
-
type: z.ZodLiteral<"POLICY">;
|
|
621
|
-
policy: z.ZodString;
|
|
622
|
-
}, z.core.$strict>], "type">;
|
|
623
|
-
}, z.core.$strict>>>;
|
|
624
|
-
entities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
625
|
-
name: z.ZodString;
|
|
626
|
-
accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
627
|
-
members: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
628
|
-
}, z.core.$strict>>>;
|
|
629
|
-
hederaData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
630
|
-
index: z.ZodNumber;
|
|
631
|
-
onChainId: z.ZodString;
|
|
632
|
-
activate: z.ZodDefault<z.ZodBoolean>;
|
|
633
|
-
}, z.core.$strict>>>>;
|
|
634
|
-
pledges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
635
|
-
account: z.ZodString;
|
|
636
|
-
exchange: z.ZodString;
|
|
637
|
-
amount: z.ZodString;
|
|
638
|
-
}, z.core.$strict>>>;
|
|
639
|
-
workspaceRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
640
|
-
permission: z.ZodEnum<{
|
|
641
|
-
CREATE_ACCOUNT_WITH_POLICY: "CREATE_ACCOUNT_WITH_POLICY";
|
|
642
|
-
}>;
|
|
643
|
-
quorum: z.ZodNumber;
|
|
644
|
-
members: z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
645
|
-
}, z.core.$strict>>>;
|
|
646
|
-
}, z.core.$strict>>;
|
|
644
|
+
}, z.core.$strict>>;
|
|
647
645
|
}, z.core.$strict>;
|
|
648
646
|
type Manifest = z.infer<typeof zManifest>;
|
|
649
|
-
|
|
647
|
+
//#endregion
|
|
648
|
+
//#region src/bake/bake-pledge.d.ts
|
|
650
649
|
type Options = {
|
|
651
|
-
|
|
652
|
-
|
|
650
|
+
engine: Engine<WithWorkspace>;
|
|
651
|
+
pledgeAdjustment: ManifestPledgeAdjustment;
|
|
653
652
|
};
|
|
654
653
|
declare function bakePledgeAdjustment(options: Options, logger: Logger): Promise<void>;
|
|
655
|
-
|
|
654
|
+
//#endregion
|
|
655
|
+
//#region src/bake/recipe.d.ts
|
|
656
656
|
type RecipeOptions = {
|
|
657
|
-
|
|
658
|
-
|
|
657
|
+
engine: Engine;
|
|
658
|
+
workspaceName: string;
|
|
659
659
|
};
|
|
660
660
|
declare function recipeManifest(options: RecipeOptions, logger: Logger): Promise<Manifest>;
|
|
661
|
-
|
|
661
|
+
//#endregion
|
|
662
|
+
//#region src/bake/utils.d.ts
|
|
662
663
|
type CreateRequestInput = RouterInputs["requests"]["create"]["request"];
|
|
663
664
|
declare function createAndApproveRequest(input: CreateRequestInput, approvers: Engine<WithWorkspace & WithDevice & WithPsdAuth>[], logger: Logger): Promise<VaultRequestResponse>;
|
|
664
|
-
|
|
665
|
+
//#endregion
|
|
666
|
+
//#region src/bake/index.d.ts
|
|
665
667
|
declare function bakeManifest(options: BakeOptions, logger: Logger): Promise<void>;
|
|
666
|
-
|
|
667
|
-
export {
|
|
668
|
+
//#endregion
|
|
669
|
+
export { BakeOptions, type CreateRequestInput, Manifest, ManifestAccount, ManifestApiUser, ManifestEntity, ManifestGovernanceRule, ManifestGroup, ManifestHederaData, ManifestPledgeAdjustment, ManifestPolicy, ManifestRawSigningGovernanceRule, ManifestTradelinkEntity, ManifestTradelinkGroup, ManifestTradelinkNetwork, ManifestTradelinkNetworkBlueprint, ManifestTradelinkOrg, ManifestWhitelist, ManifestWorkspace, ManifestWorkspaceRule, type RecipeOptions, bakeManifest, bakePledgeAdjustment, createAndApproveRequest, recipeManifest, zManifest, zManifestPolicy };
|