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