@odatano/core 1.11.0 → 2.0.0-rc.2

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.
Files changed (111) hide show
  1. package/@cds-models/CardanoIndexerService/index.d.ts +142 -0
  2. package/@cds-models/CardanoIndexerService/index.js +23 -0
  3. package/@cds-models/CardanoODataService/index.d.ts +693 -2172
  4. package/@cds-models/CardanoODataService/index.js +88 -390
  5. package/@cds-models/CardanoSignService/index.d.ts +443 -1574
  6. package/@cds-models/CardanoSignService/index.js +62 -293
  7. package/@cds-models/CardanoTransactionService/index.d.ts +431 -1488
  8. package/@cds-models/CardanoTransactionService/index.js +60 -271
  9. package/@cds-models/CardanoWorkerService/index.d.ts +224 -0
  10. package/@cds-models/CardanoWorkerService/index.js +32 -0
  11. package/@cds-models/_/index.d.ts +70 -40
  12. package/@cds-models/_/index.js +17 -32
  13. package/@cds-models/cds/outbox/index.d.ts +28 -0
  14. package/@cds-models/index.d.ts +225 -522
  15. package/@cds-models/index.js +35 -218
  16. package/@cds-models/odatano/cardano/index.d.ts +896 -2947
  17. package/@cds-models/odatano/cardano/index.js +109 -536
  18. package/@cds-models/sap/common/index.d.ts +196 -600
  19. package/@cds-models/sap/common/index.js +28 -269
  20. package/README.md +36 -2
  21. package/db/schema.cds +283 -1
  22. package/db/types.cds +48 -0
  23. package/package.json +173 -164
  24. package/src/index.d.ts +1 -1
  25. package/src/index.js +10 -2
  26. package/src/plugin.js +12 -2
  27. package/srv/blockchain/backends/blockfrost-backend.d.ts +21 -2
  28. package/srv/blockchain/backends/blockfrost-backend.js +68 -15
  29. package/srv/blockchain/backends/cardano-backend.d.ts +69 -0
  30. package/srv/blockchain/backends/cardano-backend.js +13 -0
  31. package/srv/blockchain/backends/koios-backend.d.ts +26 -2
  32. package/srv/blockchain/backends/koios-backend.js +147 -15
  33. package/srv/blockchain/backends/ogmios-backend.d.ts +37 -6
  34. package/srv/blockchain/backends/ogmios-backend.js +254 -5
  35. package/srv/blockchain/cardano-client.d.ts +19 -0
  36. package/srv/blockchain/cardano-client.js +36 -0
  37. package/srv/blockchain/cardano-indexer.d.ts +50 -1
  38. package/srv/blockchain/cardano-indexer.js +191 -0
  39. package/srv/blockchain/crawler/crawler.d.ts +151 -0
  40. package/srv/blockchain/crawler/crawler.js +677 -0
  41. package/srv/blockchain/crawler/hooks.d.ts +43 -0
  42. package/srv/blockchain/crawler/hooks.js +62 -0
  43. package/srv/blockchain/crawler/index.d.ts +26 -0
  44. package/srv/blockchain/crawler/index.js +135 -0
  45. package/srv/blockchain/crawler/sync-state.d.ts +94 -0
  46. package/srv/blockchain/crawler/sync-state.js +265 -0
  47. package/srv/blockchain/signing/hsm-signer.d.ts +45 -0
  48. package/srv/blockchain/signing/hsm-signer.js +8 -1
  49. package/srv/blockchain/wallet-worker/build-request.d.ts +26 -0
  50. package/srv/blockchain/wallet-worker/build-request.js +341 -0
  51. package/srv/blockchain/wallet-worker/confirmation-tracker.d.ts +86 -0
  52. package/srv/blockchain/wallet-worker/confirmation-tracker.js +228 -0
  53. package/srv/blockchain/wallet-worker/index.d.ts +14 -0
  54. package/srv/blockchain/wallet-worker/index.js +80 -0
  55. package/srv/blockchain/wallet-worker/job-store.d.ts +261 -0
  56. package/srv/blockchain/wallet-worker/job-store.js +564 -0
  57. package/srv/blockchain/wallet-worker/lease-heartbeat.d.ts +43 -0
  58. package/srv/blockchain/wallet-worker/lease-heartbeat.js +99 -0
  59. package/srv/blockchain/wallet-worker/signers.d.ts +57 -0
  60. package/srv/blockchain/wallet-worker/signers.js +131 -0
  61. package/srv/blockchain/wallet-worker/wallet-worker.d.ts +145 -0
  62. package/srv/blockchain/wallet-worker/wallet-worker.js +542 -0
  63. package/srv/cardano-indexer-service.cds +73 -0
  64. package/srv/cardano-indexer-service.d.ts +2 -0
  65. package/srv/cardano-indexer-service.js +76 -0
  66. package/srv/cardano-service.js +76 -5
  67. package/srv/cardano-tx-service.d.ts +1 -11
  68. package/srv/cardano-tx-service.js +11 -162
  69. package/srv/cardano-worker-service.cds +125 -0
  70. package/srv/cardano-worker-service.d.ts +2 -0
  71. package/srv/cardano-worker-service.js +199 -0
  72. package/srv/server.d.ts +32 -1
  73. package/srv/server.js +229 -36
  74. package/srv/utils/collections.d.ts +13 -0
  75. package/srv/utils/collections.js +24 -0
  76. package/srv/utils/crypto.d.ts +16 -0
  77. package/srv/utils/crypto.js +75 -0
  78. package/srv/utils/error-codes.d.ts +6 -0
  79. package/srv/utils/error-codes.js +6 -0
  80. package/srv/utils/errors.d.ts +12 -0
  81. package/srv/utils/errors.js +45 -0
  82. package/srv/utils/mappers.js +13 -3
  83. package/srv/utils/service-events.d.ts +26 -0
  84. package/srv/utils/service-events.js +46 -0
  85. package/srv/utils/tx-request-parsers.d.ts +58 -0
  86. package/srv/utils/tx-request-parsers.js +170 -0
  87. package/srv/utils/tx-utils.d.ts +2 -1
  88. package/srv/utils/tx-utils.js +3 -2
  89. package/srv/utils/types.d.ts +2 -1
  90. package/@cds-models/CardanoODataService/index.d.ts.map +0 -1
  91. package/@cds-models/CardanoODataService/index.js.map +0 -1
  92. package/@cds-models/CardanoODataService/index.ts +0 -776
  93. package/@cds-models/CardanoSignService/index.d.ts.map +0 -1
  94. package/@cds-models/CardanoSignService/index.js.map +0 -1
  95. package/@cds-models/CardanoSignService/index.ts +0 -569
  96. package/@cds-models/CardanoTransactionService/index.d.ts.map +0 -1
  97. package/@cds-models/CardanoTransactionService/index.js.map +0 -1
  98. package/@cds-models/CardanoTransactionService/index.ts +0 -526
  99. package/@cds-models/_/index.d.ts.map +0 -1
  100. package/@cds-models/_/index.js.map +0 -1
  101. package/@cds-models/_/index.ts +0 -96
  102. package/@cds-models/cds/outbox/index.ts +0 -27
  103. package/@cds-models/index.d.ts.map +0 -1
  104. package/@cds-models/index.js.map +0 -1
  105. package/@cds-models/index.ts +0 -245
  106. package/@cds-models/odatano/cardano/index.d.ts.map +0 -1
  107. package/@cds-models/odatano/cardano/index.js.map +0 -1
  108. package/@cds-models/odatano/cardano/index.ts +0 -789
  109. package/@cds-models/sap/common/index.d.ts.map +0 -1
  110. package/@cds-models/sap/common/index.js.map +0 -1
  111. package/@cds-models/sap/common/index.ts +0 -249
@@ -1,5 +1,7 @@
1
+ // This is an automatically generated file. Please do not change its contents manually!
1
2
  import * as __ from './_';
2
3
  import * as _sap_common from './sap/common';
4
+
3
5
  export type Blake2b224 = string;
4
6
  export type Blake2b256 = string;
5
7
  export type HexBytes = string;
@@ -12,585 +14,286 @@ export type Currency = __.Association.to<_sap_common.Currency>;
12
14
  export type Country = __.Association.to<_sap_common.Country>;
13
15
  export type Timezone = __.Association.to<_sap_common.Timezone>;
14
16
  export type User = string;
15
- export declare const SubmissionStatus: {
16
- readonly pending: "pending";
17
- readonly submitted: "submitted";
18
- readonly confirmed: "confirmed";
19
- readonly failed: "failed";
20
- };
21
- export type SubmissionStatus = "pending" | "submitted" | "confirmed" | "failed";
22
- export declare const SigningStatus: {
23
- readonly pending: "pending";
24
- readonly signed: "signed";
25
- readonly verified: "verified";
26
- readonly submitting: "submitting";
27
- readonly submitted: "submitted";
28
- readonly expired: "expired";
29
- readonly failed: "failed";
30
- };
31
- export type SigningStatus = "pending" | "signed" | "verified" | "submitting" | "submitted" | "expired" | "failed";
17
+ // enum
18
+ export const SubmissionStatus: {
19
+ pending: "pending",
20
+ submitted: "submitted",
21
+ confirmed: "confirmed",
22
+ failed: "failed",
23
+ }
24
+ export type SubmissionStatus = "pending" | "submitted" | "confirmed" | "failed"
25
+
26
+ // enum
27
+ export const SigningStatus: {
28
+ pending: "pending",
29
+ signed: "signed",
30
+ verified: "verified",
31
+ submitting: "submitting",
32
+ submitted: "submitted",
33
+ expired: "expired",
34
+ failed: "failed",
35
+ }
36
+ export type SigningStatus = "pending" | "signed" | "verified" | "submitting" | "submitted" | "expired" | "failed"
37
+
38
+ // enum
39
+ export const CrawlSyncStatus: {
40
+ stopped: "stopped",
41
+ syncing: "syncing",
42
+ synced: "synced",
43
+ error: "error",
44
+ }
45
+ export type CrawlSyncStatus = "stopped" | "syncing" | "synced" | "error"
46
+
47
+ // enum
48
+ export const ReorgStatus: {
49
+ detected: "detected",
50
+ rolling_back: "rolling_back",
51
+ reindexing: "reindexing",
52
+ completed: "completed",
53
+ }
54
+ export type ReorgStatus = "detected" | "rolling_back" | "reindexing" | "completed"
55
+
56
+ // enum
57
+ export const WalletJobStatus: {
58
+ pending: "pending",
59
+ building: "building",
60
+ submitting: "submitting",
61
+ submitted: "submitted",
62
+ confirmed: "confirmed",
63
+ failed: "failed",
64
+ cancelled: "cancelled",
65
+ }
66
+ export type WalletJobStatus = "pending" | "building" | "submitting" | "submitted" | "confirmed" | "failed" | "cancelled"
67
+
68
+ // enum
69
+ export const WalletJobKind: {
70
+ simpleAda: "simpleAda",
71
+ metadata: "metadata",
72
+ multiAsset: "multiAsset",
73
+ mint: "mint",
74
+ plutusSpend: "plutusSpend",
75
+ submitSigned: "submitSigned",
76
+ }
77
+ export type WalletJobKind = "simpleAda" | "metadata" | "multiAsset" | "mint" | "plutusSpend" | "submitSigned"
78
+
79
+ // enum
80
+ export const WorkerSignerType: {
81
+ hsm: "hsm",
82
+ software: "software",
83
+ }
84
+ export type WorkerSignerType = "hsm" | "software"
85
+
86
+ // the following represents the CDS aspect 'cuid'
32
87
  export declare function _cuidAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
33
- new (...args: any[]): {
34
- ID?: __.Key<string>;
35
- };
36
- readonly kind: "entity" | "type" | "aspect";
37
- readonly keys: __.KeysOf<{
38
- ID?: __.Key<string>;
39
- }>;
40
- readonly elements: __.ElementsOf<{
41
- ID?: __.Key<string>;
42
- }>;
43
- readonly actions: globalThis.Record<never, never>;
44
- } & TBase;
45
- declare const cuid_base: {
46
- new (...args: any[]): {
47
- ID?: __.Key<string>;
48
- };
49
- readonly kind: "entity" | "type" | "aspect";
50
- readonly keys: __.KeysOf<{
51
- ID?: __.Key<string>;
52
- }>;
53
- readonly elements: __.ElementsOf<{
54
- ID?: __.Key<string>;
55
- }>;
88
+ new (...args: any[]): {
89
+ ID?: __.Key<string>
90
+ } & InstanceType<TBase>
91
+ readonly kind: 'aspect';
92
+ readonly keys: __.KeysOf<cuid>;
93
+ readonly elements: __.ElementsOf<cuid>;
56
94
  readonly actions: globalThis.Record<never, never>;
57
- } & typeof __.Entity;
95
+ };
58
96
  /**
59
97
  * Aspect for entities with canonical universal IDs
60
- *
98
+ *
61
99
  * See https://cap.cloud.sap/docs/cds/common#aspect-cuid
62
100
  */
63
- export declare class cuid extends cuid_base {
101
+ export class cuid extends _cuidAspect(__.Entity) {
64
102
  }
65
103
  /**
66
104
  * Aspect for entities with canonical universal IDs
67
- *
105
+ *
68
106
  * See https://cap.cloud.sap/docs/cds/common#aspect-cuid
69
107
  */
70
- export declare class cuid_ extends Array<cuid> {
71
- $count?: number;
108
+ export class cuid_ extends Array<cuid> {
109
+ $count?: number
72
110
  }
111
+ // the following represents the CDS aspect 'managed'
73
112
  export declare function _managedAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
74
- new (...args: any[]): {
75
- createdAt?: __.CdsTimestamp | null;
76
- /** Canonical user ID */
77
- createdBy?: User | null;
78
- modifiedAt?: __.CdsTimestamp | null;
79
- /** Canonical user ID */
80
- modifiedBy?: User | null;
81
- };
82
- readonly kind: "entity" | "type" | "aspect";
83
- readonly keys: __.KeysOf<{
84
- createdAt?: __.CdsTimestamp | null;
85
- /** Canonical user ID */
86
- createdBy?: User | null;
87
- modifiedAt?: __.CdsTimestamp | null;
88
- /** Canonical user ID */
89
- modifiedBy?: User | null;
90
- }>;
91
- readonly elements: __.ElementsOf<{
92
- createdAt?: __.CdsTimestamp | null;
93
- /** Canonical user ID */
94
- createdBy?: User | null;
95
- modifiedAt?: __.CdsTimestamp | null;
96
- /** Canonical user ID */
97
- modifiedBy?: User | null;
98
- }>;
99
- readonly actions: globalThis.Record<never, never>;
100
- } & TBase;
101
- declare const managed_base: {
102
- new (...args: any[]): {
103
- createdAt?: __.CdsTimestamp | null;
104
- /** Canonical user ID */
105
- createdBy?: User | null;
106
- modifiedAt?: __.CdsTimestamp | null;
107
- /** Canonical user ID */
108
- modifiedBy?: User | null;
109
- };
110
- readonly kind: "entity" | "type" | "aspect";
111
- readonly keys: __.KeysOf<{
112
- createdAt?: __.CdsTimestamp | null;
113
- /** Canonical user ID */
114
- createdBy?: User | null;
115
- modifiedAt?: __.CdsTimestamp | null;
116
- /** Canonical user ID */
117
- modifiedBy?: User | null;
118
- }>;
119
- readonly elements: __.ElementsOf<{
120
- createdAt?: __.CdsTimestamp | null;
121
- /** Canonical user ID */
122
- createdBy?: User | null;
123
- modifiedAt?: __.CdsTimestamp | null;
124
- /** Canonical user ID */
125
- modifiedBy?: User | null;
126
- }>;
113
+ new (...args: any[]): {
114
+ createdAt?: __.CdsTimestamp | null
115
+ /** Canonical user ID */
116
+ createdBy?: User | null
117
+ modifiedAt?: __.CdsTimestamp | null
118
+ /** Canonical user ID */
119
+ modifiedBy?: User | null
120
+ } & InstanceType<TBase>
121
+ readonly kind: 'aspect';
122
+ readonly keys: __.KeysOf<managed>;
123
+ readonly elements: __.ElementsOf<managed>;
127
124
  readonly actions: globalThis.Record<never, never>;
128
- } & typeof __.Entity;
125
+ };
129
126
  /**
130
127
  * Aspect to capture changes by user and name
131
- *
128
+ *
132
129
  * See https://cap.cloud.sap/docs/cds/common#aspect-managed
133
130
  */
134
- export declare class managed extends managed_base {
131
+ export class managed extends _managedAspect(__.Entity) {
135
132
  }
136
133
  /**
137
134
  * Aspect to capture changes by user and name
138
- *
135
+ *
139
136
  * See https://cap.cloud.sap/docs/cds/common#aspect-managed
140
137
  */
141
- export declare class managed_ extends Array<managed> {
142
- $count?: number;
138
+ export class managed_ extends Array<managed> {
139
+ $count?: number
143
140
  }
141
+ // the following represents the CDS aspect 'temporal'
144
142
  export declare function _temporalAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
145
- new (...args: any[]): {
146
- validFrom?: __.CdsTimestamp | null;
147
- validTo?: __.CdsTimestamp | null;
148
- };
149
- readonly kind: "entity" | "type" | "aspect";
150
- readonly keys: __.KeysOf<{
151
- validFrom?: __.CdsTimestamp | null;
152
- validTo?: __.CdsTimestamp | null;
153
- }>;
154
- readonly elements: __.ElementsOf<{
155
- validFrom?: __.CdsTimestamp | null;
156
- validTo?: __.CdsTimestamp | null;
157
- }>;
158
- readonly actions: globalThis.Record<never, never>;
159
- } & TBase;
160
- declare const temporal_base: {
161
- new (...args: any[]): {
162
- validFrom?: __.CdsTimestamp | null;
163
- validTo?: __.CdsTimestamp | null;
164
- };
165
- readonly kind: "entity" | "type" | "aspect";
166
- readonly keys: __.KeysOf<{
167
- validFrom?: __.CdsTimestamp | null;
168
- validTo?: __.CdsTimestamp | null;
169
- }>;
170
- readonly elements: __.ElementsOf<{
171
- validFrom?: __.CdsTimestamp | null;
172
- validTo?: __.CdsTimestamp | null;
173
- }>;
143
+ new (...args: any[]): {
144
+ validFrom?: __.CdsTimestamp | null
145
+ validTo?: __.CdsTimestamp | null
146
+ } & InstanceType<TBase>
147
+ readonly kind: 'aspect';
148
+ readonly keys: __.KeysOf<temporal>;
149
+ readonly elements: __.ElementsOf<temporal>;
174
150
  readonly actions: globalThis.Record<never, never>;
175
- } & typeof __.Entity;
151
+ };
176
152
  /**
177
153
  * Aspect for entities with temporal data
178
- *
154
+ *
179
155
  * See https://cap.cloud.sap/docs/cds/common#aspect-temporal
180
156
  */
181
- export declare class temporal extends temporal_base {
157
+ export class temporal extends _temporalAspect(__.Entity) {
182
158
  }
183
159
  /**
184
160
  * Aspect for entities with temporal data
185
- *
161
+ *
186
162
  * See https://cap.cloud.sap/docs/cds/common#aspect-temporal
187
163
  */
188
- export declare class temporal_ extends Array<temporal> {
189
- $count?: number;
164
+ export class temporal_ extends Array<temporal> {
165
+ $count?: number
190
166
  }
167
+ // entity 'AssetSlice'
191
168
  export declare function _AssetSliceAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
192
- new (...args: any[]): {
193
- quantity?: Lovelace | null;
194
- policyId?: Blake2b224 | null;
195
- assetNameHex?: HexBytes | null;
196
- assetName?: string | null;
197
- fingerprint?: string | null;
198
- };
199
- readonly kind: "entity" | "type" | "aspect";
200
- readonly keys: __.KeysOf<{
201
- quantity?: Lovelace | null;
202
- policyId?: Blake2b224 | null;
203
- assetNameHex?: HexBytes | null;
204
- assetName?: string | null;
205
- fingerprint?: string | null;
206
- }>;
207
- readonly elements: __.ElementsOf<{
208
- quantity?: Lovelace | null;
209
- policyId?: Blake2b224 | null;
210
- assetNameHex?: HexBytes | null;
211
- assetName?: string | null;
212
- fingerprint?: string | null;
213
- }>;
214
- readonly actions: globalThis.Record<never, never>;
215
- } & TBase;
216
- declare const AssetSlice_base: {
217
- new (...args: any[]): {
218
- quantity?: Lovelace | null;
219
- policyId?: Blake2b224 | null;
220
- assetNameHex?: HexBytes | null;
221
- assetName?: string | null;
222
- fingerprint?: string | null;
223
- };
224
- readonly kind: "entity" | "type" | "aspect";
225
- readonly keys: __.KeysOf<{
226
- quantity?: Lovelace | null;
227
- policyId?: Blake2b224 | null;
228
- assetNameHex?: HexBytes | null;
229
- assetName?: string | null;
230
- fingerprint?: string | null;
231
- }>;
232
- readonly elements: __.ElementsOf<{
233
- quantity?: Lovelace | null;
234
- policyId?: Blake2b224 | null;
235
- assetNameHex?: HexBytes | null;
236
- assetName?: string | null;
237
- fingerprint?: string | null;
238
- }>;
169
+ new (...args: any[]): {
170
+ quantity?: Lovelace | null
171
+ policyId?: Blake2b224 | null
172
+ assetNameHex?: HexBytes | null
173
+ assetName?: string | null
174
+ fingerprint?: string | null
175
+ } & InstanceType<TBase>
176
+ readonly kind: 'type';
177
+ readonly keys: __.KeysOf<AssetSlice>;
178
+ readonly elements: __.ElementsOf<AssetSlice>;
239
179
  readonly actions: globalThis.Record<never, never>;
240
- } & typeof __.Entity;
241
- export declare class AssetSlice extends AssetSlice_base {
180
+ };
181
+ export class AssetSlice extends _AssetSliceAspect(__.Entity) {
242
182
  }
183
+
184
+ // entity 'MetadataSlice'
243
185
  export declare function _MetadataSliceAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
244
- new (...args: any[]): {
245
- label?: MetadataLabel | null;
246
- payload?: string | null;
247
- };
248
- readonly kind: "entity" | "type" | "aspect";
249
- readonly keys: __.KeysOf<{
250
- label?: MetadataLabel | null;
251
- payload?: string | null;
252
- }>;
253
- readonly elements: __.ElementsOf<{
254
- label?: MetadataLabel | null;
255
- payload?: string | null;
256
- }>;
257
- readonly actions: globalThis.Record<never, never>;
258
- } & TBase;
259
- declare const MetadataSlice_base: {
260
- new (...args: any[]): {
261
- label?: MetadataLabel | null;
262
- payload?: string | null;
263
- };
264
- readonly kind: "entity" | "type" | "aspect";
265
- readonly keys: __.KeysOf<{
266
- label?: MetadataLabel | null;
267
- payload?: string | null;
268
- }>;
269
- readonly elements: __.ElementsOf<{
270
- label?: MetadataLabel | null;
271
- payload?: string | null;
272
- }>;
186
+ new (...args: any[]): {
187
+ label?: MetadataLabel | null
188
+ payload?: string | null
189
+ } & InstanceType<TBase>
190
+ readonly kind: 'type';
191
+ readonly keys: __.KeysOf<MetadataSlice>;
192
+ readonly elements: __.ElementsOf<MetadataSlice>;
273
193
  readonly actions: globalThis.Record<never, never>;
274
- } & typeof __.Entity;
275
- export declare class MetadataSlice extends MetadataSlice_base {
194
+ };
195
+ export class MetadataSlice extends _MetadataSliceAspect(__.Entity) {
276
196
  }
197
+
198
+ // entity 'UTxODataSlice'
277
199
  export declare function _UTxODataSliceAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
278
- new (...args: any[]): {
279
- dataHash?: Blake2b256 | null;
280
- inlineDatum?: string | null;
281
- referenceScriptHash?: Blake2b256 | null;
282
- };
283
- readonly kind: "entity" | "type" | "aspect";
284
- readonly keys: __.KeysOf<{
285
- dataHash?: Blake2b256 | null;
286
- inlineDatum?: string | null;
287
- referenceScriptHash?: Blake2b256 | null;
288
- }>;
289
- readonly elements: __.ElementsOf<{
290
- dataHash?: Blake2b256 | null;
291
- inlineDatum?: string | null;
292
- referenceScriptHash?: Blake2b256 | null;
293
- }>;
294
- readonly actions: globalThis.Record<never, never>;
295
- } & TBase;
296
- declare const UTxODataSlice_base: {
297
- new (...args: any[]): {
298
- dataHash?: Blake2b256 | null;
299
- inlineDatum?: string | null;
300
- referenceScriptHash?: Blake2b256 | null;
301
- };
302
- readonly kind: "entity" | "type" | "aspect";
303
- readonly keys: __.KeysOf<{
304
- dataHash?: Blake2b256 | null;
305
- inlineDatum?: string | null;
306
- referenceScriptHash?: Blake2b256 | null;
307
- }>;
308
- readonly elements: __.ElementsOf<{
309
- dataHash?: Blake2b256 | null;
310
- inlineDatum?: string | null;
311
- referenceScriptHash?: Blake2b256 | null;
312
- }>;
200
+ new (...args: any[]): {
201
+ dataHash?: Blake2b256 | null
202
+ inlineDatum?: string | null
203
+ referenceScriptHash?: Blake2b256 | null
204
+ } & InstanceType<TBase>
205
+ readonly kind: 'type';
206
+ readonly keys: __.KeysOf<UTxODataSlice>;
207
+ readonly elements: __.ElementsOf<UTxODataSlice>;
313
208
  readonly actions: globalThis.Record<never, never>;
314
- } & typeof __.Entity;
315
- export declare class UTxODataSlice extends UTxODataSlice_base {
209
+ };
210
+ export class UTxODataSlice extends _UTxODataSliceAspect(__.Entity) {
316
211
  }
212
+
213
+ // entity 'ParsedInput'
317
214
  export declare function _ParsedInputAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
318
- new (...args: any[]): {
319
- txHash?: Blake2b256 | null;
320
- outputIndex?: number | null;
321
- };
322
- readonly kind: "entity" | "type" | "aspect";
323
- readonly keys: __.KeysOf<{
324
- txHash?: Blake2b256 | null;
325
- outputIndex?: number | null;
326
- }>;
327
- readonly elements: __.ElementsOf<{
328
- txHash?: Blake2b256 | null;
329
- outputIndex?: number | null;
330
- }>;
331
- readonly actions: globalThis.Record<never, never>;
332
- } & TBase;
333
- declare const ParsedInput_base: {
334
- new (...args: any[]): {
335
- txHash?: Blake2b256 | null;
336
- outputIndex?: number | null;
337
- };
338
- readonly kind: "entity" | "type" | "aspect";
339
- readonly keys: __.KeysOf<{
340
- txHash?: Blake2b256 | null;
341
- outputIndex?: number | null;
342
- }>;
343
- readonly elements: __.ElementsOf<{
344
- txHash?: Blake2b256 | null;
345
- outputIndex?: number | null;
346
- }>;
215
+ new (...args: any[]): {
216
+ txHash?: Blake2b256 | null
217
+ outputIndex?: number | null
218
+ } & InstanceType<TBase>
219
+ readonly kind: 'type';
220
+ readonly keys: __.KeysOf<ParsedInput>;
221
+ readonly elements: __.ElementsOf<ParsedInput>;
347
222
  readonly actions: globalThis.Record<never, never>;
348
- } & typeof __.Entity;
349
- export declare class ParsedInput extends ParsedInput_base {
223
+ };
224
+ export class ParsedInput extends _ParsedInputAspect(__.Entity) {
350
225
  }
226
+
227
+ // entity 'ParsedAsset'
351
228
  export declare function _ParsedAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
352
- new (...args: any[]): {
353
- unit?: AssetUnit | null;
354
- quantity?: string | null;
355
- };
356
- readonly kind: "entity" | "type" | "aspect";
357
- readonly keys: __.KeysOf<{
358
- unit?: AssetUnit | null;
359
- quantity?: string | null;
360
- }>;
361
- readonly elements: __.ElementsOf<{
362
- unit?: AssetUnit | null;
363
- quantity?: string | null;
364
- }>;
365
- readonly actions: globalThis.Record<never, never>;
366
- } & TBase;
367
- declare const ParsedAsset_base: {
368
- new (...args: any[]): {
369
- unit?: AssetUnit | null;
370
- quantity?: string | null;
371
- };
372
- readonly kind: "entity" | "type" | "aspect";
373
- readonly keys: __.KeysOf<{
374
- unit?: AssetUnit | null;
375
- quantity?: string | null;
376
- }>;
377
- readonly elements: __.ElementsOf<{
378
- unit?: AssetUnit | null;
379
- quantity?: string | null;
380
- }>;
229
+ new (...args: any[]): {
230
+ unit?: AssetUnit | null
231
+ quantity?: string | null
232
+ } & InstanceType<TBase>
233
+ readonly kind: 'type';
234
+ readonly keys: __.KeysOf<ParsedAsset>;
235
+ readonly elements: __.ElementsOf<ParsedAsset>;
381
236
  readonly actions: globalThis.Record<never, never>;
382
- } & typeof __.Entity;
383
- export declare class ParsedAsset extends ParsedAsset_base {
237
+ };
238
+ export class ParsedAsset extends _ParsedAssetAspect(__.Entity) {
384
239
  }
240
+
241
+ // entity 'ParsedOutput'
385
242
  export declare function _ParsedOutputAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
386
- new (...args: any[]): {
387
- address?: Bech32 | null;
388
- lovelace?: Lovelace | null;
389
- assets?: Array<ParsedAsset>;
390
- datumHash?: Blake2b256 | null;
391
- inlineDatumHex?: string | null;
392
- referenceScriptHex?: string | null;
393
- };
394
- readonly kind: "entity" | "type" | "aspect";
395
- readonly keys: __.KeysOf<{
396
- address?: Bech32 | null;
397
- lovelace?: Lovelace | null;
398
- assets?: Array<ParsedAsset>;
399
- datumHash?: Blake2b256 | null;
400
- inlineDatumHex?: string | null;
401
- referenceScriptHex?: string | null;
402
- }>;
403
- readonly elements: __.ElementsOf<{
404
- address?: Bech32 | null;
405
- lovelace?: Lovelace | null;
406
- assets?: Array<ParsedAsset>;
407
- datumHash?: Blake2b256 | null;
408
- inlineDatumHex?: string | null;
409
- referenceScriptHex?: string | null;
410
- }>;
411
- readonly actions: globalThis.Record<never, never>;
412
- } & TBase;
413
- declare const ParsedOutput_base: {
414
- new (...args: any[]): {
415
- address?: Bech32 | null;
416
- lovelace?: Lovelace | null;
417
- assets?: Array<ParsedAsset>;
418
- datumHash?: Blake2b256 | null;
419
- inlineDatumHex?: string | null;
420
- referenceScriptHex?: string | null;
421
- };
422
- readonly kind: "entity" | "type" | "aspect";
423
- readonly keys: __.KeysOf<{
424
- address?: Bech32 | null;
425
- lovelace?: Lovelace | null;
426
- assets?: Array<ParsedAsset>;
427
- datumHash?: Blake2b256 | null;
428
- inlineDatumHex?: string | null;
429
- referenceScriptHex?: string | null;
430
- }>;
431
- readonly elements: __.ElementsOf<{
432
- address?: Bech32 | null;
433
- lovelace?: Lovelace | null;
434
- assets?: Array<ParsedAsset>;
435
- datumHash?: Blake2b256 | null;
436
- inlineDatumHex?: string | null;
437
- referenceScriptHex?: string | null;
438
- }>;
243
+ new (...args: any[]): {
244
+ address?: Bech32 | null
245
+ lovelace?: Lovelace | null
246
+ assets?: Array<ParsedAsset>
247
+ datumHash?: Blake2b256 | null
248
+ inlineDatumHex?: string | null
249
+ referenceScriptHex?: string | null
250
+ } & InstanceType<TBase>
251
+ readonly kind: 'type';
252
+ readonly keys: __.KeysOf<ParsedOutput>;
253
+ readonly elements: __.ElementsOf<ParsedOutput>;
439
254
  readonly actions: globalThis.Record<never, never>;
440
- } & typeof __.Entity;
441
- export declare class ParsedOutput extends ParsedOutput_base {
255
+ };
256
+ export class ParsedOutput extends _ParsedOutputAspect(__.Entity) {
442
257
  }
258
+
259
+ // entity 'ParsedWitnesses'
443
260
  export declare function _ParsedWitnessesAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
444
- new (...args: any[]): {
445
- vkeyCount?: number | null;
446
- nativeScripts?: number | null;
447
- plutusScripts?: number | null;
448
- plutusData?: number | null;
449
- redeemers?: number | null;
450
- };
451
- readonly kind: "entity" | "type" | "aspect";
452
- readonly keys: __.KeysOf<{
453
- vkeyCount?: number | null;
454
- nativeScripts?: number | null;
455
- plutusScripts?: number | null;
456
- plutusData?: number | null;
457
- redeemers?: number | null;
458
- }>;
459
- readonly elements: __.ElementsOf<{
460
- vkeyCount?: number | null;
461
- nativeScripts?: number | null;
462
- plutusScripts?: number | null;
463
- plutusData?: number | null;
464
- redeemers?: number | null;
465
- }>;
466
- readonly actions: globalThis.Record<never, never>;
467
- } & TBase;
468
- declare const ParsedWitnesses_base: {
469
- new (...args: any[]): {
470
- vkeyCount?: number | null;
471
- nativeScripts?: number | null;
472
- plutusScripts?: number | null;
473
- plutusData?: number | null;
474
- redeemers?: number | null;
475
- };
476
- readonly kind: "entity" | "type" | "aspect";
477
- readonly keys: __.KeysOf<{
478
- vkeyCount?: number | null;
479
- nativeScripts?: number | null;
480
- plutusScripts?: number | null;
481
- plutusData?: number | null;
482
- redeemers?: number | null;
483
- }>;
484
- readonly elements: __.ElementsOf<{
485
- vkeyCount?: number | null;
486
- nativeScripts?: number | null;
487
- plutusScripts?: number | null;
488
- plutusData?: number | null;
489
- redeemers?: number | null;
490
- }>;
261
+ new (...args: any[]): {
262
+ vkeyCount?: number | null
263
+ nativeScripts?: number | null
264
+ plutusScripts?: number | null
265
+ plutusData?: number | null
266
+ redeemers?: number | null
267
+ } & InstanceType<TBase>
268
+ readonly kind: 'type';
269
+ readonly keys: __.KeysOf<ParsedWitnesses>;
270
+ readonly elements: __.ElementsOf<ParsedWitnesses>;
491
271
  readonly actions: globalThis.Record<never, never>;
492
- } & typeof __.Entity;
493
- export declare class ParsedWitnesses extends ParsedWitnesses_base {
272
+ };
273
+ export class ParsedWitnesses extends _ParsedWitnessesAspect(__.Entity) {
494
274
  }
275
+
276
+ // entity 'ParsedTransaction'
495
277
  export declare function _ParsedTransactionAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
496
- new (...args: any[]): {
497
- txHash?: Blake2b256 | null;
498
- network?: string | null;
499
- inputs?: Array<ParsedInput>;
500
- outputs?: Array<ParsedOutput>;
501
- validityStart?: string | null;
502
- validityEnd?: string | null;
503
- fee?: Lovelace | null;
504
- mint?: Array<ParsedAsset>;
505
- metadataLabels?: Array<string>;
506
- collateral?: Array<ParsedInput>;
507
- requiredSigners?: Array<Blake2b224>;
508
- scriptDataHash?: Blake2b256 | null;
509
- witnesses?: ParsedWitnesses | null;
510
- };
511
- readonly kind: "entity" | "type" | "aspect";
512
- readonly keys: __.KeysOf<{
513
- txHash?: Blake2b256 | null;
514
- network?: string | null;
515
- inputs?: Array<ParsedInput>;
516
- outputs?: Array<ParsedOutput>;
517
- validityStart?: string | null;
518
- validityEnd?: string | null;
519
- fee?: Lovelace | null;
520
- mint?: Array<ParsedAsset>;
521
- metadataLabels?: Array<string>;
522
- collateral?: Array<ParsedInput>;
523
- requiredSigners?: Array<Blake2b224>;
524
- scriptDataHash?: Blake2b256 | null;
525
- witnesses?: ParsedWitnesses | null;
526
- }>;
527
- readonly elements: __.ElementsOf<{
528
- txHash?: Blake2b256 | null;
529
- network?: string | null;
530
- inputs?: Array<ParsedInput>;
531
- outputs?: Array<ParsedOutput>;
532
- validityStart?: string | null;
533
- validityEnd?: string | null;
534
- fee?: Lovelace | null;
535
- mint?: Array<ParsedAsset>;
536
- metadataLabels?: Array<string>;
537
- collateral?: Array<ParsedInput>;
538
- requiredSigners?: Array<Blake2b224>;
539
- scriptDataHash?: Blake2b256 | null;
540
- witnesses?: ParsedWitnesses | null;
541
- }>;
542
- readonly actions: globalThis.Record<never, never>;
543
- } & TBase;
544
- declare const ParsedTransaction_base: {
545
- new (...args: any[]): {
546
- txHash?: Blake2b256 | null;
547
- network?: string | null;
548
- inputs?: Array<ParsedInput>;
549
- outputs?: Array<ParsedOutput>;
550
- validityStart?: string | null;
551
- validityEnd?: string | null;
552
- fee?: Lovelace | null;
553
- mint?: Array<ParsedAsset>;
554
- metadataLabels?: Array<string>;
555
- collateral?: Array<ParsedInput>;
556
- requiredSigners?: Array<Blake2b224>;
557
- scriptDataHash?: Blake2b256 | null;
558
- witnesses?: ParsedWitnesses | null;
559
- };
560
- readonly kind: "entity" | "type" | "aspect";
561
- readonly keys: __.KeysOf<{
562
- txHash?: Blake2b256 | null;
563
- network?: string | null;
564
- inputs?: Array<ParsedInput>;
565
- outputs?: Array<ParsedOutput>;
566
- validityStart?: string | null;
567
- validityEnd?: string | null;
568
- fee?: Lovelace | null;
569
- mint?: Array<ParsedAsset>;
570
- metadataLabels?: Array<string>;
571
- collateral?: Array<ParsedInput>;
572
- requiredSigners?: Array<Blake2b224>;
573
- scriptDataHash?: Blake2b256 | null;
574
- witnesses?: ParsedWitnesses | null;
575
- }>;
576
- readonly elements: __.ElementsOf<{
577
- txHash?: Blake2b256 | null;
578
- network?: string | null;
579
- inputs?: Array<ParsedInput>;
580
- outputs?: Array<ParsedOutput>;
581
- validityStart?: string | null;
582
- validityEnd?: string | null;
583
- fee?: Lovelace | null;
584
- mint?: Array<ParsedAsset>;
585
- metadataLabels?: Array<string>;
586
- collateral?: Array<ParsedInput>;
587
- requiredSigners?: Array<Blake2b224>;
588
- scriptDataHash?: Blake2b256 | null;
589
- witnesses?: ParsedWitnesses | null;
590
- }>;
278
+ new (...args: any[]): {
279
+ txHash?: Blake2b256 | null
280
+ network?: string | null
281
+ inputs?: Array<ParsedInput>
282
+ outputs?: Array<ParsedOutput>
283
+ validityStart?: string | null
284
+ validityEnd?: string | null
285
+ fee?: Lovelace | null
286
+ mint?: Array<ParsedAsset>
287
+ metadataLabels?: Array<string>
288
+ collateral?: Array<ParsedInput>
289
+ requiredSigners?: Array<Blake2b224>
290
+ scriptDataHash?: Blake2b256 | null
291
+ witnesses?: ParsedWitnesses | null
292
+ } & InstanceType<TBase>
293
+ readonly kind: 'type';
294
+ readonly keys: __.KeysOf<ParsedTransaction>;
295
+ readonly elements: __.ElementsOf<ParsedTransaction>;
591
296
  readonly actions: globalThis.Record<never, never>;
592
- } & typeof __.Entity;
593
- export declare class ParsedTransaction extends ParsedTransaction_base {
297
+ };
298
+ export class ParsedTransaction extends _ParsedTransactionAspect(__.Entity) {
594
299
  }
595
- export {};
596
- //# sourceMappingURL=index.d.ts.map