@odatano/core 1.11.0 → 2.0.0-rc.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@cds-models/CardanoAgentService/index.d.ts +255 -0
- package/@cds-models/CardanoAgentService/index.js +36 -0
- package/@cds-models/CardanoIndexerService/index.d.ts +177 -0
- package/@cds-models/CardanoIndexerService/index.js +27 -0
- package/@cds-models/CardanoODataService/index.d.ts +693 -2172
- package/@cds-models/CardanoODataService/index.js +88 -390
- package/@cds-models/CardanoSignService/index.d.ts +448 -1576
- package/@cds-models/CardanoSignService/index.js +62 -293
- package/@cds-models/CardanoTransactionService/index.d.ts +437 -1494
- package/@cds-models/CardanoTransactionService/index.js +60 -271
- package/@cds-models/CardanoWorkerService/index.d.ts +224 -0
- package/@cds-models/CardanoWorkerService/index.js +32 -0
- package/@cds-models/_/index.d.ts +70 -40
- package/@cds-models/_/index.js +17 -32
- package/@cds-models/cds/outbox/index.d.ts +28 -0
- package/@cds-models/index.d.ts +225 -522
- package/@cds-models/index.js +35 -218
- package/@cds-models/odatano/cardano/index.d.ts +919 -2884
- package/@cds-models/odatano/cardano/index.js +115 -536
- package/@cds-models/sap/common/index.d.ts +196 -600
- package/@cds-models/sap/common/index.js +28 -269
- package/README.md +194 -102
- package/db/schema.cds +388 -1
- package/db/types.cds +48 -0
- package/package.json +48 -33
- package/src/index.d.ts +7 -1
- package/src/index.js +30 -2
- package/src/plugin.js +33 -20
- package/srv/blockchain/backends/blockfrost-backend.d.ts +21 -2
- package/srv/blockchain/backends/blockfrost-backend.js +69 -25
- package/srv/blockchain/backends/cardano-backend.d.ts +69 -0
- package/srv/blockchain/backends/cardano-backend.js +13 -0
- package/srv/blockchain/backends/koios-backend.d.ts +26 -2
- package/srv/blockchain/backends/koios-backend.js +148 -25
- package/srv/blockchain/backends/ogmios-backend.d.ts +60 -9
- package/srv/blockchain/backends/ogmios-backend.js +326 -10
- package/srv/blockchain/cardano-client.d.ts +19 -0
- package/srv/blockchain/cardano-client.js +36 -0
- package/srv/blockchain/cardano-indexer.d.ts +50 -1
- package/srv/blockchain/cardano-indexer.js +193 -0
- package/srv/blockchain/crawler/crawler.d.ts +176 -0
- package/srv/blockchain/crawler/crawler.js +744 -0
- package/srv/blockchain/crawler/hooks.d.ts +43 -0
- package/srv/blockchain/crawler/hooks.js +62 -0
- package/srv/blockchain/crawler/index.d.ts +35 -0
- package/srv/blockchain/crawler/index.js +168 -0
- package/srv/blockchain/crawler/sync-state.d.ts +106 -0
- package/srv/blockchain/crawler/sync-state.js +287 -0
- package/srv/blockchain/signing/hsm-signer.d.ts +45 -0
- package/srv/blockchain/signing/hsm-signer.js +8 -1
- package/srv/blockchain/transaction-building/buildooor-tx.d.ts +20 -0
- package/srv/blockchain/transaction-building/buildooor-tx.js +104 -20
- package/srv/blockchain/wallet-worker/build-request.d.ts +26 -0
- package/srv/blockchain/wallet-worker/build-request.js +370 -0
- package/srv/blockchain/wallet-worker/confirmation-tracker.d.ts +117 -0
- package/srv/blockchain/wallet-worker/confirmation-tracker.js +290 -0
- package/srv/blockchain/wallet-worker/index.d.ts +14 -0
- package/srv/blockchain/wallet-worker/index.js +80 -0
- package/srv/blockchain/wallet-worker/job-store.d.ts +272 -0
- package/srv/blockchain/wallet-worker/job-store.js +597 -0
- package/srv/blockchain/wallet-worker/lease-heartbeat.d.ts +43 -0
- package/srv/blockchain/wallet-worker/lease-heartbeat.js +99 -0
- package/srv/blockchain/wallet-worker/signers.d.ts +57 -0
- package/srv/blockchain/wallet-worker/signers.js +131 -0
- package/srv/blockchain/wallet-worker/wallet-worker.d.ts +145 -0
- package/srv/blockchain/wallet-worker/wallet-worker.js +542 -0
- package/srv/cardano-agent-service.cds +150 -0
- package/srv/cardano-agent-service.d.ts +2 -0
- package/srv/cardano-agent-service.js +16 -0
- package/srv/cardano-indexer-service.cds +106 -0
- package/srv/cardano-indexer-service.d.ts +2 -0
- package/srv/cardano-indexer-service.js +79 -0
- package/srv/cardano-service.js +79 -4
- package/srv/cardano-sign-service.cds +200 -180
- package/srv/cardano-tx-service.cds +32 -26
- package/srv/cardano-tx-service.d.ts +1 -11
- package/srv/cardano-tx-service.js +107 -200
- package/srv/cardano-worker-service.cds +125 -0
- package/srv/cardano-worker-service.d.ts +2 -0
- package/srv/cardano-worker-service.js +199 -0
- package/srv/server.d.ts +34 -2
- package/srv/server.js +246 -36
- package/srv/utils/agent-grants-config.d.ts +65 -0
- package/srv/utils/agent-grants-config.js +148 -0
- package/srv/utils/agent-grants.d.ts +314 -0
- package/srv/utils/agent-grants.js +821 -0
- package/srv/utils/agent-token-auth.d.ts +19 -0
- package/srv/utils/agent-token-auth.js +81 -0
- package/srv/utils/collections.d.ts +13 -0
- package/srv/utils/collections.js +24 -0
- package/srv/utils/crypto.d.ts +16 -0
- package/srv/utils/crypto.js +75 -0
- package/srv/utils/db-sanitize.d.ts +40 -0
- package/srv/utils/db-sanitize.js +98 -0
- package/srv/utils/error-codes.d.ts +6 -0
- package/srv/utils/error-codes.js +6 -0
- package/srv/utils/errors.d.ts +12 -0
- package/srv/utils/errors.js +45 -0
- package/srv/utils/liveness.d.ts +23 -0
- package/srv/utils/liveness.js +49 -0
- package/srv/utils/mappers.d.ts +27 -0
- package/srv/utils/mappers.js +80 -10
- package/srv/utils/rate-limiter.d.ts +57 -0
- package/srv/utils/rate-limiter.js +126 -0
- package/srv/utils/service-events.d.ts +26 -0
- package/srv/utils/service-events.js +46 -0
- package/srv/utils/tx-request-parsers.d.ts +71 -0
- package/srv/utils/tx-request-parsers.js +202 -0
- package/srv/utils/tx-utils.d.ts +2 -1
- package/srv/utils/tx-utils.js +3 -2
- package/srv/utils/types.d.ts +17 -1
- package/@cds-models/CardanoODataService/index.d.ts.map +0 -1
- package/@cds-models/CardanoODataService/index.js.map +0 -1
- package/@cds-models/CardanoODataService/index.ts +0 -776
- package/@cds-models/CardanoSignService/index.d.ts.map +0 -1
- package/@cds-models/CardanoSignService/index.js.map +0 -1
- package/@cds-models/CardanoSignService/index.ts +0 -569
- package/@cds-models/CardanoTransactionService/index.d.ts.map +0 -1
- package/@cds-models/CardanoTransactionService/index.js.map +0 -1
- package/@cds-models/CardanoTransactionService/index.ts +0 -526
- package/@cds-models/_/index.d.ts.map +0 -1
- package/@cds-models/_/index.js.map +0 -1
- package/@cds-models/_/index.ts +0 -96
- package/@cds-models/cds/outbox/index.ts +0 -27
- package/@cds-models/index.d.ts.map +0 -1
- package/@cds-models/index.js.map +0 -1
- package/@cds-models/index.ts +0 -245
- package/@cds-models/odatano/cardano/index.d.ts.map +0 -1
- package/@cds-models/odatano/cardano/index.js.map +0 -1
- package/@cds-models/odatano/cardano/index.ts +0 -789
- package/@cds-models/sap/common/index.d.ts.map +0 -1
- package/@cds-models/sap/common/index.js.map +0 -1
- package/@cds-models/sap/common/index.ts +0 -249
|
@@ -1,526 +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 Transaction Service
|
|
8
|
-
*
|
|
9
|
-
* Handles transaction building and submission operations.
|
|
10
|
-
* Separate from the read-only CardanoODataService to provide
|
|
11
|
-
* clear separation between general query and command operations.
|
|
12
|
-
*
|
|
13
|
-
* Security note: see CardanoODataService (cardano-service.cds) for the rationale
|
|
14
|
-
* on service-level auth without per-resource ownership enforcement.
|
|
15
|
-
*/
|
|
16
|
-
export default class {
|
|
17
|
-
declare static readonly BuildSimpleAdaTransaction: typeof BuildSimpleAdaTransaction;
|
|
18
|
-
declare static readonly BuildTransactionWithMetadata: typeof BuildTransactionWithMetadata;
|
|
19
|
-
declare static readonly BuildMultiAssetTransaction: typeof BuildMultiAssetTransaction;
|
|
20
|
-
declare static readonly BuildMintTransaction: typeof BuildMintTransaction;
|
|
21
|
-
declare static readonly GetBuildDetails: typeof GetBuildDetails;
|
|
22
|
-
declare static readonly SubmitTransaction: typeof SubmitTransaction;
|
|
23
|
-
declare static readonly SubmitSignedTransaction: typeof SubmitSignedTransaction;
|
|
24
|
-
declare static readonly BuildPlutusSpendTransaction: typeof BuildPlutusSpendTransaction;
|
|
25
|
-
declare static readonly SetCollateral: typeof SetCollateral;
|
|
26
|
-
declare static readonly GetTransactionBuildsByAddress: typeof GetTransactionBuildsByAddress;
|
|
27
|
-
declare static readonly DeriveScriptAddress: typeof DeriveScriptAddress;
|
|
28
|
-
declare static readonly ExtractPaymentKeyHash: typeof ExtractPaymentKeyHash;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export function _TransactionBuildAspect<TBase extends new (...args: any[]) => object>(Base: TBase) {
|
|
32
|
-
return class TransactionBuild extends Base {
|
|
33
|
-
declare validFrom?: __.CdsTimestamp | null
|
|
34
|
-
declare validTo?: __.CdsTimestamp | null
|
|
35
|
-
declare id?: __.Key<string>
|
|
36
|
-
declare network?: string | null
|
|
37
|
-
declare builderEngine?: string | null
|
|
38
|
-
declare senderAddress?: _.Bech32 | null
|
|
39
|
-
declare changeAddress?: _.Bech32 | null
|
|
40
|
-
declare unsignedTxCbor?: string | null
|
|
41
|
-
declare txBodyHash?: _.Blake2b256 | null
|
|
42
|
-
declare fee?: _.Lovelace | null
|
|
43
|
-
declare size?: number | null
|
|
44
|
-
declare createdAt?: number | null
|
|
45
|
-
declare inputs?: __.Composition.of.many<TransactionBuildInputs>
|
|
46
|
-
declare outputs?: __.Composition.of.many<TransactionBuildOutputs>
|
|
47
|
-
declare submission?: __.Association.to<TransactionSubmission> | null
|
|
48
|
-
declare hasInputs?: boolean | null
|
|
49
|
-
declare hasOutputs?: boolean | null
|
|
50
|
-
declare wasSubmitted?: boolean | null
|
|
51
|
-
declare scriptHash?: string | null
|
|
52
|
-
declare mintScriptHash?: string | null
|
|
53
|
-
declare fingerprint?: string | null
|
|
54
|
-
declare scriptAddress?: string | null
|
|
55
|
-
declare forcedInputsUsed?: number | null
|
|
56
|
-
declare referenceInputsUsed?: number | null
|
|
57
|
-
declare collateralAvailable?: boolean | null
|
|
58
|
-
static readonly kind: 'entity' | 'type' | 'aspect' = 'entity';
|
|
59
|
-
declare static readonly keys: __.KeysOf<TransactionBuild>;
|
|
60
|
-
declare static readonly elements: __.ElementsOf<TransactionBuild>;
|
|
61
|
-
declare static readonly actions: globalThis.Record<never, never>;
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
export class TransactionBuild extends _TransactionBuildAspect(__.Entity) {}
|
|
65
|
-
Object.defineProperty(TransactionBuild, 'name', { value: 'CardanoTransactionService.TransactionBuilds' })
|
|
66
|
-
Object.defineProperty(TransactionBuild, 'is_singular', { value: true })
|
|
67
|
-
export class TransactionBuilds extends Array<TransactionBuild> {$count?: number}
|
|
68
|
-
Object.defineProperty(TransactionBuilds, 'name', { value: 'CardanoTransactionService.TransactionBuilds' })
|
|
69
|
-
|
|
70
|
-
export function _TransactionBuildInputAspect<TBase extends new (...args: any[]) => object>(Base: TBase) {
|
|
71
|
-
return class TransactionBuildInput extends Base {
|
|
72
|
-
declare build?: __.Key<__.Association.to<TransactionBuild>>
|
|
73
|
-
declare build_id?: __.Key<string>
|
|
74
|
-
declare inputIndex?: __.Key<number>
|
|
75
|
-
declare txHash?: _.Blake2b256 | null
|
|
76
|
-
declare outputIndex?: number | null
|
|
77
|
-
declare address?: _.Bech32 | null
|
|
78
|
-
declare lovelace?: _.Lovelace | null
|
|
79
|
-
declare assets?: __.Composition.of.many<TransactionBuildInputAssets>
|
|
80
|
-
declare hasAssets?: boolean | null
|
|
81
|
-
static readonly kind: 'entity' | 'type' | 'aspect' = 'entity';
|
|
82
|
-
declare static readonly keys: __.KeysOf<TransactionBuildInput>;
|
|
83
|
-
declare static readonly elements: __.ElementsOf<TransactionBuildInput>;
|
|
84
|
-
declare static readonly actions: globalThis.Record<never, never>;
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
export class TransactionBuildInput extends _TransactionBuildInputAspect(__.Entity) {}
|
|
88
|
-
Object.defineProperty(TransactionBuildInput, 'name', { value: 'CardanoTransactionService.TransactionBuildInputs' })
|
|
89
|
-
Object.defineProperty(TransactionBuildInput, 'is_singular', { value: true })
|
|
90
|
-
export class TransactionBuildInputs extends Array<TransactionBuildInput> {$count?: number}
|
|
91
|
-
Object.defineProperty(TransactionBuildInputs, 'name', { value: 'CardanoTransactionService.TransactionBuildInputs' })
|
|
92
|
-
|
|
93
|
-
export function _TransactionBuildOutputAspect<TBase extends new (...args: any[]) => object>(Base: TBase) {
|
|
94
|
-
return class TransactionBuildOutput extends Base {
|
|
95
|
-
declare build?: __.Key<__.Association.to<TransactionBuild>>
|
|
96
|
-
declare build_id?: __.Key<string>
|
|
97
|
-
declare outputIndex?: __.Key<number>
|
|
98
|
-
declare address?: _.Bech32 | null
|
|
99
|
-
declare lovelace?: _.Lovelace | null
|
|
100
|
-
declare isChange?: boolean | null
|
|
101
|
-
declare assets?: __.Composition.of.many<TransactionBuildOutputAssets>
|
|
102
|
-
declare hasAssets?: boolean | null
|
|
103
|
-
static readonly kind: 'entity' | 'type' | 'aspect' = 'entity';
|
|
104
|
-
declare static readonly keys: __.KeysOf<TransactionBuildOutput>;
|
|
105
|
-
declare static readonly elements: __.ElementsOf<TransactionBuildOutput>;
|
|
106
|
-
declare static readonly actions: globalThis.Record<never, never>;
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
export class TransactionBuildOutput extends _TransactionBuildOutputAspect(__.Entity) {}
|
|
110
|
-
Object.defineProperty(TransactionBuildOutput, 'name', { value: 'CardanoTransactionService.TransactionBuildOutputs' })
|
|
111
|
-
Object.defineProperty(TransactionBuildOutput, 'is_singular', { value: true })
|
|
112
|
-
export class TransactionBuildOutputs extends Array<TransactionBuildOutput> {$count?: number}
|
|
113
|
-
Object.defineProperty(TransactionBuildOutputs, 'name', { value: 'CardanoTransactionService.TransactionBuildOutputs' })
|
|
114
|
-
|
|
115
|
-
export function _TransactionBuildInputAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase) {
|
|
116
|
-
return class TransactionBuildInputAsset extends Base {
|
|
117
|
-
declare input?: __.Key<__.Association.to<TransactionBuildInput>>
|
|
118
|
-
declare input_inputIndex?: __.Key<number>
|
|
119
|
-
declare input_build_id?: __.Key<string>
|
|
120
|
-
declare unit?: __.Key<_.AssetUnit>
|
|
121
|
-
declare asset_quantity?: _.Lovelace | null
|
|
122
|
-
declare asset_policyId?: _.Blake2b224 | null
|
|
123
|
-
declare asset_assetNameHex?: _.HexBytes | null
|
|
124
|
-
declare asset_assetName?: string | null
|
|
125
|
-
declare asset_fingerprint?: string | null
|
|
126
|
-
static readonly kind: 'entity' | 'type' | 'aspect' = 'entity';
|
|
127
|
-
declare static readonly keys: __.KeysOf<TransactionBuildInputAsset>;
|
|
128
|
-
declare static readonly elements: __.ElementsOf<TransactionBuildInputAsset>;
|
|
129
|
-
declare static readonly actions: globalThis.Record<never, never>;
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
export class TransactionBuildInputAsset extends _TransactionBuildInputAssetAspect(__.Entity) {}
|
|
133
|
-
Object.defineProperty(TransactionBuildInputAsset, 'name', { value: 'CardanoTransactionService.TransactionBuildInputAssets' })
|
|
134
|
-
Object.defineProperty(TransactionBuildInputAsset, 'is_singular', { value: true })
|
|
135
|
-
export class TransactionBuildInputAssets extends Array<TransactionBuildInputAsset> {$count?: number}
|
|
136
|
-
Object.defineProperty(TransactionBuildInputAssets, 'name', { value: 'CardanoTransactionService.TransactionBuildInputAssets' })
|
|
137
|
-
|
|
138
|
-
export function _TransactionBuildOutputAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase) {
|
|
139
|
-
return class TransactionBuildOutputAsset extends Base {
|
|
140
|
-
declare output?: __.Key<__.Association.to<TransactionBuildOutput>>
|
|
141
|
-
declare output_outputIndex?: __.Key<number>
|
|
142
|
-
declare output_build_id?: __.Key<string>
|
|
143
|
-
declare unit?: __.Key<_.AssetUnit>
|
|
144
|
-
declare asset_quantity?: _.Lovelace | null
|
|
145
|
-
declare asset_policyId?: _.Blake2b224 | null
|
|
146
|
-
declare asset_assetNameHex?: _.HexBytes | null
|
|
147
|
-
declare asset_assetName?: string | null
|
|
148
|
-
declare asset_fingerprint?: string | null
|
|
149
|
-
static readonly kind: 'entity' | 'type' | 'aspect' = 'entity';
|
|
150
|
-
declare static readonly keys: __.KeysOf<TransactionBuildOutputAsset>;
|
|
151
|
-
declare static readonly elements: __.ElementsOf<TransactionBuildOutputAsset>;
|
|
152
|
-
declare static readonly actions: globalThis.Record<never, never>;
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
export class TransactionBuildOutputAsset extends _TransactionBuildOutputAssetAspect(__.Entity) {}
|
|
156
|
-
Object.defineProperty(TransactionBuildOutputAsset, 'name', { value: 'CardanoTransactionService.TransactionBuildOutputAssets' })
|
|
157
|
-
Object.defineProperty(TransactionBuildOutputAsset, 'is_singular', { value: true })
|
|
158
|
-
export class TransactionBuildOutputAssets extends Array<TransactionBuildOutputAsset> {$count?: number}
|
|
159
|
-
Object.defineProperty(TransactionBuildOutputAssets, 'name', { value: 'CardanoTransactionService.TransactionBuildOutputAssets' })
|
|
160
|
-
|
|
161
|
-
export function _TransactionSubmissionAspect<TBase extends new (...args: any[]) => object>(Base: TBase) {
|
|
162
|
-
return class TransactionSubmission extends Base {
|
|
163
|
-
declare id?: __.Key<string>
|
|
164
|
-
declare build?: __.Association.to<TransactionBuild> | null
|
|
165
|
-
declare build_id?: string | null
|
|
166
|
-
declare signedTxCbor?: string | null
|
|
167
|
-
declare txHash?: _.Blake2b256 | null
|
|
168
|
-
declare submittedAt?: number | null
|
|
169
|
-
declare status?: _.SubmissionStatus | null
|
|
170
|
-
declare errorCode?: string | null
|
|
171
|
-
declare errorMessage?: string | null
|
|
172
|
-
declare retryCount?: number | null
|
|
173
|
-
declare errors?: __.Composition.of.many<TransactionSubmissionErrors>
|
|
174
|
-
declare hasErrors?: boolean | null
|
|
175
|
-
static readonly kind: 'entity' | 'type' | 'aspect' = 'entity';
|
|
176
|
-
declare static readonly keys: __.KeysOf<TransactionSubmission>;
|
|
177
|
-
declare static readonly elements: __.ElementsOf<TransactionSubmission>;
|
|
178
|
-
declare static readonly actions: {
|
|
179
|
-
CheckSubmissionStatus: {
|
|
180
|
-
// positional
|
|
181
|
-
(): TransactionSubmissions
|
|
182
|
-
// named
|
|
183
|
-
({}: globalThis.Record<never, never>): TransactionSubmissions
|
|
184
|
-
// metadata (do not use)
|
|
185
|
-
__parameters: globalThis.Record<never, never>, __returns: TransactionSubmissions, __self: TransactionSubmission
|
|
186
|
-
kind: 'action'
|
|
187
|
-
}
|
|
188
|
-
};
|
|
189
|
-
};
|
|
190
|
-
}
|
|
191
|
-
/**
|
|
192
|
-
* TransactionSubmissions status flow:
|
|
193
|
-
* pending ──[submit to chain]──→ submitted (internal, in SubmitTransaction handler)
|
|
194
|
-
* submitted ──[CheckSubmissionStatus]──→ confirmed | stays submitted (conditional)
|
|
195
|
-
* pending | submitted ──→ failed (blockchain error)
|
|
196
|
-
*/
|
|
197
|
-
export class TransactionSubmission extends _TransactionSubmissionAspect(__.Entity) {}
|
|
198
|
-
Object.defineProperty(TransactionSubmission, 'name', { value: 'CardanoTransactionService.TransactionSubmissions' })
|
|
199
|
-
Object.defineProperty(TransactionSubmission, 'is_singular', { value: true })
|
|
200
|
-
/**
|
|
201
|
-
* TransactionSubmissions status flow:
|
|
202
|
-
* pending ──[submit to chain]──→ submitted (internal, in SubmitTransaction handler)
|
|
203
|
-
* submitted ──[CheckSubmissionStatus]──→ confirmed | stays submitted (conditional)
|
|
204
|
-
* pending | submitted ──→ failed (blockchain error)
|
|
205
|
-
*/
|
|
206
|
-
export class TransactionSubmissions extends Array<TransactionSubmission> {$count?: number}
|
|
207
|
-
Object.defineProperty(TransactionSubmissions, 'name', { value: 'CardanoTransactionService.TransactionSubmissions' })
|
|
208
|
-
|
|
209
|
-
export function _TransactionSubmissionErrorAspect<TBase extends new (...args: any[]) => object>(Base: TBase) {
|
|
210
|
-
return class TransactionSubmissionError extends Base {
|
|
211
|
-
declare id?: __.Key<string>
|
|
212
|
-
declare submission?: __.Association.to<TransactionSubmission> | null
|
|
213
|
-
declare submission_id?: string | null
|
|
214
|
-
declare occurredAt?: number | null
|
|
215
|
-
declare errorType?: string | null
|
|
216
|
-
declare errorCode?: string | null
|
|
217
|
-
declare errorMessage?: string | null
|
|
218
|
-
declare errorDetails?: string | null
|
|
219
|
-
declare isRecoverable?: boolean | null
|
|
220
|
-
static readonly kind: 'entity' | 'type' | 'aspect' = 'entity';
|
|
221
|
-
declare static readonly keys: __.KeysOf<TransactionSubmissionError>;
|
|
222
|
-
declare static readonly elements: __.ElementsOf<TransactionSubmissionError>;
|
|
223
|
-
declare static readonly actions: globalThis.Record<never, never>;
|
|
224
|
-
};
|
|
225
|
-
}
|
|
226
|
-
export class TransactionSubmissionError extends _TransactionSubmissionErrorAspect(__.Entity) {}
|
|
227
|
-
Object.defineProperty(TransactionSubmissionError, 'name', { value: 'CardanoTransactionService.TransactionSubmissionErrors' })
|
|
228
|
-
Object.defineProperty(TransactionSubmissionError, 'is_singular', { value: true })
|
|
229
|
-
export class TransactionSubmissionErrors extends Array<TransactionSubmissionError> {$count?: number}
|
|
230
|
-
Object.defineProperty(TransactionSubmissionErrors, 'name', { value: 'CardanoTransactionService.TransactionSubmissionErrors' })
|
|
231
|
-
|
|
232
|
-
export function _AddressTransactionBuildAspect<TBase extends new (...args: any[]) => object>(Base: TBase) {
|
|
233
|
-
return class AddressTransactionBuild extends Base {
|
|
234
|
-
declare address?: __.Key<__.Association.to<Address>>
|
|
235
|
-
declare address_address?: __.Key<_.Bech32>
|
|
236
|
-
declare txBuild?: __.Key<__.Association.to<TransactionBuild>>
|
|
237
|
-
declare txBuild_id?: __.Key<string>
|
|
238
|
-
static readonly kind: 'entity' | 'type' | 'aspect' = 'entity';
|
|
239
|
-
declare static readonly keys: __.KeysOf<AddressTransactionBuild>;
|
|
240
|
-
declare static readonly elements: __.ElementsOf<AddressTransactionBuild>;
|
|
241
|
-
declare static readonly actions: globalThis.Record<never, never>;
|
|
242
|
-
};
|
|
243
|
-
}
|
|
244
|
-
export class AddressTransactionBuild extends _AddressTransactionBuildAspect(__.Entity) {}
|
|
245
|
-
Object.defineProperty(AddressTransactionBuild, 'name', { value: 'CardanoTransactionService.AddressTransactionBuilds' })
|
|
246
|
-
Object.defineProperty(AddressTransactionBuild, 'is_singular', { value: true })
|
|
247
|
-
export class AddressTransactionBuilds extends Array<AddressTransactionBuild> {$count?: number}
|
|
248
|
-
Object.defineProperty(AddressTransactionBuilds, 'name', { value: 'CardanoTransactionService.AddressTransactionBuilds' })
|
|
249
|
-
|
|
250
|
-
export function _AddressAspect<TBase extends new (...args: any[]) => object>(Base: TBase) {
|
|
251
|
-
return class Address extends Base {
|
|
252
|
-
declare validFrom?: __.CdsTimestamp | null
|
|
253
|
-
declare validTo?: __.CdsTimestamp | null
|
|
254
|
-
declare address?: __.Key<_.Bech32>
|
|
255
|
-
declare stakeAddress?: _.Bech32 | null
|
|
256
|
-
declare type?: string | null
|
|
257
|
-
declare isScript?: boolean | null
|
|
258
|
-
declare totalLovelace?: _.Lovelace | null
|
|
259
|
-
declare utxoCount?: number | null
|
|
260
|
-
declare transactions?: __.Composition.of.many<AddressTransactions>
|
|
261
|
-
declare assets?: __.Composition.of.many<AddressAssets>
|
|
262
|
-
declare utxos?: __.Composition.of.many<AddressUTxOs>
|
|
263
|
-
declare hasTransactions?: boolean | null
|
|
264
|
-
declare hasAssets?: boolean | null
|
|
265
|
-
declare hasUTxOs?: boolean | null
|
|
266
|
-
static readonly kind: 'entity' | 'type' | 'aspect' = 'entity';
|
|
267
|
-
declare static readonly keys: __.KeysOf<Address>;
|
|
268
|
-
declare static readonly elements: __.ElementsOf<Address>;
|
|
269
|
-
declare static readonly actions: globalThis.Record<never, never>;
|
|
270
|
-
};
|
|
271
|
-
}
|
|
272
|
-
export class Address extends _AddressAspect(__.Entity) {}
|
|
273
|
-
Object.defineProperty(Address, 'name', { value: 'CardanoTransactionService.Addresses' })
|
|
274
|
-
Object.defineProperty(Address, 'is_singular', { value: true })
|
|
275
|
-
export class Addresses extends Array<Address> {$count?: number}
|
|
276
|
-
Object.defineProperty(Addresses, 'name', { value: 'CardanoTransactionService.Addresses' })
|
|
277
|
-
|
|
278
|
-
export function _AddressTransactionAspect<TBase extends new (...args: any[]) => object>(Base: TBase) {
|
|
279
|
-
return class AddressTransaction extends Base {
|
|
280
|
-
declare address?: __.Key<__.Association.to<Address>>
|
|
281
|
-
declare address_address?: __.Key<_.Bech32>
|
|
282
|
-
declare tx?: __.Key<__.Association.to<_odatano_cardano.Transaction>>
|
|
283
|
-
declare tx_hash?: __.Key<_.Blake2b256>
|
|
284
|
-
declare netAmount?: (number | string) | null
|
|
285
|
-
declare blockTime?: number | null
|
|
286
|
-
declare netAssets?: string | null
|
|
287
|
-
declare hasAssets?: boolean | null
|
|
288
|
-
static readonly kind: 'entity' | 'type' | 'aspect' = 'entity';
|
|
289
|
-
declare static readonly keys: __.KeysOf<AddressTransaction>;
|
|
290
|
-
declare static readonly elements: __.ElementsOf<AddressTransaction>;
|
|
291
|
-
declare static readonly actions: globalThis.Record<never, never>;
|
|
292
|
-
};
|
|
293
|
-
}
|
|
294
|
-
export class AddressTransaction extends _AddressTransactionAspect(__.Entity) {}
|
|
295
|
-
Object.defineProperty(AddressTransaction, 'name', { value: 'CardanoTransactionService.AddressTransactions' })
|
|
296
|
-
Object.defineProperty(AddressTransaction, 'is_singular', { value: true })
|
|
297
|
-
export class AddressTransactions extends Array<AddressTransaction> {$count?: number}
|
|
298
|
-
Object.defineProperty(AddressTransactions, 'name', { value: 'CardanoTransactionService.AddressTransactions' })
|
|
299
|
-
|
|
300
|
-
export function _AddressAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase) {
|
|
301
|
-
return class AddressAsset extends Base {
|
|
302
|
-
declare validFrom?: __.CdsTimestamp | null
|
|
303
|
-
declare validTo?: __.CdsTimestamp | null
|
|
304
|
-
declare address?: __.Key<__.Association.to<Address>>
|
|
305
|
-
declare address_address?: __.Key<_.Bech32>
|
|
306
|
-
declare unit?: __.Key<_.AssetUnit>
|
|
307
|
-
declare asset_quantity?: _.Lovelace | null
|
|
308
|
-
declare asset_policyId?: _.Blake2b224 | null
|
|
309
|
-
declare asset_assetNameHex?: _.HexBytes | null
|
|
310
|
-
declare asset_assetName?: string | null
|
|
311
|
-
declare asset_fingerprint?: string | null
|
|
312
|
-
static readonly kind: 'entity' | 'type' | 'aspect' = 'entity';
|
|
313
|
-
declare static readonly keys: __.KeysOf<AddressAsset>;
|
|
314
|
-
declare static readonly elements: __.ElementsOf<AddressAsset>;
|
|
315
|
-
declare static readonly actions: globalThis.Record<never, never>;
|
|
316
|
-
};
|
|
317
|
-
}
|
|
318
|
-
export class AddressAsset extends _AddressAssetAspect(__.Entity) {}
|
|
319
|
-
Object.defineProperty(AddressAsset, 'name', { value: 'CardanoTransactionService.AddressAssets' })
|
|
320
|
-
Object.defineProperty(AddressAsset, 'is_singular', { value: true })
|
|
321
|
-
export class AddressAssets extends Array<AddressAsset> {$count?: number}
|
|
322
|
-
Object.defineProperty(AddressAssets, 'name', { value: 'CardanoTransactionService.AddressAssets' })
|
|
323
|
-
|
|
324
|
-
export function _AddressUTxOAspect<TBase extends new (...args: any[]) => object>(Base: TBase) {
|
|
325
|
-
return class AddressUTxO extends Base {
|
|
326
|
-
declare validFrom?: __.CdsTimestamp | null
|
|
327
|
-
declare validTo?: __.CdsTimestamp | null
|
|
328
|
-
declare address?: __.Key<__.Association.to<Address>>
|
|
329
|
-
declare address_address?: __.Key<_.Bech32>
|
|
330
|
-
declare hash?: __.Key<_.Blake2b256>
|
|
331
|
-
declare index?: __.Key<number>
|
|
332
|
-
declare blockHash?: _.Blake2b256 | null
|
|
333
|
-
declare utxodata_dataHash?: _.Blake2b256 | null
|
|
334
|
-
declare utxodata_inlineDatum?: string | null
|
|
335
|
-
declare utxodata_referenceScriptHash?: _.Blake2b256 | null
|
|
336
|
-
declare lovelace?: _.Lovelace | null
|
|
337
|
-
declare assets?: __.Composition.of.many<UTxOAssets>
|
|
338
|
-
declare hasAssets?: boolean | null
|
|
339
|
-
static readonly kind: 'entity' | 'type' | 'aspect' = 'entity';
|
|
340
|
-
declare static readonly keys: __.KeysOf<AddressUTxO>;
|
|
341
|
-
declare static readonly elements: __.ElementsOf<AddressUTxO>;
|
|
342
|
-
declare static readonly actions: globalThis.Record<never, never>;
|
|
343
|
-
};
|
|
344
|
-
}
|
|
345
|
-
export class AddressUTxO extends _AddressUTxOAspect(__.Entity) {}
|
|
346
|
-
Object.defineProperty(AddressUTxO, 'name', { value: 'CardanoTransactionService.AddressUTxOs' })
|
|
347
|
-
Object.defineProperty(AddressUTxO, 'is_singular', { value: true })
|
|
348
|
-
export class AddressUTxOs extends Array<AddressUTxO> {$count?: number}
|
|
349
|
-
Object.defineProperty(AddressUTxOs, 'name', { value: 'CardanoTransactionService.AddressUTxOs' })
|
|
350
|
-
|
|
351
|
-
export function _UTxOAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase) {
|
|
352
|
-
return class UTxOAsset extends Base {
|
|
353
|
-
declare validFrom?: __.CdsTimestamp | null
|
|
354
|
-
declare validTo?: __.CdsTimestamp | null
|
|
355
|
-
declare utxo?: __.Key<__.Association.to<AddressUTxO>>
|
|
356
|
-
declare utxo_hash?: __.Key<_.Blake2b256>
|
|
357
|
-
declare utxo_index?: __.Key<number>
|
|
358
|
-
declare utxo_address_address?: __.Key<_.Bech32>
|
|
359
|
-
declare unit?: __.Key<_.AssetUnit>
|
|
360
|
-
declare asset_quantity?: _.Lovelace | null
|
|
361
|
-
declare asset_policyId?: _.Blake2b224 | null
|
|
362
|
-
declare asset_assetNameHex?: _.HexBytes | null
|
|
363
|
-
declare asset_assetName?: string | null
|
|
364
|
-
declare asset_fingerprint?: string | null
|
|
365
|
-
static readonly kind: 'entity' | 'type' | 'aspect' = 'entity';
|
|
366
|
-
declare static readonly keys: __.KeysOf<UTxOAsset>;
|
|
367
|
-
declare static readonly elements: __.ElementsOf<UTxOAsset>;
|
|
368
|
-
declare static readonly actions: globalThis.Record<never, never>;
|
|
369
|
-
};
|
|
370
|
-
}
|
|
371
|
-
export class UTxOAsset extends _UTxOAssetAspect(__.Entity) {}
|
|
372
|
-
Object.defineProperty(UTxOAsset, 'name', { value: 'CardanoTransactionService.UTxOAssets' })
|
|
373
|
-
Object.defineProperty(UTxOAsset, 'is_singular', { value: true })
|
|
374
|
-
export class UTxOAssets extends Array<UTxOAsset> {$count?: number}
|
|
375
|
-
Object.defineProperty(UTxOAssets, 'name', { value: 'CardanoTransactionService.UTxOAssets' })
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
export declare const BuildSimpleAdaTransaction: {
|
|
379
|
-
// positional
|
|
380
|
-
(senderAddress: _.Bech32 | null, recipientAddress: _.Bech32 | null, lovelaceAmount: _.Lovelace | null, changeAddress: _.Bech32 | null, outputDatumJson: string | null, assetsJson: string | null, forceInputsJson: string | null, validatorScript: string | null, scriptParamsJson: string | null, lockOnScript: boolean | null, referenceScriptHex: string | null, validityStartMs: string | null, validityEndMs: string | null): globalThis.Promise<TransactionBuild | null> | TransactionBuild | null
|
|
381
|
-
// named
|
|
382
|
-
({senderAddress, recipientAddress, lovelaceAmount, changeAddress, outputDatumJson, assetsJson, forceInputsJson, validatorScript, scriptParamsJson, lockOnScript, referenceScriptHex, validityStartMs, validityEndMs}: {senderAddress?: _.Bech32 | null, recipientAddress?: _.Bech32 | null, lovelaceAmount?: _.Lovelace | null, changeAddress?: _.Bech32 | null, outputDatumJson?: string | null, assetsJson?: string | null, forceInputsJson?: string | null, validatorScript?: string | null, scriptParamsJson?: string | null, lockOnScript?: boolean | null, referenceScriptHex?: string | null, validityStartMs?: string | null, validityEndMs?: string | null}): globalThis.Promise<TransactionBuild | null> | TransactionBuild | null
|
|
383
|
-
// metadata (do not use)
|
|
384
|
-
__parameters: {senderAddress?: _.Bech32 | null, recipientAddress?: _.Bech32 | null, lovelaceAmount?: _.Lovelace | null, changeAddress?: _.Bech32 | null, outputDatumJson?: string | null, assetsJson?: string | null, forceInputsJson?: string | null, validatorScript?: string | null, scriptParamsJson?: string | null, lockOnScript?: boolean | null, referenceScriptHex?: string | null, validityStartMs?: string | null, validityEndMs?: string | null}, __returns: globalThis.Promise<TransactionBuild | null> | TransactionBuild | null, __self: never
|
|
385
|
-
kind: 'action'
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
export declare const BuildTransactionWithMetadata: {
|
|
389
|
-
// positional
|
|
390
|
-
(senderAddress: _.Bech32 | null, recipientAddress: _.Bech32 | null, lovelaceAmount: _.Lovelace | null, changeAddress: _.Bech32 | null, metadataJson: string | null): globalThis.Promise<TransactionBuild | null> | TransactionBuild | null
|
|
391
|
-
// named
|
|
392
|
-
({senderAddress, recipientAddress, lovelaceAmount, changeAddress, metadataJson}: {senderAddress?: _.Bech32 | null, recipientAddress?: _.Bech32 | null, lovelaceAmount?: _.Lovelace | null, changeAddress?: _.Bech32 | null, metadataJson?: string | null}): globalThis.Promise<TransactionBuild | null> | TransactionBuild | null
|
|
393
|
-
// metadata (do not use)
|
|
394
|
-
__parameters: {senderAddress?: _.Bech32 | null, recipientAddress?: _.Bech32 | null, lovelaceAmount?: _.Lovelace | null, changeAddress?: _.Bech32 | null, metadataJson?: string | null}, __returns: globalThis.Promise<TransactionBuild | null> | TransactionBuild | null, __self: never
|
|
395
|
-
kind: 'action'
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
export declare const BuildMultiAssetTransaction: {
|
|
399
|
-
// positional
|
|
400
|
-
(senderAddress: _.Bech32 | null, recipientAddress: _.Bech32 | null, lovelaceAmount: _.Lovelace | null, assetsJson: string | null, changeAddress: _.Bech32 | null, outputDatumJson: string | null, referenceScriptHex: string | null, validityStartMs: string | null, validityEndMs: string | null): globalThis.Promise<TransactionBuild | null> | TransactionBuild | null
|
|
401
|
-
// named
|
|
402
|
-
({senderAddress, recipientAddress, lovelaceAmount, assetsJson, changeAddress, outputDatumJson, referenceScriptHex, validityStartMs, validityEndMs}: {senderAddress?: _.Bech32 | null, recipientAddress?: _.Bech32 | null, lovelaceAmount?: _.Lovelace | null, assetsJson?: string | null, changeAddress?: _.Bech32 | null, outputDatumJson?: string | null, referenceScriptHex?: string | null, validityStartMs?: string | null, validityEndMs?: string | null}): globalThis.Promise<TransactionBuild | null> | TransactionBuild | null
|
|
403
|
-
// metadata (do not use)
|
|
404
|
-
__parameters: {senderAddress?: _.Bech32 | null, recipientAddress?: _.Bech32 | null, lovelaceAmount?: _.Lovelace | null, assetsJson?: string | null, changeAddress?: _.Bech32 | null, outputDatumJson?: string | null, referenceScriptHex?: string | null, validityStartMs?: string | null, validityEndMs?: string | null}, __returns: globalThis.Promise<TransactionBuild | null> | TransactionBuild | null, __self: never
|
|
405
|
-
kind: 'action'
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
export declare const BuildMintTransaction: {
|
|
409
|
-
// positional
|
|
410
|
-
(senderAddress: _.Bech32 | null, recipientAddress: _.Bech32 | null, lovelaceAmount: _.Lovelace | null, mintActionsJson: string | null, mintingPolicyScript: string | null, changeAddress: _.Bech32 | null, requiredSignersJson: string | null, scriptParamsJson: string | null, inlineDatumJson: string | null, mintRedeemerJson: string | null, lockOnScript: boolean | null, forceInputsJson: string | null, referenceInputsJson: string | null, metadataJson: string | null, referenceScriptHex: string | null, validityStartMs: string | null, validityEndMs: string | null): globalThis.Promise<TransactionBuild | null> | TransactionBuild | null
|
|
411
|
-
// named
|
|
412
|
-
({senderAddress, recipientAddress, lovelaceAmount, mintActionsJson, mintingPolicyScript, changeAddress, requiredSignersJson, scriptParamsJson, inlineDatumJson, mintRedeemerJson, lockOnScript, forceInputsJson, referenceInputsJson, metadataJson, referenceScriptHex, validityStartMs, validityEndMs}: {senderAddress?: _.Bech32 | null, recipientAddress?: _.Bech32 | null, lovelaceAmount?: _.Lovelace | null, mintActionsJson?: string | null, mintingPolicyScript?: string | null, changeAddress?: _.Bech32 | null, requiredSignersJson?: string | null, scriptParamsJson?: string | null, inlineDatumJson?: string | null, mintRedeemerJson?: string | null, lockOnScript?: boolean | null, forceInputsJson?: string | null, referenceInputsJson?: string | null, metadataJson?: string | null, referenceScriptHex?: string | null, validityStartMs?: string | null, validityEndMs?: string | null}): globalThis.Promise<TransactionBuild | null> | TransactionBuild | null
|
|
413
|
-
// metadata (do not use)
|
|
414
|
-
__parameters: {senderAddress?: _.Bech32 | null, recipientAddress?: _.Bech32 | null, lovelaceAmount?: _.Lovelace | null, mintActionsJson?: string | null, mintingPolicyScript?: string | null, changeAddress?: _.Bech32 | null, requiredSignersJson?: string | null, scriptParamsJson?: string | null, inlineDatumJson?: string | null, mintRedeemerJson?: string | null, lockOnScript?: boolean | null, forceInputsJson?: string | null, referenceInputsJson?: string | null, metadataJson?: string | null, referenceScriptHex?: string | null, validityStartMs?: string | null, validityEndMs?: string | null}, __returns: globalThis.Promise<TransactionBuild | null> | TransactionBuild | null, __self: never
|
|
415
|
-
kind: 'action'
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
export declare const GetBuildDetails: {
|
|
419
|
-
// positional
|
|
420
|
-
(buildId: string | null): globalThis.Promise<TransactionBuild | null> | TransactionBuild | null
|
|
421
|
-
// named
|
|
422
|
-
({buildId}: {buildId?: string | null}): globalThis.Promise<TransactionBuild | null> | TransactionBuild | null
|
|
423
|
-
// metadata (do not use)
|
|
424
|
-
__parameters: {buildId?: string | null}, __returns: globalThis.Promise<TransactionBuild | null> | TransactionBuild | null, __self: never
|
|
425
|
-
kind: 'action'
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
export declare const SubmitTransaction: {
|
|
429
|
-
// positional
|
|
430
|
-
(buildId: string | null, signedTxCbor: string | null): globalThis.Promise<TransactionSubmission | null> | TransactionSubmission | null
|
|
431
|
-
// named
|
|
432
|
-
({buildId, signedTxCbor}: {buildId?: string | null, signedTxCbor?: string | null}): globalThis.Promise<TransactionSubmission | null> | TransactionSubmission | null
|
|
433
|
-
// metadata (do not use)
|
|
434
|
-
__parameters: {buildId?: string | null, signedTxCbor?: string | null}, __returns: globalThis.Promise<TransactionSubmission | null> | TransactionSubmission | null, __self: never
|
|
435
|
-
kind: 'action'
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
export declare const SubmitSignedTransaction: {
|
|
439
|
-
// positional
|
|
440
|
-
(signedTxCbor: string | null, network: string | null): globalThis.Promise<TransactionSubmission | null> | TransactionSubmission | null
|
|
441
|
-
// named
|
|
442
|
-
({signedTxCbor, network}: {signedTxCbor?: string | null, network?: string | null}): globalThis.Promise<TransactionSubmission | null> | TransactionSubmission | null
|
|
443
|
-
// metadata (do not use)
|
|
444
|
-
__parameters: {signedTxCbor?: string | null, network?: string | null}, __returns: globalThis.Promise<TransactionSubmission | null> | TransactionSubmission | null, __self: never
|
|
445
|
-
kind: 'action'
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
export declare const BuildPlutusSpendTransaction: {
|
|
449
|
-
// positional
|
|
450
|
-
(senderAddress: _.Bech32 | null, recipientAddress: _.Bech32 | null, lovelaceAmount: _.Lovelace | null, validatorScript: string | null, scriptTxHash: string | null, scriptOutputIndex: number | null, redeemerJson: string | null, datumJson: string | null, changeAddress: _.Bech32 | null, requiredSignersJson: string | null, scriptParamsJson: string | null, inlineDatumJson: string | null, lockOnScript: boolean | null, forceInputsJson: string | null, extraOutputsJson: string | null, mintActionsJson: string | null, mintingPolicyScript: string | null, mintRedeemerJson: string | null, referenceInputsJson: string | null, referenceScriptHex: string | null, validityStartMs: string | null, validityEndMs: string | null): globalThis.Promise<TransactionBuild | null> | TransactionBuild | null
|
|
451
|
-
// named
|
|
452
|
-
({senderAddress, recipientAddress, lovelaceAmount, validatorScript, scriptTxHash, scriptOutputIndex, redeemerJson, datumJson, changeAddress, requiredSignersJson, scriptParamsJson, inlineDatumJson, lockOnScript, forceInputsJson, extraOutputsJson, mintActionsJson, mintingPolicyScript, mintRedeemerJson, referenceInputsJson, referenceScriptHex, validityStartMs, validityEndMs}: {senderAddress?: _.Bech32 | null, recipientAddress?: _.Bech32 | null, lovelaceAmount?: _.Lovelace | null, validatorScript?: string | null, scriptTxHash?: string | null, scriptOutputIndex?: number | null, redeemerJson?: string | null, datumJson?: string | null, changeAddress?: _.Bech32 | null, requiredSignersJson?: string | null, scriptParamsJson?: string | null, inlineDatumJson?: string | null, lockOnScript?: boolean | null, forceInputsJson?: string | null, extraOutputsJson?: string | null, mintActionsJson?: string | null, mintingPolicyScript?: string | null, mintRedeemerJson?: string | null, referenceInputsJson?: string | null, referenceScriptHex?: string | null, validityStartMs?: string | null, validityEndMs?: string | null}): globalThis.Promise<TransactionBuild | null> | TransactionBuild | null
|
|
453
|
-
// metadata (do not use)
|
|
454
|
-
__parameters: {senderAddress?: _.Bech32 | null, recipientAddress?: _.Bech32 | null, lovelaceAmount?: _.Lovelace | null, validatorScript?: string | null, scriptTxHash?: string | null, scriptOutputIndex?: number | null, redeemerJson?: string | null, datumJson?: string | null, changeAddress?: _.Bech32 | null, requiredSignersJson?: string | null, scriptParamsJson?: string | null, inlineDatumJson?: string | null, lockOnScript?: boolean | null, forceInputsJson?: string | null, extraOutputsJson?: string | null, mintActionsJson?: string | null, mintingPolicyScript?: string | null, mintRedeemerJson?: string | null, referenceInputsJson?: string | null, referenceScriptHex?: string | null, validityStartMs?: string | null, validityEndMs?: string | null}, __returns: globalThis.Promise<TransactionBuild | null> | TransactionBuild | null, __self: never
|
|
455
|
-
kind: 'action'
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
export declare const SetCollateral: {
|
|
459
|
-
// positional
|
|
460
|
-
(address: _.Bech32 | null): globalThis.Promise<TransactionBuild | null> | TransactionBuild | null
|
|
461
|
-
// named
|
|
462
|
-
({address}: {address?: _.Bech32 | null}): globalThis.Promise<TransactionBuild | null> | TransactionBuild | null
|
|
463
|
-
// metadata (do not use)
|
|
464
|
-
__parameters: {address?: _.Bech32 | null}, __returns: globalThis.Promise<TransactionBuild | null> | TransactionBuild | null, __self: never
|
|
465
|
-
kind: 'action'
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
export declare const GetTransactionBuildsByAddress: {
|
|
469
|
-
// positional
|
|
470
|
-
(address: _.Bech32 | null): globalThis.Promise<Array<AddressTransactionBuild>> | Array<AddressTransactionBuild>
|
|
471
|
-
// named
|
|
472
|
-
({address}: {address?: _.Bech32 | null}): globalThis.Promise<Array<AddressTransactionBuild>> | Array<AddressTransactionBuild>
|
|
473
|
-
// metadata (do not use)
|
|
474
|
-
__parameters: {address?: _.Bech32 | null}, __returns: globalThis.Promise<Array<AddressTransactionBuild>> | Array<AddressTransactionBuild>, __self: never
|
|
475
|
-
kind: 'action'
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
export declare const DeriveScriptAddress: {
|
|
479
|
-
// positional
|
|
480
|
-
(validatorScript: string | null, scriptParamsJson: string | null, network: string | null): globalThis.Promise< {
|
|
481
|
-
scriptAddress?: string | null,
|
|
482
|
-
scriptHash?: string | null,
|
|
483
|
-
} | null> | {
|
|
484
|
-
scriptAddress?: string | null,
|
|
485
|
-
scriptHash?: string | null,
|
|
486
|
-
} | null
|
|
487
|
-
// named
|
|
488
|
-
({validatorScript, scriptParamsJson, network}: {validatorScript?: string | null, scriptParamsJson?: string | null, network?: string | null}): globalThis.Promise< {
|
|
489
|
-
scriptAddress?: string | null,
|
|
490
|
-
scriptHash?: string | null,
|
|
491
|
-
} | null> | {
|
|
492
|
-
scriptAddress?: string | null,
|
|
493
|
-
scriptHash?: string | null,
|
|
494
|
-
} | null
|
|
495
|
-
// metadata (do not use)
|
|
496
|
-
__parameters: {validatorScript?: string | null, scriptParamsJson?: string | null, network?: string | null}, __returns: globalThis.Promise< {
|
|
497
|
-
scriptAddress?: string | null,
|
|
498
|
-
scriptHash?: string | null,
|
|
499
|
-
} | null> | {
|
|
500
|
-
scriptAddress?: string | null,
|
|
501
|
-
scriptHash?: string | null,
|
|
502
|
-
} | null, __self: never
|
|
503
|
-
kind: 'action'
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
export declare const ExtractPaymentKeyHash: {
|
|
507
|
-
// positional
|
|
508
|
-
(address: _.Bech32 | null): globalThis.Promise< {
|
|
509
|
-
paymentKeyHash?: string | null,
|
|
510
|
-
} | null> | {
|
|
511
|
-
paymentKeyHash?: string | null,
|
|
512
|
-
} | null
|
|
513
|
-
// named
|
|
514
|
-
({address}: {address?: _.Bech32 | null}): globalThis.Promise< {
|
|
515
|
-
paymentKeyHash?: string | null,
|
|
516
|
-
} | null> | {
|
|
517
|
-
paymentKeyHash?: string | null,
|
|
518
|
-
} | null
|
|
519
|
-
// metadata (do not use)
|
|
520
|
-
__parameters: {address?: _.Bech32 | null}, __returns: globalThis.Promise< {
|
|
521
|
-
paymentKeyHash?: string | null,
|
|
522
|
-
} | null> | {
|
|
523
|
-
paymentKeyHash?: string | null,
|
|
524
|
-
} | null, __self: never
|
|
525
|
-
kind: 'action'
|
|
526
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAE/B,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI;KAAE,IAAI,IAAI,MAAM,QAAQ,CAAC,CAAC,CAAC,GAAG,IAAI;CAAE,CAAA;AAEhE,yBAAiB,WAAW,CAAC;IACzB,KAAY,EAAE,CAAE,CAAC,IAAI,CAAC,CAAC;IACvB,UAAiB,EAAE,CAAC;QAChB,KAAY,IAAI,CAAE,CAAC,SAAS,SAAS,GAAG,EAAE,IAAI,CAAC,CAAC;KACnD;CACJ;AAED,yBAAiB,WAAW,CAAC;IACzB,KAAY,EAAE,CAAE,CAAC,IAAI,CAAC,CAAC;IACvB,UAAiB,EAAE,CAAC;QAChB,KAAY,IAAI,CAAE,CAA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-models/_/index.ts
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
// This is an automatically generated file. Please do not change its contents manually!
|
|
2
|
-
import cds from '@sap/cds'
|
|
3
|
-
import { type } from '@sap/cds'
|
|
4
|
-
|
|
5
|
-
export type ElementsOf<T> = {[name in keyof Required<T>]: type }
|
|
6
|
-
|
|
7
|
-
export namespace Association {
|
|
8
|
-
export type to <T> = T;
|
|
9
|
-
export namespace to {
|
|
10
|
-
export type many <T extends readonly any[]> = T;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export namespace Composition {
|
|
15
|
-
export type of <T> = T;
|
|
16
|
-
export namespace of {
|
|
17
|
-
export type many <T extends readonly any[]> = T;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export class Entity {
|
|
22
|
-
static data<T extends Entity> (this:T, _input:Object) : T {
|
|
23
|
-
return {} as T // mock
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export type EntitySet<T> = T[] & {
|
|
28
|
-
data (input:object[]) : T[]
|
|
29
|
-
data (input:object) : T
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export type DraftEntity<T> = T & {
|
|
33
|
-
IsActiveEntity?: boolean | null
|
|
34
|
-
HasActiveEntity?: boolean | null
|
|
35
|
-
HasDraftEntity?: boolean | null
|
|
36
|
-
DraftAdministrativeData_DraftUUID?: string | null
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export type DraftOf<T> = { new(...args: any[]): DraftEntity<T> }
|
|
40
|
-
export type DraftsOf<T> = typeof Array<DraftEntity<T>>
|
|
41
|
-
|
|
42
|
-
export type DeepRequired<T> = {
|
|
43
|
-
[K in keyof T]: DeepRequired<Unkey<T[K]>>
|
|
44
|
-
} & Exclude<Required<T>, null>;
|
|
45
|
-
|
|
46
|
-
const key = Symbol('key') // to avoid .key showing up in IDE's auto-completion
|
|
47
|
-
export type Key<T> = T & {[key]?: true}
|
|
48
|
-
|
|
49
|
-
export type KeysOf<T> = {
|
|
50
|
-
[K in keyof T as NonNullable<T[K]> extends Key<unknown> ? K : never]-?: Key<{}> // T[K]
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export type Unkey<T> = T extends Key<infer U> ? U : T
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Dates and timestamps are strings during runtime, so cds-typer represents them as such.
|
|
57
|
-
*/
|
|
58
|
-
export type CdsDate = `${number}${number}${number}${number}-${number}${number}-${number}${number}`;
|
|
59
|
-
/**
|
|
60
|
-
* @see {@link CdsDate}
|
|
61
|
-
*/
|
|
62
|
-
export type CdsDateTime = string;
|
|
63
|
-
/**
|
|
64
|
-
* @see {@link CdsDate}
|
|
65
|
-
*/
|
|
66
|
-
export type CdsTime = `${number}${number}:${number}${number}:${number}${number}`;
|
|
67
|
-
/**
|
|
68
|
-
* @see {@link CdsDate}
|
|
69
|
-
*/
|
|
70
|
-
export type CdsTimestamp = string;
|
|
71
|
-
|
|
72
|
-
export type CdsMap = { [key: string]: unknown };
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
export const createEntityProxy = function (fqParts: any, opts = {}) {
|
|
76
|
-
const { target, customProps } = { target: {}, customProps: [] as any[], ...opts }
|
|
77
|
-
const fq = fqParts.filter((p: any) => !!p).join('.')
|
|
78
|
-
return new Proxy(target, {
|
|
79
|
-
get: function (target:any, prop:any) {
|
|
80
|
-
if (cds.entities) {
|
|
81
|
-
target.__proto__ = cds.entities(fqParts[0])[fqParts[1]]
|
|
82
|
-
// overwrite/simplify getter after cds.entities is accessible
|
|
83
|
-
this.get = (target, prop) => target[prop]
|
|
84
|
-
return target[prop]
|
|
85
|
-
}
|
|
86
|
-
// we already know the name so we skip the cds.entities proxy access
|
|
87
|
-
if (prop === 'name') return fq
|
|
88
|
-
// custom properties access on 'target' as well as cached _entity property access goes here
|
|
89
|
-
if (Object.hasOwn(target, prop)) return target[prop]
|
|
90
|
-
// inline enums have to be caught here for first time access, as they do not exist on the entity
|
|
91
|
-
if (customProps.includes(prop as never)) return target[prop]
|
|
92
|
-
// last but not least we pass the property access to cds.entities
|
|
93
|
-
throw new Error(`Property ${prop} does not exist on entity '${fq}' or cds.entities is not yet defined. Ensure the CDS runtime is fully booted before accessing properties.`)
|
|
94
|
-
}
|
|
95
|
-
})
|
|
96
|
-
}
|