@odatano/core 2.0.0-rc.52 → 2.0.0-rc.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@cds-models/CardanoIndexerService/index.d.ts +2 -0
- package/@cds-models/odatano/cardano/index.d.ts +20 -0
- package/@cds-models/odatano/cardano/index.js +3 -0
- package/db/schema.cds +2480 -2455
- package/package.json +1 -1
- package/srv/blockchain/asset-supply.d.ts +15 -0
- package/srv/blockchain/asset-supply.js +109 -0
- package/srv/blockchain/cardano-indexer.js +31 -17
- package/srv/blockchain/crawler/certificate-backfill.js +2 -2
- package/srv/blockchain/crawler/crawler.d.ts +1 -0
- package/srv/blockchain/crawler/crawler.js +35 -1
- package/srv/blockchain/crawler/sync-state.d.ts +3 -0
- package/srv/blockchain/crawler/sync-state.js +12 -0
- package/srv/blockchain/crawler/utxo-set-import.js +4 -1
- package/srv/blockchain/ledger-state.d.ts +1 -0
- package/srv/blockchain/ledger-state.js +19 -0
- package/srv/cardano-backend-service.js +2 -0
- package/srv/cardano-service.js +4 -0
- package/srv/config.d.ts +3 -0
- package/srv/config.js +17 -1
- package/srv/server.js +2 -0
- package/srv/utils/db-indexes.d.ts +1 -1
- package/srv/utils/db-indexes.js +7 -2
- package/srv/utils/error-codes.d.ts +4 -0
- package/srv/utils/error-codes.js +4 -0
- package/srv/utils/mappers.js +4 -0
- package/srv/utils/read-guard.d.ts +62 -0
- package/srv/utils/read-guard.js +186 -0
- package/srv/utils/read-limits.d.ts +25 -0
- package/srv/utils/read-limits.js +77 -0
- package/srv/utils/tx-utils.js +10 -1
|
@@ -65,6 +65,8 @@ export declare function _SyncStateAspect<TBase extends new (...args: any[]) => o
|
|
|
65
65
|
utxoAnchorHash?: _.Blake2b256 | null
|
|
66
66
|
utxoSetImportedAt?: __.CdsTimestamp | null
|
|
67
67
|
utxoAppliedSlot?: number | null
|
|
68
|
+
utxoSetLovelace?: _.Lovelace | null
|
|
69
|
+
assetSupplyHeight?: number | null
|
|
68
70
|
utxoSetError?: string | null
|
|
69
71
|
leaseUntil?: __.CdsTimestamp | null
|
|
70
72
|
nodeBehindSince?: __.CdsTimestamp | null
|
|
@@ -289,6 +289,24 @@ export class AssetHistory_ extends Array<AssetHistory> {
|
|
|
289
289
|
$count?: number
|
|
290
290
|
}
|
|
291
291
|
|
|
292
|
+
// entity 'AssetSupply'
|
|
293
|
+
export declare function _AssetSupplyAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
294
|
+
new (...args: any[]): {
|
|
295
|
+
unit?: __.Key<_.AssetUnit>
|
|
296
|
+
totalSupply?: (number | string) | null
|
|
297
|
+
mintOrBurnCount?: number | null
|
|
298
|
+
} & InstanceType<TBase>
|
|
299
|
+
readonly kind: 'entity';
|
|
300
|
+
readonly keys: __.KeysOf<AssetSupply>;
|
|
301
|
+
readonly elements: __.ElementsOf<AssetSupply>;
|
|
302
|
+
readonly actions: globalThis.Record<never, never>;
|
|
303
|
+
};
|
|
304
|
+
export class AssetSupply extends _AssetSupplyAspect(__.Entity) {
|
|
305
|
+
}
|
|
306
|
+
export class AssetSupply_ extends Array<AssetSupply> {
|
|
307
|
+
$count?: number
|
|
308
|
+
}
|
|
309
|
+
|
|
292
310
|
// entity 'Drep'
|
|
293
311
|
export declare function _DrepAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
294
312
|
new (...args: any[]): {
|
|
@@ -1270,6 +1288,8 @@ export declare function _CardanoSyncStateAspect<TBase extends new (...args: any[
|
|
|
1270
1288
|
utxoAnchorHash?: _.Blake2b256 | null
|
|
1271
1289
|
utxoSetImportedAt?: __.CdsTimestamp | null
|
|
1272
1290
|
utxoAppliedSlot?: number | null
|
|
1291
|
+
utxoSetLovelace?: _.Lovelace | null
|
|
1292
|
+
assetSupplyHeight?: number | null
|
|
1273
1293
|
utxoSetError?: string | null
|
|
1274
1294
|
leaseUntil?: __.CdsTimestamp | null
|
|
1275
1295
|
nodeBehindSince?: __.CdsTimestamp | null
|
|
@@ -30,6 +30,9 @@ module.exports.Assets = createEntityProxy(['odatano.cardano', 'Assets'], { targe
|
|
|
30
30
|
// AssetHistory
|
|
31
31
|
module.exports.AssetHistory = createEntityProxy(['odatano.cardano', 'AssetHistory'], { target: { is_singular: true } })
|
|
32
32
|
module.exports.AssetHistory_ = createEntityProxy(['odatano.cardano', 'AssetHistory'], { target: { is_singular: false }})
|
|
33
|
+
// AssetSupply
|
|
34
|
+
module.exports.AssetSupply = createEntityProxy(['odatano.cardano', 'AssetSupply'], { target: { is_singular: true } })
|
|
35
|
+
module.exports.AssetSupply_ = createEntityProxy(['odatano.cardano', 'AssetSupply'], { target: { is_singular: false }})
|
|
33
36
|
// Dreps
|
|
34
37
|
module.exports.Drep = createEntityProxy(['odatano.cardano', 'Dreps'], { target: { is_singular: true } })
|
|
35
38
|
module.exports.Dreps = createEntityProxy(['odatano.cardano', 'Dreps'], { target: { is_singular: false }})
|