@odatano/core 1.11.0 → 2.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@cds-models/CardanoIndexerService/index.d.ts +142 -0
- package/@cds-models/CardanoIndexerService/index.js +23 -0
- package/@cds-models/CardanoODataService/index.d.ts +693 -2172
- package/@cds-models/CardanoODataService/index.js +88 -390
- package/@cds-models/CardanoSignService/index.d.ts +443 -1574
- package/@cds-models/CardanoSignService/index.js +62 -293
- package/@cds-models/CardanoTransactionService/index.d.ts +431 -1488
- package/@cds-models/CardanoTransactionService/index.js +60 -271
- package/@cds-models/CardanoWorkerService/index.d.ts +224 -0
- package/@cds-models/CardanoWorkerService/index.js +32 -0
- package/@cds-models/_/index.d.ts +70 -40
- package/@cds-models/_/index.js +17 -32
- package/@cds-models/cds/outbox/index.d.ts +28 -0
- package/@cds-models/index.d.ts +225 -522
- package/@cds-models/index.js +35 -218
- package/@cds-models/odatano/cardano/index.d.ts +896 -2947
- package/@cds-models/odatano/cardano/index.js +109 -536
- package/@cds-models/sap/common/index.d.ts +196 -600
- package/@cds-models/sap/common/index.js +28 -269
- package/README.md +136 -102
- package/db/schema.cds +283 -1
- package/db/types.cds +48 -0
- package/package.json +41 -32
- package/src/index.d.ts +1 -1
- package/src/index.js +10 -2
- package/src/plugin.js +12 -2
- package/srv/blockchain/backends/blockfrost-backend.d.ts +21 -2
- package/srv/blockchain/backends/blockfrost-backend.js +68 -15
- package/srv/blockchain/backends/cardano-backend.d.ts +69 -0
- package/srv/blockchain/backends/cardano-backend.js +13 -0
- package/srv/blockchain/backends/koios-backend.d.ts +26 -2
- package/srv/blockchain/backends/koios-backend.js +147 -15
- package/srv/blockchain/backends/ogmios-backend.d.ts +37 -6
- package/srv/blockchain/backends/ogmios-backend.js +254 -5
- package/srv/blockchain/cardano-client.d.ts +19 -0
- package/srv/blockchain/cardano-client.js +36 -0
- package/srv/blockchain/cardano-indexer.d.ts +50 -1
- package/srv/blockchain/cardano-indexer.js +191 -0
- package/srv/blockchain/crawler/crawler.d.ts +151 -0
- package/srv/blockchain/crawler/crawler.js +677 -0
- package/srv/blockchain/crawler/hooks.d.ts +43 -0
- package/srv/blockchain/crawler/hooks.js +62 -0
- package/srv/blockchain/crawler/index.d.ts +26 -0
- package/srv/blockchain/crawler/index.js +135 -0
- package/srv/blockchain/crawler/sync-state.d.ts +94 -0
- package/srv/blockchain/crawler/sync-state.js +265 -0
- package/srv/blockchain/signing/hsm-signer.d.ts +45 -0
- package/srv/blockchain/signing/hsm-signer.js +8 -1
- package/srv/blockchain/wallet-worker/build-request.d.ts +26 -0
- package/srv/blockchain/wallet-worker/build-request.js +341 -0
- package/srv/blockchain/wallet-worker/confirmation-tracker.d.ts +86 -0
- package/srv/blockchain/wallet-worker/confirmation-tracker.js +228 -0
- package/srv/blockchain/wallet-worker/index.d.ts +14 -0
- package/srv/blockchain/wallet-worker/index.js +80 -0
- package/srv/blockchain/wallet-worker/job-store.d.ts +261 -0
- package/srv/blockchain/wallet-worker/job-store.js +564 -0
- package/srv/blockchain/wallet-worker/lease-heartbeat.d.ts +43 -0
- package/srv/blockchain/wallet-worker/lease-heartbeat.js +99 -0
- package/srv/blockchain/wallet-worker/signers.d.ts +57 -0
- package/srv/blockchain/wallet-worker/signers.js +131 -0
- package/srv/blockchain/wallet-worker/wallet-worker.d.ts +145 -0
- package/srv/blockchain/wallet-worker/wallet-worker.js +542 -0
- package/srv/cardano-indexer-service.cds +73 -0
- package/srv/cardano-indexer-service.d.ts +2 -0
- package/srv/cardano-indexer-service.js +76 -0
- package/srv/cardano-service.js +22 -1
- package/srv/cardano-tx-service.d.ts +1 -11
- package/srv/cardano-tx-service.js +11 -162
- package/srv/cardano-worker-service.cds +125 -0
- package/srv/cardano-worker-service.d.ts +2 -0
- package/srv/cardano-worker-service.js +199 -0
- package/srv/server.d.ts +32 -1
- package/srv/server.js +228 -2
- package/srv/utils/collections.d.ts +13 -0
- package/srv/utils/collections.js +24 -0
- package/srv/utils/crypto.d.ts +16 -0
- package/srv/utils/crypto.js +75 -0
- package/srv/utils/error-codes.d.ts +6 -0
- package/srv/utils/error-codes.js +6 -0
- package/srv/utils/errors.d.ts +12 -0
- package/srv/utils/errors.js +45 -0
- package/srv/utils/mappers.js +13 -3
- package/srv/utils/service-events.d.ts +26 -0
- package/srv/utils/service-events.js +46 -0
- package/srv/utils/tx-request-parsers.d.ts +58 -0
- package/srv/utils/tx-request-parsers.js +170 -0
- package/srv/utils/tx-utils.d.ts +2 -1
- package/srv/utils/tx-utils.js +3 -2
- package/srv/utils/types.d.ts +2 -1
- package/@cds-models/CardanoODataService/index.d.ts.map +0 -1
- package/@cds-models/CardanoODataService/index.js.map +0 -1
- package/@cds-models/CardanoODataService/index.ts +0 -776
- package/@cds-models/CardanoSignService/index.d.ts.map +0 -1
- package/@cds-models/CardanoSignService/index.js.map +0 -1
- package/@cds-models/CardanoSignService/index.ts +0 -569
- package/@cds-models/CardanoTransactionService/index.d.ts.map +0 -1
- package/@cds-models/CardanoTransactionService/index.js.map +0 -1
- package/@cds-models/CardanoTransactionService/index.ts +0 -526
- package/@cds-models/_/index.d.ts.map +0 -1
- package/@cds-models/_/index.js.map +0 -1
- package/@cds-models/_/index.ts +0 -96
- package/@cds-models/cds/outbox/index.ts +0 -27
- package/@cds-models/index.d.ts.map +0 -1
- package/@cds-models/index.js.map +0 -1
- package/@cds-models/index.ts +0 -245
- package/@cds-models/odatano/cardano/index.d.ts.map +0 -1
- package/@cds-models/odatano/cardano/index.js.map +0 -1
- package/@cds-models/odatano/cardano/index.ts +0 -789
- package/@cds-models/sap/common/index.d.ts.map +0 -1
- package/@cds-models/sap/common/index.js.map +0 -1
- package/@cds-models/sap/common/index.ts +0 -249
|
@@ -1,271 +1,60 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
})
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
})
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
exports.
|
|
39
|
-
exports.
|
|
40
|
-
|
|
41
|
-
exports.
|
|
42
|
-
exports.
|
|
43
|
-
|
|
44
|
-
exports.
|
|
45
|
-
exports.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
exports.
|
|
49
|
-
exports.
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
class default_1 {
|
|
62
|
-
}
|
|
63
|
-
exports.default = default_1;
|
|
64
|
-
function _TransactionBuildAspect(Base) {
|
|
65
|
-
return class TransactionBuild extends Base {
|
|
66
|
-
static kind = 'entity';
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
class TransactionBuild extends _TransactionBuildAspect(__.Entity) {
|
|
70
|
-
}
|
|
71
|
-
exports.TransactionBuild = TransactionBuild;
|
|
72
|
-
Object.defineProperty(TransactionBuild, 'name', { value: 'CardanoTransactionService.TransactionBuilds' });
|
|
73
|
-
Object.defineProperty(TransactionBuild, 'is_singular', { value: true });
|
|
74
|
-
class TransactionBuilds extends Array {
|
|
75
|
-
$count;
|
|
76
|
-
}
|
|
77
|
-
exports.TransactionBuilds = TransactionBuilds;
|
|
78
|
-
Object.defineProperty(TransactionBuilds, 'name', { value: 'CardanoTransactionService.TransactionBuilds' });
|
|
79
|
-
function _TransactionBuildInputAspect(Base) {
|
|
80
|
-
return class TransactionBuildInput extends Base {
|
|
81
|
-
static kind = 'entity';
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
class TransactionBuildInput extends _TransactionBuildInputAspect(__.Entity) {
|
|
85
|
-
}
|
|
86
|
-
exports.TransactionBuildInput = TransactionBuildInput;
|
|
87
|
-
Object.defineProperty(TransactionBuildInput, 'name', { value: 'CardanoTransactionService.TransactionBuildInputs' });
|
|
88
|
-
Object.defineProperty(TransactionBuildInput, 'is_singular', { value: true });
|
|
89
|
-
class TransactionBuildInputs extends Array {
|
|
90
|
-
$count;
|
|
91
|
-
}
|
|
92
|
-
exports.TransactionBuildInputs = TransactionBuildInputs;
|
|
93
|
-
Object.defineProperty(TransactionBuildInputs, 'name', { value: 'CardanoTransactionService.TransactionBuildInputs' });
|
|
94
|
-
function _TransactionBuildOutputAspect(Base) {
|
|
95
|
-
return class TransactionBuildOutput extends Base {
|
|
96
|
-
static kind = 'entity';
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
class TransactionBuildOutput extends _TransactionBuildOutputAspect(__.Entity) {
|
|
100
|
-
}
|
|
101
|
-
exports.TransactionBuildOutput = TransactionBuildOutput;
|
|
102
|
-
Object.defineProperty(TransactionBuildOutput, 'name', { value: 'CardanoTransactionService.TransactionBuildOutputs' });
|
|
103
|
-
Object.defineProperty(TransactionBuildOutput, 'is_singular', { value: true });
|
|
104
|
-
class TransactionBuildOutputs extends Array {
|
|
105
|
-
$count;
|
|
106
|
-
}
|
|
107
|
-
exports.TransactionBuildOutputs = TransactionBuildOutputs;
|
|
108
|
-
Object.defineProperty(TransactionBuildOutputs, 'name', { value: 'CardanoTransactionService.TransactionBuildOutputs' });
|
|
109
|
-
function _TransactionBuildInputAssetAspect(Base) {
|
|
110
|
-
return class TransactionBuildInputAsset extends Base {
|
|
111
|
-
static kind = 'entity';
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
class TransactionBuildInputAsset extends _TransactionBuildInputAssetAspect(__.Entity) {
|
|
115
|
-
}
|
|
116
|
-
exports.TransactionBuildInputAsset = TransactionBuildInputAsset;
|
|
117
|
-
Object.defineProperty(TransactionBuildInputAsset, 'name', { value: 'CardanoTransactionService.TransactionBuildInputAssets' });
|
|
118
|
-
Object.defineProperty(TransactionBuildInputAsset, 'is_singular', { value: true });
|
|
119
|
-
class TransactionBuildInputAssets extends Array {
|
|
120
|
-
$count;
|
|
121
|
-
}
|
|
122
|
-
exports.TransactionBuildInputAssets = TransactionBuildInputAssets;
|
|
123
|
-
Object.defineProperty(TransactionBuildInputAssets, 'name', { value: 'CardanoTransactionService.TransactionBuildInputAssets' });
|
|
124
|
-
function _TransactionBuildOutputAssetAspect(Base) {
|
|
125
|
-
return class TransactionBuildOutputAsset extends Base {
|
|
126
|
-
static kind = 'entity';
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
class TransactionBuildOutputAsset extends _TransactionBuildOutputAssetAspect(__.Entity) {
|
|
130
|
-
}
|
|
131
|
-
exports.TransactionBuildOutputAsset = TransactionBuildOutputAsset;
|
|
132
|
-
Object.defineProperty(TransactionBuildOutputAsset, 'name', { value: 'CardanoTransactionService.TransactionBuildOutputAssets' });
|
|
133
|
-
Object.defineProperty(TransactionBuildOutputAsset, 'is_singular', { value: true });
|
|
134
|
-
class TransactionBuildOutputAssets extends Array {
|
|
135
|
-
$count;
|
|
136
|
-
}
|
|
137
|
-
exports.TransactionBuildOutputAssets = TransactionBuildOutputAssets;
|
|
138
|
-
Object.defineProperty(TransactionBuildOutputAssets, 'name', { value: 'CardanoTransactionService.TransactionBuildOutputAssets' });
|
|
139
|
-
function _TransactionSubmissionAspect(Base) {
|
|
140
|
-
return class TransactionSubmission extends Base {
|
|
141
|
-
static kind = 'entity';
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
* TransactionSubmissions status flow:
|
|
146
|
-
* pending ──[submit to chain]──→ submitted (internal, in SubmitTransaction handler)
|
|
147
|
-
* submitted ──[CheckSubmissionStatus]──→ confirmed | stays submitted (conditional)
|
|
148
|
-
* pending | submitted ──→ failed (blockchain error)
|
|
149
|
-
*/
|
|
150
|
-
class TransactionSubmission extends _TransactionSubmissionAspect(__.Entity) {
|
|
151
|
-
}
|
|
152
|
-
exports.TransactionSubmission = TransactionSubmission;
|
|
153
|
-
Object.defineProperty(TransactionSubmission, 'name', { value: 'CardanoTransactionService.TransactionSubmissions' });
|
|
154
|
-
Object.defineProperty(TransactionSubmission, 'is_singular', { value: true });
|
|
155
|
-
/**
|
|
156
|
-
* TransactionSubmissions status flow:
|
|
157
|
-
* pending ──[submit to chain]──→ submitted (internal, in SubmitTransaction handler)
|
|
158
|
-
* submitted ──[CheckSubmissionStatus]──→ confirmed | stays submitted (conditional)
|
|
159
|
-
* pending | submitted ──→ failed (blockchain error)
|
|
160
|
-
*/
|
|
161
|
-
class TransactionSubmissions extends Array {
|
|
162
|
-
$count;
|
|
163
|
-
}
|
|
164
|
-
exports.TransactionSubmissions = TransactionSubmissions;
|
|
165
|
-
Object.defineProperty(TransactionSubmissions, 'name', { value: 'CardanoTransactionService.TransactionSubmissions' });
|
|
166
|
-
function _TransactionSubmissionErrorAspect(Base) {
|
|
167
|
-
return class TransactionSubmissionError extends Base {
|
|
168
|
-
static kind = 'entity';
|
|
169
|
-
};
|
|
170
|
-
}
|
|
171
|
-
class TransactionSubmissionError extends _TransactionSubmissionErrorAspect(__.Entity) {
|
|
172
|
-
}
|
|
173
|
-
exports.TransactionSubmissionError = TransactionSubmissionError;
|
|
174
|
-
Object.defineProperty(TransactionSubmissionError, 'name', { value: 'CardanoTransactionService.TransactionSubmissionErrors' });
|
|
175
|
-
Object.defineProperty(TransactionSubmissionError, 'is_singular', { value: true });
|
|
176
|
-
class TransactionSubmissionErrors extends Array {
|
|
177
|
-
$count;
|
|
178
|
-
}
|
|
179
|
-
exports.TransactionSubmissionErrors = TransactionSubmissionErrors;
|
|
180
|
-
Object.defineProperty(TransactionSubmissionErrors, 'name', { value: 'CardanoTransactionService.TransactionSubmissionErrors' });
|
|
181
|
-
function _AddressTransactionBuildAspect(Base) {
|
|
182
|
-
return class AddressTransactionBuild extends Base {
|
|
183
|
-
static kind = 'entity';
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
|
-
class AddressTransactionBuild extends _AddressTransactionBuildAspect(__.Entity) {
|
|
187
|
-
}
|
|
188
|
-
exports.AddressTransactionBuild = AddressTransactionBuild;
|
|
189
|
-
Object.defineProperty(AddressTransactionBuild, 'name', { value: 'CardanoTransactionService.AddressTransactionBuilds' });
|
|
190
|
-
Object.defineProperty(AddressTransactionBuild, 'is_singular', { value: true });
|
|
191
|
-
class AddressTransactionBuilds extends Array {
|
|
192
|
-
$count;
|
|
193
|
-
}
|
|
194
|
-
exports.AddressTransactionBuilds = AddressTransactionBuilds;
|
|
195
|
-
Object.defineProperty(AddressTransactionBuilds, 'name', { value: 'CardanoTransactionService.AddressTransactionBuilds' });
|
|
196
|
-
function _AddressAspect(Base) {
|
|
197
|
-
return class Address extends Base {
|
|
198
|
-
static kind = 'entity';
|
|
199
|
-
};
|
|
200
|
-
}
|
|
201
|
-
class Address extends _AddressAspect(__.Entity) {
|
|
202
|
-
}
|
|
203
|
-
exports.Address = Address;
|
|
204
|
-
Object.defineProperty(Address, 'name', { value: 'CardanoTransactionService.Addresses' });
|
|
205
|
-
Object.defineProperty(Address, 'is_singular', { value: true });
|
|
206
|
-
class Addresses extends Array {
|
|
207
|
-
$count;
|
|
208
|
-
}
|
|
209
|
-
exports.Addresses = Addresses;
|
|
210
|
-
Object.defineProperty(Addresses, 'name', { value: 'CardanoTransactionService.Addresses' });
|
|
211
|
-
function _AddressTransactionAspect(Base) {
|
|
212
|
-
return class AddressTransaction extends Base {
|
|
213
|
-
static kind = 'entity';
|
|
214
|
-
};
|
|
215
|
-
}
|
|
216
|
-
class AddressTransaction extends _AddressTransactionAspect(__.Entity) {
|
|
217
|
-
}
|
|
218
|
-
exports.AddressTransaction = AddressTransaction;
|
|
219
|
-
Object.defineProperty(AddressTransaction, 'name', { value: 'CardanoTransactionService.AddressTransactions' });
|
|
220
|
-
Object.defineProperty(AddressTransaction, 'is_singular', { value: true });
|
|
221
|
-
class AddressTransactions extends Array {
|
|
222
|
-
$count;
|
|
223
|
-
}
|
|
224
|
-
exports.AddressTransactions = AddressTransactions;
|
|
225
|
-
Object.defineProperty(AddressTransactions, 'name', { value: 'CardanoTransactionService.AddressTransactions' });
|
|
226
|
-
function _AddressAssetAspect(Base) {
|
|
227
|
-
return class AddressAsset extends Base {
|
|
228
|
-
static kind = 'entity';
|
|
229
|
-
};
|
|
230
|
-
}
|
|
231
|
-
class AddressAsset extends _AddressAssetAspect(__.Entity) {
|
|
232
|
-
}
|
|
233
|
-
exports.AddressAsset = AddressAsset;
|
|
234
|
-
Object.defineProperty(AddressAsset, 'name', { value: 'CardanoTransactionService.AddressAssets' });
|
|
235
|
-
Object.defineProperty(AddressAsset, 'is_singular', { value: true });
|
|
236
|
-
class AddressAssets extends Array {
|
|
237
|
-
$count;
|
|
238
|
-
}
|
|
239
|
-
exports.AddressAssets = AddressAssets;
|
|
240
|
-
Object.defineProperty(AddressAssets, 'name', { value: 'CardanoTransactionService.AddressAssets' });
|
|
241
|
-
function _AddressUTxOAspect(Base) {
|
|
242
|
-
return class AddressUTxO extends Base {
|
|
243
|
-
static kind = 'entity';
|
|
244
|
-
};
|
|
245
|
-
}
|
|
246
|
-
class AddressUTxO extends _AddressUTxOAspect(__.Entity) {
|
|
247
|
-
}
|
|
248
|
-
exports.AddressUTxO = AddressUTxO;
|
|
249
|
-
Object.defineProperty(AddressUTxO, 'name', { value: 'CardanoTransactionService.AddressUTxOs' });
|
|
250
|
-
Object.defineProperty(AddressUTxO, 'is_singular', { value: true });
|
|
251
|
-
class AddressUTxOs extends Array {
|
|
252
|
-
$count;
|
|
253
|
-
}
|
|
254
|
-
exports.AddressUTxOs = AddressUTxOs;
|
|
255
|
-
Object.defineProperty(AddressUTxOs, 'name', { value: 'CardanoTransactionService.AddressUTxOs' });
|
|
256
|
-
function _UTxOAssetAspect(Base) {
|
|
257
|
-
return class UTxOAsset extends Base {
|
|
258
|
-
static kind = 'entity';
|
|
259
|
-
};
|
|
260
|
-
}
|
|
261
|
-
class UTxOAsset extends _UTxOAssetAspect(__.Entity) {
|
|
262
|
-
}
|
|
263
|
-
exports.UTxOAsset = UTxOAsset;
|
|
264
|
-
Object.defineProperty(UTxOAsset, 'name', { value: 'CardanoTransactionService.UTxOAssets' });
|
|
265
|
-
Object.defineProperty(UTxOAsset, 'is_singular', { value: true });
|
|
266
|
-
class UTxOAssets extends Array {
|
|
267
|
-
$count;
|
|
268
|
-
}
|
|
269
|
-
exports.UTxOAssets = UTxOAssets;
|
|
270
|
-
Object.defineProperty(UTxOAssets, 'name', { value: 'CardanoTransactionService.UTxOAssets' });
|
|
271
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
// This is an automatically generated file. Please do not change its contents manually!
|
|
2
|
+
const { createEntityProxy } = require('./../_')
|
|
3
|
+
// service
|
|
4
|
+
const CardanoTransactionService = { name: 'CardanoTransactionService' }
|
|
5
|
+
module.exports = CardanoTransactionService
|
|
6
|
+
module.exports.CardanoTransactionService = CardanoTransactionService
|
|
7
|
+
// TransactionBuilds
|
|
8
|
+
module.exports.TransactionBuild = createEntityProxy(['CardanoTransactionService', 'TransactionBuilds'], { target: { is_singular: true } })
|
|
9
|
+
module.exports.TransactionBuilds = createEntityProxy(['CardanoTransactionService', 'TransactionBuilds'], { target: { is_singular: false }})
|
|
10
|
+
// TransactionBuildInputs
|
|
11
|
+
module.exports.TransactionBuildInput = createEntityProxy(['CardanoTransactionService', 'TransactionBuildInputs'], { target: { is_singular: true } })
|
|
12
|
+
module.exports.TransactionBuildInputs = createEntityProxy(['CardanoTransactionService', 'TransactionBuildInputs'], { target: { is_singular: false }})
|
|
13
|
+
// TransactionBuildOutputs
|
|
14
|
+
module.exports.TransactionBuildOutput = createEntityProxy(['CardanoTransactionService', 'TransactionBuildOutputs'], { target: { is_singular: true } })
|
|
15
|
+
module.exports.TransactionBuildOutputs = createEntityProxy(['CardanoTransactionService', 'TransactionBuildOutputs'], { target: { is_singular: false }})
|
|
16
|
+
// TransactionBuildInputAssets
|
|
17
|
+
module.exports.TransactionBuildInputAsset = createEntityProxy(['CardanoTransactionService', 'TransactionBuildInputAssets'], { target: { is_singular: true } })
|
|
18
|
+
module.exports.TransactionBuildInputAssets = createEntityProxy(['CardanoTransactionService', 'TransactionBuildInputAssets'], { target: { is_singular: false }})
|
|
19
|
+
// TransactionBuildOutputAssets
|
|
20
|
+
module.exports.TransactionBuildOutputAsset = createEntityProxy(['CardanoTransactionService', 'TransactionBuildOutputAssets'], { target: { is_singular: true } })
|
|
21
|
+
module.exports.TransactionBuildOutputAssets = createEntityProxy(['CardanoTransactionService', 'TransactionBuildOutputAssets'], { target: { is_singular: false }})
|
|
22
|
+
// TransactionSubmissions
|
|
23
|
+
module.exports.TransactionSubmission = createEntityProxy(['CardanoTransactionService', 'TransactionSubmissions'], { target: { is_singular: true } })
|
|
24
|
+
module.exports.TransactionSubmissions = createEntityProxy(['CardanoTransactionService', 'TransactionSubmissions'], { target: { is_singular: false }})
|
|
25
|
+
// TransactionSubmissionErrors
|
|
26
|
+
module.exports.TransactionSubmissionError = createEntityProxy(['CardanoTransactionService', 'TransactionSubmissionErrors'], { target: { is_singular: true } })
|
|
27
|
+
module.exports.TransactionSubmissionErrors = createEntityProxy(['CardanoTransactionService', 'TransactionSubmissionErrors'], { target: { is_singular: false }})
|
|
28
|
+
// AddressTransactionBuilds
|
|
29
|
+
module.exports.AddressTransactionBuild = createEntityProxy(['CardanoTransactionService', 'AddressTransactionBuilds'], { target: { is_singular: true } })
|
|
30
|
+
module.exports.AddressTransactionBuilds = createEntityProxy(['CardanoTransactionService', 'AddressTransactionBuilds'], { target: { is_singular: false }})
|
|
31
|
+
// Addresses
|
|
32
|
+
module.exports.Address = createEntityProxy(['CardanoTransactionService', 'Addresses'], { target: { is_singular: true } })
|
|
33
|
+
module.exports.Addresses = createEntityProxy(['CardanoTransactionService', 'Addresses'], { target: { is_singular: false }})
|
|
34
|
+
// AddressTransactions
|
|
35
|
+
module.exports.AddressTransaction = createEntityProxy(['CardanoTransactionService', 'AddressTransactions'], { target: { is_singular: true } })
|
|
36
|
+
module.exports.AddressTransactions = createEntityProxy(['CardanoTransactionService', 'AddressTransactions'], { target: { is_singular: false }})
|
|
37
|
+
// AddressAssets
|
|
38
|
+
module.exports.AddressAsset = createEntityProxy(['CardanoTransactionService', 'AddressAssets'], { target: { is_singular: true } })
|
|
39
|
+
module.exports.AddressAssets = createEntityProxy(['CardanoTransactionService', 'AddressAssets'], { target: { is_singular: false }})
|
|
40
|
+
// AddressUTxOs
|
|
41
|
+
module.exports.AddressUTxO = createEntityProxy(['CardanoTransactionService', 'AddressUTxOs'], { target: { is_singular: true } })
|
|
42
|
+
module.exports.AddressUTxOs = createEntityProxy(['CardanoTransactionService', 'AddressUTxOs'], { target: { is_singular: false }})
|
|
43
|
+
// UTxOAssets
|
|
44
|
+
module.exports.UTxOAsset = createEntityProxy(['CardanoTransactionService', 'UTxOAssets'], { target: { is_singular: true } })
|
|
45
|
+
module.exports.UTxOAssets = createEntityProxy(['CardanoTransactionService', 'UTxOAssets'], { target: { is_singular: false }})
|
|
46
|
+
// events
|
|
47
|
+
// actions
|
|
48
|
+
module.exports.BuildSimpleAdaTransaction = 'BuildSimpleAdaTransaction'
|
|
49
|
+
module.exports.BuildTransactionWithMetadata = 'BuildTransactionWithMetadata'
|
|
50
|
+
module.exports.BuildMultiAssetTransaction = 'BuildMultiAssetTransaction'
|
|
51
|
+
module.exports.BuildMintTransaction = 'BuildMintTransaction'
|
|
52
|
+
module.exports.GetBuildDetails = 'GetBuildDetails'
|
|
53
|
+
module.exports.SubmitTransaction = 'SubmitTransaction'
|
|
54
|
+
module.exports.SubmitSignedTransaction = 'SubmitSignedTransaction'
|
|
55
|
+
module.exports.BuildPlutusSpendTransaction = 'BuildPlutusSpendTransaction'
|
|
56
|
+
module.exports.SetCollateral = 'SetCollateral'
|
|
57
|
+
module.exports.GetTransactionBuildsByAddress = 'GetTransactionBuildsByAddress'
|
|
58
|
+
module.exports.DeriveScriptAddress = 'DeriveScriptAddress'
|
|
59
|
+
module.exports.ExtractPaymentKeyHash = 'ExtractPaymentKeyHash'
|
|
60
|
+
// enums
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
// This is an automatically generated file. Please do not change its contents manually!
|
|
2
|
+
import * as _ from './..';
|
|
3
|
+
import * as __ from './../_';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Cardano Wallet Worker Service (v2.0)
|
|
7
|
+
*
|
|
8
|
+
* Control + observability surface for the wallet worker / job engine:
|
|
9
|
+
* - job submission (async build → sign → submit → confirm from server-side wallets)
|
|
10
|
+
* - job status polling + cancellation
|
|
11
|
+
* - read-only projections of jobs and registered worker wallets
|
|
12
|
+
* - pause/resume of the local worker instance (admin)
|
|
13
|
+
*
|
|
14
|
+
* Security note: SubmitWalletJob executes value transfers with server-held keys —
|
|
15
|
+
* the service requires authentication throughout; control actions and foreign-job
|
|
16
|
+
* visibility are gated behind the Admin role. Jobs on HSM-backed wallets addition-
|
|
17
|
+
* ally require the configured hsm.requiresRole (HSM_REQUIRES_ROLE), the same gate
|
|
18
|
+
* the synchronous SignWithHsm path enforces. Keys are NEVER accepted or exposed
|
|
19
|
+
* through this surface.
|
|
20
|
+
*/
|
|
21
|
+
export default class {
|
|
22
|
+
static readonly SubmitWalletJob: typeof SubmitWalletJob;
|
|
23
|
+
static readonly CancelJob: typeof CancelJob;
|
|
24
|
+
static readonly GetJobStatus: typeof GetJobStatus;
|
|
25
|
+
static readonly GetWorkerStatus: typeof GetWorkerStatus;
|
|
26
|
+
static readonly PauseWorker: typeof PauseWorker;
|
|
27
|
+
static readonly ResumeWorker: typeof ResumeWorker;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// entity 'WalletJob'
|
|
31
|
+
export declare function _WalletJobAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
32
|
+
new (...args: any[]): {
|
|
33
|
+
ID?: __.Key<string>
|
|
34
|
+
walletId?: string | null
|
|
35
|
+
kind?: _.WalletJobKind | null
|
|
36
|
+
status?: _.WalletJobStatus | null
|
|
37
|
+
idempotencyKey?: string | null
|
|
38
|
+
request?: string | null
|
|
39
|
+
priority?: number | null
|
|
40
|
+
notBefore?: __.CdsTimestamp | null
|
|
41
|
+
attempt?: number | null
|
|
42
|
+
maxAttempts?: number | null
|
|
43
|
+
txHash?: _.Blake2b256 | null
|
|
44
|
+
unsignedTxCbor?: string | null
|
|
45
|
+
signedTxCbor?: string | null
|
|
46
|
+
fee?: _.Lovelace | null
|
|
47
|
+
submittedAt?: __.CdsTimestamp | null
|
|
48
|
+
confirmedAt?: __.CdsTimestamp | null
|
|
49
|
+
confirmedSlot?: number | null
|
|
50
|
+
confirmedHeight?: number | null
|
|
51
|
+
errorCode?: string | null
|
|
52
|
+
errorMessage?: string | null
|
|
53
|
+
createdAt?: __.CdsTimestamp | null
|
|
54
|
+
createdBy?: string | null
|
|
55
|
+
finishedAt?: __.CdsTimestamp | null
|
|
56
|
+
} & InstanceType<TBase>
|
|
57
|
+
readonly kind: 'entity';
|
|
58
|
+
readonly keys: __.KeysOf<WalletJob>;
|
|
59
|
+
readonly elements: __.ElementsOf<WalletJob>;
|
|
60
|
+
readonly actions: globalThis.Record<never, never>;
|
|
61
|
+
};
|
|
62
|
+
export class WalletJob extends _WalletJobAspect(__.Entity) {
|
|
63
|
+
}
|
|
64
|
+
export class WalletJobs extends Array<WalletJob> {
|
|
65
|
+
$count?: number
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// entity 'WorkerWallet'
|
|
69
|
+
export declare function _WorkerWalletAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
70
|
+
new (...args: any[]): {
|
|
71
|
+
walletId?: __.Key<string>
|
|
72
|
+
signerType?: _.WorkerSignerType | null
|
|
73
|
+
address?: _.Bech32 | null
|
|
74
|
+
publicKeyHash?: _.Blake2b224 | null
|
|
75
|
+
enabled?: boolean | null
|
|
76
|
+
lastJobAt?: __.CdsTimestamp | null
|
|
77
|
+
jobsConfirmed?: number | null
|
|
78
|
+
jobsFailed?: number | null
|
|
79
|
+
} & InstanceType<TBase>
|
|
80
|
+
readonly kind: 'entity';
|
|
81
|
+
readonly keys: __.KeysOf<WorkerWallet>;
|
|
82
|
+
readonly elements: __.ElementsOf<WorkerWallet>;
|
|
83
|
+
readonly actions: globalThis.Record<never, never>;
|
|
84
|
+
};
|
|
85
|
+
export class WorkerWallet extends _WorkerWalletAspect(__.Entity) {
|
|
86
|
+
}
|
|
87
|
+
export class WorkerWallets extends Array<WorkerWallet> {
|
|
88
|
+
$count?: number
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// entity 'JobSubmissionResult'
|
|
92
|
+
export declare function _JobSubmissionResultAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
93
|
+
new (...args: any[]): {
|
|
94
|
+
jobId?: string | null
|
|
95
|
+
status?: string | null
|
|
96
|
+
deduplicated?: boolean | null
|
|
97
|
+
} & InstanceType<TBase>
|
|
98
|
+
readonly kind: 'type';
|
|
99
|
+
readonly keys: __.KeysOf<JobSubmissionResult>;
|
|
100
|
+
readonly elements: __.ElementsOf<JobSubmissionResult>;
|
|
101
|
+
readonly actions: globalThis.Record<never, never>;
|
|
102
|
+
};
|
|
103
|
+
export class JobSubmissionResult extends _JobSubmissionResultAspect(__.Entity) {
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// entity 'JobStatus'
|
|
107
|
+
export declare function _JobStatusAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
108
|
+
new (...args: any[]): {
|
|
109
|
+
jobId?: string | null
|
|
110
|
+
walletId?: string | null
|
|
111
|
+
kind?: string | null
|
|
112
|
+
status?: string | null
|
|
113
|
+
attempt?: number | null
|
|
114
|
+
txHash?: string | null
|
|
115
|
+
fee?: string | null
|
|
116
|
+
errorCode?: string | null
|
|
117
|
+
errorMessage?: string | null
|
|
118
|
+
submittedAt?: __.CdsTimestamp | null
|
|
119
|
+
confirmedAt?: __.CdsTimestamp | null
|
|
120
|
+
finishedAt?: __.CdsTimestamp | null
|
|
121
|
+
} & InstanceType<TBase>
|
|
122
|
+
readonly kind: 'type';
|
|
123
|
+
readonly keys: __.KeysOf<JobStatus>;
|
|
124
|
+
readonly elements: __.ElementsOf<JobStatus>;
|
|
125
|
+
readonly actions: globalThis.Record<never, never>;
|
|
126
|
+
};
|
|
127
|
+
export class JobStatus extends _JobStatusAspect(__.Entity) {
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// entity 'WorkerStatus'
|
|
131
|
+
export declare function _WorkerStatusAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
132
|
+
new (...args: any[]): {
|
|
133
|
+
running?: boolean | null
|
|
134
|
+
wallets?: Array<string>
|
|
135
|
+
executing?: Array<string>
|
|
136
|
+
awaitingConfirmation?: number | null
|
|
137
|
+
pendingJobs?: number | null
|
|
138
|
+
} & InstanceType<TBase>
|
|
139
|
+
readonly kind: 'type';
|
|
140
|
+
readonly keys: __.KeysOf<WorkerStatus>;
|
|
141
|
+
readonly elements: __.ElementsOf<WorkerStatus>;
|
|
142
|
+
readonly actions: globalThis.Record<never, never>;
|
|
143
|
+
};
|
|
144
|
+
export class WorkerStatus extends _WorkerStatusAspect(__.Entity) {
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// event
|
|
148
|
+
export declare class jobConfirmed {
|
|
149
|
+
readonly kind: 'event';
|
|
150
|
+
jobId: string | null
|
|
151
|
+
walletId: string | null
|
|
152
|
+
kind: string | null
|
|
153
|
+
txHash: string | null
|
|
154
|
+
}
|
|
155
|
+
// event
|
|
156
|
+
export declare class jobFailed {
|
|
157
|
+
readonly kind: 'event';
|
|
158
|
+
jobId: string | null
|
|
159
|
+
walletId: string | null
|
|
160
|
+
kind: string | null
|
|
161
|
+
txHash: string | null
|
|
162
|
+
errorCode: string | null
|
|
163
|
+
errorMessage: string | null
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export declare const SubmitWalletJob: {
|
|
167
|
+
// positional
|
|
168
|
+
(walletId: string | null, kind: string | null, requestJson: string | null, idempotencyKey: string | null, priority: number | null, notBefore: __.CdsTimestamp | null): globalThis.Promise<JobSubmissionResult | null> | JobSubmissionResult | null
|
|
169
|
+
// named
|
|
170
|
+
({walletId, kind, requestJson, idempotencyKey, priority, notBefore}: {walletId?: string | null, kind?: string | null, requestJson?: string | null, idempotencyKey?: string | null, priority?: number | null, notBefore?: __.CdsTimestamp | null}): globalThis.Promise<JobSubmissionResult | null> | JobSubmissionResult | null
|
|
171
|
+
// metadata (do not use)
|
|
172
|
+
__parameters: {walletId?: string | null, kind?: string | null, requestJson?: string | null, idempotencyKey?: string | null, priority?: number | null, notBefore?: __.CdsTimestamp | null}, __returns: globalThis.Promise<JobSubmissionResult | null> | JobSubmissionResult | null, __self: never
|
|
173
|
+
kind: 'action'
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export declare const CancelJob: {
|
|
177
|
+
// positional
|
|
178
|
+
(jobId: string | null): globalThis.Promise<boolean | null> | boolean | null
|
|
179
|
+
// named
|
|
180
|
+
({jobId}: {jobId?: string | null}): globalThis.Promise<boolean | null> | boolean | null
|
|
181
|
+
// metadata (do not use)
|
|
182
|
+
__parameters: {jobId?: string | null}, __returns: globalThis.Promise<boolean | null> | boolean | null, __self: never
|
|
183
|
+
kind: 'action'
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export declare const GetJobStatus: {
|
|
187
|
+
// positional
|
|
188
|
+
(jobId: string | null): globalThis.Promise<JobStatus | null> | JobStatus | null
|
|
189
|
+
// named
|
|
190
|
+
({jobId}: {jobId?: string | null}): globalThis.Promise<JobStatus | null> | JobStatus | null
|
|
191
|
+
// metadata (do not use)
|
|
192
|
+
__parameters: {jobId?: string | null}, __returns: globalThis.Promise<JobStatus | null> | JobStatus | null, __self: never
|
|
193
|
+
kind: 'function'
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export declare const GetWorkerStatus: {
|
|
197
|
+
// positional
|
|
198
|
+
(): globalThis.Promise<WorkerStatus | null> | WorkerStatus | null
|
|
199
|
+
// named
|
|
200
|
+
({}: globalThis.Record<never, never>): globalThis.Promise<WorkerStatus | null> | WorkerStatus | null
|
|
201
|
+
// metadata (do not use)
|
|
202
|
+
__parameters: globalThis.Record<never, never>, __returns: globalThis.Promise<WorkerStatus | null> | WorkerStatus | null, __self: never
|
|
203
|
+
kind: 'function'
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export declare const PauseWorker: {
|
|
207
|
+
// positional
|
|
208
|
+
(): globalThis.Promise<boolean | null> | boolean | null
|
|
209
|
+
// named
|
|
210
|
+
({}: globalThis.Record<never, never>): globalThis.Promise<boolean | null> | boolean | null
|
|
211
|
+
// metadata (do not use)
|
|
212
|
+
__parameters: globalThis.Record<never, never>, __returns: globalThis.Promise<boolean | null> | boolean | null, __self: never
|
|
213
|
+
kind: 'action'
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export declare const ResumeWorker: {
|
|
217
|
+
// positional
|
|
218
|
+
(): globalThis.Promise<boolean | null> | boolean | null
|
|
219
|
+
// named
|
|
220
|
+
({}: globalThis.Record<never, never>): globalThis.Promise<boolean | null> | boolean | null
|
|
221
|
+
// metadata (do not use)
|
|
222
|
+
__parameters: globalThis.Record<never, never>, __returns: globalThis.Promise<boolean | null> | boolean | null, __self: never
|
|
223
|
+
kind: 'action'
|
|
224
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// This is an automatically generated file. Please do not change its contents manually!
|
|
2
|
+
const { createEntityProxy } = require('./../_')
|
|
3
|
+
// service
|
|
4
|
+
const CardanoWorkerService = { name: 'CardanoWorkerService' }
|
|
5
|
+
module.exports = CardanoWorkerService
|
|
6
|
+
module.exports.CardanoWorkerService = CardanoWorkerService
|
|
7
|
+
// WalletJobs
|
|
8
|
+
module.exports.WalletJob = createEntityProxy(['CardanoWorkerService', 'WalletJobs'], { target: { is_singular: true } })
|
|
9
|
+
module.exports.WalletJobs = createEntityProxy(['CardanoWorkerService', 'WalletJobs'], { target: { is_singular: false }})
|
|
10
|
+
// WorkerWallets
|
|
11
|
+
module.exports.WorkerWallet = createEntityProxy(['CardanoWorkerService', 'WorkerWallets'], { target: { is_singular: true } })
|
|
12
|
+
module.exports.WorkerWallets = createEntityProxy(['CardanoWorkerService', 'WorkerWallets'], { target: { is_singular: false }})
|
|
13
|
+
// JobSubmissionResult
|
|
14
|
+
module.exports.JobSubmissionResult = createEntityProxy(['CardanoWorkerService', 'JobSubmissionResult'], { target: { is_singular: true } })
|
|
15
|
+
module.exports.__Array_JobSubmissionResult_ = createEntityProxy(['CardanoWorkerService', 'JobSubmissionResult'], { target: { is_singular: false }})
|
|
16
|
+
// JobStatus
|
|
17
|
+
module.exports.JobStatus = createEntityProxy(['CardanoWorkerService', 'JobStatus'], { target: { is_singular: true } })
|
|
18
|
+
module.exports.__Array_JobStatus_ = createEntityProxy(['CardanoWorkerService', 'JobStatus'], { target: { is_singular: false }})
|
|
19
|
+
// WorkerStatus
|
|
20
|
+
module.exports.WorkerStatus = createEntityProxy(['CardanoWorkerService', 'WorkerStatus'], { target: { is_singular: true } })
|
|
21
|
+
module.exports.__Array_WorkerStatus_ = createEntityProxy(['CardanoWorkerService', 'WorkerStatus'], { target: { is_singular: false }})
|
|
22
|
+
// events
|
|
23
|
+
module.exports.jobConfirmed = 'CardanoWorkerService.jobConfirmed'
|
|
24
|
+
module.exports.jobFailed = 'CardanoWorkerService.jobFailed'
|
|
25
|
+
// actions
|
|
26
|
+
module.exports.SubmitWalletJob = 'SubmitWalletJob'
|
|
27
|
+
module.exports.CancelJob = 'CancelJob'
|
|
28
|
+
module.exports.GetJobStatus = 'GetJobStatus'
|
|
29
|
+
module.exports.GetWorkerStatus = 'GetWorkerStatus'
|
|
30
|
+
module.exports.PauseWorker = 'PauseWorker'
|
|
31
|
+
module.exports.ResumeWorker = 'ResumeWorker'
|
|
32
|
+
// enums
|