@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
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// \0rolldown/runtime.js
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod, mod.exports), cb = null), mod.exports);
|
|
9
|
+
var __exportAll = (all, no_symbols) => {
|
|
10
|
+
let target = {};
|
|
11
|
+
for (var name in all) __defProp(target, name, {
|
|
12
|
+
get: all[name],
|
|
13
|
+
enumerable: true
|
|
14
|
+
});
|
|
15
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
16
|
+
return target;
|
|
17
|
+
};
|
|
18
|
+
var __copyProps = (to, from, except, desc) => {
|
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
20
|
+
key = keys[i];
|
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
22
|
+
get: ((k) => from[k]).bind(null, key),
|
|
23
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
return to;
|
|
27
|
+
};
|
|
28
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
29
|
+
value: mod,
|
|
30
|
+
enumerable: true
|
|
31
|
+
}) : target, mod));
|
|
32
|
+
export { __exportAll as n, __toESM as r, __commonJSMin as t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canton-network/core-token-standard",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "daml codegen js for core token standard",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -11,33 +11,23 @@
|
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
13
13
|
"types": "./dist/index.d.ts",
|
|
14
|
-
"browser": "./dist/index.browser.js",
|
|
15
14
|
"import": "./dist/index.js",
|
|
16
15
|
"require": "./dist/index.cjs",
|
|
17
16
|
"default": "./dist/index.js"
|
|
18
17
|
}
|
|
19
18
|
},
|
|
20
19
|
"dependencies": {
|
|
21
|
-
"@canton-network/core-types": "
|
|
22
|
-
"@canton-network/core-wallet-auth": "
|
|
23
|
-
"@daml/types": "^3.
|
|
20
|
+
"@canton-network/core-types": "2.2.0",
|
|
21
|
+
"@canton-network/core-wallet-auth": "2.2.0",
|
|
22
|
+
"@daml/types": "^3.6.2",
|
|
24
23
|
"@mojotech/json-type-validation": "^3.1.0",
|
|
25
|
-
"
|
|
26
|
-
"openapi-fetch": "^0.17.0",
|
|
27
|
-
"uuid": "^14.0.1",
|
|
28
|
-
"zod": "^4.4.3"
|
|
24
|
+
"openapi-fetch": "^0.17.0"
|
|
29
25
|
},
|
|
30
26
|
"devDependencies": {
|
|
31
|
-
"@
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"@rollup/plugin-typescript": "^12.3.0",
|
|
36
|
-
"playwright": "^1.63.0",
|
|
37
|
-
"rollup": "^4.62.0",
|
|
38
|
-
"rollup-plugin-dts": "^6.4.1",
|
|
39
|
-
"tslib": "^2.8.1",
|
|
40
|
-
"typescript": "^6.0.3"
|
|
27
|
+
"@types/node": "^25.9.9",
|
|
28
|
+
"rolldown": "^1.2.15",
|
|
29
|
+
"tsdown": "^0.23.2",
|
|
30
|
+
"typescript": "npm:@typescript/typescript6@^6.0.2"
|
|
41
31
|
},
|
|
42
32
|
"files": [
|
|
43
33
|
"dist/**"
|
|
@@ -55,9 +45,8 @@
|
|
|
55
45
|
"url": "https://github.com/canton-network/wallet/issues"
|
|
56
46
|
},
|
|
57
47
|
"scripts": {
|
|
58
|
-
"build": "
|
|
59
|
-
"dev": "
|
|
60
|
-
"clean:types-tmp": "rm -rf dist/types",
|
|
48
|
+
"build": "tsdown",
|
|
49
|
+
"dev": "tsdown --watch",
|
|
61
50
|
"flatpack": "pnpm pack --pack-destination \"$FLATPACK_OUTDIR\"",
|
|
62
51
|
"clean": "rm -rf dist"
|
|
63
52
|
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export * as AllocationInstructionV1 from './splice-api-token-allocation-instruction-v1/allocation-instruction-v1';
|
|
2
|
-
export * as AllocationV1 from './splice-api-token-allocation-v1/allocation-v1';
|
|
3
|
-
export * as MetadataV1 from './splice-api-token-metadata-v1/token-metadata-v1';
|
|
4
|
-
export * as TransferInstructionV1 from './splice-api-token-transfer-instruction-v1/transfer-instruction-v1';
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generated-clients/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,uBAAuB,MAAM,wEAAwE,CAAA;AACjH,OAAO,KAAK,YAAY,MAAM,gDAAgD,CAAA;AAC9E,OAAO,KAAK,UAAU,MAAM,kDAAkD,CAAA;AAC9E,OAAO,KAAK,qBAAqB,MAAM,oEAAoE,CAAA"}
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
export interface paths {
|
|
2
|
-
'/registry/allocation-instruction/v1/allocation-factory': {
|
|
3
|
-
parameters: {
|
|
4
|
-
query?: never;
|
|
5
|
-
header?: never;
|
|
6
|
-
path?: never;
|
|
7
|
-
cookie?: never;
|
|
8
|
-
};
|
|
9
|
-
get?: never;
|
|
10
|
-
put?: never;
|
|
11
|
-
/** @description Get the factory and choice context for creating allocations using the `AllocationFactory_Allocate` choice. */
|
|
12
|
-
post: operations['getAllocationFactory'];
|
|
13
|
-
delete?: never;
|
|
14
|
-
options?: never;
|
|
15
|
-
head?: never;
|
|
16
|
-
patch?: never;
|
|
17
|
-
trace?: never;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export type webhooks = Record<string, never>;
|
|
21
|
-
export interface components {
|
|
22
|
-
schemas: {
|
|
23
|
-
GetFactoryRequest: {
|
|
24
|
-
/**
|
|
25
|
-
* @description The arguments that are intended to be passed to the choice provided by the factory.
|
|
26
|
-
* To avoid repeating the Daml type definitions, they are specified as JSON objects.
|
|
27
|
-
* However the concrete format is given by how the choice arguments are encoded using the Daml JSON API
|
|
28
|
-
* (with the `extraArgs.context` and `extraArgs.meta` fields set to the empty object).
|
|
29
|
-
*
|
|
30
|
-
* The choice arguments are provided so that the registry can also provide choice-argument
|
|
31
|
-
* specific contracts, e.g., the configuration for a specific instrument-id.
|
|
32
|
-
*/
|
|
33
|
-
choiceArguments: Record<string, never>;
|
|
34
|
-
/**
|
|
35
|
-
* @description If set to true, the response will not include fields prefixed with 'debug'. Useful to save bandwidth.
|
|
36
|
-
* @default false
|
|
37
|
-
*/
|
|
38
|
-
excludeDebugFields: boolean;
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* @description A factory contract together with the choice context required to exercise the choice
|
|
42
|
-
* provided by the factory. Typically used to implement the generic initiation of on-ledger workflows
|
|
43
|
-
* via a Daml interface.
|
|
44
|
-
*
|
|
45
|
-
* Clients SHOULD avoid reusing the same `FactoryWithChoiceContext` for exercising multiple choices,
|
|
46
|
-
* as the choice context MAY be specific to the choice being exercised.
|
|
47
|
-
*/
|
|
48
|
-
FactoryWithChoiceContext: {
|
|
49
|
-
/** @description The contract ID of the contract implementing the factory interface. */
|
|
50
|
-
factoryId: string;
|
|
51
|
-
choiceContext: components['schemas']['ChoiceContext'];
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* @description The context required to exercise a choice on a contract via an interface.
|
|
55
|
-
* Used to retrieve additional reference date that is passed in via disclosed contracts,
|
|
56
|
-
* which are in turn referred to via their contract ID in the `choiceContextData`.
|
|
57
|
-
*/
|
|
58
|
-
ChoiceContext: {
|
|
59
|
-
/** @description The additional data to use when exercising the choice. */
|
|
60
|
-
choiceContextData: Record<string, never>;
|
|
61
|
-
/**
|
|
62
|
-
* @description The contracts that are required to be disclosed to the participant node for exercising
|
|
63
|
-
* the choice.
|
|
64
|
-
*/
|
|
65
|
-
disclosedContracts: components['schemas']['DisclosedContract'][];
|
|
66
|
-
};
|
|
67
|
-
DisclosedContract: {
|
|
68
|
-
templateId: string;
|
|
69
|
-
contractId: string;
|
|
70
|
-
createdEventBlob: string;
|
|
71
|
-
/**
|
|
72
|
-
* @description The synchronizer to which the contract is currently assigned.
|
|
73
|
-
* If the contract is in the process of being reassigned, then a "409" response is returned.
|
|
74
|
-
*/
|
|
75
|
-
synchronizerId: string;
|
|
76
|
-
/**
|
|
77
|
-
* @description The name of the Daml package that was used to create the contract.
|
|
78
|
-
* Use this data only if you trust the provider, as it might not match the data in the
|
|
79
|
-
* `createdEventBlob`.
|
|
80
|
-
*/
|
|
81
|
-
debugPackageName?: string;
|
|
82
|
-
/**
|
|
83
|
-
* @description The contract arguments that were used to create the contract.
|
|
84
|
-
* Use this data only if you trust the provider, as it might not match the data in the
|
|
85
|
-
* `createdEventBlob`.
|
|
86
|
-
*/
|
|
87
|
-
debugPayload?: Record<string, never>;
|
|
88
|
-
/**
|
|
89
|
-
* Format: date-time
|
|
90
|
-
* @description The ledger effective time at which the contract was created.
|
|
91
|
-
* Use this data only if you trust the provider, as it might not match the data in the
|
|
92
|
-
* `createdEventBlob`.
|
|
93
|
-
*/
|
|
94
|
-
debugCreatedAt?: string;
|
|
95
|
-
};
|
|
96
|
-
ErrorResponse: {
|
|
97
|
-
error: string;
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
responses: {
|
|
101
|
-
/** @description bad request */
|
|
102
|
-
400: {
|
|
103
|
-
headers: {
|
|
104
|
-
[name: string]: unknown;
|
|
105
|
-
};
|
|
106
|
-
content: {
|
|
107
|
-
'application/json': components['schemas']['ErrorResponse'];
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
/** @description not found */
|
|
111
|
-
404: {
|
|
112
|
-
headers: {
|
|
113
|
-
[name: string]: unknown;
|
|
114
|
-
};
|
|
115
|
-
content: {
|
|
116
|
-
'application/json': components['schemas']['ErrorResponse'];
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
parameters: never;
|
|
121
|
-
requestBodies: never;
|
|
122
|
-
headers: never;
|
|
123
|
-
pathItems: never;
|
|
124
|
-
}
|
|
125
|
-
export type $defs = Record<string, never>;
|
|
126
|
-
export interface operations {
|
|
127
|
-
getAllocationFactory: {
|
|
128
|
-
parameters: {
|
|
129
|
-
query?: never;
|
|
130
|
-
header?: never;
|
|
131
|
-
path?: never;
|
|
132
|
-
cookie?: never;
|
|
133
|
-
};
|
|
134
|
-
requestBody: {
|
|
135
|
-
content: {
|
|
136
|
-
'application/json': components['schemas']['GetFactoryRequest'];
|
|
137
|
-
};
|
|
138
|
-
};
|
|
139
|
-
responses: {
|
|
140
|
-
/** @description ok */
|
|
141
|
-
200: {
|
|
142
|
-
headers: {
|
|
143
|
-
[name: string]: unknown;
|
|
144
|
-
};
|
|
145
|
-
content: {
|
|
146
|
-
'application/json': components['schemas']['FactoryWithChoiceContext'];
|
|
147
|
-
};
|
|
148
|
-
};
|
|
149
|
-
400: components['responses']['400'];
|
|
150
|
-
404: components['responses']['404'];
|
|
151
|
-
};
|
|
152
|
-
};
|
|
153
|
-
}
|
|
154
|
-
//# sourceMappingURL=allocation-instruction-v1.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"allocation-instruction-v1.d.ts","sourceRoot":"","sources":["../../../src/generated-clients/splice-api-token-allocation-instruction-v1/allocation-instruction-v1.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,KAAK;IAClB,wDAAwD,EAAE;QACtD,UAAU,EAAE;YACR,KAAK,CAAC,EAAE,KAAK,CAAA;YACb,MAAM,CAAC,EAAE,KAAK,CAAA;YACd,IAAI,CAAC,EAAE,KAAK,CAAA;YACZ,MAAM,CAAC,EAAE,KAAK,CAAA;SACjB,CAAA;QACD,GAAG,CAAC,EAAE,KAAK,CAAA;QACX,GAAG,CAAC,EAAE,KAAK,CAAA;QACX,8HAA8H;QAC9H,IAAI,EAAE,UAAU,CAAC,sBAAsB,CAAC,CAAA;QACxC,MAAM,CAAC,EAAE,KAAK,CAAA;QACd,OAAO,CAAC,EAAE,KAAK,CAAA;QACf,IAAI,CAAC,EAAE,KAAK,CAAA;QACZ,KAAK,CAAC,EAAE,KAAK,CAAA;QACb,KAAK,CAAC,EAAE,KAAK,CAAA;KAChB,CAAA;CACJ;AACD,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;AAC5C,MAAM,WAAW,UAAU;IACvB,OAAO,EAAE;QACL,iBAAiB,EAAE;YACf;;;;;;;;eAQG;YACH,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;YACtC;;;eAGG;YACH,kBAAkB,EAAE,OAAO,CAAA;SAC9B,CAAA;QACD;;;;;;;WAOG;QACH,wBAAwB,EAAE;YACtB,uFAAuF;YACvF,SAAS,EAAE,MAAM,CAAA;YACjB,aAAa,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,eAAe,CAAC,CAAA;SACxD,CAAA;QACD;;;;WAIG;QACH,aAAa,EAAE;YACX,0EAA0E;YAC1E,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CA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,EAAE;QAClB,UAAU,EAAE;YACR,KAAK,CAAC,EAAE,KAAK,CAAA;YACb,MAAM,CAAC,EAAE,KAAK,CAAA;YACd,IAAI,CAAC,EAAE,KAAK,CAAA;YACZ,MAAM,CAAC,EAAE,KAAK,CAAA;SACjB,CAAA;QACD,WAAW,EAAE;YACT,OAAO,EAAE;gBACL,kBAAkB,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,mBAAmB,CAAC,CAAA;aACjE,CAAA;SACJ,CAAA;QACD,SAAS,EAAE;YACP,sBAAsB;YACtB,GAAG,EAAE;gBACD,OAAO,EAAE;oBACL,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;iBAC1B,CAAA;gBACD,OAAO,EAAE;oBACL,kBAAkB,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,0BAA0B,CAAC,CAAA;iBACxE,CAAA;aACJ,CAAA;YACD,GAAG,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAA;YACnC,GAAG,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAA;SACtC,CAAA;KACJ,CAAA;CACJ"}
|
|
@@ -1,234 +0,0 @@
|
|
|
1
|
-
export interface paths {
|
|
2
|
-
'/registry/allocations/v1/{allocationId}/choice-contexts/execute-transfer': {
|
|
3
|
-
parameters: {
|
|
4
|
-
query?: never;
|
|
5
|
-
header?: never;
|
|
6
|
-
path?: never;
|
|
7
|
-
cookie?: never;
|
|
8
|
-
};
|
|
9
|
-
get?: never;
|
|
10
|
-
put?: never;
|
|
11
|
-
/** @description Get the choice context to execute a transfer on an allocation. */
|
|
12
|
-
post: operations['getAllocationTransferContext'];
|
|
13
|
-
delete?: never;
|
|
14
|
-
options?: never;
|
|
15
|
-
head?: never;
|
|
16
|
-
patch?: never;
|
|
17
|
-
trace?: never;
|
|
18
|
-
};
|
|
19
|
-
'/registry/allocations/v1/{allocationId}/choice-contexts/withdraw': {
|
|
20
|
-
parameters: {
|
|
21
|
-
query?: never;
|
|
22
|
-
header?: never;
|
|
23
|
-
path?: never;
|
|
24
|
-
cookie?: never;
|
|
25
|
-
};
|
|
26
|
-
get?: never;
|
|
27
|
-
put?: never;
|
|
28
|
-
/** @description Get the choice context to withdraw an allocation. */
|
|
29
|
-
post: operations['getAllocationWithdrawContext'];
|
|
30
|
-
delete?: never;
|
|
31
|
-
options?: never;
|
|
32
|
-
head?: never;
|
|
33
|
-
patch?: never;
|
|
34
|
-
trace?: never;
|
|
35
|
-
};
|
|
36
|
-
'/registry/allocations/v1/{allocationId}/choice-contexts/cancel': {
|
|
37
|
-
parameters: {
|
|
38
|
-
query?: never;
|
|
39
|
-
header?: never;
|
|
40
|
-
path?: never;
|
|
41
|
-
cookie?: never;
|
|
42
|
-
};
|
|
43
|
-
get?: never;
|
|
44
|
-
put?: never;
|
|
45
|
-
/** @description Get the choice context to cancel an allocation. */
|
|
46
|
-
post: operations['getAllocationCancelContext'];
|
|
47
|
-
delete?: never;
|
|
48
|
-
options?: never;
|
|
49
|
-
head?: never;
|
|
50
|
-
patch?: never;
|
|
51
|
-
trace?: never;
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
export type webhooks = Record<string, never>;
|
|
55
|
-
export interface components {
|
|
56
|
-
schemas: {
|
|
57
|
-
/** @description A request to get the context for executing a choice on a contract. */
|
|
58
|
-
GetChoiceContextRequest: {
|
|
59
|
-
/**
|
|
60
|
-
* @description Metadata that will be passed to the choice, and should be incorporated
|
|
61
|
-
* into the choice context. Provided for extensibility.
|
|
62
|
-
*/
|
|
63
|
-
meta?: {
|
|
64
|
-
[key: string]: string;
|
|
65
|
-
};
|
|
66
|
-
/**
|
|
67
|
-
* @description If set to true, the response will not include fields prefixed with 'debug'. Useful to save bandwidth.
|
|
68
|
-
* @default false
|
|
69
|
-
*/
|
|
70
|
-
excludeDebugFields: boolean;
|
|
71
|
-
};
|
|
72
|
-
/**
|
|
73
|
-
* @description The context required to exercise a choice on a contract via an interface.
|
|
74
|
-
* Used to retrieve additional reference date that is passed in via disclosed contracts,
|
|
75
|
-
* which are in turn referred to via their contract ID in the `choiceContextData`.
|
|
76
|
-
*/
|
|
77
|
-
ChoiceContext: {
|
|
78
|
-
/** @description The additional data to use when exercising the choice. */
|
|
79
|
-
choiceContextData: Record<string, never>;
|
|
80
|
-
/**
|
|
81
|
-
* @description The contracts that are required to be disclosed to the participant node for exercising
|
|
82
|
-
* the choice.
|
|
83
|
-
*/
|
|
84
|
-
disclosedContracts: components['schemas']['DisclosedContract'][];
|
|
85
|
-
};
|
|
86
|
-
DisclosedContract: {
|
|
87
|
-
templateId: string;
|
|
88
|
-
contractId: string;
|
|
89
|
-
createdEventBlob: string;
|
|
90
|
-
/**
|
|
91
|
-
* @description The synchronizer to which the contract is currently assigned.
|
|
92
|
-
* If the contract is in the process of being reassigned, then a "409" response is returned.
|
|
93
|
-
*/
|
|
94
|
-
synchronizerId: string;
|
|
95
|
-
/**
|
|
96
|
-
* @description The name of the Daml package that was used to create the contract.
|
|
97
|
-
* Use this data only if you trust the provider, as it might not match the data in the
|
|
98
|
-
* `createdEventBlob`.
|
|
99
|
-
*/
|
|
100
|
-
debugPackageName?: string;
|
|
101
|
-
/**
|
|
102
|
-
* @description The contract arguments that were used to create the contract.
|
|
103
|
-
* Use this data only if you trust the provider, as it might not match the data in the
|
|
104
|
-
* `createdEventBlob`.
|
|
105
|
-
*/
|
|
106
|
-
debugPayload?: Record<string, never>;
|
|
107
|
-
/**
|
|
108
|
-
* Format: date-time
|
|
109
|
-
* @description The ledger effective time at which the contract was created.
|
|
110
|
-
* Use this data only if you trust the provider, as it might not match the data in the
|
|
111
|
-
* `createdEventBlob`.
|
|
112
|
-
*/
|
|
113
|
-
debugCreatedAt?: string;
|
|
114
|
-
};
|
|
115
|
-
ErrorResponse: {
|
|
116
|
-
error: string;
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
|
-
responses: {
|
|
120
|
-
/** @description bad request */
|
|
121
|
-
400: {
|
|
122
|
-
headers: {
|
|
123
|
-
[name: string]: unknown;
|
|
124
|
-
};
|
|
125
|
-
content: {
|
|
126
|
-
'application/json': components['schemas']['ErrorResponse'];
|
|
127
|
-
};
|
|
128
|
-
};
|
|
129
|
-
/** @description not found */
|
|
130
|
-
404: {
|
|
131
|
-
headers: {
|
|
132
|
-
[name: string]: unknown;
|
|
133
|
-
};
|
|
134
|
-
content: {
|
|
135
|
-
'application/json': components['schemas']['ErrorResponse'];
|
|
136
|
-
};
|
|
137
|
-
};
|
|
138
|
-
};
|
|
139
|
-
parameters: never;
|
|
140
|
-
requestBodies: never;
|
|
141
|
-
headers: never;
|
|
142
|
-
pathItems: never;
|
|
143
|
-
}
|
|
144
|
-
export type $defs = Record<string, never>;
|
|
145
|
-
export interface operations {
|
|
146
|
-
getAllocationTransferContext: {
|
|
147
|
-
parameters: {
|
|
148
|
-
query?: never;
|
|
149
|
-
header?: never;
|
|
150
|
-
path: {
|
|
151
|
-
/** @description The contract ID of the allocation whose transfer the caller wants to execute. */
|
|
152
|
-
allocationId: string;
|
|
153
|
-
};
|
|
154
|
-
cookie?: never;
|
|
155
|
-
};
|
|
156
|
-
requestBody: {
|
|
157
|
-
content: {
|
|
158
|
-
'application/json': components['schemas']['GetChoiceContextRequest'];
|
|
159
|
-
};
|
|
160
|
-
};
|
|
161
|
-
responses: {
|
|
162
|
-
/** @description ok */
|
|
163
|
-
200: {
|
|
164
|
-
headers: {
|
|
165
|
-
[name: string]: unknown;
|
|
166
|
-
};
|
|
167
|
-
content: {
|
|
168
|
-
'application/json': components['schemas']['ChoiceContext'];
|
|
169
|
-
};
|
|
170
|
-
};
|
|
171
|
-
400: components['responses']['400'];
|
|
172
|
-
404: components['responses']['404'];
|
|
173
|
-
};
|
|
174
|
-
};
|
|
175
|
-
getAllocationWithdrawContext: {
|
|
176
|
-
parameters: {
|
|
177
|
-
query?: never;
|
|
178
|
-
header?: never;
|
|
179
|
-
path: {
|
|
180
|
-
/** @description The contract ID of the allocation to withdraw. */
|
|
181
|
-
allocationId: string;
|
|
182
|
-
};
|
|
183
|
-
cookie?: never;
|
|
184
|
-
};
|
|
185
|
-
requestBody: {
|
|
186
|
-
content: {
|
|
187
|
-
'application/json': components['schemas']['GetChoiceContextRequest'];
|
|
188
|
-
};
|
|
189
|
-
};
|
|
190
|
-
responses: {
|
|
191
|
-
/** @description ok */
|
|
192
|
-
200: {
|
|
193
|
-
headers: {
|
|
194
|
-
[name: string]: unknown;
|
|
195
|
-
};
|
|
196
|
-
content: {
|
|
197
|
-
'application/json': components['schemas']['ChoiceContext'];
|
|
198
|
-
};
|
|
199
|
-
};
|
|
200
|
-
400: components['responses']['400'];
|
|
201
|
-
404: components['responses']['404'];
|
|
202
|
-
};
|
|
203
|
-
};
|
|
204
|
-
getAllocationCancelContext: {
|
|
205
|
-
parameters: {
|
|
206
|
-
query?: never;
|
|
207
|
-
header?: never;
|
|
208
|
-
path: {
|
|
209
|
-
/** @description The contract ID of the allocation to cancel. */
|
|
210
|
-
allocationId: string;
|
|
211
|
-
};
|
|
212
|
-
cookie?: never;
|
|
213
|
-
};
|
|
214
|
-
requestBody: {
|
|
215
|
-
content: {
|
|
216
|
-
'application/json': components['schemas']['GetChoiceContextRequest'];
|
|
217
|
-
};
|
|
218
|
-
};
|
|
219
|
-
responses: {
|
|
220
|
-
/** @description ok */
|
|
221
|
-
200: {
|
|
222
|
-
headers: {
|
|
223
|
-
[name: string]: unknown;
|
|
224
|
-
};
|
|
225
|
-
content: {
|
|
226
|
-
'application/json': components['schemas']['ChoiceContext'];
|
|
227
|
-
};
|
|
228
|
-
};
|
|
229
|
-
400: components['responses']['400'];
|
|
230
|
-
404: components['responses']['404'];
|
|
231
|
-
};
|
|
232
|
-
};
|
|
233
|
-
}
|
|
234
|
-
//# sourceMappingURL=allocation-v1.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"allocation-v1.d.ts","sourceRoot":"","sources":["../../../src/generated-clients/splice-api-token-allocation-v1/allocation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