@odatano/core 1.10.0 → 2.0.0-rc.1

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 (118) 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 +136 -102
  21. package/db/schema.cds +283 -1
  22. package/db/types.cds +48 -0
  23. package/package.json +43 -34
  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/signing/signature-verifier.js +4 -5
  50. package/srv/blockchain/transaction-building/buildooor-tx.d.ts +7 -10
  51. package/srv/blockchain/transaction-building/buildooor-tx.js +12 -15
  52. package/srv/blockchain/wallet-worker/build-request.d.ts +26 -0
  53. package/srv/blockchain/wallet-worker/build-request.js +341 -0
  54. package/srv/blockchain/wallet-worker/confirmation-tracker.d.ts +86 -0
  55. package/srv/blockchain/wallet-worker/confirmation-tracker.js +228 -0
  56. package/srv/blockchain/wallet-worker/index.d.ts +14 -0
  57. package/srv/blockchain/wallet-worker/index.js +80 -0
  58. package/srv/blockchain/wallet-worker/job-store.d.ts +261 -0
  59. package/srv/blockchain/wallet-worker/job-store.js +564 -0
  60. package/srv/blockchain/wallet-worker/lease-heartbeat.d.ts +43 -0
  61. package/srv/blockchain/wallet-worker/lease-heartbeat.js +99 -0
  62. package/srv/blockchain/wallet-worker/signers.d.ts +57 -0
  63. package/srv/blockchain/wallet-worker/signers.js +131 -0
  64. package/srv/blockchain/wallet-worker/wallet-worker.d.ts +145 -0
  65. package/srv/blockchain/wallet-worker/wallet-worker.js +542 -0
  66. package/srv/cardano-indexer-service.cds +73 -0
  67. package/srv/cardano-indexer-service.d.ts +2 -0
  68. package/srv/cardano-indexer-service.js +76 -0
  69. package/srv/cardano-service.js +22 -1
  70. package/srv/cardano-tx-service.d.ts +1 -11
  71. package/srv/cardano-tx-service.js +11 -162
  72. package/srv/cardano-worker-service.cds +125 -0
  73. package/srv/cardano-worker-service.d.ts +2 -0
  74. package/srv/cardano-worker-service.js +199 -0
  75. package/srv/server.d.ts +32 -1
  76. package/srv/server.js +228 -2
  77. package/srv/utils/collections.d.ts +13 -0
  78. package/srv/utils/collections.js +24 -0
  79. package/srv/utils/crypto.d.ts +16 -0
  80. package/srv/utils/crypto.js +75 -0
  81. package/srv/utils/error-codes.d.ts +6 -0
  82. package/srv/utils/error-codes.js +6 -0
  83. package/srv/utils/errors.d.ts +12 -0
  84. package/srv/utils/errors.js +45 -0
  85. package/srv/utils/mappers.js +13 -3
  86. package/srv/utils/service-events.d.ts +26 -0
  87. package/srv/utils/service-events.js +46 -0
  88. package/srv/utils/tx-build-helper.d.ts +1 -2
  89. package/srv/utils/tx-build-helper.js +3 -5
  90. package/srv/utils/tx-request-parsers.d.ts +58 -0
  91. package/srv/utils/tx-request-parsers.js +170 -0
  92. package/srv/utils/tx-utils.d.ts +2 -1
  93. package/srv/utils/tx-utils.js +3 -2
  94. package/srv/utils/types.d.ts +2 -1
  95. package/@cds-models/CardanoODataService/index.d.ts.map +0 -1
  96. package/@cds-models/CardanoODataService/index.js.map +0 -1
  97. package/@cds-models/CardanoODataService/index.ts +0 -776
  98. package/@cds-models/CardanoSignService/index.d.ts.map +0 -1
  99. package/@cds-models/CardanoSignService/index.js.map +0 -1
  100. package/@cds-models/CardanoSignService/index.ts +0 -569
  101. package/@cds-models/CardanoTransactionService/index.d.ts.map +0 -1
  102. package/@cds-models/CardanoTransactionService/index.js.map +0 -1
  103. package/@cds-models/CardanoTransactionService/index.ts +0 -526
  104. package/@cds-models/_/index.d.ts.map +0 -1
  105. package/@cds-models/_/index.js.map +0 -1
  106. package/@cds-models/_/index.ts +0 -96
  107. package/@cds-models/cds/outbox/index.ts +0 -27
  108. package/@cds-models/index.d.ts.map +0 -1
  109. package/@cds-models/index.js.map +0 -1
  110. package/@cds-models/index.ts +0 -245
  111. package/@cds-models/odatano/cardano/index.d.ts.map +0 -1
  112. package/@cds-models/odatano/cardano/index.js.map +0 -1
  113. package/@cds-models/odatano/cardano/index.ts +0 -789
  114. package/@cds-models/sap/common/index.d.ts.map +0 -1
  115. package/@cds-models/sap/common/index.js.map +0 -1
  116. package/@cds-models/sap/common/index.ts +0 -249
  117. package/srv/blockchain/transaction-building/keep-relevant.d.ts +0 -29
  118. package/srv/blockchain/transaction-building/keep-relevant.js +0 -116
@@ -1,569 +0,0 @@
1
- // This is an automatically generated file. Please do not change its contents manually!
2
- import * as __ from './../_';
3
- import * as _ from './..';
4
- import * as _odatano_cardano from './../odatano/cardano';
5
-
6
- /**
7
- * Cardano Sign Service
8
- *
9
- * Handles the external signing workflow for Cardano transactions, including:
10
- * - Creating signing requests with transaction details and signing instructions
11
- * - Verifying signatures of signed transactions and storing verification results
12
- * - Submitting verified transactions to the blockchain and tracking submission status
13
- * - Providing actions for signing with a Hardware Security Module (HSM) and retrieving HSM status
14
- *
15
- * Security note: see CardanoODataService (cardano-service.cds) for the rationale
16
- * on service-level auth without per-resource ownership enforcement.
17
- */
18
- export default class {
19
- declare static readonly VerifySignature: typeof VerifySignature;
20
- declare static readonly SubmitVerifiedTransaction: typeof SubmitVerifiedTransaction;
21
- declare static readonly VerifyDataSignature: typeof VerifyDataSignature;
22
- declare static readonly CreateSigningRequest: typeof CreateSigningRequest;
23
- declare static readonly GetSigningRequest: typeof GetSigningRequest;
24
- declare static readonly GetSigningRequestsByAddress: typeof GetSigningRequestsByAddress;
25
- declare static readonly SignWithHsm: typeof SignWithHsm;
26
- declare static readonly SignAndSubmitWithHsm: typeof SignAndSubmitWithHsm;
27
- declare static readonly GetHsmStatus: typeof GetHsmStatus;
28
- }
29
-
30
- export function _SignatureVerificationAspect<TBase extends new (...args: any[]) => object>(Base: TBase) {
31
- return class SignatureVerification extends Base {
32
- declare id?: __.Key<string>
33
- declare signingRequest?: __.Association.to<SigningRequest> | null
34
- declare signingRequest_id?: string | null
35
- declare signedTxCbor?: string | null
36
- declare isValid?: boolean | null
37
- declare txBodyHash?: _.Blake2b256 | null
38
- declare witnessCount?: number | null
39
- declare signerKeyHashes?: string | null
40
- declare errorMessage?: string | null
41
- declare warnings?: string | null
42
- declare verifiedAt?: __.CdsTimestamp | null
43
- static readonly kind: 'entity' | 'type' | 'aspect' = 'entity';
44
- declare static readonly keys: __.KeysOf<SignatureVerification>;
45
- declare static readonly elements: __.ElementsOf<SignatureVerification>;
46
- declare static readonly actions: globalThis.Record<never, never>;
47
- };
48
- }
49
- export class SignatureVerification extends _SignatureVerificationAspect(__.Entity) {}
50
- Object.defineProperty(SignatureVerification, 'name', { value: 'CardanoSignService.SignatureVerifications' })
51
- Object.defineProperty(SignatureVerification, 'is_singular', { value: true })
52
- export class SignatureVerifications extends Array<SignatureVerification> {$count?: number}
53
- Object.defineProperty(SignatureVerifications, 'name', { value: 'CardanoSignService.SignatureVerifications' })
54
-
55
- export function _AddressSigningRequestAspect<TBase extends new (...args: any[]) => object>(Base: TBase) {
56
- return class AddressSigningRequest extends Base {
57
- declare address?: __.Key<__.Association.to<Address>>
58
- declare address_address?: __.Key<_.Bech32>
59
- declare signingRequest?: __.Key<__.Association.to<SigningRequest>>
60
- declare signingRequest_id?: __.Key<string>
61
- static readonly kind: 'entity' | 'type' | 'aspect' = 'entity';
62
- declare static readonly keys: __.KeysOf<AddressSigningRequest>;
63
- declare static readonly elements: __.ElementsOf<AddressSigningRequest>;
64
- declare static readonly actions: globalThis.Record<never, never>;
65
- };
66
- }
67
- export class AddressSigningRequest extends _AddressSigningRequestAspect(__.Entity) {}
68
- Object.defineProperty(AddressSigningRequest, 'name', { value: 'CardanoSignService.AddressSigningRequests' })
69
- Object.defineProperty(AddressSigningRequest, 'is_singular', { value: true })
70
- export class AddressSigningRequests extends Array<AddressSigningRequest> {$count?: number}
71
- Object.defineProperty(AddressSigningRequests, 'name', { value: 'CardanoSignService.AddressSigningRequests' })
72
-
73
- export function _TransactionBuildAspect<TBase extends new (...args: any[]) => object>(Base: TBase) {
74
- return class TransactionBuild extends Base {
75
- declare validFrom?: __.CdsTimestamp | null
76
- declare validTo?: __.CdsTimestamp | null
77
- declare id?: __.Key<string>
78
- declare network?: string | null
79
- declare builderEngine?: string | null
80
- declare senderAddress?: _.Bech32 | null
81
- declare changeAddress?: _.Bech32 | null
82
- declare unsignedTxCbor?: string | null
83
- declare txBodyHash?: _.Blake2b256 | null
84
- declare fee?: _.Lovelace | null
85
- declare size?: number | null
86
- declare createdAt?: number | null
87
- declare inputs?: __.Composition.of.many<TransactionBuildInputs>
88
- declare outputs?: __.Composition.of.many<TransactionBuildOutputs>
89
- declare submission?: __.Association.to<TransactionSubmission> | null
90
- declare hasInputs?: boolean | null
91
- declare hasOutputs?: boolean | null
92
- declare wasSubmitted?: boolean | null
93
- declare scriptHash?: string | null
94
- declare mintScriptHash?: string | null
95
- declare fingerprint?: string | null
96
- declare scriptAddress?: string | null
97
- declare forcedInputsUsed?: number | null
98
- declare referenceInputsUsed?: number | null
99
- declare collateralAvailable?: boolean | null
100
- static readonly kind: 'entity' | 'type' | 'aspect' = 'entity';
101
- declare static readonly keys: __.KeysOf<TransactionBuild>;
102
- declare static readonly elements: __.ElementsOf<TransactionBuild>;
103
- declare static readonly actions: globalThis.Record<never, never>;
104
- };
105
- }
106
- export class TransactionBuild extends _TransactionBuildAspect(__.Entity) {}
107
- Object.defineProperty(TransactionBuild, 'name', { value: 'CardanoSignService.TransactionBuilds' })
108
- Object.defineProperty(TransactionBuild, 'is_singular', { value: true })
109
- export class TransactionBuilds extends Array<TransactionBuild> {$count?: number}
110
- Object.defineProperty(TransactionBuilds, 'name', { value: 'CardanoSignService.TransactionBuilds' })
111
-
112
- export function _TransactionSubmissionAspect<TBase extends new (...args: any[]) => object>(Base: TBase) {
113
- return class TransactionSubmission extends Base {
114
- declare id?: __.Key<string>
115
- declare build?: __.Association.to<TransactionBuild> | null
116
- declare build_id?: string | null
117
- declare signedTxCbor?: string | null
118
- declare txHash?: _.Blake2b256 | null
119
- declare submittedAt?: number | null
120
- declare status?: _.SubmissionStatus | null
121
- declare errorCode?: string | null
122
- declare errorMessage?: string | null
123
- declare retryCount?: number | null
124
- declare errors?: __.Composition.of.many<TransactionSubmissionErrors>
125
- declare hasErrors?: boolean | null
126
- static readonly kind: 'entity' | 'type' | 'aspect' = 'entity';
127
- declare static readonly keys: __.KeysOf<TransactionSubmission>;
128
- declare static readonly elements: __.ElementsOf<TransactionSubmission>;
129
- declare static readonly actions: globalThis.Record<never, never>;
130
- };
131
- }
132
- export class TransactionSubmission extends _TransactionSubmissionAspect(__.Entity) {}
133
- Object.defineProperty(TransactionSubmission, 'name', { value: 'CardanoSignService.TransactionSubmissions' })
134
- Object.defineProperty(TransactionSubmission, 'is_singular', { value: true })
135
- export class TransactionSubmissions extends Array<TransactionSubmission> {$count?: number}
136
- Object.defineProperty(TransactionSubmissions, 'name', { value: 'CardanoSignService.TransactionSubmissions' })
137
-
138
- export function _SigningRequestAspect<TBase extends new (...args: any[]) => object>(Base: TBase) {
139
- return class SigningRequest extends Base {
140
- declare id?: __.Key<string>
141
- declare build?: __.Association.to<TransactionBuild> | null
142
- declare build_id?: string | null
143
- declare txBodyHash?: _.Blake2b256 | null
144
- declare unsignedTxCbor?: string | null
145
- declare network?: string | null
146
- declare status?: _.SigningStatus | null
147
- declare createdAt?: __.CdsTimestamp | null
148
- declare expiresAt?: __.CdsTimestamp | null
149
- declare signedAt?: __.CdsTimestamp | null
150
- declare submittedAt?: __.CdsTimestamp | null
151
- declare cardanoCliCommand?: string | null
152
- declare cip30TxCbor?: string | null
153
- declare signedTxCbor?: string | null
154
- declare signerType?: string | null
155
- declare signerInfo?: string | null
156
- declare hsmKeyId?: string | null
157
- declare verifications?: __.Composition.of.many<SignatureVerifications>
158
- declare submission?: __.Association.to<TransactionSubmission> | null
159
- declare submission_id?: string | null
160
- declare errorMessage?: string | null
161
- static readonly kind: 'entity' | 'type' | 'aspect' = 'entity';
162
- declare static readonly keys: __.KeysOf<SigningRequest>;
163
- declare static readonly elements: __.ElementsOf<SigningRequest>;
164
- declare static readonly actions: globalThis.Record<never, never>;
165
- };
166
- }
167
- export class SigningRequest extends _SigningRequestAspect(__.Entity) {}
168
- Object.defineProperty(SigningRequest, 'name', { value: 'CardanoSignService.SigningRequests' })
169
- Object.defineProperty(SigningRequest, 'is_singular', { value: true })
170
- export class SigningRequests extends Array<SigningRequest> {$count?: number}
171
- Object.defineProperty(SigningRequests, 'name', { value: 'CardanoSignService.SigningRequests' })
172
-
173
- export function _AddressAspect<TBase extends new (...args: any[]) => object>(Base: TBase) {
174
- return class Address extends Base {
175
- declare validFrom?: __.CdsTimestamp | null
176
- declare validTo?: __.CdsTimestamp | null
177
- declare address?: __.Key<_.Bech32>
178
- declare stakeAddress?: _.Bech32 | null
179
- declare type?: string | null
180
- declare isScript?: boolean | null
181
- declare totalLovelace?: _.Lovelace | null
182
- declare utxoCount?: number | null
183
- declare transactions?: __.Composition.of.many<AddressTransactions>
184
- declare assets?: __.Composition.of.many<AddressAssets>
185
- declare utxos?: __.Composition.of.many<AddressUTxOs>
186
- declare hasTransactions?: boolean | null
187
- declare hasAssets?: boolean | null
188
- declare hasUTxOs?: boolean | null
189
- static readonly kind: 'entity' | 'type' | 'aspect' = 'entity';
190
- declare static readonly keys: __.KeysOf<Address>;
191
- declare static readonly elements: __.ElementsOf<Address>;
192
- declare static readonly actions: globalThis.Record<never, never>;
193
- };
194
- }
195
- export class Address extends _AddressAspect(__.Entity) {}
196
- Object.defineProperty(Address, 'name', { value: 'CardanoSignService.Addresses' })
197
- Object.defineProperty(Address, 'is_singular', { value: true })
198
- export class Addresses extends Array<Address> {$count?: number}
199
- Object.defineProperty(Addresses, 'name', { value: 'CardanoSignService.Addresses' })
200
-
201
- export function _TransactionBuildInputAspect<TBase extends new (...args: any[]) => object>(Base: TBase) {
202
- return class TransactionBuildInput extends Base {
203
- declare build?: __.Key<__.Association.to<TransactionBuild>>
204
- declare build_id?: __.Key<string>
205
- declare inputIndex?: __.Key<number>
206
- declare txHash?: _.Blake2b256 | null
207
- declare outputIndex?: number | null
208
- declare address?: _.Bech32 | null
209
- declare lovelace?: _.Lovelace | null
210
- declare assets?: __.Composition.of.many<TransactionBuildInputAssets>
211
- declare hasAssets?: boolean | null
212
- static readonly kind: 'entity' | 'type' | 'aspect' = 'entity';
213
- declare static readonly keys: __.KeysOf<TransactionBuildInput>;
214
- declare static readonly elements: __.ElementsOf<TransactionBuildInput>;
215
- declare static readonly actions: globalThis.Record<never, never>;
216
- };
217
- }
218
- export class TransactionBuildInput extends _TransactionBuildInputAspect(__.Entity) {}
219
- Object.defineProperty(TransactionBuildInput, 'name', { value: 'CardanoSignService.TransactionBuildInputs' })
220
- Object.defineProperty(TransactionBuildInput, 'is_singular', { value: true })
221
- export class TransactionBuildInputs extends Array<TransactionBuildInput> {$count?: number}
222
- Object.defineProperty(TransactionBuildInputs, 'name', { value: 'CardanoSignService.TransactionBuildInputs' })
223
-
224
- export function _TransactionBuildOutputAspect<TBase extends new (...args: any[]) => object>(Base: TBase) {
225
- return class TransactionBuildOutput extends Base {
226
- declare build?: __.Key<__.Association.to<TransactionBuild>>
227
- declare build_id?: __.Key<string>
228
- declare outputIndex?: __.Key<number>
229
- declare address?: _.Bech32 | null
230
- declare lovelace?: _.Lovelace | null
231
- declare isChange?: boolean | null
232
- declare assets?: __.Composition.of.many<TransactionBuildOutputAssets>
233
- declare hasAssets?: boolean | null
234
- static readonly kind: 'entity' | 'type' | 'aspect' = 'entity';
235
- declare static readonly keys: __.KeysOf<TransactionBuildOutput>;
236
- declare static readonly elements: __.ElementsOf<TransactionBuildOutput>;
237
- declare static readonly actions: globalThis.Record<never, never>;
238
- };
239
- }
240
- export class TransactionBuildOutput extends _TransactionBuildOutputAspect(__.Entity) {}
241
- Object.defineProperty(TransactionBuildOutput, 'name', { value: 'CardanoSignService.TransactionBuildOutputs' })
242
- Object.defineProperty(TransactionBuildOutput, 'is_singular', { value: true })
243
- export class TransactionBuildOutputs extends Array<TransactionBuildOutput> {$count?: number}
244
- Object.defineProperty(TransactionBuildOutputs, 'name', { value: 'CardanoSignService.TransactionBuildOutputs' })
245
-
246
- export function _TransactionSubmissionErrorAspect<TBase extends new (...args: any[]) => object>(Base: TBase) {
247
- return class TransactionSubmissionError extends Base {
248
- declare id?: __.Key<string>
249
- declare submission?: __.Association.to<TransactionSubmission> | null
250
- declare submission_id?: string | null
251
- declare occurredAt?: number | null
252
- declare errorType?: string | null
253
- declare errorCode?: string | null
254
- declare errorMessage?: string | null
255
- declare errorDetails?: string | null
256
- declare isRecoverable?: boolean | null
257
- static readonly kind: 'entity' | 'type' | 'aspect' = 'entity';
258
- declare static readonly keys: __.KeysOf<TransactionSubmissionError>;
259
- declare static readonly elements: __.ElementsOf<TransactionSubmissionError>;
260
- declare static readonly actions: globalThis.Record<never, never>;
261
- };
262
- }
263
- export class TransactionSubmissionError extends _TransactionSubmissionErrorAspect(__.Entity) {}
264
- Object.defineProperty(TransactionSubmissionError, 'name', { value: 'CardanoSignService.TransactionSubmissionErrors' })
265
- Object.defineProperty(TransactionSubmissionError, 'is_singular', { value: true })
266
- export class TransactionSubmissionErrors extends Array<TransactionSubmissionError> {$count?: number}
267
- Object.defineProperty(TransactionSubmissionErrors, 'name', { value: 'CardanoSignService.TransactionSubmissionErrors' })
268
-
269
- export function _AddressTransactionAspect<TBase extends new (...args: any[]) => object>(Base: TBase) {
270
- return class AddressTransaction extends Base {
271
- declare address?: __.Key<__.Association.to<Address>>
272
- declare address_address?: __.Key<_.Bech32>
273
- declare tx?: __.Key<__.Association.to<_odatano_cardano.Transaction>>
274
- declare tx_hash?: __.Key<_.Blake2b256>
275
- declare netAmount?: (number | string) | null
276
- declare blockTime?: number | null
277
- declare netAssets?: string | null
278
- declare hasAssets?: boolean | null
279
- static readonly kind: 'entity' | 'type' | 'aspect' = 'entity';
280
- declare static readonly keys: __.KeysOf<AddressTransaction>;
281
- declare static readonly elements: __.ElementsOf<AddressTransaction>;
282
- declare static readonly actions: globalThis.Record<never, never>;
283
- };
284
- }
285
- export class AddressTransaction extends _AddressTransactionAspect(__.Entity) {}
286
- Object.defineProperty(AddressTransaction, 'name', { value: 'CardanoSignService.AddressTransactions' })
287
- Object.defineProperty(AddressTransaction, 'is_singular', { value: true })
288
- export class AddressTransactions extends Array<AddressTransaction> {$count?: number}
289
- Object.defineProperty(AddressTransactions, 'name', { value: 'CardanoSignService.AddressTransactions' })
290
-
291
- export function _AddressAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase) {
292
- return class AddressAsset extends Base {
293
- declare validFrom?: __.CdsTimestamp | null
294
- declare validTo?: __.CdsTimestamp | null
295
- declare address?: __.Key<__.Association.to<Address>>
296
- declare address_address?: __.Key<_.Bech32>
297
- declare unit?: __.Key<_.AssetUnit>
298
- declare asset_quantity?: _.Lovelace | null
299
- declare asset_policyId?: _.Blake2b224 | null
300
- declare asset_assetNameHex?: _.HexBytes | null
301
- declare asset_assetName?: string | null
302
- declare asset_fingerprint?: string | null
303
- static readonly kind: 'entity' | 'type' | 'aspect' = 'entity';
304
- declare static readonly keys: __.KeysOf<AddressAsset>;
305
- declare static readonly elements: __.ElementsOf<AddressAsset>;
306
- declare static readonly actions: globalThis.Record<never, never>;
307
- };
308
- }
309
- export class AddressAsset extends _AddressAssetAspect(__.Entity) {}
310
- Object.defineProperty(AddressAsset, 'name', { value: 'CardanoSignService.AddressAssets' })
311
- Object.defineProperty(AddressAsset, 'is_singular', { value: true })
312
- export class AddressAssets extends Array<AddressAsset> {$count?: number}
313
- Object.defineProperty(AddressAssets, 'name', { value: 'CardanoSignService.AddressAssets' })
314
-
315
- export function _AddressUTxOAspect<TBase extends new (...args: any[]) => object>(Base: TBase) {
316
- return class AddressUTxO extends Base {
317
- declare validFrom?: __.CdsTimestamp | null
318
- declare validTo?: __.CdsTimestamp | null
319
- declare address?: __.Key<__.Association.to<Address>>
320
- declare address_address?: __.Key<_.Bech32>
321
- declare hash?: __.Key<_.Blake2b256>
322
- declare index?: __.Key<number>
323
- declare blockHash?: _.Blake2b256 | null
324
- declare utxodata_dataHash?: _.Blake2b256 | null
325
- declare utxodata_inlineDatum?: string | null
326
- declare utxodata_referenceScriptHash?: _.Blake2b256 | null
327
- declare lovelace?: _.Lovelace | null
328
- declare assets?: __.Composition.of.many<UTxOAssets>
329
- declare hasAssets?: boolean | null
330
- static readonly kind: 'entity' | 'type' | 'aspect' = 'entity';
331
- declare static readonly keys: __.KeysOf<AddressUTxO>;
332
- declare static readonly elements: __.ElementsOf<AddressUTxO>;
333
- declare static readonly actions: globalThis.Record<never, never>;
334
- };
335
- }
336
- export class AddressUTxO extends _AddressUTxOAspect(__.Entity) {}
337
- Object.defineProperty(AddressUTxO, 'name', { value: 'CardanoSignService.AddressUTxOs' })
338
- Object.defineProperty(AddressUTxO, 'is_singular', { value: true })
339
- export class AddressUTxOs extends Array<AddressUTxO> {$count?: number}
340
- Object.defineProperty(AddressUTxOs, 'name', { value: 'CardanoSignService.AddressUTxOs' })
341
-
342
- export function _TransactionBuildInputAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase) {
343
- return class TransactionBuildInputAsset extends Base {
344
- declare input?: __.Key<__.Association.to<TransactionBuildInput>>
345
- declare input_inputIndex?: __.Key<number>
346
- declare input_build_id?: __.Key<string>
347
- declare unit?: __.Key<_.AssetUnit>
348
- declare asset_quantity?: _.Lovelace | null
349
- declare asset_policyId?: _.Blake2b224 | null
350
- declare asset_assetNameHex?: _.HexBytes | null
351
- declare asset_assetName?: string | null
352
- declare asset_fingerprint?: string | null
353
- static readonly kind: 'entity' | 'type' | 'aspect' = 'entity';
354
- declare static readonly keys: __.KeysOf<TransactionBuildInputAsset>;
355
- declare static readonly elements: __.ElementsOf<TransactionBuildInputAsset>;
356
- declare static readonly actions: globalThis.Record<never, never>;
357
- };
358
- }
359
- export class TransactionBuildInputAsset extends _TransactionBuildInputAssetAspect(__.Entity) {}
360
- Object.defineProperty(TransactionBuildInputAsset, 'name', { value: 'CardanoSignService.TransactionBuildInputAssets' })
361
- Object.defineProperty(TransactionBuildInputAsset, 'is_singular', { value: true })
362
- export class TransactionBuildInputAssets extends Array<TransactionBuildInputAsset> {$count?: number}
363
- Object.defineProperty(TransactionBuildInputAssets, 'name', { value: 'CardanoSignService.TransactionBuildInputAssets' })
364
-
365
- export function _TransactionBuildOutputAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase) {
366
- return class TransactionBuildOutputAsset extends Base {
367
- declare output?: __.Key<__.Association.to<TransactionBuildOutput>>
368
- declare output_outputIndex?: __.Key<number>
369
- declare output_build_id?: __.Key<string>
370
- declare unit?: __.Key<_.AssetUnit>
371
- declare asset_quantity?: _.Lovelace | null
372
- declare asset_policyId?: _.Blake2b224 | null
373
- declare asset_assetNameHex?: _.HexBytes | null
374
- declare asset_assetName?: string | null
375
- declare asset_fingerprint?: string | null
376
- static readonly kind: 'entity' | 'type' | 'aspect' = 'entity';
377
- declare static readonly keys: __.KeysOf<TransactionBuildOutputAsset>;
378
- declare static readonly elements: __.ElementsOf<TransactionBuildOutputAsset>;
379
- declare static readonly actions: globalThis.Record<never, never>;
380
- };
381
- }
382
- export class TransactionBuildOutputAsset extends _TransactionBuildOutputAssetAspect(__.Entity) {}
383
- Object.defineProperty(TransactionBuildOutputAsset, 'name', { value: 'CardanoSignService.TransactionBuildOutputAssets' })
384
- Object.defineProperty(TransactionBuildOutputAsset, 'is_singular', { value: true })
385
- export class TransactionBuildOutputAssets extends Array<TransactionBuildOutputAsset> {$count?: number}
386
- Object.defineProperty(TransactionBuildOutputAssets, 'name', { value: 'CardanoSignService.TransactionBuildOutputAssets' })
387
-
388
- export function _UTxOAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase) {
389
- return class UTxOAsset extends Base {
390
- declare validFrom?: __.CdsTimestamp | null
391
- declare validTo?: __.CdsTimestamp | null
392
- declare utxo?: __.Key<__.Association.to<AddressUTxO>>
393
- declare utxo_hash?: __.Key<_.Blake2b256>
394
- declare utxo_index?: __.Key<number>
395
- declare utxo_address_address?: __.Key<_.Bech32>
396
- declare unit?: __.Key<_.AssetUnit>
397
- declare asset_quantity?: _.Lovelace | null
398
- declare asset_policyId?: _.Blake2b224 | null
399
- declare asset_assetNameHex?: _.HexBytes | null
400
- declare asset_assetName?: string | null
401
- declare asset_fingerprint?: string | null
402
- static readonly kind: 'entity' | 'type' | 'aspect' = 'entity';
403
- declare static readonly keys: __.KeysOf<UTxOAsset>;
404
- declare static readonly elements: __.ElementsOf<UTxOAsset>;
405
- declare static readonly actions: globalThis.Record<never, never>;
406
- };
407
- }
408
- export class UTxOAsset extends _UTxOAssetAspect(__.Entity) {}
409
- Object.defineProperty(UTxOAsset, 'name', { value: 'CardanoSignService.UTxOAssets' })
410
- Object.defineProperty(UTxOAsset, 'is_singular', { value: true })
411
- export class UTxOAssets extends Array<UTxOAsset> {$count?: number}
412
- Object.defineProperty(UTxOAssets, 'name', { value: 'CardanoSignService.UTxOAssets' })
413
-
414
-
415
- export declare const VerifySignature: {
416
- // positional
417
- (signingRequestId: string | null, signedTxCbor: string | null, signerType: string | null, signerInfo: string | null, address: _.Bech32 | null): globalThis.Promise<SignatureVerification | null> | SignatureVerification | null
418
- // named
419
- ({signingRequestId, signedTxCbor, signerType, signerInfo, address}: {signingRequestId?: string | null, signedTxCbor?: string | null, signerType?: string | null, signerInfo?: string | null, address?: _.Bech32 | null}): globalThis.Promise<SignatureVerification | null> | SignatureVerification | null
420
- // metadata (do not use)
421
- __parameters: {signingRequestId?: string | null, signedTxCbor?: string | null, signerType?: string | null, signerInfo?: string | null, address?: _.Bech32 | null}, __returns: globalThis.Promise<SignatureVerification | null> | SignatureVerification | null, __self: never
422
- kind: 'action'
423
- }
424
-
425
- export declare const SubmitVerifiedTransaction: {
426
- // positional
427
- (signingRequestId: string | null, signedTxCbor: string | null, signerType: string | null, signerInfo: string | null, address: _.Bech32 | null, deferSubmit: boolean | null): globalThis.Promise<TransactionSubmission | null> | TransactionSubmission | null
428
- // named
429
- ({signingRequestId, signedTxCbor, signerType, signerInfo, address, deferSubmit}: {signingRequestId?: string | null, signedTxCbor?: string | null, signerType?: string | null, signerInfo?: string | null, address?: _.Bech32 | null, deferSubmit?: boolean | null}): globalThis.Promise<TransactionSubmission | null> | TransactionSubmission | null
430
- // metadata (do not use)
431
- __parameters: {signingRequestId?: string | null, signedTxCbor?: string | null, signerType?: string | null, signerInfo?: string | null, address?: _.Bech32 | null, deferSubmit?: boolean | null}, __returns: globalThis.Promise<TransactionSubmission | null> | TransactionSubmission | null, __self: never
432
- kind: 'action'
433
- }
434
-
435
- export declare const VerifyDataSignature: {
436
- // positional
437
- (address: _.Bech32 | null, coseSignature: string | null, coseKey: string | null, expectedPayload: string | null): globalThis.Promise< {
438
- valid?: boolean | null,
439
- reason?: string | null,
440
- signedPayload?: string | null,
441
- signerVkh?: string | null,
442
- } | null> | {
443
- valid?: boolean | null,
444
- reason?: string | null,
445
- signedPayload?: string | null,
446
- signerVkh?: string | null,
447
- } | null
448
- // named
449
- ({address, coseSignature, coseKey, expectedPayload}: {address?: _.Bech32 | null, coseSignature?: string | null, coseKey?: string | null, expectedPayload?: string | null}): globalThis.Promise< {
450
- valid?: boolean | null,
451
- reason?: string | null,
452
- signedPayload?: string | null,
453
- signerVkh?: string | null,
454
- } | null> | {
455
- valid?: boolean | null,
456
- reason?: string | null,
457
- signedPayload?: string | null,
458
- signerVkh?: string | null,
459
- } | null
460
- // metadata (do not use)
461
- __parameters: {address?: _.Bech32 | null, coseSignature?: string | null, coseKey?: string | null, expectedPayload?: string | null}, __returns: globalThis.Promise< {
462
- valid?: boolean | null,
463
- reason?: string | null,
464
- signedPayload?: string | null,
465
- signerVkh?: string | null,
466
- } | null> | {
467
- valid?: boolean | null,
468
- reason?: string | null,
469
- signedPayload?: string | null,
470
- signerVkh?: string | null,
471
- } | null, __self: never
472
- kind: 'action'
473
- }
474
-
475
- export declare const CreateSigningRequest: {
476
- // positional
477
- (buildId: string | null, message: string | null): globalThis.Promise<SigningRequest | null> | SigningRequest | null
478
- // named
479
- ({buildId, message}: {buildId?: string | null, message?: string | null}): globalThis.Promise<SigningRequest | null> | SigningRequest | null
480
- // metadata (do not use)
481
- __parameters: {buildId?: string | null, message?: string | null}, __returns: globalThis.Promise<SigningRequest | null> | SigningRequest | null, __self: never
482
- kind: 'action'
483
- }
484
-
485
- export declare const GetSigningRequest: {
486
- // positional
487
- (signingRequestId: string | null): globalThis.Promise<SigningRequest | null> | SigningRequest | null
488
- // named
489
- ({signingRequestId}: {signingRequestId?: string | null}): globalThis.Promise<SigningRequest | null> | SigningRequest | null
490
- // metadata (do not use)
491
- __parameters: {signingRequestId?: string | null}, __returns: globalThis.Promise<SigningRequest | null> | SigningRequest | null, __self: never
492
- kind: 'action'
493
- }
494
-
495
- export declare const GetSigningRequestsByAddress: {
496
- // positional
497
- (address: _.Bech32 | null): globalThis.Promise<Array<AddressSigningRequest>> | Array<AddressSigningRequest>
498
- // named
499
- ({address}: {address?: _.Bech32 | null}): globalThis.Promise<Array<AddressSigningRequest>> | Array<AddressSigningRequest>
500
- // metadata (do not use)
501
- __parameters: {address?: _.Bech32 | null}, __returns: globalThis.Promise<Array<AddressSigningRequest>> | Array<AddressSigningRequest>, __self: never
502
- kind: 'action'
503
- }
504
-
505
- export declare const SignWithHsm: {
506
- // positional
507
- (buildId: string | null, address: _.Bech32 | null): globalThis.Promise<SigningRequest | null> | SigningRequest | null
508
- // named
509
- ({buildId, address}: {buildId?: string | null, address?: _.Bech32 | null}): globalThis.Promise<SigningRequest | null> | SigningRequest | null
510
- // metadata (do not use)
511
- __parameters: {buildId?: string | null, address?: _.Bech32 | null}, __returns: globalThis.Promise<SigningRequest | null> | SigningRequest | null, __self: never
512
- kind: 'action'
513
- }
514
-
515
- export declare const SignAndSubmitWithHsm: {
516
- // positional
517
- (buildId: string | null, address: _.Bech32 | null, deferSubmit: boolean | null): globalThis.Promise<TransactionSubmission | null> | TransactionSubmission | null
518
- // named
519
- ({buildId, address, deferSubmit}: {buildId?: string | null, address?: _.Bech32 | null, deferSubmit?: boolean | null}): globalThis.Promise<TransactionSubmission | null> | TransactionSubmission | null
520
- // metadata (do not use)
521
- __parameters: {buildId?: string | null, address?: _.Bech32 | null, deferSubmit?: boolean | null}, __returns: globalThis.Promise<TransactionSubmission | null> | TransactionSubmission | null, __self: never
522
- kind: 'action'
523
- }
524
-
525
- export declare const GetHsmStatus: {
526
- // positional
527
- (): globalThis.Promise< {
528
- connected?: boolean | null,
529
- keyId?: string | null,
530
- keyLabel?: string | null,
531
- publicKeyHash?: string | null,
532
- cardanoAddress?: string | null,
533
- } | null> | {
534
- connected?: boolean | null,
535
- keyId?: string | null,
536
- keyLabel?: string | null,
537
- publicKeyHash?: string | null,
538
- cardanoAddress?: string | null,
539
- } | null
540
- // named
541
- ({}: globalThis.Record<never, never>): globalThis.Promise< {
542
- connected?: boolean | null,
543
- keyId?: string | null,
544
- keyLabel?: string | null,
545
- publicKeyHash?: string | null,
546
- cardanoAddress?: string | null,
547
- } | null> | {
548
- connected?: boolean | null,
549
- keyId?: string | null,
550
- keyLabel?: string | null,
551
- publicKeyHash?: string | null,
552
- cardanoAddress?: string | null,
553
- } | null
554
- // metadata (do not use)
555
- __parameters: globalThis.Record<never, never>, __returns: globalThis.Promise< {
556
- connected?: boolean | null,
557
- keyId?: string | null,
558
- keyLabel?: string | null,
559
- publicKeyHash?: string | null,
560
- cardanoAddress?: string | null,
561
- } | null> | {
562
- connected?: boolean | null,
563
- keyId?: string | null,
564
- keyLabel?: string | null,
565
- publicKeyHash?: string | null,
566
- cardanoAddress?: string | null,
567
- } | null, __self: never
568
- kind: 'action'
569
- }