@odatano/core 2.0.0-rc.49 → 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 +6 -12
- package/@cds-models/CardanoIndexerService/index.d.ts +200 -2
- package/@cds-models/CardanoIndexerService/index.js +24 -0
- package/@cds-models/CardanoODataService/index.d.ts +49 -6
- package/@cds-models/CardanoODataService/index.js +4 -0
- package/@cds-models/CardanoSignService/index.d.ts +3 -3
- package/@cds-models/CardanoWorkerService/index.d.ts +4 -3
- package/@cds-models/index.d.ts +9 -1
- package/@cds-models/index.js +2 -1
- package/@cds-models/odatano/cardano/index.d.ts +59 -5
- package/@cds-models/odatano/cardano/index.js +6 -0
- package/README.md +29 -17
- package/db/schema.cds +117 -24
- package/db/types.cds +8 -0
- package/package.json +17 -15
- package/scripts/migrate-schema.mjs +334 -0
- package/src/index.d.ts +7 -5
- package/src/index.js +12 -10
- package/src/plugin.js +6 -7
- package/srv/blockchain/backends/blockfrost-backend.js +9 -1
- package/srv/blockchain/backends/cardano-backend.d.ts +15 -0
- package/srv/blockchain/backends/cardano-backend.js +5 -0
- package/srv/blockchain/backends/koios-backend.js +16 -10
- package/srv/blockchain/backends/ogmios-backend.d.ts +9 -3
- package/srv/blockchain/backends/ogmios-backend.js +60 -18
- package/srv/blockchain/cardano-client.d.ts +5 -4
- package/srv/blockchain/cardano-client.js +46 -13
- package/srv/blockchain/cardano-indexer.d.ts +116 -9
- package/srv/blockchain/cardano-indexer.js +436 -189
- package/srv/blockchain/crawler/account-snapshots.d.ts +29 -0
- package/srv/blockchain/crawler/account-snapshots.js +153 -0
- package/srv/blockchain/crawler/asset-registry-backfill.d.ts +23 -1
- package/srv/blockchain/crawler/asset-registry-backfill.js +91 -1
- package/srv/blockchain/crawler/certificate-backfill.d.ts +2 -0
- package/srv/blockchain/crawler/certificate-backfill.js +10 -3
- package/srv/blockchain/crawler/crawler.d.ts +15 -0
- package/srv/blockchain/crawler/crawler.js +68 -3
- 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/transaction-backfill.d.ts +2 -0
- package/srv/blockchain/crawler/transaction-backfill.js +12 -8
- package/srv/blockchain/pool-metadata.d.ts +15 -0
- package/srv/blockchain/pool-metadata.js +132 -0
- package/srv/blockchain/signing/cose-verifier.d.ts +3 -1
- package/srv/blockchain/signing/cose-verifier.js +144 -56
- package/srv/blockchain/signing/hsm-signer.js +2 -1
- package/srv/blockchain/signing/submission-finalizer.d.ts +15 -4
- package/srv/blockchain/signing/submission-finalizer.js +201 -69
- package/srv/blockchain/stored-chain.js +1 -1
- package/srv/blockchain/transaction-building/buildooor-tx.d.ts +1 -3
- package/srv/blockchain/transaction-building/buildooor-tx.js +34 -54
- package/srv/blockchain/transaction-presence.d.ts +5 -0
- package/srv/blockchain/transaction-presence.js +29 -0
- package/srv/blockchain/transaction-rows.js +1 -1
- package/srv/blockchain/wallet-worker/build-request.d.ts +4 -1
- package/srv/blockchain/wallet-worker/build-request.js +25 -0
- package/srv/blockchain/wallet-worker/confirmation-tracker.js +1 -1
- package/srv/blockchain/wallet-worker/job-store.d.ts +17 -7
- package/srv/blockchain/wallet-worker/job-store.js +0 -0
- package/srv/blockchain/wallet-worker/signers.d.ts +2 -0
- package/srv/blockchain/wallet-worker/wallet-worker.d.ts +2 -0
- package/srv/blockchain/wallet-worker/wallet-worker.js +42 -32
- package/srv/cardano-agent-service.cds +11 -12
- package/srv/cardano-agent-service.js +2 -0
- package/srv/cardano-backend-service.cds +34 -1
- package/srv/cardano-backend-service.js +20 -17
- package/srv/cardano-indexer-service.cds +153 -12
- package/srv/cardano-indexer-service.js +175 -29
- package/srv/cardano-service.cds +67 -3
- package/srv/cardano-service.js +132 -67
- package/srv/cardano-sign-service.cds +30 -20
- package/srv/cardano-sign-service.js +13 -10
- package/srv/cardano-tx-service.cds +15 -1
- package/srv/cardano-tx-service.js +4 -1
- package/srv/cardano-worker-service.cds +16 -7
- package/srv/cardano-worker-service.js +31 -22
- package/srv/cbor/parse.js +11 -34
- package/srv/config.d.ts +113 -0
- package/srv/config.js +409 -0
- package/srv/server.d.ts +9 -14
- package/srv/server.js +32 -316
- 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 -17
- package/srv/utils/agent-grants-config.js +6 -81
- package/srv/utils/agent-grants.d.ts +6 -19
- package/srv/utils/agent-grants.js +69 -130
- package/srv/utils/const.d.ts +4 -0
- package/srv/utils/const.js +5 -1
- package/srv/utils/db-indexes.js +11 -3
- package/srv/utils/error-codes.d.ts +4 -0
- package/srv/utils/error-codes.js +4 -0
- package/srv/utils/errors.d.ts +6 -0
- package/srv/utils/errors.js +23 -1
- package/srv/utils/liveness.js +2 -5
- package/srv/utils/mappers.d.ts +5 -7
- package/srv/utils/mappers.js +22 -9
- package/srv/utils/pg-order-nulls.js +4 -3
- package/srv/utils/readiness.d.ts +12 -0
- package/srv/utils/readiness.js +29 -0
- package/srv/utils/result-numbers.d.ts +15 -0
- package/srv/utils/result-numbers.js +61 -0
- package/srv/utils/tx-request-parsers.d.ts +1 -1
- package/srv/utils/tx-request-parsers.js +3 -3
- package/srv/utils/tx-utils.d.ts +3 -0
- package/srv/utils/tx-utils.js +17 -3
- package/srv/utils/types.d.ts +16 -3
- package/scripts/migrate-txseq.mjs +0 -138
- package/srv/blockchain/transaction-building/buildooor-fee-patch.d.ts +0 -13
- package/srv/blockchain/transaction-building/buildooor-fee-patch.js +0 -71
- package/srv/blockchain/transaction-building/caller-datums.d.ts +0 -15
- package/srv/blockchain/transaction-building/caller-datums.js +0 -133
- package/srv/cbor/redeemer-tag-patch.d.ts +0 -3
- package/srv/cbor/redeemer-tag-patch.js +0 -61
- package/srv/utils/legacy-service-paths.d.ts +0 -11
- package/srv/utils/legacy-service-paths.js +0 -58
|
@@ -17,8 +17,6 @@ export declare function _AgentGrantAspect<TBase extends new (...args: any[]) =>
|
|
|
17
17
|
userId?: string
|
|
18
18
|
agentLabel?: string | null
|
|
19
19
|
allowedActions?: string
|
|
20
|
-
walletId?: string | null
|
|
21
|
-
allowedJobKinds?: string | null
|
|
22
20
|
maxJobsPerDay?: number | null
|
|
23
21
|
jobsUsedToday?: number | null
|
|
24
22
|
budgetWindow?: string | null
|
|
@@ -45,8 +43,6 @@ export declare function _GrantStatusAspect<TBase extends new (...args: any[]) =>
|
|
|
45
43
|
grantId?: string | null
|
|
46
44
|
agentLabel?: string | null
|
|
47
45
|
allowedActions?: Array<string>
|
|
48
|
-
walletId?: string | null
|
|
49
|
-
allowedJobKinds?: Array<string>
|
|
50
46
|
maxJobsPerDay?: number | null
|
|
51
47
|
jobsUsedToday?: number | null
|
|
52
48
|
budgetWindow?: string | null
|
|
@@ -67,8 +63,6 @@ export declare function _IssuedGrantAspect<TBase extends new (...args: any[]) =>
|
|
|
67
63
|
grantId?: string | null
|
|
68
64
|
token?: string | null
|
|
69
65
|
allowedActions?: Array<string>
|
|
70
|
-
walletId?: string | null
|
|
71
|
-
allowedJobKinds?: Array<string>
|
|
72
66
|
maxJobsPerDay?: number | null
|
|
73
67
|
validUntil?: __.CdsTimestamp | null
|
|
74
68
|
} & InstanceType<TBase>
|
|
@@ -156,11 +150,11 @@ export declare const GetGrantStatus: {
|
|
|
156
150
|
|
|
157
151
|
export declare const CreateAgentGrant: {
|
|
158
152
|
// positional
|
|
159
|
-
(allowedActions: Array<string>,
|
|
153
|
+
(allowedActions: Array<string>, maxJobsPerDay: number | null, validUntil: __.CdsTimestamp | null, agentLabel: string | null): globalThis.Promise<IssuedGrant | null> | IssuedGrant | null
|
|
160
154
|
// named
|
|
161
|
-
({allowedActions,
|
|
155
|
+
({allowedActions, maxJobsPerDay, validUntil, agentLabel}: {allowedActions?: Array<string>, maxJobsPerDay?: number | null, validUntil?: __.CdsTimestamp | null, agentLabel?: string | null}): globalThis.Promise<IssuedGrant | null> | IssuedGrant | null
|
|
162
156
|
// metadata (do not use)
|
|
163
|
-
__parameters: {allowedActions?: Array<string>,
|
|
157
|
+
__parameters: {allowedActions?: Array<string>, maxJobsPerDay?: number | null, validUntil?: __.CdsTimestamp | null, agentLabel?: string | null}, __returns: globalThis.Promise<IssuedGrant | null> | IssuedGrant | null, __self: never
|
|
164
158
|
kind: 'action'
|
|
165
159
|
}
|
|
166
160
|
|
|
@@ -186,11 +180,11 @@ export declare const RotateAgentGrantToken: {
|
|
|
186
180
|
|
|
187
181
|
export declare const UpdateAgentGrant: {
|
|
188
182
|
// positional
|
|
189
|
-
(grantId: string | null, agentLabel: string | null, allowedActions: Array<string>,
|
|
183
|
+
(grantId: string | null, agentLabel: string | null, allowedActions: Array<string>, maxJobsPerDay: number | null, validUntil: __.CdsTimestamp | null): globalThis.Promise<UpdatedGrant | null> | UpdatedGrant | null
|
|
190
184
|
// named
|
|
191
|
-
({grantId, agentLabel, allowedActions,
|
|
185
|
+
({grantId, agentLabel, allowedActions, maxJobsPerDay, validUntil}: {grantId?: string | null, agentLabel?: string | null, allowedActions?: Array<string>, maxJobsPerDay?: number | null, validUntil?: __.CdsTimestamp | null}): globalThis.Promise<UpdatedGrant | null> | UpdatedGrant | null
|
|
192
186
|
// metadata (do not use)
|
|
193
|
-
__parameters: {grantId?: string | null, agentLabel?: string | null, allowedActions?: Array<string>,
|
|
187
|
+
__parameters: {grantId?: string | null, agentLabel?: string | null, allowedActions?: Array<string>, maxJobsPerDay?: number | null, validUntil?: __.CdsTimestamp | null}, __returns: globalThis.Promise<UpdatedGrant | null> | UpdatedGrant | null, __self: never
|
|
194
188
|
kind: 'action'
|
|
195
189
|
}
|
|
196
190
|
|
|
@@ -5,12 +5,18 @@ import * as __ from './../_';
|
|
|
5
5
|
export default class {
|
|
6
6
|
static readonly getStatus: typeof getStatus;
|
|
7
7
|
static readonly getLiveness: typeof getLiveness;
|
|
8
|
+
static readonly getReadiness: typeof getReadiness;
|
|
8
9
|
static readonly pauseCrawler: typeof pauseCrawler;
|
|
9
10
|
static readonly resumeCrawler: typeof resumeCrawler;
|
|
10
11
|
static readonly importUtxoSet: typeof importUtxoSet;
|
|
11
12
|
static readonly backfillCertificates: typeof backfillCertificates;
|
|
12
13
|
static readonly backfillTransactions: typeof backfillTransactions;
|
|
13
14
|
static readonly backfillPaymentCredentials: typeof backfillPaymentCredentials;
|
|
15
|
+
static readonly backfillOutputDatums: typeof backfillOutputDatums;
|
|
16
|
+
static readonly backfillMetadataPositions: typeof backfillMetadataPositions;
|
|
17
|
+
static readonly backfillEpochs: typeof backfillEpochs;
|
|
18
|
+
static readonly pruneInputAssetCopies: typeof pruneInputAssetCopies;
|
|
19
|
+
static readonly restoreInputAssetCopies: typeof restoreInputAssetCopies;
|
|
14
20
|
static readonly backfillAssetDecimals: typeof backfillAssetDecimals;
|
|
15
21
|
static readonly backfillAssetRegistry: typeof backfillAssetRegistry;
|
|
16
22
|
}
|
|
@@ -95,6 +101,11 @@ export declare function _CrawlerStatusAspect<TBase extends new (...args: any[])
|
|
|
95
101
|
credentialBackfill?: CredentialBackfillStatus | null
|
|
96
102
|
decimalsBackfill?: DecimalsBackfillStatus | null
|
|
97
103
|
registryBackfill?: RegistryBackfillStatus | null
|
|
104
|
+
datumBackfill?: DatumBackfillStatus | null
|
|
105
|
+
metadataBackfill?: MetadataBackfillStatus | null
|
|
106
|
+
epochBackfill?: EpochBackfillStatus | null
|
|
107
|
+
copyPrune?: InputCopyPruneStatus | null
|
|
108
|
+
copyRestore?: InputCopyRestoreStatus | null
|
|
98
109
|
epochSnapshots?: EpochSnapshotStatus | null
|
|
99
110
|
} & InstanceType<TBase>
|
|
100
111
|
readonly kind: 'type';
|
|
@@ -113,6 +124,9 @@ export declare function _EpochSnapshotStatusAspect<TBase extends new (...args: a
|
|
|
113
124
|
lastEpoch?: number | null
|
|
114
125
|
lastSource?: string | null
|
|
115
126
|
lastSlot?: string | null
|
|
127
|
+
accounts?: boolean | null
|
|
128
|
+
lastAccountEpoch?: number | null
|
|
129
|
+
lastAccountCount?: number | null
|
|
116
130
|
} & InstanceType<TBase>
|
|
117
131
|
readonly kind: 'type';
|
|
118
132
|
readonly keys: __.KeysOf<EpochSnapshotStatus>;
|
|
@@ -132,6 +146,7 @@ export declare function _CertificateBackfillStatusAspect<TBase extends new (...a
|
|
|
132
146
|
blocks?: number | null
|
|
133
147
|
certificates?: number | null
|
|
134
148
|
withdrawals?: number | null
|
|
149
|
+
removed?: number | null
|
|
135
150
|
startedAt?: __.CdsTimestamp | null
|
|
136
151
|
finishedAt?: __.CdsTimestamp | null
|
|
137
152
|
error?: string | null
|
|
@@ -154,6 +169,7 @@ export declare function _TransactionBackfillStatusAspect<TBase extends new (...a
|
|
|
154
169
|
blocks?: number | null
|
|
155
170
|
transactions?: number | null
|
|
156
171
|
inputs?: number | null
|
|
172
|
+
outputs?: number | null
|
|
157
173
|
redeemers?: number | null
|
|
158
174
|
datums?: number | null
|
|
159
175
|
rewritten?: number | null
|
|
@@ -217,6 +233,8 @@ export declare function _RegistryBackfillStatusAspect<TBase extends new (...args
|
|
|
217
233
|
processed?: number | null
|
|
218
234
|
filled?: number | null
|
|
219
235
|
failed?: number | null
|
|
236
|
+
absent?: number | null
|
|
237
|
+
skipped?: number | null
|
|
220
238
|
startedAt?: __.CdsTimestamp | null
|
|
221
239
|
finishedAt?: __.CdsTimestamp | null
|
|
222
240
|
error?: string | null
|
|
@@ -229,6 +247,109 @@ export declare function _RegistryBackfillStatusAspect<TBase extends new (...args
|
|
|
229
247
|
export class RegistryBackfillStatus extends _RegistryBackfillStatusAspect(__.Entity) {
|
|
230
248
|
}
|
|
231
249
|
|
|
250
|
+
// entity 'DatumBackfillStatus'
|
|
251
|
+
export declare function _DatumBackfillStatusAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
252
|
+
new (...args: any[]): {
|
|
253
|
+
status?: string | null
|
|
254
|
+
scanned?: number | null
|
|
255
|
+
candidates?: number | null
|
|
256
|
+
transactions?: number | null
|
|
257
|
+
missing?: number | null
|
|
258
|
+
outputs?: number | null
|
|
259
|
+
inputs?: number | null
|
|
260
|
+
ledgerUtxos?: number | null
|
|
261
|
+
startedAt?: __.CdsTimestamp | null
|
|
262
|
+
finishedAt?: __.CdsTimestamp | null
|
|
263
|
+
error?: string | null
|
|
264
|
+
} & InstanceType<TBase>
|
|
265
|
+
readonly kind: 'type';
|
|
266
|
+
readonly keys: __.KeysOf<DatumBackfillStatus>;
|
|
267
|
+
readonly elements: __.ElementsOf<DatumBackfillStatus>;
|
|
268
|
+
readonly actions: globalThis.Record<never, never>;
|
|
269
|
+
};
|
|
270
|
+
export class DatumBackfillStatus extends _DatumBackfillStatusAspect(__.Entity) {
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
// entity 'EpochBackfillStatus'
|
|
274
|
+
export declare function _EpochBackfillStatusAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
275
|
+
new (...args: any[]): {
|
|
276
|
+
status?: string | null
|
|
277
|
+
atEpoch?: number | null
|
|
278
|
+
toEpoch?: number | null
|
|
279
|
+
updated?: number | null
|
|
280
|
+
created?: number | null
|
|
281
|
+
startedAt?: __.CdsTimestamp | null
|
|
282
|
+
finishedAt?: __.CdsTimestamp | null
|
|
283
|
+
error?: string | null
|
|
284
|
+
} & InstanceType<TBase>
|
|
285
|
+
readonly kind: 'type';
|
|
286
|
+
readonly keys: __.KeysOf<EpochBackfillStatus>;
|
|
287
|
+
readonly elements: __.ElementsOf<EpochBackfillStatus>;
|
|
288
|
+
readonly actions: globalThis.Record<never, never>;
|
|
289
|
+
};
|
|
290
|
+
export class EpochBackfillStatus extends _EpochBackfillStatusAspect(__.Entity) {
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
// entity 'InputCopyPruneStatus'
|
|
294
|
+
export declare function _InputCopyPruneStatusAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
295
|
+
new (...args: any[]): {
|
|
296
|
+
status?: string | null
|
|
297
|
+
atSlot?: string | null
|
|
298
|
+
toSlot?: string | null
|
|
299
|
+
referenced?: number | null
|
|
300
|
+
kept?: number | null
|
|
301
|
+
deleted?: number | null
|
|
302
|
+
startedAt?: __.CdsTimestamp | null
|
|
303
|
+
finishedAt?: __.CdsTimestamp | null
|
|
304
|
+
error?: string | null
|
|
305
|
+
} & InstanceType<TBase>
|
|
306
|
+
readonly kind: 'type';
|
|
307
|
+
readonly keys: __.KeysOf<InputCopyPruneStatus>;
|
|
308
|
+
readonly elements: __.ElementsOf<InputCopyPruneStatus>;
|
|
309
|
+
readonly actions: globalThis.Record<never, never>;
|
|
310
|
+
};
|
|
311
|
+
export class InputCopyPruneStatus extends _InputCopyPruneStatusAspect(__.Entity) {
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
// entity 'InputCopyRestoreStatus'
|
|
315
|
+
export declare function _InputCopyRestoreStatusAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
316
|
+
new (...args: any[]): {
|
|
317
|
+
status?: string | null
|
|
318
|
+
atSlot?: string | null
|
|
319
|
+
toSlot?: string | null
|
|
320
|
+
restored?: number | null
|
|
321
|
+
rows?: number | null
|
|
322
|
+
startedAt?: __.CdsTimestamp | null
|
|
323
|
+
finishedAt?: __.CdsTimestamp | null
|
|
324
|
+
error?: string | null
|
|
325
|
+
} & InstanceType<TBase>
|
|
326
|
+
readonly kind: 'type';
|
|
327
|
+
readonly keys: __.KeysOf<InputCopyRestoreStatus>;
|
|
328
|
+
readonly elements: __.ElementsOf<InputCopyRestoreStatus>;
|
|
329
|
+
readonly actions: globalThis.Record<never, never>;
|
|
330
|
+
};
|
|
331
|
+
export class InputCopyRestoreStatus extends _InputCopyRestoreStatusAspect(__.Entity) {
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
// entity 'MetadataBackfillStatus'
|
|
335
|
+
export declare function _MetadataBackfillStatusAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
336
|
+
new (...args: any[]): {
|
|
337
|
+
status?: string | null
|
|
338
|
+
atSlot?: string | null
|
|
339
|
+
toSlot?: string | null
|
|
340
|
+
rows?: number | null
|
|
341
|
+
startedAt?: __.CdsTimestamp | null
|
|
342
|
+
finishedAt?: __.CdsTimestamp | null
|
|
343
|
+
error?: string | null
|
|
344
|
+
} & InstanceType<TBase>
|
|
345
|
+
readonly kind: 'type';
|
|
346
|
+
readonly keys: __.KeysOf<MetadataBackfillStatus>;
|
|
347
|
+
readonly elements: __.ElementsOf<MetadataBackfillStatus>;
|
|
348
|
+
readonly actions: globalThis.Record<never, never>;
|
|
349
|
+
};
|
|
350
|
+
export class MetadataBackfillStatus extends _MetadataBackfillStatusAspect(__.Entity) {
|
|
351
|
+
}
|
|
352
|
+
|
|
232
353
|
// entity 'BackfillResult'
|
|
233
354
|
export declare function _BackfillResultAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
234
355
|
new (...args: any[]): {
|
|
@@ -310,6 +431,23 @@ export declare function _LivenessAspect<TBase extends new (...args: any[]) => ob
|
|
|
310
431
|
export class Liveness extends _LivenessAspect(__.Entity) {
|
|
311
432
|
}
|
|
312
433
|
|
|
434
|
+
// entity 'Readiness'
|
|
435
|
+
export declare function _ReadinessAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
436
|
+
new (...args: any[]): {
|
|
437
|
+
status?: string | null
|
|
438
|
+
timestamp?: __.CdsTimestamp | null
|
|
439
|
+
context?: boolean | null
|
|
440
|
+
database?: boolean | null
|
|
441
|
+
hsm?: boolean | null
|
|
442
|
+
} & InstanceType<TBase>
|
|
443
|
+
readonly kind: 'type';
|
|
444
|
+
readonly keys: __.KeysOf<Readiness>;
|
|
445
|
+
readonly elements: __.ElementsOf<Readiness>;
|
|
446
|
+
readonly actions: globalThis.Record<never, never>;
|
|
447
|
+
};
|
|
448
|
+
export class Readiness extends _ReadinessAspect(__.Entity) {
|
|
449
|
+
}
|
|
450
|
+
|
|
313
451
|
// event
|
|
314
452
|
export declare class blockIndexed {
|
|
315
453
|
readonly kind: 'event';
|
|
@@ -348,6 +486,16 @@ export declare const getLiveness: {
|
|
|
348
486
|
kind: 'function'
|
|
349
487
|
}
|
|
350
488
|
|
|
489
|
+
export declare const getReadiness: {
|
|
490
|
+
// positional
|
|
491
|
+
(): globalThis.Promise<Readiness | null> | Readiness | null
|
|
492
|
+
// named
|
|
493
|
+
({}: globalThis.Record<never, never>): globalThis.Promise<Readiness | null> | Readiness | null
|
|
494
|
+
// metadata (do not use)
|
|
495
|
+
__parameters: globalThis.Record<never, never>, __returns: globalThis.Promise<Readiness | null> | Readiness | null, __self: never
|
|
496
|
+
kind: 'function'
|
|
497
|
+
}
|
|
498
|
+
|
|
351
499
|
export declare const pauseCrawler: {
|
|
352
500
|
// positional
|
|
353
501
|
(): globalThis.Promise<boolean | null> | boolean | null
|
|
@@ -408,7 +556,7 @@ export declare const backfillPaymentCredentials: {
|
|
|
408
556
|
kind: 'action'
|
|
409
557
|
}
|
|
410
558
|
|
|
411
|
-
export declare const
|
|
559
|
+
export declare const backfillOutputDatums: {
|
|
412
560
|
// positional
|
|
413
561
|
(): globalThis.Promise<BackfillResult | null> | BackfillResult | null
|
|
414
562
|
// named
|
|
@@ -418,7 +566,17 @@ export declare const backfillAssetDecimals: {
|
|
|
418
566
|
kind: 'action'
|
|
419
567
|
}
|
|
420
568
|
|
|
421
|
-
export declare const
|
|
569
|
+
export declare const backfillMetadataPositions: {
|
|
570
|
+
// positional
|
|
571
|
+
(): globalThis.Promise<BackfillResult | null> | BackfillResult | null
|
|
572
|
+
// named
|
|
573
|
+
({}: globalThis.Record<never, never>): globalThis.Promise<BackfillResult | null> | BackfillResult | null
|
|
574
|
+
// metadata (do not use)
|
|
575
|
+
__parameters: globalThis.Record<never, never>, __returns: globalThis.Promise<BackfillResult | null> | BackfillResult | null, __self: never
|
|
576
|
+
kind: 'action'
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
export declare const backfillEpochs: {
|
|
422
580
|
// positional
|
|
423
581
|
(): globalThis.Promise<BackfillResult | null> | BackfillResult | null
|
|
424
582
|
// named
|
|
@@ -426,4 +584,44 @@ export declare const backfillAssetRegistry: {
|
|
|
426
584
|
// metadata (do not use)
|
|
427
585
|
__parameters: globalThis.Record<never, never>, __returns: globalThis.Promise<BackfillResult | null> | BackfillResult | null, __self: never
|
|
428
586
|
kind: 'action'
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
export declare const pruneInputAssetCopies: {
|
|
590
|
+
// positional
|
|
591
|
+
(fromSlot: number, toSlot: number, slotWindow: number | null): globalThis.Promise<BackfillResult | null> | BackfillResult | null
|
|
592
|
+
// named
|
|
593
|
+
({fromSlot, toSlot, slotWindow}: {fromSlot: number, toSlot: number, slotWindow?: number | null}): globalThis.Promise<BackfillResult | null> | BackfillResult | null
|
|
594
|
+
// metadata (do not use)
|
|
595
|
+
__parameters: {fromSlot: number, toSlot: number, slotWindow?: number | null}, __returns: globalThis.Promise<BackfillResult | null> | BackfillResult | null, __self: never
|
|
596
|
+
kind: 'action'
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
export declare const restoreInputAssetCopies: {
|
|
600
|
+
// positional
|
|
601
|
+
(fromSlot: number, toSlot: number, slotWindow: number | null): globalThis.Promise<BackfillResult | null> | BackfillResult | null
|
|
602
|
+
// named
|
|
603
|
+
({fromSlot, toSlot, slotWindow}: {fromSlot: number, toSlot: number, slotWindow?: number | null}): globalThis.Promise<BackfillResult | null> | BackfillResult | null
|
|
604
|
+
// metadata (do not use)
|
|
605
|
+
__parameters: {fromSlot: number, toSlot: number, slotWindow?: number | null}, __returns: globalThis.Promise<BackfillResult | null> | BackfillResult | null, __self: never
|
|
606
|
+
kind: 'action'
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
export declare const backfillAssetDecimals: {
|
|
610
|
+
// positional
|
|
611
|
+
(): globalThis.Promise<BackfillResult | null> | BackfillResult | null
|
|
612
|
+
// named
|
|
613
|
+
({}: globalThis.Record<never, never>): globalThis.Promise<BackfillResult | null> | BackfillResult | null
|
|
614
|
+
// metadata (do not use)
|
|
615
|
+
__parameters: globalThis.Record<never, never>, __returns: globalThis.Promise<BackfillResult | null> | BackfillResult | null, __self: never
|
|
616
|
+
kind: 'action'
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
export declare const backfillAssetRegistry: {
|
|
620
|
+
// positional
|
|
621
|
+
(source: _.AssetRegistrySource | null, path: string | null): globalThis.Promise<BackfillResult | null> | BackfillResult | null
|
|
622
|
+
// named
|
|
623
|
+
({source, path}: {source?: _.AssetRegistrySource | null, path?: string | null}): globalThis.Promise<BackfillResult | null> | BackfillResult | null
|
|
624
|
+
// metadata (do not use)
|
|
625
|
+
__parameters: {source?: _.AssetRegistrySource | null, path?: string | null}, __returns: globalThis.Promise<BackfillResult | null> | BackfillResult | null, __self: never
|
|
626
|
+
kind: 'action'
|
|
429
627
|
}
|
|
@@ -31,6 +31,21 @@ module.exports.__Array_DecimalsBackfillStatus_ = createEntityProxy(['CardanoInde
|
|
|
31
31
|
// RegistryBackfillStatus
|
|
32
32
|
module.exports.RegistryBackfillStatus = createEntityProxy(['CardanoIndexerService', 'RegistryBackfillStatus'], { target: { is_singular: true } })
|
|
33
33
|
module.exports.__Array_RegistryBackfillStatus_ = createEntityProxy(['CardanoIndexerService', 'RegistryBackfillStatus'], { target: { is_singular: false }})
|
|
34
|
+
// DatumBackfillStatus
|
|
35
|
+
module.exports.DatumBackfillStatus = createEntityProxy(['CardanoIndexerService', 'DatumBackfillStatus'], { target: { is_singular: true } })
|
|
36
|
+
module.exports.__Array_DatumBackfillStatus_ = createEntityProxy(['CardanoIndexerService', 'DatumBackfillStatus'], { target: { is_singular: false }})
|
|
37
|
+
// EpochBackfillStatus
|
|
38
|
+
module.exports.EpochBackfillStatus = createEntityProxy(['CardanoIndexerService', 'EpochBackfillStatus'], { target: { is_singular: true } })
|
|
39
|
+
module.exports.__Array_EpochBackfillStatus_ = createEntityProxy(['CardanoIndexerService', 'EpochBackfillStatus'], { target: { is_singular: false }})
|
|
40
|
+
// InputCopyPruneStatus
|
|
41
|
+
module.exports.InputCopyPruneStatus = createEntityProxy(['CardanoIndexerService', 'InputCopyPruneStatus'], { target: { is_singular: true } })
|
|
42
|
+
module.exports.__Array_InputCopyPruneStatus_ = createEntityProxy(['CardanoIndexerService', 'InputCopyPruneStatus'], { target: { is_singular: false }})
|
|
43
|
+
// InputCopyRestoreStatus
|
|
44
|
+
module.exports.InputCopyRestoreStatus = createEntityProxy(['CardanoIndexerService', 'InputCopyRestoreStatus'], { target: { is_singular: true } })
|
|
45
|
+
module.exports.__Array_InputCopyRestoreStatus_ = createEntityProxy(['CardanoIndexerService', 'InputCopyRestoreStatus'], { target: { is_singular: false }})
|
|
46
|
+
// MetadataBackfillStatus
|
|
47
|
+
module.exports.MetadataBackfillStatus = createEntityProxy(['CardanoIndexerService', 'MetadataBackfillStatus'], { target: { is_singular: true } })
|
|
48
|
+
module.exports.__Array_MetadataBackfillStatus_ = createEntityProxy(['CardanoIndexerService', 'MetadataBackfillStatus'], { target: { is_singular: false }})
|
|
34
49
|
// BackfillResult
|
|
35
50
|
module.exports.BackfillResult = createEntityProxy(['CardanoIndexerService', 'BackfillResult'], { target: { is_singular: true } })
|
|
36
51
|
module.exports.__Array_BackfillResult_ = createEntityProxy(['CardanoIndexerService', 'BackfillResult'], { target: { is_singular: false }})
|
|
@@ -46,18 +61,27 @@ module.exports.__Array_UtxoSetImportResult_ = createEntityProxy(['CardanoIndexer
|
|
|
46
61
|
// Liveness
|
|
47
62
|
module.exports.Liveness = createEntityProxy(['CardanoIndexerService', 'Liveness'], { target: { is_singular: true } })
|
|
48
63
|
module.exports.__Array_Liveness_ = createEntityProxy(['CardanoIndexerService', 'Liveness'], { target: { is_singular: false }})
|
|
64
|
+
// Readiness
|
|
65
|
+
module.exports.Readiness = createEntityProxy(['CardanoIndexerService', 'Readiness'], { target: { is_singular: true } })
|
|
66
|
+
module.exports.__Array_Readiness_ = createEntityProxy(['CardanoIndexerService', 'Readiness'], { target: { is_singular: false }})
|
|
49
67
|
// events
|
|
50
68
|
module.exports.blockIndexed = 'CardanoIndexerService.blockIndexed'
|
|
51
69
|
module.exports.reorg = 'CardanoIndexerService.reorg'
|
|
52
70
|
// actions
|
|
53
71
|
module.exports.getStatus = 'getStatus'
|
|
54
72
|
module.exports.getLiveness = 'getLiveness'
|
|
73
|
+
module.exports.getReadiness = 'getReadiness'
|
|
55
74
|
module.exports.pauseCrawler = 'pauseCrawler'
|
|
56
75
|
module.exports.resumeCrawler = 'resumeCrawler'
|
|
57
76
|
module.exports.importUtxoSet = 'importUtxoSet'
|
|
58
77
|
module.exports.backfillCertificates = 'backfillCertificates'
|
|
59
78
|
module.exports.backfillTransactions = 'backfillTransactions'
|
|
60
79
|
module.exports.backfillPaymentCredentials = 'backfillPaymentCredentials'
|
|
80
|
+
module.exports.backfillOutputDatums = 'backfillOutputDatums'
|
|
81
|
+
module.exports.backfillMetadataPositions = 'backfillMetadataPositions'
|
|
82
|
+
module.exports.backfillEpochs = 'backfillEpochs'
|
|
83
|
+
module.exports.pruneInputAssetCopies = 'pruneInputAssetCopies'
|
|
84
|
+
module.exports.restoreInputAssetCopies = 'restoreInputAssetCopies'
|
|
61
85
|
module.exports.backfillAssetDecimals = 'backfillAssetDecimals'
|
|
62
86
|
module.exports.backfillAssetRegistry = 'backfillAssetRegistry'
|
|
63
87
|
// enums
|
|
@@ -14,6 +14,7 @@ export default class {
|
|
|
14
14
|
static readonly GetTransactionByHash: typeof GetTransactionByHash;
|
|
15
15
|
static readonly GetTransactionConfirmations: typeof GetTransactionConfirmations;
|
|
16
16
|
static readonly GetMetadataByTxHash: typeof GetMetadataByTxHash;
|
|
17
|
+
static readonly GetMetadataByLabel: typeof GetMetadataByLabel;
|
|
17
18
|
static readonly GetAddressByBech32: typeof GetAddressByBech32;
|
|
18
19
|
static readonly GetUTxOsByAddress: typeof GetUTxOsByAddress;
|
|
19
20
|
static readonly GetUTxOsByCredential: typeof GetUTxOsByCredential;
|
|
@@ -56,7 +57,7 @@ export class NetworkInformation_ extends Array<NetworkInformation> {
|
|
|
56
57
|
export declare function _BlockAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
57
58
|
new (...args: any[]): {
|
|
58
59
|
hash?: __.Key<string>
|
|
59
|
-
time?:
|
|
60
|
+
time?: __.CdsTimestamp | null
|
|
60
61
|
height?: number | null
|
|
61
62
|
slotLeader?: string | null
|
|
62
63
|
epochNumber?: number | null
|
|
@@ -122,6 +123,12 @@ export declare function _PoolAspect<TBase extends new (...args: any[]) => object
|
|
|
122
123
|
margin?: (number | string) | null
|
|
123
124
|
fixedCost?: _.Lovelace | null
|
|
124
125
|
rewardAccount?: string | null
|
|
126
|
+
metadataUrl?: string | null
|
|
127
|
+
metadataHash?: _.Blake2b256 | null
|
|
128
|
+
name?: string | null
|
|
129
|
+
ticker?: string | null
|
|
130
|
+
homepage?: string | null
|
|
131
|
+
description?: string | null
|
|
125
132
|
} & InstanceType<TBase>
|
|
126
133
|
readonly kind: 'entity';
|
|
127
134
|
readonly keys: __.KeysOf<Pool>;
|
|
@@ -236,6 +243,8 @@ export declare function _EpochLedgerSnapshotAspect<TBase extends new (...args: a
|
|
|
236
243
|
drepCount?: number | null
|
|
237
244
|
drepAbstainStake?: _.Lovelace | null
|
|
238
245
|
drepNoConfidenceStake?: _.Lovelace | null
|
|
246
|
+
accountCount?: number | null
|
|
247
|
+
accountSnapshotSlot?: number | null
|
|
239
248
|
} & InstanceType<TBase>
|
|
240
249
|
readonly kind: 'entity';
|
|
241
250
|
readonly keys: __.KeysOf<EpochLedgerSnapshot>;
|
|
@@ -248,6 +257,28 @@ export class EpochLedgerSnapshots extends Array<EpochLedgerSnapshot> {
|
|
|
248
257
|
$count?: number
|
|
249
258
|
}
|
|
250
259
|
|
|
260
|
+
// entity 'AccountEpochSnapshot'
|
|
261
|
+
export declare function _AccountEpochSnapshotAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
262
|
+
new (...args: any[]): {
|
|
263
|
+
stakeAddress?: __.Key<_.Bech32>
|
|
264
|
+
epoch?: __.Key<number>
|
|
265
|
+
withdrawableAmount?: _.Lovelace | null
|
|
266
|
+
creditedAmount?: _.Lovelace | null
|
|
267
|
+
deposit?: _.Lovelace | null
|
|
268
|
+
poolId?: _.Bech32 | null
|
|
269
|
+
drepId?: _.Bech32 | null
|
|
270
|
+
} & InstanceType<TBase>
|
|
271
|
+
readonly kind: 'entity';
|
|
272
|
+
readonly keys: __.KeysOf<AccountEpochSnapshot>;
|
|
273
|
+
readonly elements: __.ElementsOf<AccountEpochSnapshot>;
|
|
274
|
+
readonly actions: globalThis.Record<never, never>;
|
|
275
|
+
};
|
|
276
|
+
export class AccountEpochSnapshot extends _AccountEpochSnapshotAspect(__.Entity) {
|
|
277
|
+
}
|
|
278
|
+
export class AccountEpochSnapshots extends Array<AccountEpochSnapshot> {
|
|
279
|
+
$count?: number
|
|
280
|
+
}
|
|
281
|
+
|
|
251
282
|
// entity 'Asset'
|
|
252
283
|
export declare function _AssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
253
284
|
new (...args: any[]): {
|
|
@@ -353,9 +384,10 @@ export declare function _TransactionInputAspect<TBase extends new (...args: any[
|
|
|
353
384
|
utxoData_paymentCredential?: string | null
|
|
354
385
|
spentTxHash?: _.Blake2b256 | null
|
|
355
386
|
spentOutputIndex?: number | null
|
|
387
|
+
spentTxSeq?: number | null
|
|
356
388
|
isCollateral?: boolean | null
|
|
357
389
|
isReference?: boolean | null
|
|
358
|
-
assets?: __.
|
|
390
|
+
assets?: __.Association.to.many<TransactionInputAssets>
|
|
359
391
|
hasAddresses?: boolean | null
|
|
360
392
|
hasAssets?: boolean | null
|
|
361
393
|
} & InstanceType<TBase>
|
|
@@ -402,7 +434,6 @@ export class TransactionOutputs extends Array<TransactionOutput> {
|
|
|
402
434
|
// entity 'TransactionInputAsset'
|
|
403
435
|
export declare function _TransactionInputAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
404
436
|
new (...args: any[]): {
|
|
405
|
-
input?: __.Key<__.Association.to<TransactionInput>>
|
|
406
437
|
input_txSeq?: __.Key<number>
|
|
407
438
|
input_inputIndex?: __.Key<number>
|
|
408
439
|
unit?: __.Key<_.AssetUnit>
|
|
@@ -411,6 +442,7 @@ export declare function _TransactionInputAssetAspect<TBase extends new (...args:
|
|
|
411
442
|
asset_assetNameHex?: _.HexBytes | null
|
|
412
443
|
asset_assetName?: string | null
|
|
413
444
|
asset_fingerprint?: string | null
|
|
445
|
+
input?: __.Association.to<TransactionInput> | null
|
|
414
446
|
} & InstanceType<TBase>
|
|
415
447
|
readonly kind: 'entity';
|
|
416
448
|
readonly keys: __.KeysOf<TransactionInputAsset>;
|
|
@@ -836,6 +868,7 @@ export declare function _TransactionMetadataAspect<TBase extends new (...args: a
|
|
|
836
868
|
tx_hash?: __.Key<_.Blake2b256>
|
|
837
869
|
label?: _.MetadataLabel | null
|
|
838
870
|
payload?: string | null
|
|
871
|
+
txSeq?: number | null
|
|
839
872
|
} & InstanceType<TBase>
|
|
840
873
|
readonly kind: 'entity';
|
|
841
874
|
readonly keys: __.KeysOf<TransactionMetadata>;
|
|
@@ -1010,6 +1043,16 @@ export declare const GetMetadataByTxHash: {
|
|
|
1010
1043
|
kind: 'action'
|
|
1011
1044
|
}
|
|
1012
1045
|
|
|
1046
|
+
export declare const GetMetadataByLabel: {
|
|
1047
|
+
// positional
|
|
1048
|
+
(label: string | null, fromSlot: number | null, limit: number | null, skip: number | null): globalThis.Promise<Array<TransactionMetadata>> | Array<TransactionMetadata>
|
|
1049
|
+
// named
|
|
1050
|
+
({label, fromSlot, limit, skip}: {label?: string | null, fromSlot?: number | null, limit?: number | null, skip?: number | null}): globalThis.Promise<Array<TransactionMetadata>> | Array<TransactionMetadata>
|
|
1051
|
+
// metadata (do not use)
|
|
1052
|
+
__parameters: {label?: string | null, fromSlot?: number | null, limit?: number | null, skip?: number | null}, __returns: globalThis.Promise<Array<TransactionMetadata>> | Array<TransactionMetadata>, __self: never
|
|
1053
|
+
kind: 'action'
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1013
1056
|
export declare const GetAddressByBech32: {
|
|
1014
1057
|
// positional
|
|
1015
1058
|
(address: _.Bech32 | null): globalThis.Promise<Address | null> | Address | null
|
|
@@ -1052,11 +1095,11 @@ export declare const GetAssetsByAddress: {
|
|
|
1052
1095
|
|
|
1053
1096
|
export declare const GetLatestTransactionsByAddress: {
|
|
1054
1097
|
// positional
|
|
1055
|
-
(address: _.Bech32 | null, limit: number | null, skip: number | null): globalThis.Promise<Array<AddressTransaction>> | Array<AddressTransaction>
|
|
1098
|
+
(address: _.Bech32 | null, limit: number | null, skip: number | null, sinceTime: number | null, waitMs: number | null): globalThis.Promise<Array<AddressTransaction>> | Array<AddressTransaction>
|
|
1056
1099
|
// named
|
|
1057
|
-
({address, limit, skip}: {address?: _.Bech32 | null, limit?: number | null, skip?: number | null}): globalThis.Promise<Array<AddressTransaction>> | Array<AddressTransaction>
|
|
1100
|
+
({address, limit, skip, sinceTime, waitMs}: {address?: _.Bech32 | null, limit?: number | null, skip?: number | null, sinceTime?: number | null, waitMs?: number | null}): globalThis.Promise<Array<AddressTransaction>> | Array<AddressTransaction>
|
|
1058
1101
|
// metadata (do not use)
|
|
1059
|
-
__parameters: {address?: _.Bech32 | null, limit?: number | null, skip?: number | null}, __returns: globalThis.Promise<Array<AddressTransaction>> | Array<AddressTransaction>, __self: never
|
|
1102
|
+
__parameters: {address?: _.Bech32 | null, limit?: number | null, skip?: number | null, sinceTime?: number | null, waitMs?: number | null}, __returns: globalThis.Promise<Array<AddressTransaction>> | Array<AddressTransaction>, __self: never
|
|
1060
1103
|
kind: 'action'
|
|
1061
1104
|
}
|
|
1062
1105
|
|
|
@@ -28,6 +28,9 @@ module.exports.DrepEpochSnapshots = createEntityProxy(['CardanoODataService', 'D
|
|
|
28
28
|
// EpochLedgerSnapshots
|
|
29
29
|
module.exports.EpochLedgerSnapshot = createEntityProxy(['CardanoODataService', 'EpochLedgerSnapshots'], { target: { is_singular: true } })
|
|
30
30
|
module.exports.EpochLedgerSnapshots = createEntityProxy(['CardanoODataService', 'EpochLedgerSnapshots'], { target: { is_singular: false }})
|
|
31
|
+
// AccountEpochSnapshots
|
|
32
|
+
module.exports.AccountEpochSnapshot = createEntityProxy(['CardanoODataService', 'AccountEpochSnapshots'], { target: { is_singular: true } })
|
|
33
|
+
module.exports.AccountEpochSnapshots = createEntityProxy(['CardanoODataService', 'AccountEpochSnapshots'], { target: { is_singular: false }})
|
|
31
34
|
// Assets
|
|
32
35
|
module.exports.Asset = createEntityProxy(['CardanoODataService', 'Assets'], { target: { is_singular: true } })
|
|
33
36
|
module.exports.Assets = createEntityProxy(['CardanoODataService', 'Assets'], { target: { is_singular: false }})
|
|
@@ -113,6 +116,7 @@ module.exports.GetAccountByStakeAddress = 'GetAccountByStakeAddress'
|
|
|
113
116
|
module.exports.GetTransactionByHash = 'GetTransactionByHash'
|
|
114
117
|
module.exports.GetTransactionConfirmations = 'GetTransactionConfirmations'
|
|
115
118
|
module.exports.GetMetadataByTxHash = 'GetMetadataByTxHash'
|
|
119
|
+
module.exports.GetMetadataByLabel = 'GetMetadataByLabel'
|
|
116
120
|
module.exports.GetAddressByBech32 = 'GetAddressByBech32'
|
|
117
121
|
module.exports.GetUTxOsByAddress = 'GetUTxOsByAddress'
|
|
118
122
|
module.exports.GetUTxOsByCredential = 'GetUTxOsByCredential'
|
|
@@ -462,11 +462,11 @@ export declare const SubmitVerifiedTransaction: {
|
|
|
462
462
|
|
|
463
463
|
export declare const VerifyDataSignature: {
|
|
464
464
|
// positional
|
|
465
|
-
(address: _.Bech32 | null, coseSignature: string | null, coseKey: string | null, expectedPayload: string | null): globalThis.Promise<{ valid?: boolean | null, reason?: string | null, signedPayload?: string | null, signerVkh?: string | null, } | null> | { valid?: boolean | null, reason?: string | null, signedPayload?: string | null, signerVkh?: string | null, } | null
|
|
465
|
+
(address: _.Bech32 | null, coseSignature: string | null, coseKey: string | null, expectedPayload: string | null): globalThis.Promise<{ valid?: boolean | null, reason?: string | null, signedPayload?: string | null, signedPayloadHex?: string | null, signerVkh?: string | null, } | null> | { valid?: boolean | null, reason?: string | null, signedPayload?: string | null, signedPayloadHex?: string | null, signerVkh?: string | null, } | null
|
|
466
466
|
// named
|
|
467
|
-
({address, coseSignature, coseKey, expectedPayload}: {address?: _.Bech32 | null, coseSignature?: string | null, coseKey?: string | null, expectedPayload?: string | null}): globalThis.Promise<{ valid?: boolean | null, reason?: string | null, signedPayload?: string | null, signerVkh?: string | null, } | null> | { valid?: boolean | null, reason?: string | null, signedPayload?: string | null, signerVkh?: string | null, } | null
|
|
467
|
+
({address, coseSignature, coseKey, expectedPayload}: {address?: _.Bech32 | null, coseSignature?: string | null, coseKey?: string | null, expectedPayload?: string | null}): globalThis.Promise<{ valid?: boolean | null, reason?: string | null, signedPayload?: string | null, signedPayloadHex?: string | null, signerVkh?: string | null, } | null> | { valid?: boolean | null, reason?: string | null, signedPayload?: string | null, signedPayloadHex?: string | null, signerVkh?: string | null, } | null
|
|
468
468
|
// metadata (do not use)
|
|
469
|
-
__parameters: {address?: _.Bech32 | null, coseSignature?: string | null, coseKey?: string | null, expectedPayload?: string | null}, __returns: globalThis.Promise<{ valid?: boolean | null, reason?: string | null, signedPayload?: string | null, signerVkh?: string | null, } | null> | { valid?: boolean | null, reason?: string | null, signedPayload?: string | null, signerVkh?: string | null, } | null, __self: never
|
|
469
|
+
__parameters: {address?: _.Bech32 | null, coseSignature?: string | null, coseKey?: string | null, expectedPayload?: string | null}, __returns: globalThis.Promise<{ valid?: boolean | null, reason?: string | null, signedPayload?: string | null, signedPayloadHex?: string | null, signerVkh?: string | null, } | null> | { valid?: boolean | null, reason?: string | null, signedPayload?: string | null, signedPayloadHex?: string | null, signerVkh?: string | null, } | null, __self: never
|
|
470
470
|
kind: 'action'
|
|
471
471
|
}
|
|
472
472
|
|
|
@@ -56,6 +56,7 @@ export declare function _WorkerWalletAspect<TBase extends new (...args: any[]) =
|
|
|
56
56
|
signerType?: _.WorkerSignerType | null
|
|
57
57
|
address?: _.Bech32 | null
|
|
58
58
|
publicKeyHash?: _.Blake2b224 | null
|
|
59
|
+
requiresRole?: string | null
|
|
59
60
|
enabled?: boolean | null
|
|
60
61
|
lastJobAt?: __.CdsTimestamp | null
|
|
61
62
|
jobsConfirmed?: number | null
|
|
@@ -169,11 +170,11 @@ export declare const CancelJob: {
|
|
|
169
170
|
|
|
170
171
|
export declare const GetJobStatus: {
|
|
171
172
|
// positional
|
|
172
|
-
(jobId: string | null): globalThis.Promise<JobStatus | null> | JobStatus | null
|
|
173
|
+
(jobId: string | null, waitMs: number | null): globalThis.Promise<JobStatus | null> | JobStatus | null
|
|
173
174
|
// named
|
|
174
|
-
({jobId}: {jobId?: string | null}): globalThis.Promise<JobStatus | null> | JobStatus | null
|
|
175
|
+
({jobId, waitMs}: {jobId?: string | null, waitMs?: number | null}): globalThis.Promise<JobStatus | null> | JobStatus | null
|
|
175
176
|
// metadata (do not use)
|
|
176
|
-
__parameters: {jobId?: string | null}, __returns: globalThis.Promise<JobStatus | null> | JobStatus | null, __self: never
|
|
177
|
+
__parameters: {jobId?: string | null, waitMs?: number | null}, __returns: globalThis.Promise<JobStatus | null> | JobStatus | null, __self: never
|
|
177
178
|
kind: 'function'
|
|
178
179
|
}
|
|
179
180
|
|
package/@cds-models/index.d.ts
CHANGED
|
@@ -73,9 +73,10 @@ export const WalletJobKind: {
|
|
|
73
73
|
multiAsset: "multiAsset",
|
|
74
74
|
mint: "mint",
|
|
75
75
|
plutusSpend: "plutusSpend",
|
|
76
|
+
payout: "payout",
|
|
76
77
|
submitSigned: "submitSigned",
|
|
77
78
|
}
|
|
78
|
-
export type WalletJobKind = "simpleAda" | "metadata" | "multiAsset" | "mint" | "plutusSpend" | "submitSigned"
|
|
79
|
+
export type WalletJobKind = "simpleAda" | "metadata" | "multiAsset" | "mint" | "plutusSpend" | "payout" | "submitSigned"
|
|
79
80
|
|
|
80
81
|
// enum
|
|
81
82
|
export const WorkerSignerType: {
|
|
@@ -101,6 +102,13 @@ export const UtxoSetImportSource: {
|
|
|
101
102
|
}
|
|
102
103
|
export type UtxoSetImportSource = "ogmios" | "file" | "aggregates" | "scripts"
|
|
103
104
|
|
|
105
|
+
// enum
|
|
106
|
+
export const AssetRegistrySource: {
|
|
107
|
+
koios: "koios",
|
|
108
|
+
file: "file",
|
|
109
|
+
}
|
|
110
|
+
export type AssetRegistrySource = "koios" | "file"
|
|
111
|
+
|
|
104
112
|
// the following represents the CDS aspect 'cuid'
|
|
105
113
|
export declare function _cuidAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
106
114
|
new (...args: any[]): {
|
package/@cds-models/index.js
CHANGED
|
@@ -44,7 +44,8 @@ module.exports.SigningStatus ??= { pending: "pending", signed: "signed", verifie
|
|
|
44
44
|
module.exports.CrawlSyncStatus ??= { stopped: "stopped", syncing: "syncing", synced: "synced", error: "error" }
|
|
45
45
|
module.exports.ReorgStatus ??= { detected: "detected", rolling_back: "rolling_back", reindexing: "reindexing", completed: "completed" }
|
|
46
46
|
module.exports.WalletJobStatus ??= { pending: "pending", building: "building", submitting: "submitting", submitted: "submitted", confirmed: "confirmed", failed: "failed", cancelled: "cancelled" }
|
|
47
|
-
module.exports.WalletJobKind ??= { simpleAda: "simpleAda", metadata: "metadata", multiAsset: "multiAsset", mint: "mint", plutusSpend: "plutusSpend", submitSigned: "submitSigned" }
|
|
47
|
+
module.exports.WalletJobKind ??= { simpleAda: "simpleAda", metadata: "metadata", multiAsset: "multiAsset", mint: "mint", plutusSpend: "plutusSpend", payout: "payout", submitSigned: "submitSigned" }
|
|
48
48
|
module.exports.WorkerSignerType ??= { hsm: "hsm", software: "software" }
|
|
49
49
|
module.exports.CardanoNetwork ??= { mainnet: "mainnet", preview: "preview", preprod: "preprod" }
|
|
50
50
|
module.exports.UtxoSetImportSource ??= { ogmios: "ogmios", file: "file", aggregates: "aggregates", scripts: "scripts" }
|
|
51
|
+
module.exports.AssetRegistrySource ??= { koios: "koios", file: "file" }
|