@canton-network/core-token-standard 1.14.0 → 1.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1627 -5164
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1487 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.ts +1318 -1637
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1559 -5127
- package/dist/index.js.map +1 -1
- package/dist/rolldown-runtime-SbdDWaPq.js +32 -0
- package/package.json +11 -22
- package/dist/generated-clients/index.d.ts +0 -5
- package/dist/generated-clients/index.d.ts.map +0 -1
- package/dist/generated-clients/splice-api-token-allocation-instruction-v1/allocation-instruction-v1.d.ts +0 -154
- package/dist/generated-clients/splice-api-token-allocation-instruction-v1/allocation-instruction-v1.d.ts.map +0 -1
- package/dist/generated-clients/splice-api-token-allocation-v1/allocation-v1.d.ts +0 -234
- package/dist/generated-clients/splice-api-token-allocation-v1/allocation-v1.d.ts.map +0 -1
- package/dist/generated-clients/splice-api-token-metadata-v1/token-metadata-v1.d.ts +0 -279
- package/dist/generated-clients/splice-api-token-metadata-v1/token-metadata-v1.d.ts.map +0 -1
- package/dist/generated-clients/splice-api-token-transfer-instruction-v1/transfer-instruction-v1.d.ts +0 -317
- package/dist/generated-clients/splice-api-token-transfer-instruction-v1/transfer-instruction-v1.d.ts.map +0 -1
- package/dist/index.browser.js +0 -5146
- package/dist/index.browser.js.map +0 -1
- package/dist/interface-ids.const.d.ts +0 -13
- package/dist/interface-ids.const.d.ts.map +0 -1
- package/dist/models/Splice/Api/Token/index.d.ts +0 -8
- package/dist/models/Splice/Api/Token/index.d.ts.map +0 -1
- package/dist/models/Splice/Api/index.d.ts +0 -3
- package/dist/models/Splice/Api/index.d.ts.map +0 -1
- package/dist/models/Splice/index.d.ts +0 -3
- package/dist/models/Splice/index.d.ts.map +0 -1
- package/dist/models/index.d.ts +0 -8
- package/dist/models/index.d.ts.map +0 -1
- package/dist/token-standard-client.d.ts +0 -65
- package/dist/token-standard-client.d.ts.map +0 -1
- package/dist/types.d.ts +0 -23
- package/dist/types.d.ts.map +0 -1
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,1487 @@
|
|
|
1
|
+
import { AccessTokenProvider } from "@canton-network/core-wallet-auth";
|
|
2
|
+
import "@mojotech/json-type-validation";
|
|
3
|
+
import * as damlTypes from "@daml/types";
|
|
4
|
+
import { PartyId } from "@canton-network/core-types";
|
|
5
|
+
declare namespace allocation_v1_d_exports {
|
|
6
|
+
export { $defs$3 as $defs, components$3 as components, operations$3 as operations, paths$4 as paths, webhooks$3 as webhooks };
|
|
7
|
+
}
|
|
8
|
+
interface paths$4 {
|
|
9
|
+
'/registry/allocations/v1/{allocationId}/choice-contexts/execute-transfer': {
|
|
10
|
+
parameters: {
|
|
11
|
+
query?: never;
|
|
12
|
+
header?: never;
|
|
13
|
+
path?: never;
|
|
14
|
+
cookie?: never;
|
|
15
|
+
};
|
|
16
|
+
get?: never;
|
|
17
|
+
put?: never;
|
|
18
|
+
/** @description Get the choice context to execute a transfer on an allocation. */
|
|
19
|
+
post: operations$3['getAllocationTransferContext'];
|
|
20
|
+
delete?: never;
|
|
21
|
+
options?: never;
|
|
22
|
+
head?: never;
|
|
23
|
+
patch?: never;
|
|
24
|
+
trace?: never;
|
|
25
|
+
};
|
|
26
|
+
'/registry/allocations/v1/{allocationId}/choice-contexts/withdraw': {
|
|
27
|
+
parameters: {
|
|
28
|
+
query?: never;
|
|
29
|
+
header?: never;
|
|
30
|
+
path?: never;
|
|
31
|
+
cookie?: never;
|
|
32
|
+
};
|
|
33
|
+
get?: never;
|
|
34
|
+
put?: never;
|
|
35
|
+
/** @description Get the choice context to withdraw an allocation. */
|
|
36
|
+
post: operations$3['getAllocationWithdrawContext'];
|
|
37
|
+
delete?: never;
|
|
38
|
+
options?: never;
|
|
39
|
+
head?: never;
|
|
40
|
+
patch?: never;
|
|
41
|
+
trace?: never;
|
|
42
|
+
};
|
|
43
|
+
'/registry/allocations/v1/{allocationId}/choice-contexts/cancel': {
|
|
44
|
+
parameters: {
|
|
45
|
+
query?: never;
|
|
46
|
+
header?: never;
|
|
47
|
+
path?: never;
|
|
48
|
+
cookie?: never;
|
|
49
|
+
};
|
|
50
|
+
get?: never;
|
|
51
|
+
put?: never;
|
|
52
|
+
/** @description Get the choice context to cancel an allocation. */
|
|
53
|
+
post: operations$3['getAllocationCancelContext'];
|
|
54
|
+
delete?: never;
|
|
55
|
+
options?: never;
|
|
56
|
+
head?: never;
|
|
57
|
+
patch?: never;
|
|
58
|
+
trace?: never;
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
type webhooks$3 = Record<string, never>;
|
|
62
|
+
interface components$3 {
|
|
63
|
+
schemas: {
|
|
64
|
+
/** @description A request to get the context for executing a choice on a contract. */
|
|
65
|
+
GetChoiceContextRequest: {
|
|
66
|
+
/**
|
|
67
|
+
* @description Metadata that will be passed to the choice, and should be incorporated
|
|
68
|
+
* into the choice context. Provided for extensibility.
|
|
69
|
+
*/
|
|
70
|
+
meta?: {
|
|
71
|
+
[key: string]: string;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* @description If set to true, the response will not include fields prefixed with 'debug'. Useful to save bandwidth.
|
|
75
|
+
* @default false
|
|
76
|
+
*/
|
|
77
|
+
excludeDebugFields: boolean;
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* @description The context required to exercise a choice on a contract via an interface.
|
|
81
|
+
* Used to retrieve additional reference date that is passed in via disclosed contracts,
|
|
82
|
+
* which are in turn referred to via their contract ID in the `choiceContextData`.
|
|
83
|
+
*/
|
|
84
|
+
ChoiceContext: {
|
|
85
|
+
/** @description The additional data to use when exercising the choice. */
|
|
86
|
+
choiceContextData: Record<string, never>;
|
|
87
|
+
/**
|
|
88
|
+
* @description The contracts that are required to be disclosed to the participant node for exercising
|
|
89
|
+
* the choice.
|
|
90
|
+
*/
|
|
91
|
+
disclosedContracts: components$3['schemas']['DisclosedContract'][];
|
|
92
|
+
};
|
|
93
|
+
DisclosedContract: {
|
|
94
|
+
templateId: string;
|
|
95
|
+
contractId: string;
|
|
96
|
+
createdEventBlob: string;
|
|
97
|
+
/**
|
|
98
|
+
* @description The synchronizer to which the contract is currently assigned.
|
|
99
|
+
* If the contract is in the process of being reassigned, then a "409" response is returned.
|
|
100
|
+
*/
|
|
101
|
+
synchronizerId: string;
|
|
102
|
+
/**
|
|
103
|
+
* @description The name of the Daml package that was used to create the contract.
|
|
104
|
+
* Use this data only if you trust the provider, as it might not match the data in the
|
|
105
|
+
* `createdEventBlob`.
|
|
106
|
+
*/
|
|
107
|
+
debugPackageName?: string;
|
|
108
|
+
/**
|
|
109
|
+
* @description The contract arguments that were used to create the contract.
|
|
110
|
+
* Use this data only if you trust the provider, as it might not match the data in the
|
|
111
|
+
* `createdEventBlob`.
|
|
112
|
+
*/
|
|
113
|
+
debugPayload?: Record<string, never>;
|
|
114
|
+
/**
|
|
115
|
+
* Format: date-time
|
|
116
|
+
* @description The ledger effective time at which the contract was created.
|
|
117
|
+
* Use this data only if you trust the provider, as it might not match the data in the
|
|
118
|
+
* `createdEventBlob`.
|
|
119
|
+
*/
|
|
120
|
+
debugCreatedAt?: string;
|
|
121
|
+
};
|
|
122
|
+
ErrorResponse: {
|
|
123
|
+
error: string;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
responses: {
|
|
127
|
+
/** @description bad request */
|
|
128
|
+
400: {
|
|
129
|
+
headers: {
|
|
130
|
+
[name: string]: unknown;
|
|
131
|
+
};
|
|
132
|
+
content: {
|
|
133
|
+
'application/json': components$3['schemas']['ErrorResponse'];
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
/** @description not found */
|
|
137
|
+
404: {
|
|
138
|
+
headers: {
|
|
139
|
+
[name: string]: unknown;
|
|
140
|
+
};
|
|
141
|
+
content: {
|
|
142
|
+
'application/json': components$3['schemas']['ErrorResponse'];
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
parameters: never;
|
|
147
|
+
requestBodies: never;
|
|
148
|
+
headers: never;
|
|
149
|
+
pathItems: never;
|
|
150
|
+
}
|
|
151
|
+
type $defs$3 = Record<string, never>;
|
|
152
|
+
interface operations$3 {
|
|
153
|
+
getAllocationTransferContext: {
|
|
154
|
+
parameters: {
|
|
155
|
+
query?: never;
|
|
156
|
+
header?: never;
|
|
157
|
+
path: {
|
|
158
|
+
/** @description The contract ID of the allocation whose transfer the caller wants to execute. */
|
|
159
|
+
allocationId: string;
|
|
160
|
+
};
|
|
161
|
+
cookie?: never;
|
|
162
|
+
};
|
|
163
|
+
requestBody: {
|
|
164
|
+
content: {
|
|
165
|
+
'application/json': components$3['schemas']['GetChoiceContextRequest'];
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
responses: {
|
|
169
|
+
/** @description ok */
|
|
170
|
+
200: {
|
|
171
|
+
headers: {
|
|
172
|
+
[name: string]: unknown;
|
|
173
|
+
};
|
|
174
|
+
content: {
|
|
175
|
+
'application/json': components$3['schemas']['ChoiceContext'];
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
400: components$3['responses']['400'];
|
|
179
|
+
404: components$3['responses']['404'];
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
getAllocationWithdrawContext: {
|
|
183
|
+
parameters: {
|
|
184
|
+
query?: never;
|
|
185
|
+
header?: never;
|
|
186
|
+
path: {
|
|
187
|
+
/** @description The contract ID of the allocation to withdraw. */
|
|
188
|
+
allocationId: string;
|
|
189
|
+
};
|
|
190
|
+
cookie?: never;
|
|
191
|
+
};
|
|
192
|
+
requestBody: {
|
|
193
|
+
content: {
|
|
194
|
+
'application/json': components$3['schemas']['GetChoiceContextRequest'];
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
responses: {
|
|
198
|
+
/** @description ok */
|
|
199
|
+
200: {
|
|
200
|
+
headers: {
|
|
201
|
+
[name: string]: unknown;
|
|
202
|
+
};
|
|
203
|
+
content: {
|
|
204
|
+
'application/json': components$3['schemas']['ChoiceContext'];
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
400: components$3['responses']['400'];
|
|
208
|
+
404: components$3['responses']['404'];
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
getAllocationCancelContext: {
|
|
212
|
+
parameters: {
|
|
213
|
+
query?: never;
|
|
214
|
+
header?: never;
|
|
215
|
+
path: {
|
|
216
|
+
/** @description The contract ID of the allocation to cancel. */
|
|
217
|
+
allocationId: string;
|
|
218
|
+
};
|
|
219
|
+
cookie?: never;
|
|
220
|
+
};
|
|
221
|
+
requestBody: {
|
|
222
|
+
content: {
|
|
223
|
+
'application/json': components$3['schemas']['GetChoiceContextRequest'];
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
responses: {
|
|
227
|
+
/** @description ok */
|
|
228
|
+
200: {
|
|
229
|
+
headers: {
|
|
230
|
+
[name: string]: unknown;
|
|
231
|
+
};
|
|
232
|
+
content: {
|
|
233
|
+
'application/json': components$3['schemas']['ChoiceContext'];
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
400: components$3['responses']['400'];
|
|
237
|
+
404: components$3['responses']['404'];
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
declare namespace allocation_instruction_v1_d_exports {
|
|
242
|
+
export { $defs$2 as $defs, components$2 as components, operations$2 as operations, paths$3 as paths, webhooks$2 as webhooks };
|
|
243
|
+
}
|
|
244
|
+
interface paths$3 {
|
|
245
|
+
'/registry/allocation-instruction/v1/allocation-factory': {
|
|
246
|
+
parameters: {
|
|
247
|
+
query?: never;
|
|
248
|
+
header?: never;
|
|
249
|
+
path?: never;
|
|
250
|
+
cookie?: never;
|
|
251
|
+
};
|
|
252
|
+
get?: never;
|
|
253
|
+
put?: never;
|
|
254
|
+
/** @description Get the factory and choice context for creating allocations using the `AllocationFactory_Allocate` choice. */
|
|
255
|
+
post: operations$2['getAllocationFactory'];
|
|
256
|
+
delete?: never;
|
|
257
|
+
options?: never;
|
|
258
|
+
head?: never;
|
|
259
|
+
patch?: never;
|
|
260
|
+
trace?: never;
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
type webhooks$2 = Record<string, never>;
|
|
264
|
+
interface components$2 {
|
|
265
|
+
schemas: {
|
|
266
|
+
GetFactoryRequest: {
|
|
267
|
+
/**
|
|
268
|
+
* @description The arguments that are intended to be passed to the choice provided by the factory.
|
|
269
|
+
* To avoid repeating the Daml type definitions, they are specified as JSON objects.
|
|
270
|
+
* However the concrete format is given by how the choice arguments are encoded using the Daml JSON API
|
|
271
|
+
* (with the `extraArgs.context` and `extraArgs.meta` fields set to the empty object).
|
|
272
|
+
*
|
|
273
|
+
* The choice arguments are provided so that the registry can also provide choice-argument
|
|
274
|
+
* specific contracts, e.g., the configuration for a specific instrument-id.
|
|
275
|
+
*/
|
|
276
|
+
choiceArguments: Record<string, never>;
|
|
277
|
+
/**
|
|
278
|
+
* @description If set to true, the response will not include fields prefixed with 'debug'. Useful to save bandwidth.
|
|
279
|
+
* @default false
|
|
280
|
+
*/
|
|
281
|
+
excludeDebugFields: boolean;
|
|
282
|
+
};
|
|
283
|
+
/**
|
|
284
|
+
* @description A factory contract together with the choice context required to exercise the choice
|
|
285
|
+
* provided by the factory. Typically used to implement the generic initiation of on-ledger workflows
|
|
286
|
+
* via a Daml interface.
|
|
287
|
+
*
|
|
288
|
+
* Clients SHOULD avoid reusing the same `FactoryWithChoiceContext` for exercising multiple choices,
|
|
289
|
+
* as the choice context MAY be specific to the choice being exercised.
|
|
290
|
+
*/
|
|
291
|
+
FactoryWithChoiceContext: {
|
|
292
|
+
/** @description The contract ID of the contract implementing the factory interface. */
|
|
293
|
+
factoryId: string;
|
|
294
|
+
choiceContext: components$2['schemas']['ChoiceContext'];
|
|
295
|
+
};
|
|
296
|
+
/**
|
|
297
|
+
* @description The context required to exercise a choice on a contract via an interface.
|
|
298
|
+
* Used to retrieve additional reference date that is passed in via disclosed contracts,
|
|
299
|
+
* which are in turn referred to via their contract ID in the `choiceContextData`.
|
|
300
|
+
*/
|
|
301
|
+
ChoiceContext: {
|
|
302
|
+
/** @description The additional data to use when exercising the choice. */
|
|
303
|
+
choiceContextData: Record<string, never>;
|
|
304
|
+
/**
|
|
305
|
+
* @description The contracts that are required to be disclosed to the participant node for exercising
|
|
306
|
+
* the choice.
|
|
307
|
+
*/
|
|
308
|
+
disclosedContracts: components$2['schemas']['DisclosedContract'][];
|
|
309
|
+
};
|
|
310
|
+
DisclosedContract: {
|
|
311
|
+
templateId: string;
|
|
312
|
+
contractId: string;
|
|
313
|
+
createdEventBlob: string;
|
|
314
|
+
/**
|
|
315
|
+
* @description The synchronizer to which the contract is currently assigned.
|
|
316
|
+
* If the contract is in the process of being reassigned, then a "409" response is returned.
|
|
317
|
+
*/
|
|
318
|
+
synchronizerId: string;
|
|
319
|
+
/**
|
|
320
|
+
* @description The name of the Daml package that was used to create the contract.
|
|
321
|
+
* Use this data only if you trust the provider, as it might not match the data in the
|
|
322
|
+
* `createdEventBlob`.
|
|
323
|
+
*/
|
|
324
|
+
debugPackageName?: string;
|
|
325
|
+
/**
|
|
326
|
+
* @description The contract arguments that were used to create the contract.
|
|
327
|
+
* Use this data only if you trust the provider, as it might not match the data in the
|
|
328
|
+
* `createdEventBlob`.
|
|
329
|
+
*/
|
|
330
|
+
debugPayload?: Record<string, never>;
|
|
331
|
+
/**
|
|
332
|
+
* Format: date-time
|
|
333
|
+
* @description The ledger effective time at which the contract was created.
|
|
334
|
+
* Use this data only if you trust the provider, as it might not match the data in the
|
|
335
|
+
* `createdEventBlob`.
|
|
336
|
+
*/
|
|
337
|
+
debugCreatedAt?: string;
|
|
338
|
+
};
|
|
339
|
+
ErrorResponse: {
|
|
340
|
+
error: string;
|
|
341
|
+
};
|
|
342
|
+
};
|
|
343
|
+
responses: {
|
|
344
|
+
/** @description bad request */
|
|
345
|
+
400: {
|
|
346
|
+
headers: {
|
|
347
|
+
[name: string]: unknown;
|
|
348
|
+
};
|
|
349
|
+
content: {
|
|
350
|
+
'application/json': components$2['schemas']['ErrorResponse'];
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
/** @description not found */
|
|
354
|
+
404: {
|
|
355
|
+
headers: {
|
|
356
|
+
[name: string]: unknown;
|
|
357
|
+
};
|
|
358
|
+
content: {
|
|
359
|
+
'application/json': components$2['schemas']['ErrorResponse'];
|
|
360
|
+
};
|
|
361
|
+
};
|
|
362
|
+
};
|
|
363
|
+
parameters: never;
|
|
364
|
+
requestBodies: never;
|
|
365
|
+
headers: never;
|
|
366
|
+
pathItems: never;
|
|
367
|
+
}
|
|
368
|
+
type $defs$2 = Record<string, never>;
|
|
369
|
+
interface operations$2 {
|
|
370
|
+
getAllocationFactory: {
|
|
371
|
+
parameters: {
|
|
372
|
+
query?: never;
|
|
373
|
+
header?: never;
|
|
374
|
+
path?: never;
|
|
375
|
+
cookie?: never;
|
|
376
|
+
};
|
|
377
|
+
requestBody: {
|
|
378
|
+
content: {
|
|
379
|
+
'application/json': components$2['schemas']['GetFactoryRequest'];
|
|
380
|
+
};
|
|
381
|
+
};
|
|
382
|
+
responses: {
|
|
383
|
+
/** @description ok */
|
|
384
|
+
200: {
|
|
385
|
+
headers: {
|
|
386
|
+
[name: string]: unknown;
|
|
387
|
+
};
|
|
388
|
+
content: {
|
|
389
|
+
'application/json': components$2['schemas']['FactoryWithChoiceContext'];
|
|
390
|
+
};
|
|
391
|
+
};
|
|
392
|
+
400: components$2['responses']['400'];
|
|
393
|
+
404: components$2['responses']['404'];
|
|
394
|
+
};
|
|
395
|
+
};
|
|
396
|
+
}
|
|
397
|
+
declare namespace token_metadata_v1_d_exports {
|
|
398
|
+
export { $defs$1 as $defs, components$1 as components, operations$1 as operations, paths$2 as paths, webhooks$1 as webhooks };
|
|
399
|
+
}
|
|
400
|
+
interface paths$2 {
|
|
401
|
+
'/registry/metadata/v1/info': {
|
|
402
|
+
parameters: {
|
|
403
|
+
query?: never;
|
|
404
|
+
header?: never;
|
|
405
|
+
path?: never;
|
|
406
|
+
cookie?: never;
|
|
407
|
+
};
|
|
408
|
+
/**
|
|
409
|
+
* @description Get information about the registry.
|
|
410
|
+
* The response includes the standards supported by the registry.
|
|
411
|
+
*/
|
|
412
|
+
get: operations$1['getRegistryInfo'];
|
|
413
|
+
put?: never;
|
|
414
|
+
post?: never;
|
|
415
|
+
delete?: never;
|
|
416
|
+
options?: never;
|
|
417
|
+
head?: never;
|
|
418
|
+
patch?: never;
|
|
419
|
+
trace?: never;
|
|
420
|
+
};
|
|
421
|
+
'/registry/metadata/v1/instruments': {
|
|
422
|
+
parameters: {
|
|
423
|
+
query?: never;
|
|
424
|
+
header?: never;
|
|
425
|
+
path?: never;
|
|
426
|
+
cookie?: never;
|
|
427
|
+
};
|
|
428
|
+
/** @description List all instruments managed by this instrument admin. */
|
|
429
|
+
get: operations$1['listInstruments'];
|
|
430
|
+
put?: never;
|
|
431
|
+
post?: never;
|
|
432
|
+
delete?: never;
|
|
433
|
+
options?: never;
|
|
434
|
+
head?: never;
|
|
435
|
+
patch?: never;
|
|
436
|
+
trace?: never;
|
|
437
|
+
};
|
|
438
|
+
'/registry/metadata/v1/instruments/{instrumentId}': {
|
|
439
|
+
parameters: {
|
|
440
|
+
query?: never;
|
|
441
|
+
header?: never;
|
|
442
|
+
path?: never;
|
|
443
|
+
cookie?: never;
|
|
444
|
+
};
|
|
445
|
+
/** @description Retrieve an instrument's metadata. */
|
|
446
|
+
get: operations$1['getInstrument'];
|
|
447
|
+
put?: never;
|
|
448
|
+
post?: never;
|
|
449
|
+
delete?: never;
|
|
450
|
+
options?: never;
|
|
451
|
+
head?: never;
|
|
452
|
+
patch?: never;
|
|
453
|
+
trace?: never;
|
|
454
|
+
};
|
|
455
|
+
}
|
|
456
|
+
type webhooks$1 = Record<string, never>;
|
|
457
|
+
interface components$1 {
|
|
458
|
+
schemas: {
|
|
459
|
+
GetRegistryInfoResponse: {
|
|
460
|
+
/** @description The Daml party representing the registry app */
|
|
461
|
+
adminId: string;
|
|
462
|
+
/** @description The token standard APIs supported by the registry. Note that this only includes the registry-wide APIs. Use the instrument lookup endpoints to see which APIs are supported for a given instrument */
|
|
463
|
+
supportedApis: components$1['schemas']['SupportedApis'];
|
|
464
|
+
};
|
|
465
|
+
Instrument: {
|
|
466
|
+
/** @description The unique identifier assigned by the admin to the instrument. */
|
|
467
|
+
id: string;
|
|
468
|
+
/** @description The display name for the instrument recommended by the instrument admin. This is not necessarily unique. */
|
|
469
|
+
name: string;
|
|
470
|
+
/** @description The symbol for the instrument recommended by the instrument admin. This is not necessarily unique. */
|
|
471
|
+
symbol: string;
|
|
472
|
+
/** @description Decimal encoded current total supply of the instrument. */
|
|
473
|
+
totalSupply?: string;
|
|
474
|
+
/**
|
|
475
|
+
* Format: date-time
|
|
476
|
+
* @description The timestamp when the total supply was last computed.
|
|
477
|
+
*/
|
|
478
|
+
totalSupplyAsOf?: string;
|
|
479
|
+
/**
|
|
480
|
+
* Format: int8
|
|
481
|
+
* @description The number of decimal places used by the instrument.
|
|
482
|
+
*
|
|
483
|
+
* Must be a number between 0 and 10, as the Daml interfaces represent holding amounts as
|
|
484
|
+
* `Decimal` values, which use 10 decimal places and are precise for 38 digits.
|
|
485
|
+
* Setting this to 0 means that the instrument can only be held in whole units.
|
|
486
|
+
*
|
|
487
|
+
* This number SHOULD be used for display purposes in a wallet to decide how many
|
|
488
|
+
* decimal places to show and accept when displaying or entering amounts.
|
|
489
|
+
* @default 10
|
|
490
|
+
*/
|
|
491
|
+
decimals: number;
|
|
492
|
+
/**
|
|
493
|
+
* @description Indicates whether the instrument is currently paused. A paused instrument cannot be
|
|
494
|
+
* transferred or allocated.
|
|
495
|
+
* @default false
|
|
496
|
+
*/
|
|
497
|
+
paused: boolean;
|
|
498
|
+
pauseInfo?: components$1['schemas']['PauseInfo'];
|
|
499
|
+
supportedApis: components$1['schemas']['SupportedApis'];
|
|
500
|
+
/**
|
|
501
|
+
* @deprecated
|
|
502
|
+
* @description Informs wallets whether the instrument supports non-basic accounts
|
|
503
|
+
* and the wallet should thus show input fields for both the account
|
|
504
|
+
* provider and the account id in input forms for transfers and allocations.
|
|
505
|
+
*
|
|
506
|
+
* Note that wallets should always show non-null account providers and
|
|
507
|
+
* account ids when displaying transfers and allocations.
|
|
508
|
+
*
|
|
509
|
+
* This property is deprecated in favor of the more fine-grained
|
|
510
|
+
* `accountInputFieldsToShow` property.
|
|
511
|
+
* @default false
|
|
512
|
+
*/
|
|
513
|
+
showAccountInputFields: boolean;
|
|
514
|
+
/**
|
|
515
|
+
* @description Fine-grained control for account input field display in wallets.
|
|
516
|
+
*
|
|
517
|
+
* If set, then wallets should only display the specified input
|
|
518
|
+
* field(s) in transfer and allocation input forms
|
|
519
|
+
* *independently* of the `showAccountInputFields` property.
|
|
520
|
+
*
|
|
521
|
+
* Note that wallets should always show non-null account providers and
|
|
522
|
+
* account ids when displaying transfers and allocations.
|
|
523
|
+
*/
|
|
524
|
+
accountInputFieldsToShow?: components$1['schemas']['AccountInputFieldsToShow'];
|
|
525
|
+
};
|
|
526
|
+
ListInstrumentsResponse: {
|
|
527
|
+
instruments: components$1['schemas']['Instrument'][];
|
|
528
|
+
/** @description The token for the next page of results, to be used as the lastInstrumentId for the next page. */
|
|
529
|
+
nextPageToken?: string;
|
|
530
|
+
};
|
|
531
|
+
ErrorResponse: {
|
|
532
|
+
error: string;
|
|
533
|
+
};
|
|
534
|
+
/**
|
|
535
|
+
* @description Map from token standard API name to the minor version of the API supported, e.g.,
|
|
536
|
+
* splice-api-token-metadata-v1 -> 1 where the `1` corresponds to the minor version.
|
|
537
|
+
*/
|
|
538
|
+
SupportedApis: {
|
|
539
|
+
[key: string]: number;
|
|
540
|
+
};
|
|
541
|
+
/** @description Additional information about the instrument pause state. */
|
|
542
|
+
PauseInfo: {
|
|
543
|
+
/** @description Why the instrument is paused. */
|
|
544
|
+
reason?: string;
|
|
545
|
+
/**
|
|
546
|
+
* Format: date-time
|
|
547
|
+
* @description Timestamp (exclusive) until which the instrument is paused, if known.
|
|
548
|
+
*/
|
|
549
|
+
until?: string;
|
|
550
|
+
};
|
|
551
|
+
/** @description Which account input field(s) wallets should show in forms. */
|
|
552
|
+
AccountInputFieldsToShow: components$1['schemas']['AccountInputFieldToShow'][];
|
|
553
|
+
/**
|
|
554
|
+
* @description Which single account input field wallets should show in forms.
|
|
555
|
+
* @enum {string}
|
|
556
|
+
*/
|
|
557
|
+
AccountInputFieldToShow: 'provider' | 'accountId';
|
|
558
|
+
};
|
|
559
|
+
responses: {
|
|
560
|
+
/** @description bad request */
|
|
561
|
+
400: {
|
|
562
|
+
headers: {
|
|
563
|
+
[name: string]: unknown;
|
|
564
|
+
};
|
|
565
|
+
content: {
|
|
566
|
+
'application/json': components$1['schemas']['ErrorResponse'];
|
|
567
|
+
};
|
|
568
|
+
};
|
|
569
|
+
/** @description not found */
|
|
570
|
+
404: {
|
|
571
|
+
headers: {
|
|
572
|
+
[name: string]: unknown;
|
|
573
|
+
};
|
|
574
|
+
content: {
|
|
575
|
+
'application/json': components$1['schemas']['ErrorResponse'];
|
|
576
|
+
};
|
|
577
|
+
};
|
|
578
|
+
/** @description conflict */
|
|
579
|
+
409: {
|
|
580
|
+
headers: {
|
|
581
|
+
[name: string]: unknown;
|
|
582
|
+
};
|
|
583
|
+
content: {
|
|
584
|
+
'application/json': components$1['schemas']['ErrorResponse'];
|
|
585
|
+
};
|
|
586
|
+
};
|
|
587
|
+
/** @description Internal server error */
|
|
588
|
+
500: {
|
|
589
|
+
headers: {
|
|
590
|
+
[name: string]: unknown;
|
|
591
|
+
};
|
|
592
|
+
content: {
|
|
593
|
+
'application/json': components$1['schemas']['ErrorResponse'];
|
|
594
|
+
};
|
|
595
|
+
};
|
|
596
|
+
};
|
|
597
|
+
parameters: never;
|
|
598
|
+
requestBodies: never;
|
|
599
|
+
headers: never;
|
|
600
|
+
pathItems: never;
|
|
601
|
+
}
|
|
602
|
+
type $defs$1 = Record<string, never>;
|
|
603
|
+
interface operations$1 {
|
|
604
|
+
getRegistryInfo: {
|
|
605
|
+
parameters: {
|
|
606
|
+
query?: never;
|
|
607
|
+
header?: never;
|
|
608
|
+
path?: never;
|
|
609
|
+
cookie?: never;
|
|
610
|
+
};
|
|
611
|
+
requestBody?: never;
|
|
612
|
+
responses: {
|
|
613
|
+
/** @description ok */
|
|
614
|
+
200: {
|
|
615
|
+
headers: {
|
|
616
|
+
[name: string]: unknown;
|
|
617
|
+
};
|
|
618
|
+
content: {
|
|
619
|
+
'application/json': components$1['schemas']['GetRegistryInfoResponse'];
|
|
620
|
+
};
|
|
621
|
+
};
|
|
622
|
+
404: components$1['responses']['404'];
|
|
623
|
+
500: components$1['responses']['500'];
|
|
624
|
+
};
|
|
625
|
+
};
|
|
626
|
+
listInstruments: {
|
|
627
|
+
parameters: {
|
|
628
|
+
query?: {
|
|
629
|
+
/** @description Number of instruments per page. */
|
|
630
|
+
pageSize?: number;
|
|
631
|
+
/** @description The `nextPageToken` received from the response for the previous page. */
|
|
632
|
+
pageToken?: string;
|
|
633
|
+
};
|
|
634
|
+
header?: never;
|
|
635
|
+
path?: never;
|
|
636
|
+
cookie?: never;
|
|
637
|
+
};
|
|
638
|
+
requestBody?: never;
|
|
639
|
+
responses: {
|
|
640
|
+
/** @description ok */
|
|
641
|
+
200: {
|
|
642
|
+
headers: {
|
|
643
|
+
[name: string]: unknown;
|
|
644
|
+
};
|
|
645
|
+
content: {
|
|
646
|
+
'application/json': components$1['schemas']['ListInstrumentsResponse'];
|
|
647
|
+
};
|
|
648
|
+
};
|
|
649
|
+
404: components$1['responses']['404'];
|
|
650
|
+
500: components$1['responses']['500'];
|
|
651
|
+
};
|
|
652
|
+
};
|
|
653
|
+
getInstrument: {
|
|
654
|
+
parameters: {
|
|
655
|
+
query?: never;
|
|
656
|
+
header?: never;
|
|
657
|
+
path: {
|
|
658
|
+
instrumentId: string;
|
|
659
|
+
};
|
|
660
|
+
cookie?: never;
|
|
661
|
+
};
|
|
662
|
+
requestBody?: never;
|
|
663
|
+
responses: {
|
|
664
|
+
/** @description ok */
|
|
665
|
+
200: {
|
|
666
|
+
headers: {
|
|
667
|
+
[name: string]: unknown;
|
|
668
|
+
};
|
|
669
|
+
content: {
|
|
670
|
+
'application/json': components$1['schemas']['Instrument'];
|
|
671
|
+
};
|
|
672
|
+
};
|
|
673
|
+
404: components$1['responses']['404'];
|
|
674
|
+
500: components$1['responses']['500'];
|
|
675
|
+
};
|
|
676
|
+
};
|
|
677
|
+
}
|
|
678
|
+
declare namespace transfer_instruction_v1_d_exports {
|
|
679
|
+
export { $defs, components, operations, paths$1 as paths, webhooks };
|
|
680
|
+
}
|
|
681
|
+
interface paths$1 {
|
|
682
|
+
'/registry/transfer-instruction/v1/transfer-factory': {
|
|
683
|
+
parameters: {
|
|
684
|
+
query?: never;
|
|
685
|
+
header?: never;
|
|
686
|
+
path?: never;
|
|
687
|
+
cookie?: never;
|
|
688
|
+
};
|
|
689
|
+
get?: never;
|
|
690
|
+
put?: never;
|
|
691
|
+
/** @description Get the factory and choice context for executing a direct transfer. */
|
|
692
|
+
post: operations['getTransferFactory'];
|
|
693
|
+
delete?: never;
|
|
694
|
+
options?: never;
|
|
695
|
+
head?: never;
|
|
696
|
+
patch?: never;
|
|
697
|
+
trace?: never;
|
|
698
|
+
};
|
|
699
|
+
'/registry/transfer-instruction/v1/{transferInstructionId}/choice-contexts/accept': {
|
|
700
|
+
parameters: {
|
|
701
|
+
query?: never;
|
|
702
|
+
header?: never;
|
|
703
|
+
path?: never;
|
|
704
|
+
cookie?: never;
|
|
705
|
+
};
|
|
706
|
+
get?: never;
|
|
707
|
+
put?: never;
|
|
708
|
+
/** @description Get the choice context to accept a transfer instruction. */
|
|
709
|
+
post: operations['getTransferInstructionAcceptContext'];
|
|
710
|
+
delete?: never;
|
|
711
|
+
options?: never;
|
|
712
|
+
head?: never;
|
|
713
|
+
patch?: never;
|
|
714
|
+
trace?: never;
|
|
715
|
+
};
|
|
716
|
+
'/registry/transfer-instruction/v1/{transferInstructionId}/choice-contexts/reject': {
|
|
717
|
+
parameters: {
|
|
718
|
+
query?: never;
|
|
719
|
+
header?: never;
|
|
720
|
+
path?: never;
|
|
721
|
+
cookie?: never;
|
|
722
|
+
};
|
|
723
|
+
get?: never;
|
|
724
|
+
put?: never;
|
|
725
|
+
/** @description Get the choice context to reject a transfer instruction. */
|
|
726
|
+
post: operations['getTransferInstructionRejectContext'];
|
|
727
|
+
delete?: never;
|
|
728
|
+
options?: never;
|
|
729
|
+
head?: never;
|
|
730
|
+
patch?: never;
|
|
731
|
+
trace?: never;
|
|
732
|
+
};
|
|
733
|
+
'/registry/transfer-instruction/v1/{transferInstructionId}/choice-contexts/withdraw': {
|
|
734
|
+
parameters: {
|
|
735
|
+
query?: never;
|
|
736
|
+
header?: never;
|
|
737
|
+
path?: never;
|
|
738
|
+
cookie?: never;
|
|
739
|
+
};
|
|
740
|
+
get?: never;
|
|
741
|
+
put?: never;
|
|
742
|
+
/** @description Get the choice context to withdraw a transfer instruction. */
|
|
743
|
+
post: operations['getTransferInstructionWithdrawContext'];
|
|
744
|
+
delete?: never;
|
|
745
|
+
options?: never;
|
|
746
|
+
head?: never;
|
|
747
|
+
patch?: never;
|
|
748
|
+
trace?: never;
|
|
749
|
+
};
|
|
750
|
+
}
|
|
751
|
+
type webhooks = Record<string, never>;
|
|
752
|
+
interface components {
|
|
753
|
+
schemas: {
|
|
754
|
+
GetFactoryRequest: {
|
|
755
|
+
/**
|
|
756
|
+
* @description The arguments that are intended to be passed to the choice provided by the factory.
|
|
757
|
+
* To avoid repeating the Daml type definitions, they are specified as JSON objects.
|
|
758
|
+
* However the concrete format is given by how the choice arguments are encoded using the Daml JSON API
|
|
759
|
+
* (with the `extraArgs.context` and `extraArgs.meta` fields set to the empty object).
|
|
760
|
+
*
|
|
761
|
+
* The choice arguments are provided so that the registry can also provide choice-argument
|
|
762
|
+
* specific contracts, e.g., the configuration for a specific instrument-id.
|
|
763
|
+
*/
|
|
764
|
+
choiceArguments: Record<string, never>;
|
|
765
|
+
/**
|
|
766
|
+
* @description If set to true, the response will not include fields prefixed with 'debug'. Useful to save bandwidth.
|
|
767
|
+
* @default false
|
|
768
|
+
*/
|
|
769
|
+
excludeDebugFields: boolean;
|
|
770
|
+
};
|
|
771
|
+
/** @description A request to get the context for executing a choice on a contract. */
|
|
772
|
+
GetChoiceContextRequest: {
|
|
773
|
+
/**
|
|
774
|
+
* @description Metadata that will be passed to the choice, and should be incorporated
|
|
775
|
+
* into the choice context. Provided for extensibility.
|
|
776
|
+
*/
|
|
777
|
+
meta?: {
|
|
778
|
+
[key: string]: string;
|
|
779
|
+
};
|
|
780
|
+
/**
|
|
781
|
+
* @description If set to true, the response will not include fields prefixed with 'debug'. Useful to save bandwidth.
|
|
782
|
+
* @default false
|
|
783
|
+
*/
|
|
784
|
+
excludeDebugFields: boolean;
|
|
785
|
+
};
|
|
786
|
+
/**
|
|
787
|
+
* @description The transfer factory contract together with the choice context required to exercise the choice
|
|
788
|
+
* provided by the factory. Typically used to implement the generic initiation of on-ledger workflows
|
|
789
|
+
* via a Daml interface.
|
|
790
|
+
*
|
|
791
|
+
* Clients SHOULD avoid reusing the same `FactoryWithChoiceContext` for exercising multiple choices,
|
|
792
|
+
* as the choice context MAY be specific to the choice being exercised.
|
|
793
|
+
*/
|
|
794
|
+
TransferFactoryWithChoiceContext: {
|
|
795
|
+
/** @description The contract ID of the contract implementing the factory interface. */
|
|
796
|
+
factoryId: string;
|
|
797
|
+
/**
|
|
798
|
+
* @description The kind of transfer workflow that will be used:
|
|
799
|
+
* * `offer`: offer a transfer to the receiver and only transfer if they accept
|
|
800
|
+
* * `direct`: transfer directly to the receiver without asking them for approval.
|
|
801
|
+
* Only chosen if the receiver has pre-approved direct transfers.
|
|
802
|
+
* * `self`: a self-transfer where the sender and receiver are the same party.
|
|
803
|
+
* No approval is required, and the transfer is typically immediate.
|
|
804
|
+
* @enum {string}
|
|
805
|
+
*/
|
|
806
|
+
transferKind: 'self' | 'direct' | 'offer';
|
|
807
|
+
choiceContext: components['schemas']['ChoiceContext'];
|
|
808
|
+
};
|
|
809
|
+
/**
|
|
810
|
+
* @description The context required to exercise a choice on a contract via an interface.
|
|
811
|
+
* Used to retrieve additional reference data that is passed in via disclosed contracts,
|
|
812
|
+
* which are in turn referred to via their contract ID in the `choiceContextData`.
|
|
813
|
+
*/
|
|
814
|
+
ChoiceContext: {
|
|
815
|
+
/** @description The additional data to use when exercising the choice. */
|
|
816
|
+
choiceContextData: Record<string, never>;
|
|
817
|
+
/**
|
|
818
|
+
* @description The contracts that are required to be disclosed to the participant node for exercising
|
|
819
|
+
* the choice.
|
|
820
|
+
*/
|
|
821
|
+
disclosedContracts: components['schemas']['DisclosedContract'][];
|
|
822
|
+
};
|
|
823
|
+
DisclosedContract: {
|
|
824
|
+
templateId: string;
|
|
825
|
+
contractId: string;
|
|
826
|
+
createdEventBlob: string;
|
|
827
|
+
/**
|
|
828
|
+
* @description The synchronizer to which the contract is currently assigned.
|
|
829
|
+
* If the contract is in the process of being reassigned, then a "409" response is returned.
|
|
830
|
+
*/
|
|
831
|
+
synchronizerId: string;
|
|
832
|
+
/**
|
|
833
|
+
* @description The name of the Daml package that was used to create the contract.
|
|
834
|
+
* Use this data only if you trust the provider, as it might not match the data in the
|
|
835
|
+
* `createdEventBlob`.
|
|
836
|
+
*/
|
|
837
|
+
debugPackageName?: string;
|
|
838
|
+
/**
|
|
839
|
+
* @description The contract arguments that were used to create the contract.
|
|
840
|
+
* Use this data only if you trust the provider, as it might not match the data in the
|
|
841
|
+
* `createdEventBlob`.
|
|
842
|
+
*/
|
|
843
|
+
debugPayload?: Record<string, never>;
|
|
844
|
+
/**
|
|
845
|
+
* Format: date-time
|
|
846
|
+
* @description The ledger effective time at which the contract was created.
|
|
847
|
+
* Use this data only if you trust the provider, as it might not match the data in the
|
|
848
|
+
* `createdEventBlob`.
|
|
849
|
+
*/
|
|
850
|
+
debugCreatedAt?: string;
|
|
851
|
+
};
|
|
852
|
+
ErrorResponse: {
|
|
853
|
+
error: string;
|
|
854
|
+
};
|
|
855
|
+
};
|
|
856
|
+
responses: {
|
|
857
|
+
/** @description bad request */
|
|
858
|
+
400: {
|
|
859
|
+
headers: {
|
|
860
|
+
[name: string]: unknown;
|
|
861
|
+
};
|
|
862
|
+
content: {
|
|
863
|
+
'application/json': components['schemas']['ErrorResponse'];
|
|
864
|
+
};
|
|
865
|
+
};
|
|
866
|
+
/** @description not found */
|
|
867
|
+
404: {
|
|
868
|
+
headers: {
|
|
869
|
+
[name: string]: unknown;
|
|
870
|
+
};
|
|
871
|
+
content: {
|
|
872
|
+
'application/json': components['schemas']['ErrorResponse'];
|
|
873
|
+
};
|
|
874
|
+
};
|
|
875
|
+
};
|
|
876
|
+
parameters: never;
|
|
877
|
+
requestBodies: never;
|
|
878
|
+
headers: never;
|
|
879
|
+
pathItems: never;
|
|
880
|
+
}
|
|
881
|
+
type $defs = Record<string, never>;
|
|
882
|
+
interface operations {
|
|
883
|
+
getTransferFactory: {
|
|
884
|
+
parameters: {
|
|
885
|
+
query?: never;
|
|
886
|
+
header?: never;
|
|
887
|
+
path?: never;
|
|
888
|
+
cookie?: never;
|
|
889
|
+
};
|
|
890
|
+
requestBody: {
|
|
891
|
+
content: {
|
|
892
|
+
'application/json': components['schemas']['GetFactoryRequest'];
|
|
893
|
+
};
|
|
894
|
+
};
|
|
895
|
+
responses: {
|
|
896
|
+
/** @description ok */
|
|
897
|
+
200: {
|
|
898
|
+
headers: {
|
|
899
|
+
[name: string]: unknown;
|
|
900
|
+
};
|
|
901
|
+
content: {
|
|
902
|
+
'application/json': components['schemas']['TransferFactoryWithChoiceContext'];
|
|
903
|
+
};
|
|
904
|
+
};
|
|
905
|
+
400: components['responses']['400'];
|
|
906
|
+
404: components['responses']['404'];
|
|
907
|
+
};
|
|
908
|
+
};
|
|
909
|
+
getTransferInstructionAcceptContext: {
|
|
910
|
+
parameters: {
|
|
911
|
+
query?: never;
|
|
912
|
+
header?: never;
|
|
913
|
+
path: {
|
|
914
|
+
/** @description The contract ID of the transfer instruction to accept. */
|
|
915
|
+
transferInstructionId: string;
|
|
916
|
+
};
|
|
917
|
+
cookie?: never;
|
|
918
|
+
};
|
|
919
|
+
requestBody: {
|
|
920
|
+
content: {
|
|
921
|
+
'application/json': components['schemas']['GetChoiceContextRequest'];
|
|
922
|
+
};
|
|
923
|
+
};
|
|
924
|
+
responses: {
|
|
925
|
+
/** @description ok */
|
|
926
|
+
200: {
|
|
927
|
+
headers: {
|
|
928
|
+
[name: string]: unknown;
|
|
929
|
+
};
|
|
930
|
+
content: {
|
|
931
|
+
'application/json': components['schemas']['ChoiceContext'];
|
|
932
|
+
};
|
|
933
|
+
};
|
|
934
|
+
400: components['responses']['400'];
|
|
935
|
+
404: components['responses']['404'];
|
|
936
|
+
};
|
|
937
|
+
};
|
|
938
|
+
getTransferInstructionRejectContext: {
|
|
939
|
+
parameters: {
|
|
940
|
+
query?: never;
|
|
941
|
+
header?: never;
|
|
942
|
+
path: {
|
|
943
|
+
/** @description The contract ID of the transfer instruction to reject. */
|
|
944
|
+
transferInstructionId: string;
|
|
945
|
+
};
|
|
946
|
+
cookie?: never;
|
|
947
|
+
};
|
|
948
|
+
requestBody: {
|
|
949
|
+
content: {
|
|
950
|
+
'application/json': components['schemas']['GetChoiceContextRequest'];
|
|
951
|
+
};
|
|
952
|
+
};
|
|
953
|
+
responses: {
|
|
954
|
+
/** @description ok */
|
|
955
|
+
200: {
|
|
956
|
+
headers: {
|
|
957
|
+
[name: string]: unknown;
|
|
958
|
+
};
|
|
959
|
+
content: {
|
|
960
|
+
'application/json': components['schemas']['ChoiceContext'];
|
|
961
|
+
};
|
|
962
|
+
};
|
|
963
|
+
400: components['responses']['400'];
|
|
964
|
+
404: components['responses']['404'];
|
|
965
|
+
};
|
|
966
|
+
};
|
|
967
|
+
getTransferInstructionWithdrawContext: {
|
|
968
|
+
parameters: {
|
|
969
|
+
query?: never;
|
|
970
|
+
header?: never;
|
|
971
|
+
path: {
|
|
972
|
+
/** @description The contract ID of the transfer instruction to withdraw. */
|
|
973
|
+
transferInstructionId: string;
|
|
974
|
+
};
|
|
975
|
+
cookie?: never;
|
|
976
|
+
};
|
|
977
|
+
requestBody: {
|
|
978
|
+
content: {
|
|
979
|
+
'application/json': components['schemas']['GetChoiceContextRequest'];
|
|
980
|
+
};
|
|
981
|
+
};
|
|
982
|
+
responses: {
|
|
983
|
+
/** @description ok */
|
|
984
|
+
200: {
|
|
985
|
+
headers: {
|
|
986
|
+
[name: string]: unknown;
|
|
987
|
+
};
|
|
988
|
+
content: {
|
|
989
|
+
'application/json': components['schemas']['ChoiceContext'];
|
|
990
|
+
};
|
|
991
|
+
};
|
|
992
|
+
400: components['responses']['400'];
|
|
993
|
+
404: components['responses']['404'];
|
|
994
|
+
};
|
|
995
|
+
};
|
|
996
|
+
}
|
|
997
|
+
type Logger = Pick<Console, 'debug' | 'info' | 'warn' | 'error'>;
|
|
998
|
+
type paths = paths$4 & paths$2 & paths$1 & paths$3;
|
|
999
|
+
type PostEndpoint = { [Pathname in keyof paths]: paths[Pathname] extends {
|
|
1000
|
+
post: unknown;
|
|
1001
|
+
} ? Pathname : never; }[keyof paths];
|
|
1002
|
+
export type PostRequest<Path extends PostEndpoint> = paths[Path] extends {
|
|
1003
|
+
post: {
|
|
1004
|
+
requestBody: {
|
|
1005
|
+
content: {
|
|
1006
|
+
'application/json': infer Req;
|
|
1007
|
+
};
|
|
1008
|
+
};
|
|
1009
|
+
};
|
|
1010
|
+
} ? Req : never;
|
|
1011
|
+
export type PostResponse<Path extends PostEndpoint> = paths[Path] extends {
|
|
1012
|
+
post: {
|
|
1013
|
+
responses: {
|
|
1014
|
+
200: {
|
|
1015
|
+
content: {
|
|
1016
|
+
'application/json': infer Res;
|
|
1017
|
+
};
|
|
1018
|
+
};
|
|
1019
|
+
};
|
|
1020
|
+
};
|
|
1021
|
+
} ? Res : never;
|
|
1022
|
+
type GetEndpoint = { [Pathname in keyof paths]: paths[Pathname] extends {
|
|
1023
|
+
get: unknown;
|
|
1024
|
+
} ? Pathname : never; }[keyof paths];
|
|
1025
|
+
export type GetResponse<Path extends GetEndpoint> = paths[Path] extends {
|
|
1026
|
+
get: {
|
|
1027
|
+
responses: {
|
|
1028
|
+
200: {
|
|
1029
|
+
content: {
|
|
1030
|
+
'application/json': infer Res;
|
|
1031
|
+
};
|
|
1032
|
+
};
|
|
1033
|
+
};
|
|
1034
|
+
};
|
|
1035
|
+
} ? Res : never;
|
|
1036
|
+
export declare class TokenStandardClient {
|
|
1037
|
+
private readonly client;
|
|
1038
|
+
private readonly logger;
|
|
1039
|
+
private accessTokenProvider;
|
|
1040
|
+
constructor(baseUrl: string, logger: Logger, accessTokenProvider: AccessTokenProvider);
|
|
1041
|
+
post<Path extends PostEndpoint>(path: Path, body: PostRequest<Path>, params?: {
|
|
1042
|
+
path?: Record<string, string>;
|
|
1043
|
+
query?: Record<string, string | number>;
|
|
1044
|
+
}): Promise<PostResponse<Path>>;
|
|
1045
|
+
get<Path extends GetEndpoint>(path: Path, params?: {
|
|
1046
|
+
path?: Record<string, string>;
|
|
1047
|
+
query?: Record<string, string | number>;
|
|
1048
|
+
}): Promise<GetResponse<Path>>;
|
|
1049
|
+
private valueOrError;
|
|
1050
|
+
}
|
|
1051
|
+
export declare const ALLOCATION_FACTORY_INTERFACE_ID = "#splice-api-token-allocation-instruction-v1:Splice.Api.Token.AllocationInstructionV1:AllocationFactory";
|
|
1052
|
+
export declare const ALLOCATION_INSTRUCTION_INTERFACE_ID = "#splice-api-token-allocation-instruction-v1:Splice.Api.Token.AllocationInstructionV1:AllocationInstruction";
|
|
1053
|
+
export declare const ALLOCATION_REQUEST_INTERFACE_ID = "#splice-api-token-allocation-request-v1:Splice.Api.Token.AllocationRequestV1:AllocationRequest";
|
|
1054
|
+
export declare const ALLOCATION_INTERFACE_ID = "#splice-api-token-allocation-v1:Splice.Api.Token.AllocationV1:Allocation";
|
|
1055
|
+
export declare const HOLDING_INTERFACE_ID = "#splice-api-token-holding-v1:Splice.Api.Token.HoldingV1:Holding";
|
|
1056
|
+
export declare const METADATA_INTERFACE_ID = "#splice-api-token-metadata-v1:Splice.Api.Token.MetadataV1:AnyContract";
|
|
1057
|
+
export declare const TRANSFER_FACTORY_INTERFACE_ID = "#splice-api-token-transfer-instruction-v1:Splice.Api.Token.TransferInstructionV1:TransferFactory";
|
|
1058
|
+
export declare const TRANSFER_INSTRUCTION_INTERFACE_ID = "#splice-api-token-transfer-instruction-v1:Splice.Api.Token.TransferInstructionV1:TransferInstruction";
|
|
1059
|
+
export declare const FEATURED_APP_DELEGATE_PROXY_INTERFACE_ID = "#splice-util-featured-app-proxies:Splice.Util.FeaturedApp.DelegateProxy:DelegateProxy";
|
|
1060
|
+
export declare const MERGE_DELEGATION_PROPOSAL_TEMPLATE_ID = "#splice-util-token-standard-wallet:Splice.Util.Token.Wallet.MergeDelegation:MergeDelegationProposal";
|
|
1061
|
+
export declare const MERGE_DELEGATION_TEMPLATE_ID = "#splice-util-token-standard-wallet:Splice.Util.Token.Wallet.MergeDelegation:MergeDelegation";
|
|
1062
|
+
export declare const MERGE_DELEGATION_BATCH_MERGE_UTILITY = "#splice-util-token-standard-wallet:Splice.Util.Token.Wallet.MergeDelegation:BatchMergeUtility";
|
|
1063
|
+
declare type Archive = {};
|
|
1064
|
+
declare const Archive: damlTypes.Serializable<Archive>;
|
|
1065
|
+
declare type RelTime = {
|
|
1066
|
+
microseconds: damlTypes.Int;
|
|
1067
|
+
};
|
|
1068
|
+
declare const RelTime: damlTypes.Serializable<RelTime>;
|
|
1069
|
+
declare namespace module_d_exports$5 {
|
|
1070
|
+
export { AnyContract, AnyContractInterface, AnyContractView, AnyValue, ChoiceContext, ChoiceExecutionMetadata, ExtraArgs, Metadata };
|
|
1071
|
+
}
|
|
1072
|
+
declare type AnyContract = damlTypes.Interface<'#splice-api-token-metadata-v1:Splice.Api.Token.MetadataV1:AnyContract'> & AnyContractView;
|
|
1073
|
+
declare interface AnyContractInterface {
|
|
1074
|
+
Archive: damlTypes.Choice<AnyContract, Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<AnyContract, undefined>>;
|
|
1075
|
+
}
|
|
1076
|
+
declare const AnyContract: damlTypes.InterfaceCompanion<AnyContract, undefined, '#splice-api-token-metadata-v1:Splice.Api.Token.MetadataV1:AnyContract'> & damlTypes.FromTemplate<AnyContract, unknown> & AnyContractInterface;
|
|
1077
|
+
declare type AnyContractView = {};
|
|
1078
|
+
declare const AnyContractView: damlTypes.Serializable<AnyContractView>;
|
|
1079
|
+
declare type AnyValue = {
|
|
1080
|
+
tag: 'AV_Text';
|
|
1081
|
+
value: string;
|
|
1082
|
+
} | {
|
|
1083
|
+
tag: 'AV_Int';
|
|
1084
|
+
value: damlTypes.Int;
|
|
1085
|
+
} | {
|
|
1086
|
+
tag: 'AV_Decimal';
|
|
1087
|
+
value: damlTypes.Numeric;
|
|
1088
|
+
} | {
|
|
1089
|
+
tag: 'AV_Bool';
|
|
1090
|
+
value: boolean;
|
|
1091
|
+
} | {
|
|
1092
|
+
tag: 'AV_Date';
|
|
1093
|
+
value: damlTypes.Date;
|
|
1094
|
+
} | {
|
|
1095
|
+
tag: 'AV_Time';
|
|
1096
|
+
value: damlTypes.Time;
|
|
1097
|
+
} | {
|
|
1098
|
+
tag: 'AV_RelTime';
|
|
1099
|
+
value: RelTime;
|
|
1100
|
+
} | {
|
|
1101
|
+
tag: 'AV_Party';
|
|
1102
|
+
value: damlTypes.Party;
|
|
1103
|
+
} | {
|
|
1104
|
+
tag: 'AV_ContractId';
|
|
1105
|
+
value: damlTypes.ContractId<AnyContract>;
|
|
1106
|
+
} | {
|
|
1107
|
+
tag: 'AV_List';
|
|
1108
|
+
value: AnyValue[];
|
|
1109
|
+
} | {
|
|
1110
|
+
tag: 'AV_Map';
|
|
1111
|
+
value: {
|
|
1112
|
+
[key: string]: AnyValue;
|
|
1113
|
+
};
|
|
1114
|
+
};
|
|
1115
|
+
declare const AnyValue: damlTypes.Serializable<AnyValue>;
|
|
1116
|
+
declare type ChoiceContext = {
|
|
1117
|
+
values: {
|
|
1118
|
+
[key: string]: AnyValue;
|
|
1119
|
+
};
|
|
1120
|
+
};
|
|
1121
|
+
declare const ChoiceContext: damlTypes.Serializable<ChoiceContext>;
|
|
1122
|
+
declare type ChoiceExecutionMetadata = {
|
|
1123
|
+
meta: Metadata;
|
|
1124
|
+
};
|
|
1125
|
+
declare const ChoiceExecutionMetadata: damlTypes.Serializable<ChoiceExecutionMetadata>;
|
|
1126
|
+
declare type ExtraArgs = {
|
|
1127
|
+
context: ChoiceContext;
|
|
1128
|
+
meta: Metadata;
|
|
1129
|
+
};
|
|
1130
|
+
declare const ExtraArgs: damlTypes.Serializable<ExtraArgs>;
|
|
1131
|
+
declare type Metadata = {
|
|
1132
|
+
values: {
|
|
1133
|
+
[key: string]: string;
|
|
1134
|
+
};
|
|
1135
|
+
};
|
|
1136
|
+
declare const Metadata: damlTypes.Serializable<Metadata>;
|
|
1137
|
+
declare namespace module_d_exports$4 {
|
|
1138
|
+
export { Holding, HoldingInterface, HoldingView, InstrumentId, Lock };
|
|
1139
|
+
}
|
|
1140
|
+
declare type Holding = damlTypes.Interface<'#splice-api-token-holding-v1:Splice.Api.Token.HoldingV1:Holding'> & HoldingView;
|
|
1141
|
+
declare interface HoldingInterface {
|
|
1142
|
+
Archive: damlTypes.Choice<Holding, Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<Holding, undefined>>;
|
|
1143
|
+
}
|
|
1144
|
+
declare const Holding: damlTypes.InterfaceCompanion<Holding, undefined, '#splice-api-token-holding-v1:Splice.Api.Token.HoldingV1:Holding'> & damlTypes.FromTemplate<Holding, unknown> & HoldingInterface;
|
|
1145
|
+
declare type HoldingView = {
|
|
1146
|
+
owner: damlTypes.Party;
|
|
1147
|
+
instrumentId: InstrumentId;
|
|
1148
|
+
amount: damlTypes.Numeric;
|
|
1149
|
+
lock: damlTypes.Optional<Lock>;
|
|
1150
|
+
meta: Metadata;
|
|
1151
|
+
};
|
|
1152
|
+
declare const HoldingView: damlTypes.Serializable<HoldingView>;
|
|
1153
|
+
declare type InstrumentId = {
|
|
1154
|
+
admin: damlTypes.Party;
|
|
1155
|
+
id: string;
|
|
1156
|
+
};
|
|
1157
|
+
declare const InstrumentId: damlTypes.Serializable<InstrumentId>;
|
|
1158
|
+
declare type Lock = {
|
|
1159
|
+
holders: damlTypes.Party[];
|
|
1160
|
+
expiresAt: damlTypes.Optional<damlTypes.Time>;
|
|
1161
|
+
expiresAfter: damlTypes.Optional<RelTime>;
|
|
1162
|
+
context: damlTypes.Optional<string>;
|
|
1163
|
+
};
|
|
1164
|
+
declare const Lock: damlTypes.Serializable<Lock>;
|
|
1165
|
+
declare namespace module_d_exports$3 {
|
|
1166
|
+
export { Allocation, AllocationInterface, AllocationSpecification, AllocationView, Allocation_Cancel, Allocation_CancelResult, Allocation_ExecuteTransfer, Allocation_ExecuteTransferResult, Allocation_Withdraw, Allocation_WithdrawResult, Reference, SettlementInfo, TransferLeg };
|
|
1167
|
+
}
|
|
1168
|
+
export declare type Allocation = damlTypes.Interface<'#splice-api-token-allocation-v1:Splice.Api.Token.AllocationV1:Allocation'> & AllocationView;
|
|
1169
|
+
declare interface AllocationInterface {
|
|
1170
|
+
Allocation_Cancel: damlTypes.Choice<Allocation, Allocation_Cancel, Allocation_CancelResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<Allocation, undefined>>;
|
|
1171
|
+
Allocation_ExecuteTransfer: damlTypes.Choice<Allocation, Allocation_ExecuteTransfer, Allocation_ExecuteTransferResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<Allocation, undefined>>;
|
|
1172
|
+
Allocation_Withdraw: damlTypes.Choice<Allocation, Allocation_Withdraw, Allocation_WithdrawResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<Allocation, undefined>>;
|
|
1173
|
+
Archive: damlTypes.Choice<Allocation, Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<Allocation, undefined>>;
|
|
1174
|
+
}
|
|
1175
|
+
export declare const Allocation: damlTypes.InterfaceCompanion<Allocation, undefined, '#splice-api-token-allocation-v1:Splice.Api.Token.AllocationV1:Allocation'> & damlTypes.FromTemplate<Allocation, unknown> & AllocationInterface;
|
|
1176
|
+
declare type AllocationSpecification = {
|
|
1177
|
+
settlement: SettlementInfo;
|
|
1178
|
+
transferLegId: string;
|
|
1179
|
+
transferLeg: TransferLeg;
|
|
1180
|
+
};
|
|
1181
|
+
declare const AllocationSpecification: damlTypes.Serializable<AllocationSpecification>;
|
|
1182
|
+
declare type AllocationView = {
|
|
1183
|
+
allocation: AllocationSpecification;
|
|
1184
|
+
holdingCids: damlTypes.ContractId<Holding>[];
|
|
1185
|
+
meta: Metadata;
|
|
1186
|
+
};
|
|
1187
|
+
declare const AllocationView: damlTypes.Serializable<AllocationView>;
|
|
1188
|
+
declare type Allocation_Cancel = {
|
|
1189
|
+
extraArgs: ExtraArgs;
|
|
1190
|
+
};
|
|
1191
|
+
declare const Allocation_Cancel: damlTypes.Serializable<Allocation_Cancel>;
|
|
1192
|
+
declare type Allocation_CancelResult = {
|
|
1193
|
+
senderHoldingCids: damlTypes.ContractId<Holding>[];
|
|
1194
|
+
meta: Metadata;
|
|
1195
|
+
};
|
|
1196
|
+
declare const Allocation_CancelResult: damlTypes.Serializable<Allocation_CancelResult>;
|
|
1197
|
+
declare type Allocation_ExecuteTransfer = {
|
|
1198
|
+
extraArgs: ExtraArgs;
|
|
1199
|
+
};
|
|
1200
|
+
declare const Allocation_ExecuteTransfer: damlTypes.Serializable<Allocation_ExecuteTransfer>;
|
|
1201
|
+
declare type Allocation_ExecuteTransferResult = {
|
|
1202
|
+
senderHoldingCids: damlTypes.ContractId<Holding>[];
|
|
1203
|
+
receiverHoldingCids: damlTypes.ContractId<Holding>[];
|
|
1204
|
+
meta: Metadata;
|
|
1205
|
+
};
|
|
1206
|
+
declare const Allocation_ExecuteTransferResult: damlTypes.Serializable<Allocation_ExecuteTransferResult>;
|
|
1207
|
+
declare type Allocation_Withdraw = {
|
|
1208
|
+
extraArgs: ExtraArgs;
|
|
1209
|
+
};
|
|
1210
|
+
declare const Allocation_Withdraw: damlTypes.Serializable<Allocation_Withdraw>;
|
|
1211
|
+
declare type Allocation_WithdrawResult = {
|
|
1212
|
+
senderHoldingCids: damlTypes.ContractId<Holding>[];
|
|
1213
|
+
meta: Metadata;
|
|
1214
|
+
};
|
|
1215
|
+
declare const Allocation_WithdrawResult: damlTypes.Serializable<Allocation_WithdrawResult>;
|
|
1216
|
+
declare type Reference = {
|
|
1217
|
+
id: string;
|
|
1218
|
+
cid: damlTypes.Optional<damlTypes.ContractId<AnyContract>>;
|
|
1219
|
+
};
|
|
1220
|
+
declare const Reference: damlTypes.Serializable<Reference>;
|
|
1221
|
+
declare type SettlementInfo = {
|
|
1222
|
+
executor: damlTypes.Party;
|
|
1223
|
+
settlementRef: Reference;
|
|
1224
|
+
requestedAt: damlTypes.Time;
|
|
1225
|
+
allocateBefore: damlTypes.Time;
|
|
1226
|
+
settleBefore: damlTypes.Time;
|
|
1227
|
+
meta: Metadata;
|
|
1228
|
+
};
|
|
1229
|
+
declare const SettlementInfo: damlTypes.Serializable<SettlementInfo>;
|
|
1230
|
+
declare type TransferLeg = {
|
|
1231
|
+
sender: damlTypes.Party;
|
|
1232
|
+
receiver: damlTypes.Party;
|
|
1233
|
+
amount: damlTypes.Numeric;
|
|
1234
|
+
instrumentId: InstrumentId;
|
|
1235
|
+
meta: Metadata;
|
|
1236
|
+
};
|
|
1237
|
+
declare const TransferLeg: damlTypes.Serializable<TransferLeg>;
|
|
1238
|
+
declare namespace module_d_exports$2 {
|
|
1239
|
+
export { AllocationFactory, AllocationFactoryInterface, AllocationFactoryView, AllocationFactory_Allocate, AllocationFactory_PublicFetch, AllocationInstruction, AllocationInstructionInterface, AllocationInstructionResult, AllocationInstructionResult_Output, AllocationInstructionView, AllocationInstruction_Update, AllocationInstruction_Withdraw };
|
|
1240
|
+
}
|
|
1241
|
+
export declare type AllocationFactory = damlTypes.Interface<'#splice-api-token-allocation-instruction-v1:Splice.Api.Token.AllocationInstructionV1:AllocationFactory'> & AllocationFactoryView;
|
|
1242
|
+
declare interface AllocationFactoryInterface {
|
|
1243
|
+
AllocationFactory_Allocate: damlTypes.Choice<AllocationFactory, AllocationFactory_Allocate, AllocationInstructionResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<AllocationFactory, undefined>>;
|
|
1244
|
+
AllocationFactory_PublicFetch: damlTypes.Choice<AllocationFactory, AllocationFactory_PublicFetch, AllocationFactoryView, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<AllocationFactory, undefined>>;
|
|
1245
|
+
Archive: damlTypes.Choice<AllocationFactory, Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<AllocationFactory, undefined>>;
|
|
1246
|
+
}
|
|
1247
|
+
export declare const AllocationFactory: damlTypes.InterfaceCompanion<AllocationFactory, undefined, '#splice-api-token-allocation-instruction-v1:Splice.Api.Token.AllocationInstructionV1:AllocationFactory'> & damlTypes.FromTemplate<AllocationFactory, unknown> & AllocationFactoryInterface;
|
|
1248
|
+
export declare type AllocationInstruction = damlTypes.Interface<'#splice-api-token-allocation-instruction-v1:Splice.Api.Token.AllocationInstructionV1:AllocationInstruction'> & AllocationInstructionView;
|
|
1249
|
+
declare interface AllocationInstructionInterface {
|
|
1250
|
+
AllocationInstruction_Update: damlTypes.Choice<AllocationInstruction, AllocationInstruction_Update, AllocationInstructionResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<AllocationInstruction, undefined>>;
|
|
1251
|
+
AllocationInstruction_Withdraw: damlTypes.Choice<AllocationInstruction, AllocationInstruction_Withdraw, AllocationInstructionResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<AllocationInstruction, undefined>>;
|
|
1252
|
+
Archive: damlTypes.Choice<AllocationInstruction, Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<AllocationInstruction, undefined>>;
|
|
1253
|
+
}
|
|
1254
|
+
export declare const AllocationInstruction: damlTypes.InterfaceCompanion<AllocationInstruction, undefined, '#splice-api-token-allocation-instruction-v1:Splice.Api.Token.AllocationInstructionV1:AllocationInstruction'> & damlTypes.FromTemplate<AllocationInstruction, unknown> & AllocationInstructionInterface;
|
|
1255
|
+
declare type AllocationFactoryView = {
|
|
1256
|
+
admin: damlTypes.Party;
|
|
1257
|
+
meta: Metadata;
|
|
1258
|
+
};
|
|
1259
|
+
declare const AllocationFactoryView: damlTypes.Serializable<AllocationFactoryView>;
|
|
1260
|
+
declare type AllocationFactory_Allocate = {
|
|
1261
|
+
expectedAdmin: damlTypes.Party;
|
|
1262
|
+
allocation: AllocationSpecification;
|
|
1263
|
+
requestedAt: damlTypes.Time;
|
|
1264
|
+
inputHoldingCids: damlTypes.ContractId<Holding>[];
|
|
1265
|
+
extraArgs: ExtraArgs;
|
|
1266
|
+
};
|
|
1267
|
+
declare const AllocationFactory_Allocate: damlTypes.Serializable<AllocationFactory_Allocate>;
|
|
1268
|
+
declare type AllocationFactory_PublicFetch = {
|
|
1269
|
+
expectedAdmin: damlTypes.Party;
|
|
1270
|
+
actor: damlTypes.Party;
|
|
1271
|
+
};
|
|
1272
|
+
declare const AllocationFactory_PublicFetch: damlTypes.Serializable<AllocationFactory_PublicFetch>;
|
|
1273
|
+
declare type AllocationInstructionResult = {
|
|
1274
|
+
output: AllocationInstructionResult_Output;
|
|
1275
|
+
senderChangeCids: damlTypes.ContractId<Holding>[];
|
|
1276
|
+
meta: Metadata;
|
|
1277
|
+
};
|
|
1278
|
+
declare const AllocationInstructionResult: damlTypes.Serializable<AllocationInstructionResult>;
|
|
1279
|
+
declare type AllocationInstructionResult_Output = {
|
|
1280
|
+
tag: 'AllocationInstructionResult_Pending';
|
|
1281
|
+
value: AllocationInstructionResult_Output.AllocationInstructionResult_Pending;
|
|
1282
|
+
} | {
|
|
1283
|
+
tag: 'AllocationInstructionResult_Completed';
|
|
1284
|
+
value: AllocationInstructionResult_Output.AllocationInstructionResult_Completed;
|
|
1285
|
+
} | {
|
|
1286
|
+
tag: 'AllocationInstructionResult_Failed';
|
|
1287
|
+
value: {};
|
|
1288
|
+
};
|
|
1289
|
+
declare const AllocationInstructionResult_Output: damlTypes.Serializable<AllocationInstructionResult_Output> & {
|
|
1290
|
+
AllocationInstructionResult_Completed: damlTypes.Serializable<AllocationInstructionResult_Output.AllocationInstructionResult_Completed>;
|
|
1291
|
+
AllocationInstructionResult_Pending: damlTypes.Serializable<AllocationInstructionResult_Output.AllocationInstructionResult_Pending>;
|
|
1292
|
+
};
|
|
1293
|
+
declare namespace AllocationInstructionResult_Output {
|
|
1294
|
+
type AllocationInstructionResult_Completed = {
|
|
1295
|
+
allocationCid: damlTypes.ContractId<Allocation>;
|
|
1296
|
+
};
|
|
1297
|
+
type AllocationInstructionResult_Pending = {
|
|
1298
|
+
allocationInstructionCid: damlTypes.ContractId<AllocationInstruction>;
|
|
1299
|
+
};
|
|
1300
|
+
}
|
|
1301
|
+
declare type AllocationInstructionView = {
|
|
1302
|
+
originalInstructionCid: damlTypes.Optional<damlTypes.ContractId<AllocationInstruction>>;
|
|
1303
|
+
allocation: AllocationSpecification;
|
|
1304
|
+
pendingActions: damlTypes.Map<damlTypes.Party, string>;
|
|
1305
|
+
requestedAt: damlTypes.Time;
|
|
1306
|
+
inputHoldingCids: damlTypes.ContractId<Holding>[];
|
|
1307
|
+
meta: Metadata;
|
|
1308
|
+
};
|
|
1309
|
+
declare const AllocationInstructionView: damlTypes.Serializable<AllocationInstructionView>;
|
|
1310
|
+
declare type AllocationInstruction_Update = {
|
|
1311
|
+
extraActors: damlTypes.Party[];
|
|
1312
|
+
extraArgs: ExtraArgs;
|
|
1313
|
+
};
|
|
1314
|
+
declare const AllocationInstruction_Update: damlTypes.Serializable<AllocationInstruction_Update>;
|
|
1315
|
+
declare type AllocationInstruction_Withdraw = {
|
|
1316
|
+
extraArgs: ExtraArgs;
|
|
1317
|
+
};
|
|
1318
|
+
declare const AllocationInstruction_Withdraw: damlTypes.Serializable<AllocationInstruction_Withdraw>;
|
|
1319
|
+
declare namespace module_d_exports$1 {
|
|
1320
|
+
export { AllocationRequest, AllocationRequestInterface, AllocationRequestView, AllocationRequest_Reject, AllocationRequest_Withdraw };
|
|
1321
|
+
}
|
|
1322
|
+
declare type AllocationRequest = damlTypes.Interface<'#splice-api-token-allocation-request-v1:Splice.Api.Token.AllocationRequestV1:AllocationRequest'> & AllocationRequestView;
|
|
1323
|
+
declare interface AllocationRequestInterface {
|
|
1324
|
+
AllocationRequest_Reject: damlTypes.Choice<AllocationRequest, AllocationRequest_Reject, ChoiceExecutionMetadata, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<AllocationRequest, undefined>>;
|
|
1325
|
+
AllocationRequest_Withdraw: damlTypes.Choice<AllocationRequest, AllocationRequest_Withdraw, ChoiceExecutionMetadata, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<AllocationRequest, undefined>>;
|
|
1326
|
+
Archive: damlTypes.Choice<AllocationRequest, Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<AllocationRequest, undefined>>;
|
|
1327
|
+
}
|
|
1328
|
+
declare const AllocationRequest: damlTypes.InterfaceCompanion<AllocationRequest, undefined, '#splice-api-token-allocation-request-v1:Splice.Api.Token.AllocationRequestV1:AllocationRequest'> & damlTypes.FromTemplate<AllocationRequest, unknown> & AllocationRequestInterface;
|
|
1329
|
+
declare type AllocationRequestView = {
|
|
1330
|
+
settlement: SettlementInfo;
|
|
1331
|
+
transferLegs: {
|
|
1332
|
+
[key: string]: TransferLeg;
|
|
1333
|
+
};
|
|
1334
|
+
meta: Metadata;
|
|
1335
|
+
};
|
|
1336
|
+
declare const AllocationRequestView: damlTypes.Serializable<AllocationRequestView>;
|
|
1337
|
+
declare type AllocationRequest_Reject = {
|
|
1338
|
+
actor: damlTypes.Party;
|
|
1339
|
+
extraArgs: ExtraArgs;
|
|
1340
|
+
};
|
|
1341
|
+
declare const AllocationRequest_Reject: damlTypes.Serializable<AllocationRequest_Reject>;
|
|
1342
|
+
declare type AllocationRequest_Withdraw = {
|
|
1343
|
+
extraArgs: ExtraArgs;
|
|
1344
|
+
};
|
|
1345
|
+
declare const AllocationRequest_Withdraw: damlTypes.Serializable<AllocationRequest_Withdraw>;
|
|
1346
|
+
declare namespace module_d_exports {
|
|
1347
|
+
export { Transfer, TransferFactory, TransferFactoryInterface, TransferFactoryView, TransferFactory_PublicFetch, TransferFactory_Transfer, TransferInstruction, TransferInstructionInterface, TransferInstructionResult, TransferInstructionResult_Output, TransferInstructionStatus, TransferInstructionView, TransferInstruction_Accept, TransferInstruction_Reject, TransferInstruction_Update, TransferInstruction_Withdraw };
|
|
1348
|
+
}
|
|
1349
|
+
export declare type TransferFactory = damlTypes.Interface<'#splice-api-token-transfer-instruction-v1:Splice.Api.Token.TransferInstructionV1:TransferFactory'> & TransferFactoryView;
|
|
1350
|
+
declare interface TransferFactoryInterface {
|
|
1351
|
+
Archive: damlTypes.Choice<TransferFactory, Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<TransferFactory, undefined>>;
|
|
1352
|
+
TransferFactory_PublicFetch: damlTypes.Choice<TransferFactory, TransferFactory_PublicFetch, TransferFactoryView, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<TransferFactory, undefined>>;
|
|
1353
|
+
TransferFactory_Transfer: damlTypes.Choice<TransferFactory, TransferFactory_Transfer, TransferInstructionResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<TransferFactory, undefined>>;
|
|
1354
|
+
}
|
|
1355
|
+
export declare const TransferFactory: damlTypes.InterfaceCompanion<TransferFactory, undefined, '#splice-api-token-transfer-instruction-v1:Splice.Api.Token.TransferInstructionV1:TransferFactory'> & damlTypes.FromTemplate<TransferFactory, unknown> & TransferFactoryInterface;
|
|
1356
|
+
export declare type TransferInstruction = damlTypes.Interface<'#splice-api-token-transfer-instruction-v1:Splice.Api.Token.TransferInstructionV1:TransferInstruction'> & TransferInstructionView;
|
|
1357
|
+
declare interface TransferInstructionInterface {
|
|
1358
|
+
Archive: damlTypes.Choice<TransferInstruction, Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<TransferInstruction, undefined>>;
|
|
1359
|
+
TransferInstruction_Accept: damlTypes.Choice<TransferInstruction, TransferInstruction_Accept, TransferInstructionResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<TransferInstruction, undefined>>;
|
|
1360
|
+
TransferInstruction_Reject: damlTypes.Choice<TransferInstruction, TransferInstruction_Reject, TransferInstructionResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<TransferInstruction, undefined>>;
|
|
1361
|
+
TransferInstruction_Update: damlTypes.Choice<TransferInstruction, TransferInstruction_Update, TransferInstructionResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<TransferInstruction, undefined>>;
|
|
1362
|
+
TransferInstruction_Withdraw: damlTypes.Choice<TransferInstruction, TransferInstruction_Withdraw, TransferInstructionResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<TransferInstruction, undefined>>;
|
|
1363
|
+
}
|
|
1364
|
+
export declare const TransferInstruction: damlTypes.InterfaceCompanion<TransferInstruction, undefined, '#splice-api-token-transfer-instruction-v1:Splice.Api.Token.TransferInstructionV1:TransferInstruction'> & damlTypes.FromTemplate<TransferInstruction, unknown> & TransferInstructionInterface;
|
|
1365
|
+
declare type Transfer = {
|
|
1366
|
+
sender: damlTypes.Party;
|
|
1367
|
+
receiver: damlTypes.Party;
|
|
1368
|
+
amount: damlTypes.Numeric;
|
|
1369
|
+
instrumentId: InstrumentId;
|
|
1370
|
+
requestedAt: damlTypes.Time;
|
|
1371
|
+
executeBefore: damlTypes.Time;
|
|
1372
|
+
inputHoldingCids: damlTypes.ContractId<Holding>[];
|
|
1373
|
+
meta: Metadata;
|
|
1374
|
+
};
|
|
1375
|
+
declare const Transfer: damlTypes.Serializable<Transfer>;
|
|
1376
|
+
declare type TransferFactoryView = {
|
|
1377
|
+
admin: damlTypes.Party;
|
|
1378
|
+
meta: Metadata;
|
|
1379
|
+
};
|
|
1380
|
+
declare const TransferFactoryView: damlTypes.Serializable<TransferFactoryView>;
|
|
1381
|
+
declare type TransferFactory_PublicFetch = {
|
|
1382
|
+
expectedAdmin: damlTypes.Party;
|
|
1383
|
+
actor: damlTypes.Party;
|
|
1384
|
+
};
|
|
1385
|
+
declare const TransferFactory_PublicFetch: damlTypes.Serializable<TransferFactory_PublicFetch>;
|
|
1386
|
+
declare type TransferFactory_Transfer = {
|
|
1387
|
+
expectedAdmin: damlTypes.Party;
|
|
1388
|
+
transfer: Transfer;
|
|
1389
|
+
extraArgs: ExtraArgs;
|
|
1390
|
+
};
|
|
1391
|
+
declare const TransferFactory_Transfer: damlTypes.Serializable<TransferFactory_Transfer>;
|
|
1392
|
+
declare type TransferInstructionResult = {
|
|
1393
|
+
output: TransferInstructionResult_Output;
|
|
1394
|
+
senderChangeCids: damlTypes.ContractId<Holding>[];
|
|
1395
|
+
meta: Metadata;
|
|
1396
|
+
};
|
|
1397
|
+
declare const TransferInstructionResult: damlTypes.Serializable<TransferInstructionResult>;
|
|
1398
|
+
declare type TransferInstructionResult_Output = {
|
|
1399
|
+
tag: 'TransferInstructionResult_Pending';
|
|
1400
|
+
value: TransferInstructionResult_Output.TransferInstructionResult_Pending;
|
|
1401
|
+
} | {
|
|
1402
|
+
tag: 'TransferInstructionResult_Completed';
|
|
1403
|
+
value: TransferInstructionResult_Output.TransferInstructionResult_Completed;
|
|
1404
|
+
} | {
|
|
1405
|
+
tag: 'TransferInstructionResult_Failed';
|
|
1406
|
+
value: {};
|
|
1407
|
+
};
|
|
1408
|
+
declare const TransferInstructionResult_Output: damlTypes.Serializable<TransferInstructionResult_Output> & {
|
|
1409
|
+
TransferInstructionResult_Completed: damlTypes.Serializable<TransferInstructionResult_Output.TransferInstructionResult_Completed>;
|
|
1410
|
+
TransferInstructionResult_Pending: damlTypes.Serializable<TransferInstructionResult_Output.TransferInstructionResult_Pending>;
|
|
1411
|
+
};
|
|
1412
|
+
declare namespace TransferInstructionResult_Output {
|
|
1413
|
+
type TransferInstructionResult_Completed = {
|
|
1414
|
+
receiverHoldingCids: damlTypes.ContractId<Holding>[];
|
|
1415
|
+
};
|
|
1416
|
+
type TransferInstructionResult_Pending = {
|
|
1417
|
+
transferInstructionCid: damlTypes.ContractId<TransferInstruction>;
|
|
1418
|
+
};
|
|
1419
|
+
}
|
|
1420
|
+
declare type TransferInstructionStatus = {
|
|
1421
|
+
tag: 'TransferPendingReceiverAcceptance';
|
|
1422
|
+
value: {};
|
|
1423
|
+
} | {
|
|
1424
|
+
tag: 'TransferPendingInternalWorkflow';
|
|
1425
|
+
value: TransferInstructionStatus.TransferPendingInternalWorkflow;
|
|
1426
|
+
};
|
|
1427
|
+
declare const TransferInstructionStatus: damlTypes.Serializable<TransferInstructionStatus> & {
|
|
1428
|
+
TransferPendingInternalWorkflow: damlTypes.Serializable<TransferInstructionStatus.TransferPendingInternalWorkflow>;
|
|
1429
|
+
};
|
|
1430
|
+
declare namespace TransferInstructionStatus {
|
|
1431
|
+
type TransferPendingInternalWorkflow = {
|
|
1432
|
+
pendingActions: damlTypes.Map<damlTypes.Party, string>;
|
|
1433
|
+
};
|
|
1434
|
+
}
|
|
1435
|
+
declare type TransferInstructionView = {
|
|
1436
|
+
originalInstructionCid: damlTypes.Optional<damlTypes.ContractId<TransferInstruction>>;
|
|
1437
|
+
transfer: Transfer;
|
|
1438
|
+
status: TransferInstructionStatus;
|
|
1439
|
+
meta: Metadata;
|
|
1440
|
+
};
|
|
1441
|
+
declare const TransferInstructionView: damlTypes.Serializable<TransferInstructionView>;
|
|
1442
|
+
declare type TransferInstruction_Accept = {
|
|
1443
|
+
extraArgs: ExtraArgs;
|
|
1444
|
+
};
|
|
1445
|
+
declare const TransferInstruction_Accept: damlTypes.Serializable<TransferInstruction_Accept>;
|
|
1446
|
+
declare type TransferInstruction_Reject = {
|
|
1447
|
+
extraArgs: ExtraArgs;
|
|
1448
|
+
};
|
|
1449
|
+
declare const TransferInstruction_Reject: damlTypes.Serializable<TransferInstruction_Reject>;
|
|
1450
|
+
declare type TransferInstruction_Update = {
|
|
1451
|
+
extraActors: damlTypes.Party[];
|
|
1452
|
+
extraArgs: ExtraArgs;
|
|
1453
|
+
};
|
|
1454
|
+
declare const TransferInstruction_Update: damlTypes.Serializable<TransferInstruction_Update>;
|
|
1455
|
+
declare type TransferInstruction_Withdraw = {
|
|
1456
|
+
extraArgs: ExtraArgs;
|
|
1457
|
+
};
|
|
1458
|
+
declare const TransferInstruction_Withdraw: damlTypes.Serializable<TransferInstruction_Withdraw>;
|
|
1459
|
+
declare namespace index_d_exports$3 {
|
|
1460
|
+
export { module_d_exports$2 as AllocationInstructionV1, module_d_exports$1 as AllocationRequestV1, module_d_exports$3 as AllocationV1, module_d_exports$4 as HoldingV1, module_d_exports$5 as MetadataV1, module_d_exports as TransferInstructionV1 };
|
|
1461
|
+
}
|
|
1462
|
+
declare namespace index_d_exports$2 {
|
|
1463
|
+
export { index_d_exports$3 as Token };
|
|
1464
|
+
}
|
|
1465
|
+
declare namespace index_d_exports$1 {
|
|
1466
|
+
export { index_d_exports$2 as Api };
|
|
1467
|
+
}
|
|
1468
|
+
/**
|
|
1469
|
+
* @deprecated ID of the former merged codegen package, which is not deployed on any ledger.
|
|
1470
|
+
* Each token standard interface lives in its own `splice-api-token-*` package.
|
|
1471
|
+
*/
|
|
1472
|
+
export declare const packageId = "b4189e44cae2054f1df6bdfa92139c27f71fd862f20408ccd219cc62616356a4";
|
|
1473
|
+
export declare const TransferInstructionV1: typeof module_d_exports;
|
|
1474
|
+
export declare const AllocationInstructionV1: typeof module_d_exports$2;
|
|
1475
|
+
export declare const AllocationRequestV1: typeof module_d_exports$1;
|
|
1476
|
+
export declare const AllocationV1: typeof module_d_exports$3;
|
|
1477
|
+
export declare const HoldingV1: typeof module_d_exports$4;
|
|
1478
|
+
export declare const MetadataV1: typeof module_d_exports$5;
|
|
1479
|
+
export type Beneficiaries = {
|
|
1480
|
+
beneficiary: PartyId;
|
|
1481
|
+
weight: number;
|
|
1482
|
+
};
|
|
1483
|
+
declare namespace index_d_exports {
|
|
1484
|
+
export { allocation_instruction_v1_d_exports as AllocationInstructionV1, allocation_v1_d_exports as AllocationV1, token_metadata_v1_d_exports as MetadataV1, transfer_instruction_v1_d_exports as TransferInstructionV1 };
|
|
1485
|
+
}
|
|
1486
|
+
export { type AllocationFactoryInterface, type AllocationFactoryView, type AllocationFactory_Allocate, type AllocationFactory_PublicFetch, type AllocationInstructionInterface, type AllocationInstructionResult, type AllocationInstructionResult_Output, type AllocationInstructionView, type AllocationInstruction_Update, type AllocationInstruction_Withdraw, type AllocationInterface, type AllocationRequest, type AllocationRequestInterface, type AllocationRequestView, type AllocationRequest_Reject, type AllocationRequest_Withdraw, type AllocationSpecification, type AllocationView, type Allocation_Cancel, type Allocation_CancelResult, type Allocation_ExecuteTransfer, type Allocation_ExecuteTransferResult, type Allocation_Withdraw, type Allocation_WithdrawResult, type AnyContract, type AnyContractInterface, type AnyContractView, type AnyValue, type ChoiceContext, type ChoiceExecutionMetadata, type ExtraArgs, type Holding, type HoldingInterface, type HoldingView, type InstrumentId, type Lock, type Metadata, index_d_exports as OffLedger, type Reference, type SettlementInfo, index_d_exports$1 as Splice, type Transfer, type TransferFactoryInterface, type TransferFactoryView, type TransferFactory_PublicFetch, type TransferFactory_Transfer, type TransferInstructionInterface, type TransferInstructionResult, type TransferInstructionResult_Output, type TransferInstructionStatus, type TransferInstructionView, type TransferInstruction_Accept, type TransferInstruction_Reject, type TransferInstruction_Update, type TransferInstruction_Withdraw, type TransferLeg };
|
|
1487
|
+
//# sourceMappingURL=index.d.cts.map
|