@odatano/core 2.0.0-rc.21 → 2.0.0-rc.24
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/CardanoBackendService/index.d.ts +357 -0
- package/@cds-models/CardanoBackendService/index.js +40 -0
- package/@cds-models/CardanoIndexerService/index.d.ts +18 -0
- package/@cds-models/CardanoIndexerService/index.js +3 -0
- package/@cds-models/CardanoODataService/index.d.ts +37 -0
- package/@cds-models/CardanoODataService/index.js +3 -0
- package/@cds-models/odatano/cardano/index.d.ts +37 -0
- package/@cds-models/odatano/cardano/index.js +3 -0
- package/db/schema.cds +2226 -2133
- package/package.json +182 -181
- package/srv/blockchain/backends/cardano-backend.d.ts +23 -0
- package/srv/blockchain/backends/cardano-backend.js +5 -0
- package/srv/blockchain/backends/odatano-backend.d.ts +59 -0
- package/srv/blockchain/backends/odatano-backend.js +154 -0
- package/srv/blockchain/backends/ogmios-backend.d.ts +92 -9
- package/srv/blockchain/backends/ogmios-backend.js +164 -32
- package/srv/blockchain/cardano-client.d.ts +19 -5
- package/srv/blockchain/cardano-client.js +53 -12
- package/srv/blockchain/cardano-indexer.d.ts +100 -4
- package/srv/blockchain/cardano-indexer.js +466 -23
- package/srv/blockchain/cardano-tx-builder.js +2 -2
- package/srv/blockchain/crawler/crawler.d.ts +20 -5
- package/srv/blockchain/crawler/crawler.js +78 -15
- package/srv/blockchain/crawler/utxo-set-import.js +3 -0
- package/srv/blockchain/ledger-state.d.ts +6 -0
- package/srv/blockchain/ledger-state.js +29 -0
- package/srv/blockchain/stored-chain.d.ts +30 -0
- package/srv/blockchain/stored-chain.js +208 -0
- package/srv/cardano-backend-service.cds +52 -0
- package/srv/cardano-backend-service.d.ts +2 -0
- package/srv/cardano-backend-service.js +217 -0
- package/srv/cardano-indexer-service.cds +176 -164
- package/srv/cardano-indexer-service.js +30 -0
- package/srv/cardano-service.cds +6 -1
- package/srv/cardano-service.js +5 -2
- package/srv/server.js +19 -2
- package/srv/utils/agent-grants.js +7 -0
- package/srv/utils/const.d.ts +4 -0
- package/srv/utils/const.js +4 -3
- package/srv/utils/db-indexes.js +1 -0
- package/srv/utils/errors.d.ts +8 -0
- package/srv/utils/errors.js +14 -1
- package/srv/utils/mappers.d.ts +19 -2
- package/srv/utils/mappers.js +25 -7
- package/srv/utils/types.d.ts +8 -1
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
// This is an automatically generated file. Please do not change its contents manually!
|
|
2
|
+
import * as __ from './../_';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Cardano Backend Service
|
|
6
|
+
*
|
|
7
|
+
* The data a CardanoBackend needs, for another ODATANO instance that uses this one as its
|
|
8
|
+
* backend (`backends: ["odatano"]`). Every operation answers the provider shape as a JSON
|
|
9
|
+
* string (`value`), so the caller maps it exactly like a Koios or Blockfrost answer.
|
|
10
|
+
* Stored blocks and transactions come from this instance's index; everything else goes
|
|
11
|
+
* through its own backends and crawled data, as the read service does. Nothing is persisted
|
|
12
|
+
* for the caller.
|
|
13
|
+
*/
|
|
14
|
+
export default class {
|
|
15
|
+
static readonly GetTransaction: typeof GetTransaction;
|
|
16
|
+
static readonly GetTransactionsBatch: typeof GetTransactionsBatch;
|
|
17
|
+
static readonly GetTransactionMetadata: typeof GetTransactionMetadata;
|
|
18
|
+
static readonly GetBlock: typeof GetBlock;
|
|
19
|
+
static readonly GetBlockByHeight: typeof GetBlockByHeight;
|
|
20
|
+
static readonly GetNextBlocks: typeof GetNextBlocks;
|
|
21
|
+
static readonly GetBlockTransactions: typeof GetBlockTransactions;
|
|
22
|
+
static readonly GetLatestBlock: typeof GetLatestBlock;
|
|
23
|
+
static readonly GetCurrentSlot: typeof GetCurrentSlot;
|
|
24
|
+
static readonly GetEpoch: typeof GetEpoch;
|
|
25
|
+
static readonly GetLatestEpoch: typeof GetLatestEpoch;
|
|
26
|
+
static readonly GetAddress: typeof GetAddress;
|
|
27
|
+
static readonly GetAddressUtxos: typeof GetAddressUtxos;
|
|
28
|
+
static readonly GetAddressTransactions: typeof GetAddressTransactions;
|
|
29
|
+
static readonly GetAddressTransactionHashes: typeof GetAddressTransactionHashes;
|
|
30
|
+
static readonly GetCredentialUtxos: typeof GetCredentialUtxos;
|
|
31
|
+
static readonly IsUtxoUnspent: typeof IsUtxoUnspent;
|
|
32
|
+
static readonly GetUnspentOutputs: typeof GetUnspentOutputs;
|
|
33
|
+
static readonly GetAccount: typeof GetAccount;
|
|
34
|
+
static readonly GetPool: typeof GetPool;
|
|
35
|
+
static readonly GetPoolIds: typeof GetPoolIds;
|
|
36
|
+
static readonly GetPools: typeof GetPools;
|
|
37
|
+
static readonly GetDrep: typeof GetDrep;
|
|
38
|
+
static readonly GetDrepIds: typeof GetDrepIds;
|
|
39
|
+
static readonly GetDreps: typeof GetDreps;
|
|
40
|
+
static readonly GetAssetInfo: typeof GetAssetInfo;
|
|
41
|
+
static readonly GetAssetHistory: typeof GetAssetHistory;
|
|
42
|
+
static readonly GetNetworkInformation: typeof GetNetworkInformation;
|
|
43
|
+
static readonly GetProtocolParameters: typeof GetProtocolParameters;
|
|
44
|
+
static readonly EvaluateTransaction: typeof EvaluateTransaction;
|
|
45
|
+
static readonly SubmitTransaction: typeof SubmitTransaction;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
export declare const GetTransaction: {
|
|
50
|
+
// positional
|
|
51
|
+
(hash: string | null): globalThis.Promise<string | null> | string | null
|
|
52
|
+
// named
|
|
53
|
+
({hash}: {hash?: string | null}): globalThis.Promise<string | null> | string | null
|
|
54
|
+
// metadata (do not use)
|
|
55
|
+
__parameters: {hash?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
56
|
+
kind: 'action'
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export declare const GetTransactionsBatch: {
|
|
60
|
+
// positional
|
|
61
|
+
(hashes: string | null): globalThis.Promise<string | null> | string | null
|
|
62
|
+
// named
|
|
63
|
+
({hashes}: {hashes?: string | null}): globalThis.Promise<string | null> | string | null
|
|
64
|
+
// metadata (do not use)
|
|
65
|
+
__parameters: {hashes?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
66
|
+
kind: 'action'
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export declare const GetTransactionMetadata: {
|
|
70
|
+
// positional
|
|
71
|
+
(hash: string | null): globalThis.Promise<string | null> | string | null
|
|
72
|
+
// named
|
|
73
|
+
({hash}: {hash?: string | null}): globalThis.Promise<string | null> | string | null
|
|
74
|
+
// metadata (do not use)
|
|
75
|
+
__parameters: {hash?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
76
|
+
kind: 'action'
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export declare const GetBlock: {
|
|
80
|
+
// positional
|
|
81
|
+
(hash: string | null): globalThis.Promise<string | null> | string | null
|
|
82
|
+
// named
|
|
83
|
+
({hash}: {hash?: string | null}): globalThis.Promise<string | null> | string | null
|
|
84
|
+
// metadata (do not use)
|
|
85
|
+
__parameters: {hash?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
86
|
+
kind: 'action'
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export declare const GetBlockByHeight: {
|
|
90
|
+
// positional
|
|
91
|
+
(height: number | null): globalThis.Promise<string | null> | string | null
|
|
92
|
+
// named
|
|
93
|
+
({height}: {height?: number | null}): globalThis.Promise<string | null> | string | null
|
|
94
|
+
// metadata (do not use)
|
|
95
|
+
__parameters: {height?: number | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
96
|
+
kind: 'action'
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export declare const GetNextBlocks: {
|
|
100
|
+
// positional
|
|
101
|
+
(afterHash: string | null, count: number | null, afterHeight: number | null): globalThis.Promise<string | null> | string | null
|
|
102
|
+
// named
|
|
103
|
+
({afterHash, count, afterHeight}: {afterHash?: string | null, count?: number | null, afterHeight?: number | null}): globalThis.Promise<string | null> | string | null
|
|
104
|
+
// metadata (do not use)
|
|
105
|
+
__parameters: {afterHash?: string | null, count?: number | null, afterHeight?: number | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
106
|
+
kind: 'action'
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export declare const GetBlockTransactions: {
|
|
110
|
+
// positional
|
|
111
|
+
(blockHash: string | null): globalThis.Promise<string | null> | string | null
|
|
112
|
+
// named
|
|
113
|
+
({blockHash}: {blockHash?: string | null}): globalThis.Promise<string | null> | string | null
|
|
114
|
+
// metadata (do not use)
|
|
115
|
+
__parameters: {blockHash?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
116
|
+
kind: 'action'
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export declare const GetLatestBlock: {
|
|
120
|
+
// positional
|
|
121
|
+
(): globalThis.Promise<string | null> | string | null
|
|
122
|
+
// named
|
|
123
|
+
({}: globalThis.Record<never, never>): globalThis.Promise<string | null> | string | null
|
|
124
|
+
// metadata (do not use)
|
|
125
|
+
__parameters: globalThis.Record<never, never>, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
126
|
+
kind: 'action'
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export declare const GetCurrentSlot: {
|
|
130
|
+
// positional
|
|
131
|
+
(): globalThis.Promise<string | null> | string | null
|
|
132
|
+
// named
|
|
133
|
+
({}: globalThis.Record<never, never>): globalThis.Promise<string | null> | string | null
|
|
134
|
+
// metadata (do not use)
|
|
135
|
+
__parameters: globalThis.Record<never, never>, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
136
|
+
kind: 'action'
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export declare const GetEpoch: {
|
|
140
|
+
// positional
|
|
141
|
+
(epoch: number | null): globalThis.Promise<string | null> | string | null
|
|
142
|
+
// named
|
|
143
|
+
({epoch}: {epoch?: number | null}): globalThis.Promise<string | null> | string | null
|
|
144
|
+
// metadata (do not use)
|
|
145
|
+
__parameters: {epoch?: number | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
146
|
+
kind: 'action'
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export declare const GetLatestEpoch: {
|
|
150
|
+
// positional
|
|
151
|
+
(): globalThis.Promise<string | null> | string | null
|
|
152
|
+
// named
|
|
153
|
+
({}: globalThis.Record<never, never>): globalThis.Promise<string | null> | string | null
|
|
154
|
+
// metadata (do not use)
|
|
155
|
+
__parameters: globalThis.Record<never, never>, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
156
|
+
kind: 'action'
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export declare const GetAddress: {
|
|
160
|
+
// positional
|
|
161
|
+
(address: string | null): globalThis.Promise<string | null> | string | null
|
|
162
|
+
// named
|
|
163
|
+
({address}: {address?: string | null}): globalThis.Promise<string | null> | string | null
|
|
164
|
+
// metadata (do not use)
|
|
165
|
+
__parameters: {address?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
166
|
+
kind: 'action'
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export declare const GetAddressUtxos: {
|
|
170
|
+
// positional
|
|
171
|
+
(address: string | null): globalThis.Promise<string | null> | string | null
|
|
172
|
+
// named
|
|
173
|
+
({address}: {address?: string | null}): globalThis.Promise<string | null> | string | null
|
|
174
|
+
// metadata (do not use)
|
|
175
|
+
__parameters: {address?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
176
|
+
kind: 'action'
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export declare const GetAddressTransactions: {
|
|
180
|
+
// positional
|
|
181
|
+
(address: string | null, limit: number | null): globalThis.Promise<string | null> | string | null
|
|
182
|
+
// named
|
|
183
|
+
({address, limit}: {address?: string | null, limit?: number | null}): globalThis.Promise<string | null> | string | null
|
|
184
|
+
// metadata (do not use)
|
|
185
|
+
__parameters: {address?: string | null, limit?: number | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
186
|
+
kind: 'action'
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export declare const GetAddressTransactionHashes: {
|
|
190
|
+
// positional
|
|
191
|
+
(address: string | null, limit: number | null): globalThis.Promise<string | null> | string | null
|
|
192
|
+
// named
|
|
193
|
+
({address, limit}: {address?: string | null, limit?: number | null}): globalThis.Promise<string | null> | string | null
|
|
194
|
+
// metadata (do not use)
|
|
195
|
+
__parameters: {address?: string | null, limit?: number | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
196
|
+
kind: 'action'
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export declare const GetCredentialUtxos: {
|
|
200
|
+
// positional
|
|
201
|
+
(credential: string | null): globalThis.Promise<string | null> | string | null
|
|
202
|
+
// named
|
|
203
|
+
({credential}: {credential?: string | null}): globalThis.Promise<string | null> | string | null
|
|
204
|
+
// metadata (do not use)
|
|
205
|
+
__parameters: {credential?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
206
|
+
kind: 'action'
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export declare const IsUtxoUnspent: {
|
|
210
|
+
// positional
|
|
211
|
+
(txHash: string | null, outputIndex: number | null): globalThis.Promise<string | null> | string | null
|
|
212
|
+
// named
|
|
213
|
+
({txHash, outputIndex}: {txHash?: string | null, outputIndex?: number | null}): globalThis.Promise<string | null> | string | null
|
|
214
|
+
// metadata (do not use)
|
|
215
|
+
__parameters: {txHash?: string | null, outputIndex?: number | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
216
|
+
kind: 'action'
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export declare const GetUnspentOutputs: {
|
|
220
|
+
// positional
|
|
221
|
+
(refs: string | null): globalThis.Promise<string | null> | string | null
|
|
222
|
+
// named
|
|
223
|
+
({refs}: {refs?: string | null}): globalThis.Promise<string | null> | string | null
|
|
224
|
+
// metadata (do not use)
|
|
225
|
+
__parameters: {refs?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
226
|
+
kind: 'action'
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export declare const GetAccount: {
|
|
230
|
+
// positional
|
|
231
|
+
(stakeAddress: string | null): globalThis.Promise<string | null> | string | null
|
|
232
|
+
// named
|
|
233
|
+
({stakeAddress}: {stakeAddress?: string | null}): globalThis.Promise<string | null> | string | null
|
|
234
|
+
// metadata (do not use)
|
|
235
|
+
__parameters: {stakeAddress?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
236
|
+
kind: 'action'
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export declare const GetPool: {
|
|
240
|
+
// positional
|
|
241
|
+
(poolId: string | null): globalThis.Promise<string | null> | string | null
|
|
242
|
+
// named
|
|
243
|
+
({poolId}: {poolId?: string | null}): globalThis.Promise<string | null> | string | null
|
|
244
|
+
// metadata (do not use)
|
|
245
|
+
__parameters: {poolId?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
246
|
+
kind: 'action'
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export declare const GetPoolIds: {
|
|
250
|
+
// positional
|
|
251
|
+
(): globalThis.Promise<string | null> | string | null
|
|
252
|
+
// named
|
|
253
|
+
({}: globalThis.Record<never, never>): globalThis.Promise<string | null> | string | null
|
|
254
|
+
// metadata (do not use)
|
|
255
|
+
__parameters: globalThis.Record<never, never>, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
256
|
+
kind: 'action'
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
export declare const GetPools: {
|
|
260
|
+
// positional
|
|
261
|
+
(ids: string | null): globalThis.Promise<string | null> | string | null
|
|
262
|
+
// named
|
|
263
|
+
({ids}: {ids?: string | null}): globalThis.Promise<string | null> | string | null
|
|
264
|
+
// metadata (do not use)
|
|
265
|
+
__parameters: {ids?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
266
|
+
kind: 'action'
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
export declare const GetDrep: {
|
|
270
|
+
// positional
|
|
271
|
+
(drepId: string | null): globalThis.Promise<string | null> | string | null
|
|
272
|
+
// named
|
|
273
|
+
({drepId}: {drepId?: string | null}): globalThis.Promise<string | null> | string | null
|
|
274
|
+
// metadata (do not use)
|
|
275
|
+
__parameters: {drepId?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
276
|
+
kind: 'action'
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
export declare const GetDrepIds: {
|
|
280
|
+
// positional
|
|
281
|
+
(): globalThis.Promise<string | null> | string | null
|
|
282
|
+
// named
|
|
283
|
+
({}: globalThis.Record<never, never>): globalThis.Promise<string | null> | string | null
|
|
284
|
+
// metadata (do not use)
|
|
285
|
+
__parameters: globalThis.Record<never, never>, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
286
|
+
kind: 'action'
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
export declare const GetDreps: {
|
|
290
|
+
// positional
|
|
291
|
+
(ids: string | null): globalThis.Promise<string | null> | string | null
|
|
292
|
+
// named
|
|
293
|
+
({ids}: {ids?: string | null}): globalThis.Promise<string | null> | string | null
|
|
294
|
+
// metadata (do not use)
|
|
295
|
+
__parameters: {ids?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
296
|
+
kind: 'action'
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export declare const GetAssetInfo: {
|
|
300
|
+
// positional
|
|
301
|
+
(unit: string | null): globalThis.Promise<string | null> | string | null
|
|
302
|
+
// named
|
|
303
|
+
({unit}: {unit?: string | null}): globalThis.Promise<string | null> | string | null
|
|
304
|
+
// metadata (do not use)
|
|
305
|
+
__parameters: {unit?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
306
|
+
kind: 'action'
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
export declare const GetAssetHistory: {
|
|
310
|
+
// positional
|
|
311
|
+
(unit: string | null, limit: number | null): globalThis.Promise<string | null> | string | null
|
|
312
|
+
// named
|
|
313
|
+
({unit, limit}: {unit?: string | null, limit?: number | null}): globalThis.Promise<string | null> | string | null
|
|
314
|
+
// metadata (do not use)
|
|
315
|
+
__parameters: {unit?: string | null, limit?: number | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
316
|
+
kind: 'action'
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
export declare const GetNetworkInformation: {
|
|
320
|
+
// positional
|
|
321
|
+
(): globalThis.Promise<string | null> | string | null
|
|
322
|
+
// named
|
|
323
|
+
({}: globalThis.Record<never, never>): globalThis.Promise<string | null> | string | null
|
|
324
|
+
// metadata (do not use)
|
|
325
|
+
__parameters: globalThis.Record<never, never>, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
326
|
+
kind: 'action'
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
export declare const GetProtocolParameters: {
|
|
330
|
+
// positional
|
|
331
|
+
(): globalThis.Promise<string | null> | string | null
|
|
332
|
+
// named
|
|
333
|
+
({}: globalThis.Record<never, never>): globalThis.Promise<string | null> | string | null
|
|
334
|
+
// metadata (do not use)
|
|
335
|
+
__parameters: globalThis.Record<never, never>, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
336
|
+
kind: 'action'
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
export declare const EvaluateTransaction: {
|
|
340
|
+
// positional
|
|
341
|
+
(cbor: string | null): globalThis.Promise<string | null> | string | null
|
|
342
|
+
// named
|
|
343
|
+
({cbor}: {cbor?: string | null}): globalThis.Promise<string | null> | string | null
|
|
344
|
+
// metadata (do not use)
|
|
345
|
+
__parameters: {cbor?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
346
|
+
kind: 'action'
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
export declare const SubmitTransaction: {
|
|
350
|
+
// positional
|
|
351
|
+
(cbor: string | null): globalThis.Promise<string | null> | string | null
|
|
352
|
+
// named
|
|
353
|
+
({cbor}: {cbor?: string | null}): globalThis.Promise<string | null> | string | null
|
|
354
|
+
// metadata (do not use)
|
|
355
|
+
__parameters: {cbor?: string | null}, __returns: globalThis.Promise<string | null> | string | null, __self: never
|
|
356
|
+
kind: 'action'
|
|
357
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This is an automatically generated file. Please do not change its contents manually!
|
|
2
|
+
const { createEntityProxy } = require('./../_')
|
|
3
|
+
// service
|
|
4
|
+
const CardanoBackendService = { name: 'CardanoBackendService' }
|
|
5
|
+
module.exports = CardanoBackendService
|
|
6
|
+
module.exports.CardanoBackendService = CardanoBackendService
|
|
7
|
+
// events
|
|
8
|
+
// actions
|
|
9
|
+
module.exports.GetTransaction = 'GetTransaction'
|
|
10
|
+
module.exports.GetTransactionsBatch = 'GetTransactionsBatch'
|
|
11
|
+
module.exports.GetTransactionMetadata = 'GetTransactionMetadata'
|
|
12
|
+
module.exports.GetBlock = 'GetBlock'
|
|
13
|
+
module.exports.GetBlockByHeight = 'GetBlockByHeight'
|
|
14
|
+
module.exports.GetNextBlocks = 'GetNextBlocks'
|
|
15
|
+
module.exports.GetBlockTransactions = 'GetBlockTransactions'
|
|
16
|
+
module.exports.GetLatestBlock = 'GetLatestBlock'
|
|
17
|
+
module.exports.GetCurrentSlot = 'GetCurrentSlot'
|
|
18
|
+
module.exports.GetEpoch = 'GetEpoch'
|
|
19
|
+
module.exports.GetLatestEpoch = 'GetLatestEpoch'
|
|
20
|
+
module.exports.GetAddress = 'GetAddress'
|
|
21
|
+
module.exports.GetAddressUtxos = 'GetAddressUtxos'
|
|
22
|
+
module.exports.GetAddressTransactions = 'GetAddressTransactions'
|
|
23
|
+
module.exports.GetAddressTransactionHashes = 'GetAddressTransactionHashes'
|
|
24
|
+
module.exports.GetCredentialUtxos = 'GetCredentialUtxos'
|
|
25
|
+
module.exports.IsUtxoUnspent = 'IsUtxoUnspent'
|
|
26
|
+
module.exports.GetUnspentOutputs = 'GetUnspentOutputs'
|
|
27
|
+
module.exports.GetAccount = 'GetAccount'
|
|
28
|
+
module.exports.GetPool = 'GetPool'
|
|
29
|
+
module.exports.GetPoolIds = 'GetPoolIds'
|
|
30
|
+
module.exports.GetPools = 'GetPools'
|
|
31
|
+
module.exports.GetDrep = 'GetDrep'
|
|
32
|
+
module.exports.GetDrepIds = 'GetDrepIds'
|
|
33
|
+
module.exports.GetDreps = 'GetDreps'
|
|
34
|
+
module.exports.GetAssetInfo = 'GetAssetInfo'
|
|
35
|
+
module.exports.GetAssetHistory = 'GetAssetHistory'
|
|
36
|
+
module.exports.GetNetworkInformation = 'GetNetworkInformation'
|
|
37
|
+
module.exports.GetProtocolParameters = 'GetProtocolParameters'
|
|
38
|
+
module.exports.EvaluateTransaction = 'EvaluateTransaction'
|
|
39
|
+
module.exports.SubmitTransaction = 'SubmitTransaction'
|
|
40
|
+
// enums
|
|
@@ -102,6 +102,7 @@ export declare function _CrawlerStatusAspect<TBase extends new (...args: any[])
|
|
|
102
102
|
consecutiveErrors?: number | null
|
|
103
103
|
utxoSet?: UtxoSetStatus | null
|
|
104
104
|
certificateBackfill?: CertificateBackfillStatus | null
|
|
105
|
+
epochSnapshots?: EpochSnapshotStatus | null
|
|
105
106
|
} & InstanceType<TBase>
|
|
106
107
|
readonly kind: 'type';
|
|
107
108
|
readonly keys: __.KeysOf<CrawlerStatus>;
|
|
@@ -111,6 +112,23 @@ export declare function _CrawlerStatusAspect<TBase extends new (...args: any[])
|
|
|
111
112
|
export class CrawlerStatus extends _CrawlerStatusAspect(__.Entity) {
|
|
112
113
|
}
|
|
113
114
|
|
|
115
|
+
// entity 'EpochSnapshotStatus'
|
|
116
|
+
export declare function _EpochSnapshotStatusAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
117
|
+
new (...args: any[]): {
|
|
118
|
+
enabled?: boolean | null
|
|
119
|
+
source?: string | null
|
|
120
|
+
lastEpoch?: number | null
|
|
121
|
+
lastSource?: string | null
|
|
122
|
+
lastSlot?: string | null
|
|
123
|
+
} & InstanceType<TBase>
|
|
124
|
+
readonly kind: 'type';
|
|
125
|
+
readonly keys: __.KeysOf<EpochSnapshotStatus>;
|
|
126
|
+
readonly elements: __.ElementsOf<EpochSnapshotStatus>;
|
|
127
|
+
readonly actions: globalThis.Record<never, never>;
|
|
128
|
+
};
|
|
129
|
+
export class EpochSnapshotStatus extends _EpochSnapshotStatusAspect(__.Entity) {
|
|
130
|
+
}
|
|
131
|
+
|
|
114
132
|
// entity 'CertificateBackfillStatus'
|
|
115
133
|
export declare function _CertificateBackfillStatusAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
116
134
|
new (...args: any[]): {
|
|
@@ -13,6 +13,9 @@ module.exports.ReorgLog_ = createEntityProxy(['CardanoIndexerService', 'ReorgLog
|
|
|
13
13
|
// CrawlerStatus
|
|
14
14
|
module.exports.CrawlerStatus = createEntityProxy(['CardanoIndexerService', 'CrawlerStatus'], { target: { is_singular: true } })
|
|
15
15
|
module.exports.__Array_CrawlerStatus_ = createEntityProxy(['CardanoIndexerService', 'CrawlerStatus'], { target: { is_singular: false }})
|
|
16
|
+
// EpochSnapshotStatus
|
|
17
|
+
module.exports.EpochSnapshotStatus = createEntityProxy(['CardanoIndexerService', 'EpochSnapshotStatus'], { target: { is_singular: true } })
|
|
18
|
+
module.exports.__Array_EpochSnapshotStatus_ = createEntityProxy(['CardanoIndexerService', 'EpochSnapshotStatus'], { target: { is_singular: false }})
|
|
16
19
|
// CertificateBackfillStatus
|
|
17
20
|
module.exports.CertificateBackfillStatus = createEntityProxy(['CardanoIndexerService', 'CertificateBackfillStatus'], { target: { is_singular: true } })
|
|
18
21
|
module.exports.__Array_CertificateBackfillStatus_ = createEntityProxy(['CardanoIndexerService', 'CertificateBackfillStatus'], { target: { is_singular: false }})
|
|
@@ -192,6 +192,8 @@ export declare function _PoolEpochSnapshotAspect<TBase extends new (...args: any
|
|
|
192
192
|
epoch?: __.Key<number>
|
|
193
193
|
snapshotSlot?: number | null
|
|
194
194
|
snapshotTime?: number | null
|
|
195
|
+
snapshotHash?: _.Blake2b256 | null
|
|
196
|
+
source?: string | null
|
|
195
197
|
blocksMinted?: number | null
|
|
196
198
|
blocksEpoch?: number | null
|
|
197
199
|
liveStake?: _.Lovelace | null
|
|
@@ -222,6 +224,11 @@ export declare function _DrepEpochSnapshotAspect<TBase extends new (...args: any
|
|
|
222
224
|
epoch?: __.Key<number>
|
|
223
225
|
snapshotSlot?: number | null
|
|
224
226
|
snapshotTime?: number | null
|
|
227
|
+
snapshotHash?: _.Blake2b256 | null
|
|
228
|
+
source?: string | null
|
|
229
|
+
deposit?: _.Lovelace | null
|
|
230
|
+
expiresEpoch?: number | null
|
|
231
|
+
delegatorCount?: number | null
|
|
225
232
|
amount?: _.Lovelace | null
|
|
226
233
|
hasScript?: boolean | null
|
|
227
234
|
lastActiveEpoch?: number | null
|
|
@@ -239,6 +246,35 @@ export class DrepEpochSnapshots extends Array<DrepEpochSnapshot> {
|
|
|
239
246
|
$count?: number
|
|
240
247
|
}
|
|
241
248
|
|
|
249
|
+
// entity 'EpochLedgerSnapshot'
|
|
250
|
+
export declare function _EpochLedgerSnapshotAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
251
|
+
new (...args: any[]): {
|
|
252
|
+
epoch?: __.Key<number>
|
|
253
|
+
snapshotSlot?: number | null
|
|
254
|
+
snapshotTime?: number | null
|
|
255
|
+
snapshotHash?: _.Blake2b256 | null
|
|
256
|
+
source?: string | null
|
|
257
|
+
treasury?: _.Lovelace | null
|
|
258
|
+
reserves?: _.Lovelace | null
|
|
259
|
+
totalSupply?: _.Lovelace | null
|
|
260
|
+
liveStake?: _.Lovelace | null
|
|
261
|
+
activeStake?: _.Lovelace | null
|
|
262
|
+
poolCount?: number | null
|
|
263
|
+
drepCount?: number | null
|
|
264
|
+
drepAbstainStake?: _.Lovelace | null
|
|
265
|
+
drepNoConfidenceStake?: _.Lovelace | null
|
|
266
|
+
} & InstanceType<TBase>
|
|
267
|
+
readonly kind: 'entity';
|
|
268
|
+
readonly keys: __.KeysOf<EpochLedgerSnapshot>;
|
|
269
|
+
readonly elements: __.ElementsOf<EpochLedgerSnapshot>;
|
|
270
|
+
readonly actions: globalThis.Record<never, never>;
|
|
271
|
+
};
|
|
272
|
+
export class EpochLedgerSnapshot extends _EpochLedgerSnapshotAspect(__.Entity) {
|
|
273
|
+
}
|
|
274
|
+
export class EpochLedgerSnapshots extends Array<EpochLedgerSnapshot> {
|
|
275
|
+
$count?: number
|
|
276
|
+
}
|
|
277
|
+
|
|
242
278
|
// entity 'Asset'
|
|
243
279
|
export declare function _AssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
244
280
|
new (...args: any[]): {
|
|
@@ -532,6 +568,7 @@ export declare function _LedgerAddressAspect<TBase extends new (...args: any[])
|
|
|
532
568
|
new (...args: any[]): {
|
|
533
569
|
address?: __.Key<_.Bech32>
|
|
534
570
|
stakeAddress?: _.Bech32 | null
|
|
571
|
+
paymentCredential?: string | null
|
|
535
572
|
addressType?: string | null
|
|
536
573
|
isScript?: boolean | null
|
|
537
574
|
totalLovelace?: _.Lovelace | null
|
|
@@ -25,6 +25,9 @@ module.exports.PoolEpochSnapshots = createEntityProxy(['CardanoODataService', 'P
|
|
|
25
25
|
// DrepEpochSnapshots
|
|
26
26
|
module.exports.DrepEpochSnapshot = createEntityProxy(['CardanoODataService', 'DrepEpochSnapshots'], { target: { is_singular: true } })
|
|
27
27
|
module.exports.DrepEpochSnapshots = createEntityProxy(['CardanoODataService', 'DrepEpochSnapshots'], { target: { is_singular: false }})
|
|
28
|
+
// EpochLedgerSnapshots
|
|
29
|
+
module.exports.EpochLedgerSnapshot = createEntityProxy(['CardanoODataService', 'EpochLedgerSnapshots'], { target: { is_singular: true } })
|
|
30
|
+
module.exports.EpochLedgerSnapshots = createEntityProxy(['CardanoODataService', 'EpochLedgerSnapshots'], { target: { is_singular: false }})
|
|
28
31
|
// Assets
|
|
29
32
|
module.exports.Asset = createEntityProxy(['CardanoODataService', 'Assets'], { target: { is_singular: true } })
|
|
30
33
|
module.exports.Assets = createEntityProxy(['CardanoODataService', 'Assets'], { target: { is_singular: false }})
|
|
@@ -117,6 +117,8 @@ export declare function _PoolEpochSnapshotAspect<TBase extends new (...args: any
|
|
|
117
117
|
epoch?: __.Key<number>
|
|
118
118
|
snapshotSlot?: number | null
|
|
119
119
|
snapshotTime?: number | null
|
|
120
|
+
snapshotHash?: _.Blake2b256 | null
|
|
121
|
+
source?: string | null
|
|
120
122
|
blocksMinted?: number | null
|
|
121
123
|
blocksEpoch?: number | null
|
|
122
124
|
liveStake?: _.Lovelace | null
|
|
@@ -147,6 +149,11 @@ export declare function _DrepEpochSnapshotAspect<TBase extends new (...args: any
|
|
|
147
149
|
epoch?: __.Key<number>
|
|
148
150
|
snapshotSlot?: number | null
|
|
149
151
|
snapshotTime?: number | null
|
|
152
|
+
snapshotHash?: _.Blake2b256 | null
|
|
153
|
+
source?: string | null
|
|
154
|
+
deposit?: _.Lovelace | null
|
|
155
|
+
expiresEpoch?: number | null
|
|
156
|
+
delegatorCount?: number | null
|
|
150
157
|
amount?: _.Lovelace | null
|
|
151
158
|
hasScript?: boolean | null
|
|
152
159
|
lastActiveEpoch?: number | null
|
|
@@ -164,6 +171,35 @@ export class DrepEpochSnapshots extends Array<DrepEpochSnapshot> {
|
|
|
164
171
|
$count?: number
|
|
165
172
|
}
|
|
166
173
|
|
|
174
|
+
// entity 'EpochLedgerSnapshot'
|
|
175
|
+
export declare function _EpochLedgerSnapshotAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
176
|
+
new (...args: any[]): {
|
|
177
|
+
epoch?: __.Key<number>
|
|
178
|
+
snapshotSlot?: number | null
|
|
179
|
+
snapshotTime?: number | null
|
|
180
|
+
snapshotHash?: _.Blake2b256 | null
|
|
181
|
+
source?: string | null
|
|
182
|
+
treasury?: _.Lovelace | null
|
|
183
|
+
reserves?: _.Lovelace | null
|
|
184
|
+
totalSupply?: _.Lovelace | null
|
|
185
|
+
liveStake?: _.Lovelace | null
|
|
186
|
+
activeStake?: _.Lovelace | null
|
|
187
|
+
poolCount?: number | null
|
|
188
|
+
drepCount?: number | null
|
|
189
|
+
drepAbstainStake?: _.Lovelace | null
|
|
190
|
+
drepNoConfidenceStake?: _.Lovelace | null
|
|
191
|
+
} & InstanceType<TBase>
|
|
192
|
+
readonly kind: 'entity';
|
|
193
|
+
readonly keys: __.KeysOf<EpochLedgerSnapshot>;
|
|
194
|
+
readonly elements: __.ElementsOf<EpochLedgerSnapshot>;
|
|
195
|
+
readonly actions: globalThis.Record<never, never>;
|
|
196
|
+
};
|
|
197
|
+
export class EpochLedgerSnapshot extends _EpochLedgerSnapshotAspect(__.Entity) {
|
|
198
|
+
}
|
|
199
|
+
export class EpochLedgerSnapshots extends Array<EpochLedgerSnapshot> {
|
|
200
|
+
$count?: number
|
|
201
|
+
}
|
|
202
|
+
|
|
167
203
|
// entity 'Asset'
|
|
168
204
|
export declare function _AssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
169
205
|
new (...args: any[]): {
|
|
@@ -529,6 +565,7 @@ export declare function _LedgerAddressAspect<TBase extends new (...args: any[])
|
|
|
529
565
|
new (...args: any[]): {
|
|
530
566
|
address?: __.Key<_.Bech32>
|
|
531
567
|
stakeAddress?: _.Bech32 | null
|
|
568
|
+
paymentCredential?: string | null
|
|
532
569
|
addressType?: string | null
|
|
533
570
|
isScript?: boolean | null
|
|
534
571
|
totalLovelace?: _.Lovelace | null
|
|
@@ -18,6 +18,9 @@ module.exports.PoolEpochSnapshots = createEntityProxy(['odatano.cardano', 'PoolE
|
|
|
18
18
|
// DrepEpochSnapshots
|
|
19
19
|
module.exports.DrepEpochSnapshot = createEntityProxy(['odatano.cardano', 'DrepEpochSnapshots'], { target: { is_singular: true } })
|
|
20
20
|
module.exports.DrepEpochSnapshots = createEntityProxy(['odatano.cardano', 'DrepEpochSnapshots'], { target: { is_singular: false }})
|
|
21
|
+
// EpochLedgerSnapshots
|
|
22
|
+
module.exports.EpochLedgerSnapshot = createEntityProxy(['odatano.cardano', 'EpochLedgerSnapshots'], { target: { is_singular: true } })
|
|
23
|
+
module.exports.EpochLedgerSnapshots = createEntityProxy(['odatano.cardano', 'EpochLedgerSnapshots'], { target: { is_singular: false }})
|
|
21
24
|
// Assets
|
|
22
25
|
module.exports.Asset = createEntityProxy(['odatano.cardano', 'Assets'], { target: { is_singular: true } })
|
|
23
26
|
module.exports.Assets = createEntityProxy(['odatano.cardano', 'Assets'], { target: { is_singular: false }})
|