@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
|
@@ -32,7 +32,7 @@ export class NetworkInformation_ extends Array<NetworkInformation> {
|
|
|
32
32
|
export declare function _BlockAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
33
33
|
new (...args: any[]): {
|
|
34
34
|
hash?: __.Key<string>
|
|
35
|
-
time?:
|
|
35
|
+
time?: __.CdsTimestamp | null
|
|
36
36
|
height?: number | null
|
|
37
37
|
slotLeader?: string | null
|
|
38
38
|
epochNumber?: number | null
|
|
@@ -98,6 +98,12 @@ export declare function _PoolAspect<TBase extends new (...args: any[]) => object
|
|
|
98
98
|
margin?: (number | string) | null
|
|
99
99
|
fixedCost?: _.Lovelace | null
|
|
100
100
|
rewardAccount?: string | null
|
|
101
|
+
metadataUrl?: string | null
|
|
102
|
+
metadataHash?: _.Blake2b256 | null
|
|
103
|
+
name?: string | null
|
|
104
|
+
ticker?: string | null
|
|
105
|
+
homepage?: string | null
|
|
106
|
+
description?: string | null
|
|
101
107
|
} & InstanceType<ReturnType<typeof _._temporalAspect<TBase>>>
|
|
102
108
|
readonly kind: 'entity';
|
|
103
109
|
readonly keys: __.KeysOf<Pool>;
|
|
@@ -110,6 +116,120 @@ export class Pools extends Array<Pool> {
|
|
|
110
116
|
$count?: number
|
|
111
117
|
}
|
|
112
118
|
|
|
119
|
+
// entity 'PoolEpochSnapshot'
|
|
120
|
+
export declare function _PoolEpochSnapshotAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
121
|
+
new (...args: any[]): {
|
|
122
|
+
poolId?: __.Key<_.Bech32>
|
|
123
|
+
epoch?: __.Key<number>
|
|
124
|
+
snapshotSlot?: number | null
|
|
125
|
+
snapshotTime?: number | null
|
|
126
|
+
snapshotHash?: _.Blake2b256 | null
|
|
127
|
+
source?: string | null
|
|
128
|
+
blocksMinted?: number | null
|
|
129
|
+
blocksEpoch?: number | null
|
|
130
|
+
liveStake?: _.Lovelace | null
|
|
131
|
+
liveSize?: (number | string) | null
|
|
132
|
+
liveSaturation?: (number | string) | null
|
|
133
|
+
liveDelegators?: number | null
|
|
134
|
+
activeStake?: _.Lovelace | null
|
|
135
|
+
activeSize?: (number | string) | null
|
|
136
|
+
pledge?: _.Lovelace | null
|
|
137
|
+
margin?: (number | string) | null
|
|
138
|
+
fixedCost?: _.Lovelace | null
|
|
139
|
+
} & InstanceType<TBase>
|
|
140
|
+
readonly kind: 'entity';
|
|
141
|
+
readonly keys: __.KeysOf<PoolEpochSnapshot>;
|
|
142
|
+
readonly elements: __.ElementsOf<PoolEpochSnapshot>;
|
|
143
|
+
readonly actions: globalThis.Record<never, never>;
|
|
144
|
+
};
|
|
145
|
+
export class PoolEpochSnapshot extends _PoolEpochSnapshotAspect(__.Entity) {
|
|
146
|
+
}
|
|
147
|
+
export class PoolEpochSnapshots extends Array<PoolEpochSnapshot> {
|
|
148
|
+
$count?: number
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
// entity 'DrepEpochSnapshot'
|
|
152
|
+
export declare function _DrepEpochSnapshotAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
153
|
+
new (...args: any[]): {
|
|
154
|
+
drepId?: __.Key<_.Bech32>
|
|
155
|
+
epoch?: __.Key<number>
|
|
156
|
+
snapshotSlot?: number | null
|
|
157
|
+
snapshotTime?: number | null
|
|
158
|
+
snapshotHash?: _.Blake2b256 | null
|
|
159
|
+
source?: string | null
|
|
160
|
+
deposit?: _.Lovelace | null
|
|
161
|
+
expiresEpoch?: number | null
|
|
162
|
+
delegatorCount?: number | null
|
|
163
|
+
amount?: _.Lovelace | null
|
|
164
|
+
hasScript?: boolean | null
|
|
165
|
+
lastActiveEpoch?: number | null
|
|
166
|
+
retired?: boolean | null
|
|
167
|
+
expired?: boolean | null
|
|
168
|
+
} & InstanceType<TBase>
|
|
169
|
+
readonly kind: 'entity';
|
|
170
|
+
readonly keys: __.KeysOf<DrepEpochSnapshot>;
|
|
171
|
+
readonly elements: __.ElementsOf<DrepEpochSnapshot>;
|
|
172
|
+
readonly actions: globalThis.Record<never, never>;
|
|
173
|
+
};
|
|
174
|
+
export class DrepEpochSnapshot extends _DrepEpochSnapshotAspect(__.Entity) {
|
|
175
|
+
}
|
|
176
|
+
export class DrepEpochSnapshots extends Array<DrepEpochSnapshot> {
|
|
177
|
+
$count?: number
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// entity 'EpochLedgerSnapshot'
|
|
181
|
+
export declare function _EpochLedgerSnapshotAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
182
|
+
new (...args: any[]): {
|
|
183
|
+
epoch?: __.Key<number>
|
|
184
|
+
snapshotSlot?: number | null
|
|
185
|
+
snapshotTime?: number | null
|
|
186
|
+
snapshotHash?: _.Blake2b256 | null
|
|
187
|
+
source?: string | null
|
|
188
|
+
treasury?: _.Lovelace | null
|
|
189
|
+
reserves?: _.Lovelace | null
|
|
190
|
+
totalSupply?: _.Lovelace | null
|
|
191
|
+
liveStake?: _.Lovelace | null
|
|
192
|
+
activeStake?: _.Lovelace | null
|
|
193
|
+
poolCount?: number | null
|
|
194
|
+
drepCount?: number | null
|
|
195
|
+
drepAbstainStake?: _.Lovelace | null
|
|
196
|
+
drepNoConfidenceStake?: _.Lovelace | null
|
|
197
|
+
accountCount?: number | null
|
|
198
|
+
accountSnapshotSlot?: number | null
|
|
199
|
+
} & InstanceType<TBase>
|
|
200
|
+
readonly kind: 'entity';
|
|
201
|
+
readonly keys: __.KeysOf<EpochLedgerSnapshot>;
|
|
202
|
+
readonly elements: __.ElementsOf<EpochLedgerSnapshot>;
|
|
203
|
+
readonly actions: globalThis.Record<never, never>;
|
|
204
|
+
};
|
|
205
|
+
export class EpochLedgerSnapshot extends _EpochLedgerSnapshotAspect(__.Entity) {
|
|
206
|
+
}
|
|
207
|
+
export class EpochLedgerSnapshots extends Array<EpochLedgerSnapshot> {
|
|
208
|
+
$count?: number
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
// entity 'AccountEpochSnapshot'
|
|
212
|
+
export declare function _AccountEpochSnapshotAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
213
|
+
new (...args: any[]): {
|
|
214
|
+
stakeAddress?: __.Key<_.Bech32>
|
|
215
|
+
epoch?: __.Key<number>
|
|
216
|
+
withdrawableAmount?: _.Lovelace | null
|
|
217
|
+
creditedAmount?: _.Lovelace | null
|
|
218
|
+
deposit?: _.Lovelace | null
|
|
219
|
+
poolId?: _.Bech32 | null
|
|
220
|
+
drepId?: _.Bech32 | null
|
|
221
|
+
} & InstanceType<TBase>
|
|
222
|
+
readonly kind: 'entity';
|
|
223
|
+
readonly keys: __.KeysOf<AccountEpochSnapshot>;
|
|
224
|
+
readonly elements: __.ElementsOf<AccountEpochSnapshot>;
|
|
225
|
+
readonly actions: globalThis.Record<never, never>;
|
|
226
|
+
};
|
|
227
|
+
export class AccountEpochSnapshot extends _AccountEpochSnapshotAspect(__.Entity) {
|
|
228
|
+
}
|
|
229
|
+
export class AccountEpochSnapshots extends Array<AccountEpochSnapshot> {
|
|
230
|
+
$count?: number
|
|
231
|
+
}
|
|
232
|
+
|
|
113
233
|
// entity 'Asset'
|
|
114
234
|
export declare function _AssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
115
235
|
new (...args: any[]): {
|
|
@@ -128,6 +248,7 @@ export declare function _AssetAspect<TBase extends new (...args: any[]) => objec
|
|
|
128
248
|
registryName?: string | null
|
|
129
249
|
registryTicker?: string | null
|
|
130
250
|
registryDecimals?: number | null
|
|
251
|
+
decimals?: number | null
|
|
131
252
|
registryDescription?: string | null
|
|
132
253
|
registryUrl?: string | null
|
|
133
254
|
registryLogo?: string | null
|
|
@@ -225,7 +346,7 @@ export declare function _AddressAssetAspect<TBase extends new (...args: any[]) =
|
|
|
225
346
|
address?: __.Key<__.Association.to<Address>>
|
|
226
347
|
address_address?: __.Key<_.Bech32>
|
|
227
348
|
unit?: __.Key<_.AssetUnit>
|
|
228
|
-
asset_quantity?: _.
|
|
349
|
+
asset_quantity?: _.AssetAmount | null
|
|
229
350
|
asset_policyId?: _.Blake2b224 | null
|
|
230
351
|
asset_assetNameHex?: _.HexBytes | null
|
|
231
352
|
asset_assetName?: string | null
|
|
@@ -255,6 +376,9 @@ export declare function _AddressUTxOAspect<TBase extends new (...args: any[]) =>
|
|
|
255
376
|
utxodata_dataHash?: _.Blake2b256 | null
|
|
256
377
|
utxodata_inlineDatum?: string | null
|
|
257
378
|
utxodata_referenceScriptHash?: _.Blake2b256 | null
|
|
379
|
+
utxodata_referenceScriptSize?: number | null
|
|
380
|
+
utxodata_referenceScriptType?: string | null
|
|
381
|
+
utxodata_paymentCredential?: string | null
|
|
258
382
|
lovelace?: _.Lovelace | null
|
|
259
383
|
assets?: __.Composition.of.many<UTxOAssets>
|
|
260
384
|
hasAssets?: boolean | null
|
|
@@ -333,6 +457,7 @@ export class Accounts extends Array<Account> {
|
|
|
333
457
|
export declare function _TransactionAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
334
458
|
new (...args: any[]): {
|
|
335
459
|
hash?: __.Key<_.Blake2b256>
|
|
460
|
+
txSeq?: number | null
|
|
336
461
|
blockHash?: _.Blake2b256 | null
|
|
337
462
|
blockHeight?: number | null
|
|
338
463
|
blockTime?: number | null
|
|
@@ -344,6 +469,9 @@ export declare function _TransactionAspect<TBase extends new (...args: any[]) =>
|
|
|
344
469
|
metadata?: __.Composition.of.many<TransactionMetadata_>
|
|
345
470
|
inputs?: __.Composition.of.many<TransactionInputs>
|
|
346
471
|
outputs?: __.Composition.of.many<TransactionOutputs>
|
|
472
|
+
certificates?: __.Composition.of.many<TransactionCertificates>
|
|
473
|
+
withdrawals?: __.Composition.of.many<TransactionWithdrawals>
|
|
474
|
+
datums?: __.Composition.of.many<TransactionDatums>
|
|
347
475
|
hasMetadata?: boolean | null
|
|
348
476
|
hasInputs?: boolean | null
|
|
349
477
|
hasOutputs?: boolean | null
|
|
@@ -362,17 +490,23 @@ export class Transactions extends Array<Transaction> {
|
|
|
362
490
|
// entity 'TransactionInput'
|
|
363
491
|
export declare function _TransactionInputAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
364
492
|
new (...args: any[]): {
|
|
365
|
-
|
|
366
|
-
|
|
493
|
+
txSeq?: __.Key<number>
|
|
494
|
+
tx?: __.Association.to<Transaction> | null
|
|
367
495
|
inputIndex?: __.Key<number>
|
|
368
496
|
address?: __.Association.to<Address> | null
|
|
369
497
|
address_address?: _.Bech32 | null
|
|
370
498
|
utxoData_dataHash?: _.Blake2b256 | null
|
|
371
499
|
utxoData_inlineDatum?: string | null
|
|
372
500
|
utxoData_referenceScriptHash?: _.Blake2b256 | null
|
|
501
|
+
utxoData_referenceScriptSize?: number | null
|
|
502
|
+
utxoData_referenceScriptType?: string | null
|
|
503
|
+
utxoData_paymentCredential?: string | null
|
|
504
|
+
spentTxHash?: _.Blake2b256 | null
|
|
505
|
+
spentOutputIndex?: number | null
|
|
506
|
+
spentTxSeq?: number | null
|
|
373
507
|
isCollateral?: boolean | null
|
|
374
508
|
isReference?: boolean | null
|
|
375
|
-
assets?: __.
|
|
509
|
+
assets?: __.Association.to.many<TransactionInputAssets>
|
|
376
510
|
hasAddresses?: boolean | null
|
|
377
511
|
hasAssets?: boolean | null
|
|
378
512
|
} & InstanceType<TBase>
|
|
@@ -387,12 +521,35 @@ export class TransactionInputs extends Array<TransactionInput> {
|
|
|
387
521
|
$count?: number
|
|
388
522
|
}
|
|
389
523
|
|
|
524
|
+
// entity 'TransactionInputAssetCopy'
|
|
525
|
+
export declare function _TransactionInputAssetCopyAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
526
|
+
new (...args: any[]): {
|
|
527
|
+
input?: __.Key<__.Association.to<TransactionInput>>
|
|
528
|
+
input_txSeq?: __.Key<number>
|
|
529
|
+
input_inputIndex?: __.Key<number>
|
|
530
|
+
unit?: __.Key<_.AssetUnit>
|
|
531
|
+
asset_quantity?: _.Lovelace | null
|
|
532
|
+
asset_policyId?: _.Blake2b224 | null
|
|
533
|
+
asset_assetNameHex?: _.HexBytes | null
|
|
534
|
+
asset_assetName?: string | null
|
|
535
|
+
asset_fingerprint?: string | null
|
|
536
|
+
} & InstanceType<TBase>
|
|
537
|
+
readonly kind: 'entity';
|
|
538
|
+
readonly keys: __.KeysOf<TransactionInputAssetCopy>;
|
|
539
|
+
readonly elements: __.ElementsOf<TransactionInputAssetCopy>;
|
|
540
|
+
readonly actions: globalThis.Record<never, never>;
|
|
541
|
+
};
|
|
542
|
+
export class TransactionInputAssetCopy extends _TransactionInputAssetCopyAspect(__.Entity) {
|
|
543
|
+
}
|
|
544
|
+
export class TransactionInputAssetCopies extends Array<TransactionInputAssetCopy> {
|
|
545
|
+
$count?: number
|
|
546
|
+
}
|
|
547
|
+
|
|
390
548
|
// entity 'TransactionInputAsset'
|
|
391
549
|
export declare function _TransactionInputAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
392
550
|
new (...args: any[]): {
|
|
393
|
-
|
|
551
|
+
input_txSeq?: __.Key<number>
|
|
394
552
|
input_inputIndex?: __.Key<number>
|
|
395
|
-
input_tx_hash?: __.Key<_.Blake2b256>
|
|
396
553
|
unit?: __.Key<_.AssetUnit>
|
|
397
554
|
asset_quantity?: _.Lovelace | null
|
|
398
555
|
asset_policyId?: _.Blake2b224 | null
|
|
@@ -411,17 +568,234 @@ export class TransactionInputAssets extends Array<TransactionInputAsset> {
|
|
|
411
568
|
$count?: number
|
|
412
569
|
}
|
|
413
570
|
|
|
414
|
-
// entity '
|
|
415
|
-
export declare function
|
|
571
|
+
// entity 'LedgerUTxO'
|
|
572
|
+
export declare function _LedgerUTxOAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
573
|
+
new (...args: any[]): {
|
|
574
|
+
txHash?: __.Key<_.Blake2b256>
|
|
575
|
+
outputIndex?: __.Key<number>
|
|
576
|
+
address?: _.Bech32 | null
|
|
577
|
+
stakeAddress?: _.Bech32 | null
|
|
578
|
+
addressType?: string | null
|
|
579
|
+
isScript?: boolean | null
|
|
580
|
+
lovelace?: _.Lovelace | null
|
|
581
|
+
createdSlot?: number | null
|
|
582
|
+
spentTxHash?: _.Blake2b256 | null
|
|
583
|
+
spentSlot?: number | null
|
|
584
|
+
utxo_dataHash?: _.Blake2b256 | null
|
|
585
|
+
utxo_inlineDatum?: string | null
|
|
586
|
+
utxo_referenceScriptHash?: _.Blake2b256 | null
|
|
587
|
+
utxo_referenceScriptSize?: number | null
|
|
588
|
+
utxo_referenceScriptType?: string | null
|
|
589
|
+
utxo_paymentCredential?: string | null
|
|
590
|
+
hasAssets?: boolean | null
|
|
591
|
+
assets?: __.Composition.of.many<LedgerUTxOAssets>
|
|
592
|
+
} & InstanceType<TBase>
|
|
593
|
+
readonly kind: 'entity';
|
|
594
|
+
readonly keys: __.KeysOf<LedgerUTxO>;
|
|
595
|
+
readonly elements: __.ElementsOf<LedgerUTxO>;
|
|
596
|
+
readonly actions: globalThis.Record<never, never>;
|
|
597
|
+
};
|
|
598
|
+
export class LedgerUTxO extends _LedgerUTxOAspect(__.Entity) {
|
|
599
|
+
}
|
|
600
|
+
export class LedgerUTxOs extends Array<LedgerUTxO> {
|
|
601
|
+
$count?: number
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
// entity 'LedgerUTxOAsset'
|
|
605
|
+
export declare function _LedgerUTxOAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
606
|
+
new (...args: any[]): {
|
|
607
|
+
utxo?: __.Key<__.Association.to<LedgerUTxO>>
|
|
608
|
+
utxo_txHash?: __.Key<_.Blake2b256>
|
|
609
|
+
utxo_outputIndex?: __.Key<number>
|
|
610
|
+
unit?: __.Key<_.AssetUnit>
|
|
611
|
+
asset_quantity?: _.Lovelace | null
|
|
612
|
+
asset_policyId?: _.Blake2b224 | null
|
|
613
|
+
asset_assetNameHex?: _.HexBytes | null
|
|
614
|
+
asset_assetName?: string | null
|
|
615
|
+
asset_fingerprint?: string | null
|
|
616
|
+
} & InstanceType<TBase>
|
|
617
|
+
readonly kind: 'entity';
|
|
618
|
+
readonly keys: __.KeysOf<LedgerUTxOAsset>;
|
|
619
|
+
readonly elements: __.ElementsOf<LedgerUTxOAsset>;
|
|
620
|
+
readonly actions: globalThis.Record<never, never>;
|
|
621
|
+
};
|
|
622
|
+
export class LedgerUTxOAsset extends _LedgerUTxOAssetAspect(__.Entity) {
|
|
623
|
+
}
|
|
624
|
+
export class LedgerUTxOAssets extends Array<LedgerUTxOAsset> {
|
|
625
|
+
$count?: number
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
// entity 'LedgerAddress'
|
|
629
|
+
export declare function _LedgerAddressAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
630
|
+
new (...args: any[]): {
|
|
631
|
+
address?: __.Key<_.Bech32>
|
|
632
|
+
stakeAddress?: _.Bech32 | null
|
|
633
|
+
paymentCredential?: string | null
|
|
634
|
+
addressType?: string | null
|
|
635
|
+
isScript?: boolean | null
|
|
636
|
+
totalLovelace?: _.Lovelace | null
|
|
637
|
+
utxoCount?: number | null
|
|
638
|
+
firstSeenSlot?: number | null
|
|
639
|
+
lastActiveSlot?: number | null
|
|
640
|
+
assets?: __.Composition.of.many<LedgerAddressAssets>
|
|
641
|
+
utxos?: __.Association.to.many<LedgerUTxOs>
|
|
642
|
+
} & InstanceType<TBase>
|
|
643
|
+
readonly kind: 'entity';
|
|
644
|
+
readonly keys: __.KeysOf<LedgerAddress>;
|
|
645
|
+
readonly elements: __.ElementsOf<LedgerAddress>;
|
|
646
|
+
readonly actions: globalThis.Record<never, never>;
|
|
647
|
+
};
|
|
648
|
+
export class LedgerAddress extends _LedgerAddressAspect(__.Entity) {
|
|
649
|
+
}
|
|
650
|
+
export class LedgerAddresses extends Array<LedgerAddress> {
|
|
651
|
+
$count?: number
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
// entity 'LedgerAddressAsset'
|
|
655
|
+
export declare function _LedgerAddressAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
656
|
+
new (...args: any[]): {
|
|
657
|
+
address?: __.Key<__.Association.to<LedgerAddress>>
|
|
658
|
+
address_address?: __.Key<_.Bech32>
|
|
659
|
+
unit?: __.Key<_.AssetUnit>
|
|
660
|
+
asset_quantity?: _.AssetAmount | null
|
|
661
|
+
asset_policyId?: _.Blake2b224 | null
|
|
662
|
+
asset_assetNameHex?: _.HexBytes | null
|
|
663
|
+
asset_assetName?: string | null
|
|
664
|
+
asset_fingerprint?: string | null
|
|
665
|
+
} & InstanceType<TBase>
|
|
666
|
+
readonly kind: 'entity';
|
|
667
|
+
readonly keys: __.KeysOf<LedgerAddressAsset>;
|
|
668
|
+
readonly elements: __.ElementsOf<LedgerAddressAsset>;
|
|
669
|
+
readonly actions: globalThis.Record<never, never>;
|
|
670
|
+
};
|
|
671
|
+
export class LedgerAddressAsset extends _LedgerAddressAssetAspect(__.Entity) {
|
|
672
|
+
}
|
|
673
|
+
export class LedgerAddressAssets extends Array<LedgerAddressAsset> {
|
|
674
|
+
$count?: number
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
// entity 'LedgerAccount'
|
|
678
|
+
export declare function _LedgerAccountAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
679
|
+
new (...args: any[]): {
|
|
680
|
+
stakeAddress?: __.Key<_.Bech32>
|
|
681
|
+
controlledAmount?: _.Lovelace | null
|
|
682
|
+
addressCount?: number | null
|
|
683
|
+
utxoCount?: number | null
|
|
684
|
+
lastActiveSlot?: number | null
|
|
685
|
+
addresses?: __.Association.to.many<LedgerAddresses>
|
|
686
|
+
} & InstanceType<TBase>
|
|
687
|
+
readonly kind: 'entity';
|
|
688
|
+
readonly keys: __.KeysOf<LedgerAccount>;
|
|
689
|
+
readonly elements: __.ElementsOf<LedgerAccount>;
|
|
690
|
+
readonly actions: globalThis.Record<never, never>;
|
|
691
|
+
};
|
|
692
|
+
export class LedgerAccount extends _LedgerAccountAspect(__.Entity) {
|
|
693
|
+
}
|
|
694
|
+
export class LedgerAccounts extends Array<LedgerAccount> {
|
|
695
|
+
$count?: number
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
// entity 'TransactionCertificate'
|
|
699
|
+
export declare function _TransactionCertificateAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
700
|
+
new (...args: any[]): {
|
|
701
|
+
tx?: __.Key<__.Association.to<Transaction>>
|
|
702
|
+
tx_hash?: __.Key<_.Blake2b256>
|
|
703
|
+
certIndex?: __.Key<number>
|
|
704
|
+
kind?: __.Key<string>
|
|
705
|
+
stakeAddress?: _.Bech32 | null
|
|
706
|
+
poolId?: _.Bech32 | null
|
|
707
|
+
drepId?: _.Bech32 | null
|
|
708
|
+
deposit?: _.Lovelace | null
|
|
709
|
+
epoch?: number | null
|
|
710
|
+
} & InstanceType<TBase>
|
|
711
|
+
readonly kind: 'entity';
|
|
712
|
+
readonly keys: __.KeysOf<TransactionCertificate>;
|
|
713
|
+
readonly elements: __.ElementsOf<TransactionCertificate>;
|
|
714
|
+
readonly actions: globalThis.Record<never, never>;
|
|
715
|
+
};
|
|
716
|
+
export class TransactionCertificate extends _TransactionCertificateAspect(__.Entity) {
|
|
717
|
+
}
|
|
718
|
+
export class TransactionCertificates extends Array<TransactionCertificate> {
|
|
719
|
+
$count?: number
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
// entity 'TransactionWithdrawal'
|
|
723
|
+
export declare function _TransactionWithdrawalAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
724
|
+
new (...args: any[]): {
|
|
725
|
+
tx?: __.Key<__.Association.to<Transaction>>
|
|
726
|
+
tx_hash?: __.Key<_.Blake2b256>
|
|
727
|
+
stakeAddress?: __.Key<_.Bech32>
|
|
728
|
+
lovelace?: _.Lovelace | null
|
|
729
|
+
} & InstanceType<TBase>
|
|
730
|
+
readonly kind: 'entity';
|
|
731
|
+
readonly keys: __.KeysOf<TransactionWithdrawal>;
|
|
732
|
+
readonly elements: __.ElementsOf<TransactionWithdrawal>;
|
|
733
|
+
readonly actions: globalThis.Record<never, never>;
|
|
734
|
+
};
|
|
735
|
+
export class TransactionWithdrawal extends _TransactionWithdrawalAspect(__.Entity) {
|
|
736
|
+
}
|
|
737
|
+
export class TransactionWithdrawals extends Array<TransactionWithdrawal> {
|
|
738
|
+
$count?: number
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
// entity 'TransactionRedeemer'
|
|
742
|
+
export declare function _TransactionRedeemerAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
416
743
|
new (...args: any[]): {
|
|
417
744
|
tx?: __.Key<__.Association.to<Transaction>>
|
|
418
745
|
tx_hash?: __.Key<_.Blake2b256>
|
|
746
|
+
purpose?: __.Key<string>
|
|
747
|
+
redeemerIndex?: __.Key<number>
|
|
748
|
+
data?: string | null
|
|
749
|
+
mem?: number | null
|
|
750
|
+
steps?: number | null
|
|
751
|
+
spentTxHash?: _.Blake2b256 | null
|
|
752
|
+
spentOutputIndex?: number | null
|
|
753
|
+
policyId?: _.Blake2b224 | null
|
|
754
|
+
} & InstanceType<TBase>
|
|
755
|
+
readonly kind: 'entity';
|
|
756
|
+
readonly keys: __.KeysOf<TransactionRedeemer>;
|
|
757
|
+
readonly elements: __.ElementsOf<TransactionRedeemer>;
|
|
758
|
+
readonly actions: globalThis.Record<never, never>;
|
|
759
|
+
};
|
|
760
|
+
export class TransactionRedeemer extends _TransactionRedeemerAspect(__.Entity) {
|
|
761
|
+
}
|
|
762
|
+
export class TransactionRedeemers extends Array<TransactionRedeemer> {
|
|
763
|
+
$count?: number
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
// entity 'TransactionDatum'
|
|
767
|
+
export declare function _TransactionDatumAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
768
|
+
new (...args: any[]): {
|
|
769
|
+
tx?: __.Key<__.Association.to<Transaction>>
|
|
770
|
+
tx_hash?: __.Key<_.Blake2b256>
|
|
771
|
+
dataHash?: __.Key<_.Blake2b256>
|
|
772
|
+
datum?: string | null
|
|
773
|
+
} & InstanceType<TBase>
|
|
774
|
+
readonly kind: 'entity';
|
|
775
|
+
readonly keys: __.KeysOf<TransactionDatum>;
|
|
776
|
+
readonly elements: __.ElementsOf<TransactionDatum>;
|
|
777
|
+
readonly actions: globalThis.Record<never, never>;
|
|
778
|
+
};
|
|
779
|
+
export class TransactionDatum extends _TransactionDatumAspect(__.Entity) {
|
|
780
|
+
}
|
|
781
|
+
export class TransactionDatums extends Array<TransactionDatum> {
|
|
782
|
+
$count?: number
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
// entity 'TransactionOutput'
|
|
786
|
+
export declare function _TransactionOutputAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
787
|
+
new (...args: any[]): {
|
|
788
|
+
txSeq?: __.Key<number>
|
|
789
|
+
tx?: __.Association.to<Transaction> | null
|
|
419
790
|
outputIndex?: __.Key<number>
|
|
420
791
|
address?: __.Association.to<Address> | null
|
|
421
792
|
address_address?: _.Bech32 | null
|
|
422
793
|
utxo_dataHash?: _.Blake2b256 | null
|
|
423
794
|
utxo_inlineDatum?: string | null
|
|
424
795
|
utxo_referenceScriptHash?: _.Blake2b256 | null
|
|
796
|
+
utxo_referenceScriptSize?: number | null
|
|
797
|
+
utxo_referenceScriptType?: string | null
|
|
798
|
+
utxo_paymentCredential?: string | null
|
|
425
799
|
assets?: __.Composition.of.many<TransactionOutputAssets>
|
|
426
800
|
hasAddresses?: boolean | null
|
|
427
801
|
hasAssets?: boolean | null
|
|
@@ -441,8 +815,8 @@ export class TransactionOutputs extends Array<TransactionOutput> {
|
|
|
441
815
|
export declare function _TransactionOutputAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
442
816
|
new (...args: any[]): {
|
|
443
817
|
output?: __.Key<__.Association.to<TransactionOutput>>
|
|
818
|
+
output_txSeq?: __.Key<number>
|
|
444
819
|
output_outputIndex?: __.Key<number>
|
|
445
|
-
output_tx_hash?: __.Key<_.Blake2b256>
|
|
446
820
|
unit?: __.Key<_.AssetUnit>
|
|
447
821
|
asset_quantity?: _.Lovelace | null
|
|
448
822
|
asset_policyId?: _.Blake2b224 | null
|
|
@@ -469,6 +843,7 @@ export declare function _TransactionMetadataAspect<TBase extends new (...args: a
|
|
|
469
843
|
tx_hash?: __.Key<_.Blake2b256>
|
|
470
844
|
label?: _.MetadataLabel | null
|
|
471
845
|
payload?: string | null
|
|
846
|
+
txSeq?: number | null
|
|
472
847
|
} & InstanceType<TBase>
|
|
473
848
|
readonly kind: 'entity';
|
|
474
849
|
readonly keys: __.KeysOf<TransactionMetadata>;
|
|
@@ -516,6 +891,7 @@ export declare function _LedgerProtocolParameterAspect<TBase extends new (...arg
|
|
|
516
891
|
collateralPercent?: number | null
|
|
517
892
|
maxCollateralInputs?: number | null
|
|
518
893
|
coinsPerUtxoSize?: string | null
|
|
894
|
+
minFeeRefScriptCostPerByte?: (number | string) | null
|
|
519
895
|
coinsPerUtxoWord?: string | null
|
|
520
896
|
fetchedAt?: __.CdsTimestamp | null
|
|
521
897
|
source?: string | null
|
|
@@ -548,6 +924,7 @@ export declare function _TransactionBuildAspect<TBase extends new (...args: any[
|
|
|
548
924
|
createdAt?: number | null
|
|
549
925
|
inputs?: __.Composition.of.many<TransactionBuildInputs>
|
|
550
926
|
outputs?: __.Composition.of.many<TransactionBuildOutputs>
|
|
927
|
+
redeemers?: __.Composition.of.many<TransactionBuildRedeemers>
|
|
551
928
|
submission?: __.Association.to<TransactionSubmission> | null
|
|
552
929
|
hasInputs?: boolean | null
|
|
553
930
|
hasOutputs?: boolean | null
|
|
@@ -642,6 +1019,27 @@ export class TransactionBuildOutputs extends Array<TransactionBuildOutput> {
|
|
|
642
1019
|
$count?: number
|
|
643
1020
|
}
|
|
644
1021
|
|
|
1022
|
+
// entity 'TransactionBuildRedeemer'
|
|
1023
|
+
export declare function _TransactionBuildRedeemerAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
1024
|
+
new (...args: any[]): {
|
|
1025
|
+
build?: __.Key<__.Association.to<TransactionBuild>>
|
|
1026
|
+
build_id?: __.Key<string>
|
|
1027
|
+
tag?: __.Key<string>
|
|
1028
|
+
redeemerIndex?: __.Key<number>
|
|
1029
|
+
mem?: number | null
|
|
1030
|
+
steps?: number | null
|
|
1031
|
+
} & InstanceType<TBase>
|
|
1032
|
+
readonly kind: 'entity';
|
|
1033
|
+
readonly keys: __.KeysOf<TransactionBuildRedeemer>;
|
|
1034
|
+
readonly elements: __.ElementsOf<TransactionBuildRedeemer>;
|
|
1035
|
+
readonly actions: globalThis.Record<never, never>;
|
|
1036
|
+
};
|
|
1037
|
+
export class TransactionBuildRedeemer extends _TransactionBuildRedeemerAspect(__.Entity) {
|
|
1038
|
+
}
|
|
1039
|
+
export class TransactionBuildRedeemers extends Array<TransactionBuildRedeemer> {
|
|
1040
|
+
$count?: number
|
|
1041
|
+
}
|
|
1042
|
+
|
|
645
1043
|
// entity 'TransactionBuildOutputAsset'
|
|
646
1044
|
export declare function _TransactionBuildOutputAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
647
1045
|
new (...args: any[]): {
|
|
@@ -859,6 +1257,12 @@ export declare function _CardanoSyncStateAspect<TBase extends new (...args: any[
|
|
|
859
1257
|
consecutiveErrors?: number | null
|
|
860
1258
|
desiredRunning?: boolean | null
|
|
861
1259
|
leaseOwner?: string | null
|
|
1260
|
+
utxoSetStatus?: string | null
|
|
1261
|
+
utxoAnchorSlot?: number | null
|
|
1262
|
+
utxoAnchorHash?: _.Blake2b256 | null
|
|
1263
|
+
utxoSetImportedAt?: __.CdsTimestamp | null
|
|
1264
|
+
utxoAppliedSlot?: number | null
|
|
1265
|
+
utxoSetError?: string | null
|
|
862
1266
|
leaseUntil?: __.CdsTimestamp | null
|
|
863
1267
|
} & InstanceType<TBase>
|
|
864
1268
|
readonly kind: 'entity';
|
|
@@ -902,6 +1306,7 @@ export declare function _CardanoWorkerWalletAspect<TBase extends new (...args: a
|
|
|
902
1306
|
signerType?: _.WorkerSignerType | null
|
|
903
1307
|
address?: _.Bech32 | null
|
|
904
1308
|
publicKeyHash?: _.Blake2b224 | null
|
|
1309
|
+
requiresRole?: string | null
|
|
905
1310
|
enabled?: boolean | null
|
|
906
1311
|
leaseOwner?: string | null
|
|
907
1312
|
leaseUntil?: __.CdsTimestamp | null
|
|
@@ -967,8 +1372,6 @@ export declare function _CardanoAgentGrantAspect<TBase extends new (...args: any
|
|
|
967
1372
|
agentLabel?: string | null
|
|
968
1373
|
tokenHash?: string
|
|
969
1374
|
allowedActions?: string
|
|
970
|
-
walletId?: string | null
|
|
971
|
-
allowedJobKinds?: string | null
|
|
972
1375
|
maxJobsPerDay?: number | null
|
|
973
1376
|
jobsUsedToday?: number | null
|
|
974
1377
|
budgetWindow?: string | null
|
|
@@ -983,28 +1386,30 @@ export declare function _CardanoAgentGrantAspect<TBase extends new (...args: any
|
|
|
983
1386
|
readonly elements: __.ElementsOf<CardanoAgentGrant>;
|
|
984
1387
|
readonly actions: globalThis.Record<never, never>;
|
|
985
1388
|
};
|
|
986
|
-
/**
|
|
987
|
-
* Agent grants (v2.0): scoped bearer capabilities an Admin hands to an agent
|
|
988
|
-
* instead of a full user. The token is a capability, not an identity — it is
|
|
989
|
-
* stored as SHA-256 only, and a request carrying it runs as the principal
|
|
990
|
-
* `agent:<ID>` with the role `agent-grant`, never as the operator. Enforcement
|
|
991
|
-
* (allow list, wallet pinning, daily budget) lives in srv/utils/agent-grants.ts;
|
|
992
|
-
* the transport lane that admits `x-agent-token` in srv/utils/agent-token-auth.ts.
|
|
993
|
-
* Admin-only table: creation and revocation happen through CardanoAgentService
|
|
994
|
-
* actions, a token request may read its own row only.
|
|
995
|
-
*/
|
|
996
1389
|
export class CardanoAgentGrant extends _CardanoAgentGrantAspect(__.Entity) {
|
|
997
1390
|
}
|
|
998
|
-
/**
|
|
999
|
-
* Agent grants (v2.0): scoped bearer capabilities an Admin hands to an agent
|
|
1000
|
-
* instead of a full user. The token is a capability, not an identity — it is
|
|
1001
|
-
* stored as SHA-256 only, and a request carrying it runs as the principal
|
|
1002
|
-
* `agent:<ID>` with the role `agent-grant`, never as the operator. Enforcement
|
|
1003
|
-
* (allow list, wallet pinning, daily budget) lives in srv/utils/agent-grants.ts;
|
|
1004
|
-
* the transport lane that admits `x-agent-token` in srv/utils/agent-token-auth.ts.
|
|
1005
|
-
* Admin-only table: creation and revocation happen through CardanoAgentService
|
|
1006
|
-
* actions, a token request may read its own row only.
|
|
1007
|
-
*/
|
|
1008
1391
|
export class CardanoAgentGrants extends Array<CardanoAgentGrant> {
|
|
1009
1392
|
$count?: number
|
|
1010
1393
|
}
|
|
1394
|
+
|
|
1395
|
+
// entity 'CardanoAgentGrantUsage'
|
|
1396
|
+
export declare function _CardanoAgentGrantUsageAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
1397
|
+
new (...args: any[]): {
|
|
1398
|
+
grant?: __.Key<__.Association.to<CardanoAgentGrant>>
|
|
1399
|
+
grant_ID?: __.Key<string>
|
|
1400
|
+
day?: __.Key<string>
|
|
1401
|
+
service?: __.Key<string>
|
|
1402
|
+
action?: __.Key<string>
|
|
1403
|
+
calls?: number | null
|
|
1404
|
+
refunded?: number | null
|
|
1405
|
+
} & InstanceType<TBase>
|
|
1406
|
+
readonly kind: 'entity';
|
|
1407
|
+
readonly keys: __.KeysOf<CardanoAgentGrantUsage>;
|
|
1408
|
+
readonly elements: __.ElementsOf<CardanoAgentGrantUsage>;
|
|
1409
|
+
readonly actions: globalThis.Record<never, never>;
|
|
1410
|
+
};
|
|
1411
|
+
export class CardanoAgentGrantUsage extends _CardanoAgentGrantUsageAspect(__.Entity) {
|
|
1412
|
+
}
|
|
1413
|
+
export class CardanoAgentGrantUsage_ extends Array<CardanoAgentGrantUsage> {
|
|
1414
|
+
$count?: number
|
|
1415
|
+
}
|