@odatano/core 2.0.0-rc.5 → 2.0.0-rc.50
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/CardanoAgentService/index.d.ts +99 -51
- package/@cds-models/CardanoAgentService/index.js +15 -0
- package/@cds-models/CardanoBackendService/index.d.ts +347 -0
- package/@cds-models/CardanoBackendService/index.js +40 -0
- package/@cds-models/CardanoIndexerService/index.d.ts +496 -11
- package/@cds-models/CardanoIndexerService/index.js +64 -0
- package/@cds-models/CardanoODataService/index.d.ts +414 -57
- package/@cds-models/CardanoODataService/index.js +42 -0
- package/@cds-models/CardanoSignService/index.d.ts +32 -19
- package/@cds-models/CardanoSignService/index.js +3 -0
- package/@cds-models/CardanoTransactionService/index.d.ts +58 -44
- package/@cds-models/CardanoTransactionService/index.js +4 -0
- package/@cds-models/CardanoWorkerService/index.d.ts +7 -22
- package/@cds-models/index.d.ts +101 -1
- package/@cds-models/index.js +16 -1
- package/@cds-models/odatano/cardano/index.d.ts +437 -32
- package/@cds-models/odatano/cardano/index.js +48 -0
- package/README.md +207 -167
- package/db/schema.cds +2402 -1705
- package/db/types.cds +446 -295
- package/package.json +41 -16
- package/scripts/migrate-schema.mjs +334 -0
- package/scripts/migrate-slot-leader.mjs +96 -0
- package/src/index.d.ts +20 -21
- package/src/index.js +45 -31
- package/src/plugin.js +17 -35
- package/srv/blockchain/asset-decimals.d.ts +7 -0
- package/srv/blockchain/asset-decimals.js +91 -0
- package/srv/blockchain/backends/blockfrost-backend.d.ts +25 -135
- package/srv/blockchain/backends/blockfrost-backend.js +66 -172
- package/srv/blockchain/backends/cardano-backend.d.ts +94 -186
- package/srv/blockchain/backends/cardano-backend.js +29 -5
- package/srv/blockchain/backends/koios-backend.d.ts +103 -168
- package/srv/blockchain/backends/koios-backend.js +428 -360
- package/srv/blockchain/backends/odatano-backend.d.ts +54 -0
- package/srv/blockchain/backends/odatano-backend.js +169 -0
- package/srv/blockchain/backends/ogmios-backend.d.ts +123 -190
- package/srv/blockchain/backends/ogmios-backend.js +637 -315
- package/srv/blockchain/backends/ogmios-frame-guard.d.ts +14 -0
- package/srv/blockchain/backends/ogmios-frame-guard.js +89 -0
- package/srv/blockchain/cardano-client.d.ts +61 -241
- package/srv/blockchain/cardano-client.js +253 -293
- package/srv/blockchain/cardano-indexer.d.ts +282 -281
- package/srv/blockchain/cardano-indexer.js +1551 -484
- package/srv/blockchain/cardano-tx-builder.d.ts +25 -89
- package/srv/blockchain/cardano-tx-builder.js +164 -140
- package/srv/blockchain/circuit-breaker.d.ts +1 -13
- package/srv/blockchain/circuit-breaker.js +5 -15
- package/srv/blockchain/crawler/account-snapshots.d.ts +29 -0
- package/srv/blockchain/crawler/account-snapshots.js +153 -0
- package/srv/blockchain/crawler/asset-decimals-backfill.d.ts +15 -0
- package/srv/blockchain/crawler/asset-decimals-backfill.js +56 -0
- package/srv/blockchain/crawler/asset-registry-backfill.d.ts +43 -0
- package/srv/blockchain/crawler/asset-registry-backfill.js +153 -0
- package/srv/blockchain/crawler/certificate-backfill.d.ts +52 -0
- package/srv/blockchain/crawler/certificate-backfill.js +162 -0
- package/srv/blockchain/crawler/crawler.d.ts +104 -81
- package/srv/blockchain/crawler/crawler.js +532 -160
- package/srv/blockchain/crawler/credential-backfill.d.ts +28 -0
- package/srv/blockchain/crawler/credential-backfill.js +124 -0
- package/srv/blockchain/crawler/hooks.d.ts +2 -17
- package/srv/blockchain/crawler/index.d.ts +1 -8
- package/srv/blockchain/crawler/index.js +31 -17
- package/srv/blockchain/crawler/input-asset-copies.d.ts +34 -0
- package/srv/blockchain/crawler/input-asset-copies.js +171 -0
- package/srv/blockchain/crawler/metadata-position-backfill.d.ts +16 -0
- package/srv/blockchain/crawler/metadata-position-backfill.js +55 -0
- package/srv/blockchain/crawler/output-datum-backfill.d.ts +39 -0
- package/srv/blockchain/crawler/output-datum-backfill.js +110 -0
- package/srv/blockchain/crawler/sync-state.d.ts +27 -47
- package/srv/blockchain/crawler/sync-state.js +113 -63
- package/srv/blockchain/crawler/transaction-backfill.d.ts +44 -0
- package/srv/blockchain/crawler/transaction-backfill.js +278 -0
- package/srv/blockchain/crawler/utxo-set-import.d.ts +66 -0
- package/srv/blockchain/crawler/utxo-set-import.js +399 -0
- package/srv/blockchain/ledger-state.d.ts +62 -0
- package/srv/blockchain/ledger-state.js +419 -0
- package/srv/blockchain/pending-spends.d.ts +16 -0
- package/srv/blockchain/pending-spends.js +81 -0
- package/srv/blockchain/pool-metadata.d.ts +15 -0
- package/srv/blockchain/pool-metadata.js +132 -0
- package/srv/blockchain/request-coalescer.d.ts +2 -16
- package/srv/blockchain/request-coalescer.js +2 -16
- package/srv/blockchain/signing/cose-verifier.d.ts +3 -17
- package/srv/blockchain/signing/cose-verifier.js +146 -70
- package/srv/blockchain/signing/external-signer.d.ts +15 -115
- package/srv/blockchain/signing/external-signer.js +17 -126
- package/srv/blockchain/signing/hsm-signer.d.ts +10 -54
- package/srv/blockchain/signing/hsm-signer.js +28 -79
- package/srv/blockchain/signing/signature-verifier.d.ts +9 -47
- package/srv/blockchain/signing/signature-verifier.js +70 -83
- package/srv/blockchain/signing/submission-finalizer.d.ts +23 -45
- package/srv/blockchain/signing/submission-finalizer.js +219 -86
- package/srv/blockchain/stored-chain.d.ts +20 -0
- package/srv/blockchain/stored-chain.js +237 -0
- package/srv/blockchain/transaction-building/buildooor-tx.d.ts +31 -229
- package/srv/blockchain/transaction-building/buildooor-tx.js +652 -416
- package/srv/blockchain/transaction-building/cardano-tx.d.ts +9 -37
- package/srv/blockchain/transaction-presence.d.ts +5 -0
- package/srv/blockchain/transaction-presence.js +29 -0
- package/srv/blockchain/transaction-rows.d.ts +12 -0
- package/srv/blockchain/transaction-rows.js +44 -0
- package/srv/blockchain/wallet-worker/build-request.d.ts +5 -20
- package/srv/blockchain/wallet-worker/build-request.js +47 -30
- package/srv/blockchain/wallet-worker/confirmation-tracker.d.ts +5 -46
- package/srv/blockchain/wallet-worker/confirmation-tracker.js +25 -45
- package/srv/blockchain/wallet-worker/index.d.ts +1 -1
- package/srv/blockchain/wallet-worker/index.js +3 -11
- package/srv/blockchain/wallet-worker/job-store.d.ts +30 -148
- package/srv/blockchain/wallet-worker/job-store.js +101 -201
- package/srv/blockchain/wallet-worker/lease-heartbeat.d.ts +2 -26
- package/srv/blockchain/wallet-worker/lease-heartbeat.js +6 -28
- package/srv/blockchain/wallet-worker/signers.d.ts +5 -24
- package/srv/blockchain/wallet-worker/signers.js +4 -12
- package/srv/blockchain/wallet-worker/wallet-worker.d.ts +8 -80
- package/srv/blockchain/wallet-worker/wallet-worker.js +107 -155
- package/srv/cardano-agent-service.cds +122 -84
- package/srv/cardano-agent-service.js +4 -9
- package/srv/cardano-backend-service.cds +78 -0
- package/srv/cardano-backend-service.d.ts +2 -0
- package/srv/cardano-backend-service.js +242 -0
- package/srv/cardano-indexer-service.cds +387 -73
- package/srv/cardano-indexer-service.d.ts +5 -1
- package/srv/cardano-indexer-service.js +532 -16
- package/srv/cardano-service.cds +424 -269
- package/srv/cardano-service.js +289 -201
- package/srv/cardano-sign-service.cds +201 -180
- package/srv/cardano-sign-service.js +71 -201
- package/srv/cardano-tx-service.cds +451 -370
- package/srv/cardano-tx-service.js +271 -289
- package/srv/cardano-ui.cds +16 -16
- package/srv/cardano-worker-service.cds +118 -125
- package/srv/cardano-worker-service.js +52 -61
- package/srv/cbor/cip68.d.ts +13 -0
- package/srv/cbor/cip68.js +56 -0
- package/srv/cbor/index.d.ts +3 -1
- package/srv/cbor/index.js +9 -1
- package/srv/cbor/parse.d.ts +30 -18
- package/srv/cbor/parse.js +44 -9
- package/srv/cbor/plutus-data-json.d.ts +20 -0
- package/srv/cbor/plutus-data-json.js +32 -0
- package/srv/config.d.ts +113 -0
- package/srv/config.js +409 -0
- package/srv/server.d.ts +15 -110
- package/srv/server.js +84 -404
- package/srv/utils/agent-access.d.ts +9 -0
- package/srv/utils/agent-access.js +67 -0
- package/srv/utils/agent-grants-config.d.ts +0 -46
- package/srv/utils/agent-grants-config.js +17 -85
- package/srv/utils/agent-grants.d.ts +106 -122
- package/srv/utils/agent-grants.js +538 -236
- package/srv/utils/agent-token-auth.d.ts +4 -99
- package/srv/utils/agent-token-auth.js +18 -182
- package/srv/utils/backend-request-handler.d.ts +3 -17
- package/srv/utils/backend-request-handler.js +3 -18
- package/srv/utils/collections.d.ts +3 -10
- package/srv/utils/collections.js +3 -10
- package/srv/utils/const.d.ts +23 -74
- package/srv/utils/const.js +32 -79
- package/srv/utils/crypto.d.ts +3 -12
- package/srv/utils/crypto.js +6 -21
- package/srv/utils/db-indexes.d.ts +27 -0
- package/srv/utils/db-indexes.js +120 -0
- package/srv/utils/db-sanitize.d.ts +20 -0
- package/srv/utils/db-sanitize.js +80 -0
- package/srv/utils/deep-json.d.ts +6 -0
- package/srv/utils/deep-json.js +240 -0
- package/srv/utils/epoch-slots.d.ts +13 -0
- package/srv/utils/epoch-slots.js +38 -0
- package/srv/utils/error-codes.d.ts +22 -75
- package/srv/utils/error-codes.js +23 -72
- package/srv/utils/errors.d.ts +46 -187
- package/srv/utils/errors.js +114 -230
- package/srv/utils/liveness.d.ts +12 -0
- package/srv/utils/liveness.js +35 -0
- package/srv/utils/mappers.d.ts +102 -223
- package/srv/utils/mappers.js +387 -316
- package/srv/utils/network-context.js +2 -13
- package/srv/utils/paging.d.ts +31 -0
- package/srv/utils/paging.js +43 -0
- package/srv/utils/pg-inline-json.d.ts +8 -0
- package/srv/utils/pg-inline-json.js +58 -0
- package/srv/utils/pg-order-nulls.d.ts +14 -0
- package/srv/utils/pg-order-nulls.js +54 -0
- package/srv/utils/plutus-placeholders.d.ts +16 -22
- package/srv/utils/plutus-placeholders.js +62 -33
- package/srv/utils/rate-limiter.d.ts +2 -21
- package/srv/utils/rate-limiter.js +5 -17
- package/srv/utils/readiness.d.ts +12 -0
- package/srv/utils/readiness.js +29 -0
- package/srv/utils/reference-script.d.ts +19 -0
- package/srv/utils/reference-script.js +84 -0
- package/srv/utils/result-numbers.d.ts +15 -0
- package/srv/utils/result-numbers.js +61 -0
- package/srv/utils/service-events.d.ts +0 -24
- package/srv/utils/service-events.js +3 -25
- package/srv/utils/signing-helper.d.ts +3 -20
- package/srv/utils/signing-helper.js +35 -64
- package/srv/utils/tx-build-helper.d.ts +10 -105
- package/srv/utils/tx-build-helper.js +81 -144
- package/srv/utils/tx-request-parsers.d.ts +82 -33
- package/srv/utils/tx-request-parsers.js +401 -49
- package/srv/utils/tx-utils.d.ts +3 -27
- package/srv/utils/tx-utils.js +32 -50
- package/srv/utils/types.d.ts +261 -191
- package/srv/utils/types.js +2 -6
- package/srv/utils/validators.d.ts +22 -92
- package/srv/utils/validators.js +50 -149
|
@@ -1,370 +1,451 @@
|
|
|
1
|
-
using {
|
|
2
|
-
using {
|
|
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
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
@
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
@
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
@
|
|
70
|
-
@
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
@
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
@
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
@
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
@
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
@
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
@
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
@
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
@
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
@
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
@
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
@
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
@
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
@
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
@
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
@
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
@
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
@title: '
|
|
155
|
-
@description: 'The
|
|
156
|
-
|
|
157
|
-
@title: '
|
|
158
|
-
@description: '
|
|
159
|
-
|
|
160
|
-
@title: '
|
|
161
|
-
@description: 'The
|
|
162
|
-
|
|
163
|
-
@title: '
|
|
164
|
-
@description: '
|
|
165
|
-
|
|
166
|
-
@title: '
|
|
167
|
-
@description: '
|
|
168
|
-
|
|
169
|
-
@title: '
|
|
170
|
-
@description: 'Optional
|
|
171
|
-
|
|
172
|
-
@title: '
|
|
173
|
-
@description: 'Optional
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
@
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
@
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
@
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
@
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
@
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
@
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
@
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
@
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
@
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
@
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
@
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
@
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
@
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
@
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
@
|
|
252
|
-
@
|
|
253
|
-
action
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
@title: '
|
|
286
|
-
@description: 'The
|
|
287
|
-
|
|
288
|
-
@title: '
|
|
289
|
-
@description: 'The Bech32 encoded address
|
|
290
|
-
|
|
291
|
-
@title: '
|
|
292
|
-
@description: '
|
|
293
|
-
|
|
294
|
-
@title: 'Script
|
|
295
|
-
@description: '
|
|
296
|
-
|
|
297
|
-
@title: '
|
|
298
|
-
@description: '
|
|
299
|
-
|
|
300
|
-
@title: '
|
|
301
|
-
@description: '
|
|
302
|
-
|
|
303
|
-
@title: '
|
|
304
|
-
@description: '
|
|
305
|
-
|
|
306
|
-
@title: '
|
|
307
|
-
@description: '
|
|
308
|
-
|
|
309
|
-
@title: '
|
|
310
|
-
@description: '
|
|
311
|
-
|
|
312
|
-
@title: '
|
|
313
|
-
@description: 'Optional
|
|
314
|
-
|
|
315
|
-
@title: '
|
|
316
|
-
@description: 'Optional
|
|
317
|
-
|
|
318
|
-
@title: '
|
|
319
|
-
@description: 'Optional JSON
|
|
320
|
-
|
|
321
|
-
@title: '
|
|
322
|
-
@description: '
|
|
323
|
-
|
|
324
|
-
@title: '
|
|
325
|
-
@description: 'Optional
|
|
326
|
-
|
|
327
|
-
@title: '
|
|
328
|
-
@description: 'Optional
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
1
|
+
using { CardanoNetwork } from '../db/types';
|
|
2
|
+
using {odatano.cardano as db} from '../db/schema';
|
|
3
|
+
using {
|
|
4
|
+
Bech32,
|
|
5
|
+
Lovelace
|
|
6
|
+
} from '../db/types';
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
// Transaction building and submission, separate from the read service.
|
|
10
|
+
@requires: 'Transact'
|
|
11
|
+
service CardanoTransactionService @(impl: './cardano-tx-service') {
|
|
12
|
+
// ---------------------------------------------------------------------------
|
|
13
|
+
// Entity Projections - Transaction Building & Submission
|
|
14
|
+
// ---------------------------------------------------------------------------
|
|
15
|
+
|
|
16
|
+
@readonly
|
|
17
|
+
@title : 'Transaction Builds'
|
|
18
|
+
@description: 'Projection for Transaction Builds'
|
|
19
|
+
entity TransactionBuilds as projection on db.TransactionBuilds;
|
|
20
|
+
|
|
21
|
+
@readonly
|
|
22
|
+
@title : 'Transaction Build Inputs'
|
|
23
|
+
@description: 'Projection for Transaction Build Inputs'
|
|
24
|
+
entity TransactionBuildInputs as projection on db.TransactionBuildInputs;
|
|
25
|
+
|
|
26
|
+
@readonly
|
|
27
|
+
@title : 'Transaction Build Outputs'
|
|
28
|
+
@description: 'Projection for Transaction Build Outputs'
|
|
29
|
+
entity TransactionBuildOutputs as projection on db.TransactionBuildOutputs;
|
|
30
|
+
|
|
31
|
+
@readonly
|
|
32
|
+
@title : 'Transaction Build Redeemers'
|
|
33
|
+
@description: 'Projection for the redeemers of a script build with their execution units'
|
|
34
|
+
entity TransactionBuildRedeemers as projection on db.TransactionBuildRedeemers;
|
|
35
|
+
|
|
36
|
+
@readonly
|
|
37
|
+
@title : 'Transaction Build Input Assets'
|
|
38
|
+
@description: 'Projection for Transaction Build Input Assets'
|
|
39
|
+
entity TransactionBuildInputAssets as projection on db.TransactionBuildInputAssets;
|
|
40
|
+
|
|
41
|
+
@readonly
|
|
42
|
+
@title : 'Transaction Build Output Assets'
|
|
43
|
+
@description: 'Projection for Transaction Build Output Assets'
|
|
44
|
+
entity TransactionBuildOutputAssets as projection on db.TransactionBuildOutputAssets;
|
|
45
|
+
|
|
46
|
+
@readonly
|
|
47
|
+
@title : 'Transaction Submissions'
|
|
48
|
+
@description: 'Projection for Transaction Submissions'
|
|
49
|
+
entity TransactionSubmissions as projection on db.TransactionSubmissions
|
|
50
|
+
actions {
|
|
51
|
+
@title : 'Check Submission Status'
|
|
52
|
+
@description: 'Mark a submitted transaction confirmed once it is 3 blocks deep (its own block included); otherwise it stays submitted'
|
|
53
|
+
@odatano.agent: 'grant'
|
|
54
|
+
action CheckSubmissionStatus() returns TransactionSubmissions;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
// Status flow: pending, then submitted by SubmitTransaction, then confirmed by CheckSubmissionStatus at 3 blocks deep.
|
|
58
|
+
// A blockchain error moves pending or submitted to failed.
|
|
59
|
+
annotate CardanoTransactionService.TransactionSubmissions with @flow.status: status actions {
|
|
60
|
+
CheckSubmissionStatus @from : [ #submitted];
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
@readonly
|
|
64
|
+
@title : 'Transaction Submission Errors'
|
|
65
|
+
@description: 'Projection for Transaction Submission Errors'
|
|
66
|
+
entity TransactionSubmissionErrors as projection on db.TransactionSubmissionErrors;
|
|
67
|
+
|
|
68
|
+
@readonly
|
|
69
|
+
@title : 'Address Transaction Builds'
|
|
70
|
+
@description: 'Transaction builds of an address, ordered by build id'
|
|
71
|
+
entity AddressTransactionBuilds as projection on db.AddressTransactionBuilds;
|
|
72
|
+
|
|
73
|
+
// ---------------------------------------------------------------------------
|
|
74
|
+
// Transaction Building Actions
|
|
75
|
+
// ---------------------------------------------------------------------------
|
|
76
|
+
|
|
77
|
+
@title : 'Build Simple ADA Transaction'
|
|
78
|
+
@description: 'Build a simple ADA transfer transaction from sender to recipient with specified amount and change address'
|
|
79
|
+
@odatano.agent: 'grant'
|
|
80
|
+
action BuildSimpleAdaTransaction(
|
|
81
|
+
@title: 'Sender Address'
|
|
82
|
+
@description: 'The Bech32 encoded address of the sender'
|
|
83
|
+
senderAddress: Bech32,
|
|
84
|
+
@title: 'Recipient Address'
|
|
85
|
+
@description: 'The Bech32 encoded address of the recipient'
|
|
86
|
+
recipientAddress: Bech32,
|
|
87
|
+
@title: 'Lovelace Amount'
|
|
88
|
+
@description: 'The amount of ADA to send in lovelace'
|
|
89
|
+
lovelaceAmount: Lovelace,
|
|
90
|
+
@title: 'Change Address'
|
|
91
|
+
@description: 'The Bech32 encoded address for returning change - defaults to sender address if not specified'
|
|
92
|
+
changeAddress: Bech32,
|
|
93
|
+
@title: 'Output Datum JSON'
|
|
94
|
+
@description: 'Optional inline datum to attach to the recipient output (JSON, cardano-cli DetailedSchema format). Required when sending to a script address.'
|
|
95
|
+
outputDatumJson: String,
|
|
96
|
+
@title: 'Output Datum CBOR'
|
|
97
|
+
@description: 'Optional inline datum for the recipient output as PlutusData CBOR hex, written byte for byte. Use instead of outputDatumJson when the datum bytes must match exactly.'
|
|
98
|
+
outputDatumCbor: String,
|
|
99
|
+
@title: 'Ensure Min-ADA'
|
|
100
|
+
@description: 'Optional. When true, a lovelaceAmount below the recipient output min-ADA is raised to it; otherwise such a request is rejected with the required amount.'
|
|
101
|
+
ensureMinAda: Boolean,
|
|
102
|
+
@title: 'Assets JSON'
|
|
103
|
+
@description: 'Optional JSON array of native assets to include in the output ([{"unit":"policyId+assetName","quantity":"amount"}]). Use when locking tokens at a script address.'
|
|
104
|
+
assetsJson: String,
|
|
105
|
+
@title: 'Force Inputs JSON'
|
|
106
|
+
@description: 'Optional JSON array of {txHash, outputIndex} UTxOs that MUST be consumed as inputs. Added before coin selection. Use for one-shot minting seeds, token-carrying UTxOs, or deterministic input control.'
|
|
107
|
+
forceInputsJson: String,
|
|
108
|
+
@title: 'Protect Inputs JSON'
|
|
109
|
+
@description: 'Optional JSON array of {txHash, outputIndex} UTxOs of the sender that must never be spent: left out of coin selection and collateral.'
|
|
110
|
+
protectInputsJson: String,
|
|
111
|
+
@title: 'Validator Script'
|
|
112
|
+
@description: 'Optional Plutus validator CBOR hex. Required when lockOnScript=true. Used only to derive the target script address; the script itself is not attached to the transaction.'
|
|
113
|
+
validatorScript: String,
|
|
114
|
+
@title: 'Script Parameters JSON'
|
|
115
|
+
@description: 'Optional JSON array of PlutusData parameters to apply to validatorScript before deriving the script address. For parameterized validators.'
|
|
116
|
+
scriptParamsJson: String,
|
|
117
|
+
@title: 'Lock on Script Address'
|
|
118
|
+
@description: 'When true, validatorScript is required. Derives the enterprise script address from the (optionally param-applied) script and routes the output there instead of recipientAddress. Returns scriptAddress and scriptHash in the response.'
|
|
119
|
+
lockOnScript: Boolean,
|
|
120
|
+
@title: 'Reference Script Hex'
|
|
121
|
+
@description: 'Optional Plutus V3 validator CBOR hex to attach as referenceScript on the primary recipient output (CIP-33 reference script deploy). Significantly increases the output min-ADA; lovelaceAmount must cover the inflated requirement.'
|
|
122
|
+
referenceScriptHex: String,
|
|
123
|
+
@title: 'Validity Start (Posix ms)'
|
|
124
|
+
@description: 'Optional. Validity-interval start in Posix milliseconds. Passed through to the builder only; for non-script transfers the builder leaves bounds unset unless provided.'
|
|
125
|
+
validityStartMs: String,
|
|
126
|
+
@title: 'Validity End (Posix ms)'
|
|
127
|
+
@description: 'Optional. Validity-interval end in Posix milliseconds. Passed through to the builder only; for non-script transfers the builder leaves bounds unset unless provided.'
|
|
128
|
+
validityEndMs: String) returns TransactionBuilds;
|
|
129
|
+
|
|
130
|
+
@title : 'Build Transaction with Metadata'
|
|
131
|
+
@description: 'Build a transaction with custom metadata from sender to recipient with specified amount and change address'
|
|
132
|
+
@odatano.agent: 'grant'
|
|
133
|
+
action BuildTransactionWithMetadata(
|
|
134
|
+
@title: 'Sender Address'
|
|
135
|
+
@description: 'The Bech32 encoded address of the sender'
|
|
136
|
+
senderAddress: Bech32,
|
|
137
|
+
@title: 'Recipient Address'
|
|
138
|
+
@description: 'The Bech32 encoded address of the recipient'
|
|
139
|
+
recipientAddress: Bech32,
|
|
140
|
+
@title: 'Lovelace Amount'
|
|
141
|
+
@description: 'The amount of ADA to send in lovelace'
|
|
142
|
+
lovelaceAmount: Lovelace,
|
|
143
|
+
@title: 'Change Address'
|
|
144
|
+
@description: 'The Bech32 encoded address for returning change -defaults to sender address if not specified'
|
|
145
|
+
changeAddress: Bech32,
|
|
146
|
+
@title: 'Metadata JSON'
|
|
147
|
+
@description: 'The JSON representation of the transaction metadata as string'
|
|
148
|
+
metadataJson: String) returns TransactionBuilds;
|
|
149
|
+
|
|
150
|
+
@title : 'Build Multi-Asset Transaction'
|
|
151
|
+
@description: 'Build a transaction to send native assets (tokens) along with ADA'
|
|
152
|
+
@odatano.agent: 'grant'
|
|
153
|
+
action BuildMultiAssetTransaction(
|
|
154
|
+
@title: 'Sender Address'
|
|
155
|
+
@description: 'The Bech32 encoded address of the sender'
|
|
156
|
+
senderAddress: Bech32,
|
|
157
|
+
@title: 'Recipient Address'
|
|
158
|
+
@description: 'The Bech32 encoded address of the recipient'
|
|
159
|
+
recipientAddress: Bech32,
|
|
160
|
+
@title: 'Lovelace Amount'
|
|
161
|
+
@description: 'The amount of ADA to send in lovelace'
|
|
162
|
+
lovelaceAmount: Lovelace,
|
|
163
|
+
@title: 'Assets JSON'
|
|
164
|
+
@description: 'JSON array of assets to send (format: [{"unit":"policyId+assetName","quantity":"amount"}])'
|
|
165
|
+
assetsJson: String,
|
|
166
|
+
@title: 'Change Address'
|
|
167
|
+
@description: 'The Bech32 encoded address for returning change -defaults to sender address if not specified'
|
|
168
|
+
changeAddress: Bech32,
|
|
169
|
+
@title: 'Output Datum JSON'
|
|
170
|
+
@description: 'Optional inline datum to attach to the recipient output (JSON, DetailedSchema). Required when sending to a script address.'
|
|
171
|
+
outputDatumJson: String,
|
|
172
|
+
@title: 'Output Datum CBOR'
|
|
173
|
+
@description: 'Optional inline datum for the recipient output as PlutusData CBOR hex, written byte for byte. Use instead of outputDatumJson when the datum bytes must match exactly.'
|
|
174
|
+
outputDatumCbor: String,
|
|
175
|
+
@title: 'Ensure Min-ADA'
|
|
176
|
+
@description: 'Optional. When true, a lovelaceAmount below the recipient output min-ADA is raised to it; otherwise such a request is rejected with the required amount.'
|
|
177
|
+
ensureMinAda: Boolean,
|
|
178
|
+
@title: 'Reference Script Hex'
|
|
179
|
+
@description: 'Optional Plutus V3 validator CBOR hex to attach as referenceScript on the primary recipient output (CIP-33 reference script deploy). Significantly increases the output min-ADA; lovelaceAmount must cover the inflated requirement.'
|
|
180
|
+
referenceScriptHex: String,
|
|
181
|
+
@title: 'Validity Start (Posix ms)'
|
|
182
|
+
@description: 'Optional. Validity-interval start in Posix milliseconds. Passed through to the builder only; for non-script transfers the builder leaves bounds unset unless provided.'
|
|
183
|
+
validityStartMs: String,
|
|
184
|
+
@title: 'Validity End (Posix ms)'
|
|
185
|
+
@description: 'Optional. Validity-interval end in Posix milliseconds. Passed through to the builder only; for non-script transfers the builder leaves bounds unset unless provided.'
|
|
186
|
+
validityEndMs: String) returns TransactionBuilds;
|
|
187
|
+
|
|
188
|
+
@title : 'Build Minting Transaction'
|
|
189
|
+
@description: 'Build a transaction to mint or burn native assets'
|
|
190
|
+
@odatano.agent: 'grant'
|
|
191
|
+
action BuildMintTransaction(
|
|
192
|
+
@title: 'Sender Address'
|
|
193
|
+
@description: 'The Bech32 encoded address of the sender (pays fees)'
|
|
194
|
+
senderAddress: Bech32,
|
|
195
|
+
@title: 'Recipient Address'
|
|
196
|
+
@description: 'The Bech32 encoded address to receive minted assets'
|
|
197
|
+
recipientAddress: Bech32,
|
|
198
|
+
@title: 'Lovelace Amount'
|
|
199
|
+
@description: 'The amount of ADA to send with minted assets in lovelace'
|
|
200
|
+
lovelaceAmount: Lovelace,
|
|
201
|
+
@title: 'Mint Actions JSON'
|
|
202
|
+
@description: 'JSON array of mint/burn actions (format: [{"assetUnit":"policyId+assetName","quantity":"amount"}]). Multi-policy mints: each action may additionally carry its own "mintingPolicyScript" (CBOR hex, pre-applied) and "redeemerJson" (JSON-encoded PlutusData string), overriding the top-level policy/redeemer for that action. Actions resolving to the same policy must agree on their redeemer (the ledger carries one redeemer per policy).'
|
|
203
|
+
mintActionsJson: String,
|
|
204
|
+
@title: 'Minting Policy Script'
|
|
205
|
+
@description: 'The minting policy script in CBOR hex format. Actions without a per-action mintingPolicyScript mint under this script.'
|
|
206
|
+
mintingPolicyScript: String,
|
|
207
|
+
@title: 'Change Address'
|
|
208
|
+
@description: 'The Bech32 encoded address for returning change -defaults to sender address if not specified'
|
|
209
|
+
changeAddress: Bech32,
|
|
210
|
+
@title: 'Required Signers JSON'
|
|
211
|
+
@description: 'Optional JSON array of Ed25519 key hashes (hex, 28 bytes each) that must sign the transaction. Required for Plutus validators checking extra_signatories.'
|
|
212
|
+
requiredSignersJson: String,
|
|
213
|
+
@title: 'Script Parameters JSON'
|
|
214
|
+
@description: 'Optional JSON array of PlutusData parameters to apply to the minting policy script before building. For parameterized validators.'
|
|
215
|
+
scriptParamsJson: String,
|
|
216
|
+
@title: 'Output Inline Datum JSON'
|
|
217
|
+
@description: 'Optional PlutusData JSON to attach as inline datum on the recipient output. Used when minted tokens must carry on-chain state.'
|
|
218
|
+
inlineDatumJson: String,
|
|
219
|
+
@title: 'Mint Redeemer JSON'
|
|
220
|
+
@description: 'Optional PlutusData JSON for the minting policy redeemer. Defaults to integer 0 if not specified.'
|
|
221
|
+
mintRedeemerJson: String,
|
|
222
|
+
@title: 'Lock on Script Address'
|
|
223
|
+
@description: 'When true and scriptParamsJson is provided, routes the output to the enterprise script address derived from the applied script hash instead of recipientAddress. Returns scriptAddress in the response.'
|
|
224
|
+
lockOnScript: Boolean,
|
|
225
|
+
@title: 'Force Inputs JSON'
|
|
226
|
+
@description: 'Optional JSON array of {txHash, outputIndex} UTxOs that MUST be consumed as inputs. Added before coin selection. Use for one-shot minting seeds, token-carrying UTxOs, or deterministic input control.'
|
|
227
|
+
forceInputsJson: String,
|
|
228
|
+
@title: 'Protect Inputs JSON'
|
|
229
|
+
@description: 'Optional JSON array of {txHash, outputIndex} UTxOs of the sender that must never be spent: left out of coin selection and collateral.'
|
|
230
|
+
protectInputsJson: String,
|
|
231
|
+
@title: 'Reference Inputs JSON'
|
|
232
|
+
@description: 'Optional JSON array of {txHash, outputIndex} UTxOs to include as CIP-31 reference inputs (read-only, not consumed). Use for oracle feeds, shared config UTxOs, or script reference UTxOs. Buildooor builder only.'
|
|
233
|
+
referenceInputsJson: String,
|
|
234
|
+
@title: 'Extra Outputs JSON'
|
|
235
|
+
@description: 'Optional JSON array of additional outputs [{address, lovelaceAmount, assets?, inlineDatumJson?, referenceScriptHex?}] appended after the primary recipient output. When present, the extra outputs carry the minted assets (declare each minted unit in an entry''s assets) and the primary output stays ADA-only. This places each minted token on its own output with its own inline datum (e.g. datum-bound predicate tokens). Each entry is independently min-ADA checked.'
|
|
236
|
+
extraOutputsJson: String,
|
|
237
|
+
@title: 'Metadata JSON'
|
|
238
|
+
@description: 'Optional transaction metadata as JSON (CIP-20 / label-674 etc.). Object keyed by numeric label string. Attached as auxiliary_data to the mint tx so chain-watchers can correlate off-chain context (receipt IDs, free-form notes).'
|
|
239
|
+
metadataJson: String,
|
|
240
|
+
@title: 'Reference Script Hex'
|
|
241
|
+
@description: 'Optional Plutus V3 validator CBOR hex to attach as referenceScript on the primary recipient output (CIP-33 reference script deploy). Significantly increases the output min-ADA; lovelaceAmount must cover the inflated requirement.'
|
|
242
|
+
referenceScriptHex: String,
|
|
243
|
+
@title: 'Validity Start (Posix ms)'
|
|
244
|
+
@description: 'Optional. Sets the transaction validity-interval start in Posix milliseconds. Required finite value for Plutus validators that call expect Finite(lower) on tx.validity_range.lower_bound. Defaults to now − 120 000 ms when omitted.'
|
|
245
|
+
validityStartMs: String,
|
|
246
|
+
@title: 'Validity End (Posix ms)'
|
|
247
|
+
@description: 'Optional. Sets the transaction validity-interval end in Posix milliseconds. Required finite value for Plutus validators that call expect Finite(upper) on tx.validity_range.upper_bound. Defaults to now + 3 600 000 ms when omitted.'
|
|
248
|
+
validityEndMs: String) returns TransactionBuilds;
|
|
249
|
+
|
|
250
|
+
@title : 'Get Build Details'
|
|
251
|
+
@description: 'Retrieve transaction build details using the Build Id'
|
|
252
|
+
@odatano.agent: 'read'
|
|
253
|
+
action GetBuildDetails(
|
|
254
|
+
@title: 'Build Id'
|
|
255
|
+
@description: 'The unique identifier of the transaction build'
|
|
256
|
+
buildId: UUID) returns TransactionBuilds;
|
|
257
|
+
|
|
258
|
+
@title : 'Submit Transaction'
|
|
259
|
+
@description: 'Submit a transaction to the Cardano network using a build ID and signed CBOR'
|
|
260
|
+
@odatano.agent: 'grant'
|
|
261
|
+
action SubmitTransaction(
|
|
262
|
+
@title: 'Build Id'
|
|
263
|
+
@description: 'The unique identifier of the transaction build'
|
|
264
|
+
buildId: UUID,
|
|
265
|
+
@title: 'Signed Transaction CBOR'
|
|
266
|
+
@description: 'The signed transaction, or the witness set a CIP-30 wallet returns from signTx; a witness set is added to the build transaction'
|
|
267
|
+
signedTxCbor: String) returns TransactionSubmissions;
|
|
268
|
+
|
|
269
|
+
@title : 'Submit Signed Transaction'
|
|
270
|
+
@description: 'Submit a signed transaction to the Cardano network'
|
|
271
|
+
@odatano.agent: 'grant'
|
|
272
|
+
action SubmitSignedTransaction(
|
|
273
|
+
@title: 'Signed Transaction CBOR'
|
|
274
|
+
@description: 'The CBOR of the signed transaction'
|
|
275
|
+
signedTxCbor: String,
|
|
276
|
+
@title: 'Network'
|
|
277
|
+
@description: 'Optional network check (mainnet, preview, preprod); must match the configured network'
|
|
278
|
+
@assert.range
|
|
279
|
+
network: CardanoNetwork) returns TransactionSubmissions;
|
|
280
|
+
|
|
281
|
+
@title : 'Build Plutus Spend Transaction'
|
|
282
|
+
@description: 'Build a transaction to spend a UTxO locked at a Plutus script address'
|
|
283
|
+
@odatano.agent: 'grant'
|
|
284
|
+
action BuildPlutusSpendTransaction(
|
|
285
|
+
@title: 'Sender Address'
|
|
286
|
+
@description: 'The Bech32 encoded address of the sender (pays fees)'
|
|
287
|
+
senderAddress: Bech32,
|
|
288
|
+
@title: 'Recipient Address'
|
|
289
|
+
@description: 'The Bech32 encoded address to receive the unlocked funds'
|
|
290
|
+
recipientAddress: Bech32,
|
|
291
|
+
@title: 'Lovelace Amount'
|
|
292
|
+
@description: 'The amount of ADA to send to the recipient in lovelace'
|
|
293
|
+
lovelaceAmount: Lovelace,
|
|
294
|
+
@title: 'Validator Script'
|
|
295
|
+
@description: 'The Plutus validator script in CBOR hex format'
|
|
296
|
+
validatorScript: String,
|
|
297
|
+
@title: 'Script UTxO Transaction Hash'
|
|
298
|
+
@description: 'The transaction hash of the UTxO locked at the script address (64-char hex)'
|
|
299
|
+
scriptTxHash: String,
|
|
300
|
+
@title: 'Script UTxO Output Index'
|
|
301
|
+
@description: 'The output index of the UTxO locked at the script address'
|
|
302
|
+
scriptOutputIndex: Integer,
|
|
303
|
+
@title: 'Redeemer JSON'
|
|
304
|
+
@description: 'The redeemer data as JSON string (will be converted to PlutusData)'
|
|
305
|
+
redeemerJson: String,
|
|
306
|
+
@title: 'Datum JSON'
|
|
307
|
+
@description: 'The datum data as JSON string (optional, for hash-based datums)'
|
|
308
|
+
datumJson: String,
|
|
309
|
+
@title: 'Change Address'
|
|
310
|
+
@description: 'The Bech32 encoded address for returning change - defaults to sender address if not specified'
|
|
311
|
+
changeAddress: Bech32,
|
|
312
|
+
@title: 'Required Signers JSON'
|
|
313
|
+
@description: 'Optional JSON array of Ed25519 key hashes (hex, 28 bytes each) that must sign the transaction. Required for Plutus validators checking extra_signatories.'
|
|
314
|
+
requiredSignersJson: String,
|
|
315
|
+
@title: 'Script Parameters JSON'
|
|
316
|
+
@description: 'Optional JSON array of PlutusData parameters to apply to the validator script before building. For parameterized validators.'
|
|
317
|
+
scriptParamsJson: String,
|
|
318
|
+
@title: 'Output Inline Datum JSON'
|
|
319
|
+
@description: 'Optional PlutusData JSON to attach as inline datum on the recipient output. Used for state-machine validators that require continuing output datum.'
|
|
320
|
+
inlineDatumJson: String,
|
|
321
|
+
@title: 'Lock on Script Address'
|
|
322
|
+
@description: 'When true and scriptParamsJson is provided, routes the output to the enterprise script address derived from the applied script hash instead of recipientAddress. Returns scriptAddress in the response.'
|
|
323
|
+
lockOnScript: Boolean,
|
|
324
|
+
@title: 'Force Inputs JSON'
|
|
325
|
+
@description: 'Optional JSON array of {txHash, outputIndex} UTxOs that MUST be consumed as inputs. Added before coin selection. Use for one-shot minting seeds, token-carrying UTxOs, or deterministic input control.'
|
|
326
|
+
forceInputsJson: String,
|
|
327
|
+
@title: 'Protect Inputs JSON'
|
|
328
|
+
@description: 'Optional JSON array of {txHash, outputIndex} UTxOs of the sender that must never be spent: left out of coin selection and collateral.'
|
|
329
|
+
protectInputsJson: String,
|
|
330
|
+
@title: 'Extra Outputs JSON'
|
|
331
|
+
@description: 'Optional JSON array of additional outputs appended after the primary recipient output, before change. Each entry: {address, lovelaceAmount, assets?: [{unit, quantity}], inlineDatumJson?, referenceScriptHex?}. Use for multi-output state-machine transitions (counter updates + batch NFT outputs) or per-output CIP-33 ref-script deploy. Each extra output is independently min-ADA checked.'
|
|
332
|
+
extraOutputsJson: String,
|
|
333
|
+
@title: 'Mint Actions JSON'
|
|
334
|
+
@description: 'Optional JSON array of mint/burn actions ([{"assetUnit", "quantity"}]). When provided, triggers a combined spend+mint transaction in a single atomic step. Required together with mintingPolicyScript.'
|
|
335
|
+
mintActionsJson: String,
|
|
336
|
+
@title: 'Minting Policy Script'
|
|
337
|
+
@description: 'Optional Plutus minting policy CBOR hex. Required when mintActionsJson is provided. If byte-equal to validatorScript, scriptParamsJson is applied to it as well (multi-purpose script).'
|
|
338
|
+
mintingPolicyScript: String,
|
|
339
|
+
@title: 'Mint Redeemer JSON'
|
|
340
|
+
@description: 'Optional PlutusData JSON for the minting policy redeemer. Defaults to integer 0 if not specified. Supports __INPUT_IDX:txHash#n__ placeholders (Buildooor only).'
|
|
341
|
+
mintRedeemerJson: String,
|
|
342
|
+
@title: 'Reference Inputs JSON'
|
|
343
|
+
@description: 'Optional JSON array of {txHash, outputIndex} UTxOs to include as CIP-31 reference inputs (read-only, not consumed). Use for oracle feeds, shared config UTxOs, or script reference UTxOs. Buildooor builder only.'
|
|
344
|
+
referenceInputsJson: String,
|
|
345
|
+
@title: 'Reference Script Hex'
|
|
346
|
+
@description: 'Optional Plutus V3 validator CBOR hex to attach as referenceScript on the primary recipient output (CIP-33 reference script deploy). Combines with the spend in one atomic tx. Significantly increases the output min-ADA; lovelaceAmount must cover the inflated requirement.'
|
|
347
|
+
referenceScriptHex: String,
|
|
348
|
+
@title: 'Validity Start (Posix ms)'
|
|
349
|
+
@description: 'Optional. Sets the transaction validity-interval start in Posix milliseconds. Required finite value for Plutus validators that call expect Finite(lower) on tx.validity_range.lower_bound. Defaults to now − 120 000 ms when omitted.'
|
|
350
|
+
validityStartMs: String,
|
|
351
|
+
@title: 'Validity End (Posix ms)'
|
|
352
|
+
@description: 'Optional. Sets the transaction validity-interval end in Posix milliseconds. Required finite value for Plutus validators that call expect Finite(upper) on tx.validity_range.upper_bound. Defaults to now + 3 600 000 ms when omitted.'
|
|
353
|
+
validityEndMs: String) returns TransactionBuilds;
|
|
354
|
+
|
|
355
|
+
@title : 'Build Plutus Transaction'
|
|
356
|
+
@description: 'Spend script UTxOs, each with its own redeemer (inline validator or a reference-script UTxO), mint, withdraw and certify in one transaction; script inputs are optional, so a mint or a withdraw-zero alone works. Collateral is added only when a script runs. The outputs are built exactly in the given order, change comes after them. The execution units of every redeemer are returned under redeemers.'
|
|
357
|
+
@odatano.agent: 'grant'
|
|
358
|
+
action BuildPlutusTransaction(
|
|
359
|
+
@title: 'Sender Address'
|
|
360
|
+
@description: 'Pays the fee, funds the rest and provides the ADA-only collateral'
|
|
361
|
+
senderAddress: Bech32,
|
|
362
|
+
@title: 'Change Address'
|
|
363
|
+
@description: 'Receives the change; defaults to senderAddress'
|
|
364
|
+
changeAddress: Bech32,
|
|
365
|
+
@title: 'Script Inputs JSON'
|
|
366
|
+
@description: 'Optional JSON array, 0..16 entries: {txHash, outputIndex, validatorScript (CBOR hex) | referenceScript: {txHash, outputIndex}, scriptParamsJson?, redeemerJson | redeemerCbor, datumJson | datumCbor (hash datums only)}. The *Cbor forms take PlutusData CBOR hex byte for byte. In any redeemer or datum JSON, __INPUT_IDX:<txHash>#<n>__ resolves to the index in the final sorted inputs, __REF_IDX:<txHash>#<n>__ to the index in the sorted reference inputs (reference-script UTxOs included) and __WDRL_IDX:<credential hash>__ to the index in the withdrawals in ledger order.'
|
|
367
|
+
scriptInputsJson: String,
|
|
368
|
+
@title: 'Outputs JSON'
|
|
369
|
+
@description: 'Required JSON array of outputs in this order: {address, lovelaceAmount, assets?: [{unit, quantity}], inlineDatumJson? | inlineDatumCbor? | datumHash?, referenceScriptHex?}. Each is min-ADA checked; change is appended after them and never merged into one.'
|
|
370
|
+
outputsJson: String,
|
|
371
|
+
@title: 'Reference Inputs JSON'
|
|
372
|
+
@description: 'Optional JSON array of {txHash, outputIndex} read-only reference inputs; reference-script UTxOs of scriptInputsJson are added automatically.'
|
|
373
|
+
referenceInputsJson: String,
|
|
374
|
+
@title: 'Force Inputs JSON'
|
|
375
|
+
@description: 'Optional JSON array of {txHash, outputIndex} UTxOs that must be consumed. A UTxO of another key address needs that address''s payment key hash in requiredSignersJson, and every unit it brings must be spent by outputsJson (nothing of it goes to the change); it is never collateral.'
|
|
376
|
+
forceInputsJson: String,
|
|
377
|
+
@title: 'Protect Inputs JSON'
|
|
378
|
+
@description: 'Optional JSON array of {txHash, outputIndex} UTxOs of the sender that must never be spent: left out of coin selection and collateral.'
|
|
379
|
+
protectInputsJson: String,
|
|
380
|
+
@title: 'Withdrawals JSON'
|
|
381
|
+
@description: 'Optional JSON array, 1..16 entries: {rewardAddress, lovelace (0 allowed), stakingScript (CBOR hex) | referenceScript: {txHash, outputIndex}, scriptParamsJson?, redeemerJson | redeemerCbor}. With a script the withdrawal runs it under the Reward purpose (withdraw-zero pattern), without one the stake key signs. The reward account must be registered on chain.'
|
|
382
|
+
withdrawalsJson: String,
|
|
383
|
+
@title: 'Certificates JSON'
|
|
384
|
+
@description: 'Optional JSON array, 1..16 entries: {type: registerStake | deregisterStake, stakeAddress, deposit?, stakingScript (CBOR hex) | referenceScript: {txHash, outputIndex}, scriptParamsJson?, redeemerJson | redeemerCbor}. A registration without a script needs no witness (key or script credential); with a script it is the Conway deposit form and the script runs under the Certifying purpose. A deregistration of a script credential needs the script; of a key credential the key''s witness. The deposit is balanced by the builder.'
|
|
385
|
+
certificatesJson: String,
|
|
386
|
+
@title: 'Required Signers JSON'
|
|
387
|
+
@description: 'Optional JSON array of Ed25519 key hashes (hex, 28 bytes each) that must sign the transaction.'
|
|
388
|
+
requiredSignersJson: String,
|
|
389
|
+
@title: 'Mint Actions JSON'
|
|
390
|
+
@description: 'Optional JSON array of [{assetUnit, quantity, mintingPolicyScript | referenceScript: {txHash, outputIndex}, redeemerJson?}]; every action names its own policy. With referenceScript the assetUnit is policyId+assetName and the policy id must be the hash of that script. Minted assets go where outputsJson puts them.'
|
|
391
|
+
mintActionsJson: String,
|
|
392
|
+
@title: 'Validity Start (Posix ms)'
|
|
393
|
+
@description: 'Optional validity-interval start in Posix milliseconds; defaults to now - 120 000 ms.'
|
|
394
|
+
validityStartMs: String,
|
|
395
|
+
@title: 'Validity End (Posix ms)'
|
|
396
|
+
@description: 'Optional validity-interval end in Posix milliseconds; defaults to now + 3 600 000 ms.'
|
|
397
|
+
validityEndMs: String) returns TransactionBuilds;
|
|
398
|
+
|
|
399
|
+
@title : 'Set Collateral'
|
|
400
|
+
@description: 'Ensure a dedicated ADA-only collateral UTxO exists for Plutus transactions. Checks if the address has at least 2 UTxOs with >= 5 ADA each. If not, builds a self-send transaction to create a 5 ADA collateral UTxO.'
|
|
401
|
+
@odatano.agent: 'grant'
|
|
402
|
+
action SetCollateral(
|
|
403
|
+
@title: 'Address'
|
|
404
|
+
@description: 'The Bech32 encoded address to check and set up collateral for'
|
|
405
|
+
address: Bech32) returns TransactionBuilds;
|
|
406
|
+
|
|
407
|
+
@title : 'Address Transaction Builds'
|
|
408
|
+
@description: 'Projection for retrieving transaction builds by address'
|
|
409
|
+
@odatano.agent: 'read'
|
|
410
|
+
action GetTransactionBuildsByAddress(
|
|
411
|
+
@title: 'Bech32 Address'
|
|
412
|
+
@description: 'The Bech32 encoded address to retrieve transaction builds for'
|
|
413
|
+
address: Bech32,
|
|
414
|
+
@title: 'Limit'
|
|
415
|
+
@description: 'Maximum number of rows (default 1000, at most 5000)'
|
|
416
|
+
@assert.range: [1, 5000]
|
|
417
|
+
limit: Integer,
|
|
418
|
+
@title: 'Skip'
|
|
419
|
+
@description: 'Number of rows to skip (default 0)'
|
|
420
|
+
@assert.range: [0, _]
|
|
421
|
+
skip: Integer) returns array of AddressTransactionBuilds;
|
|
422
|
+
|
|
423
|
+
@title : 'Derive Script Address'
|
|
424
|
+
@description: 'Utility: Apply optional PlutusData parameters to a validator script and return its enterprise script address (bech32) and script hash (28-byte hex). Pure derivation, no transaction built, no blockchain call.'
|
|
425
|
+
@odatano.agent: 'read'
|
|
426
|
+
action DeriveScriptAddress(
|
|
427
|
+
@title: 'Validator Script'
|
|
428
|
+
@description: 'The Plutus validator script in CBOR hex format'
|
|
429
|
+
validatorScript: String,
|
|
430
|
+
@title: 'Script Parameters JSON'
|
|
431
|
+
@description: 'Optional JSON array of PlutusData parameters to apply to the script before hashing. For parameterized validators.'
|
|
432
|
+
scriptParamsJson: String,
|
|
433
|
+
@title: 'Network'
|
|
434
|
+
@description: 'Optional network override (mainnet, preview, preprod). Defaults to the configured network.'
|
|
435
|
+
@assert.range
|
|
436
|
+
network: CardanoNetwork) returns {
|
|
437
|
+
scriptAddress : String(120);
|
|
438
|
+
scriptHash : String(56);
|
|
439
|
+
};
|
|
440
|
+
|
|
441
|
+
@title : 'Extract Payment Key Hash'
|
|
442
|
+
@description: 'Utility: Decode a Bech32 Cardano address and return its 28-byte payment credential hash (hex). Pure bech32 decoding, no blockchain call. Use to obtain the key hash for requiredSignersJson on Plutus actions.'
|
|
443
|
+
@odatano.agent: 'read'
|
|
444
|
+
action ExtractPaymentKeyHash(
|
|
445
|
+
@title: 'Address'
|
|
446
|
+
@description: 'The Bech32 encoded Cardano address (addr / addr_test)'
|
|
447
|
+
address: Bech32) returns {
|
|
448
|
+
paymentKeyHash : String(56);
|
|
449
|
+
};
|
|
450
|
+
|
|
451
|
+
}
|