@odatano/core 2.0.0-rc.24 → 2.0.0-rc.25
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/CardanoIndexerService/index.d.ts +37 -0
- package/@cds-models/CardanoIndexerService/index.js +4 -0
- package/@cds-models/CardanoODataService/index.d.ts +27 -2
- package/@cds-models/CardanoODataService/index.js +3 -0
- package/@cds-models/CardanoSignService/index.d.ts +23 -1
- package/@cds-models/CardanoSignService/index.js +3 -0
- package/@cds-models/CardanoTransactionService/index.d.ts +34 -1
- package/@cds-models/CardanoTransactionService/index.js +4 -0
- package/@cds-models/index.d.ts +18 -0
- package/@cds-models/index.js +3 -0
- package/@cds-models/odatano/cardano/index.d.ts +49 -2
- package/@cds-models/odatano/cardano/index.js +6 -0
- package/db/schema.cds +74 -3
- package/db/types.cds +27 -0
- package/package.json +182 -182
- package/srv/blockchain/backends/blockfrost-backend.js +4 -2
- package/srv/blockchain/backends/cardano-backend.d.ts +0 -2
- package/srv/blockchain/backends/koios-backend.d.ts +1 -1
- package/srv/blockchain/backends/koios-backend.js +61 -14
- package/srv/blockchain/backends/odatano-backend.d.ts +5 -0
- package/srv/blockchain/backends/odatano-backend.js +12 -0
- package/srv/blockchain/backends/ogmios-backend.d.ts +12 -2
- package/srv/blockchain/backends/ogmios-backend.js +91 -21
- package/srv/blockchain/cardano-client.d.ts +11 -5
- package/srv/blockchain/cardano-client.js +51 -16
- package/srv/blockchain/cardano-indexer.d.ts +43 -15
- package/srv/blockchain/cardano-indexer.js +177 -68
- package/srv/blockchain/cardano-tx-builder.d.ts +11 -1
- package/srv/blockchain/cardano-tx-builder.js +57 -2
- package/srv/blockchain/crawler/certificate-backfill.d.ts +22 -0
- package/srv/blockchain/crawler/certificate-backfill.js +49 -30
- package/srv/blockchain/crawler/crawler.d.ts +3 -1
- package/srv/blockchain/crawler/crawler.js +12 -7
- package/srv/blockchain/crawler/sync-state.d.ts +3 -1
- package/srv/blockchain/crawler/sync-state.js +15 -2
- package/srv/blockchain/crawler/transaction-backfill.d.ts +52 -0
- package/srv/blockchain/crawler/transaction-backfill.js +283 -0
- package/srv/blockchain/crawler/utxo-set-import.d.ts +9 -0
- package/srv/blockchain/crawler/utxo-set-import.js +138 -47
- package/srv/blockchain/ledger-state.d.ts +16 -1
- package/srv/blockchain/ledger-state.js +38 -18
- package/srv/blockchain/pending-spends.d.ts +28 -0
- package/srv/blockchain/pending-spends.js +89 -0
- package/srv/blockchain/stored-chain.d.ts +5 -2
- package/srv/blockchain/stored-chain.js +31 -5
- package/srv/blockchain/transaction-building/buildooor-tx.d.ts +12 -3
- package/srv/blockchain/transaction-building/buildooor-tx.js +203 -21
- package/srv/blockchain/transaction-building/cardano-tx.d.ts +2 -1
- package/srv/blockchain/transaction-rows.d.ts +1 -1
- package/srv/blockchain/transaction-rows.js +2 -1
- package/srv/blockchain/wallet-worker/build-request.js +1 -1
- package/srv/cardano-backend-service.js +35 -8
- package/srv/cardano-indexer-service.cds +201 -176
- package/srv/cardano-indexer-service.js +104 -10
- package/srv/cardano-service.cds +5 -0
- package/srv/cardano-tx-service.cds +39 -0
- package/srv/cardano-tx-service.js +88 -14
- package/srv/server.js +4 -1
- package/srv/utils/agent-grants.js +1 -0
- package/srv/utils/const.d.ts +5 -0
- package/srv/utils/const.js +6 -1
- package/srv/utils/error-codes.d.ts +2 -0
- package/srv/utils/error-codes.js +2 -0
- package/srv/utils/errors.d.ts +7 -0
- package/srv/utils/errors.js +11 -1
- package/srv/utils/mappers.d.ts +24 -2
- package/srv/utils/mappers.js +49 -0
- package/srv/utils/pg-inline-json.d.ts +8 -0
- package/srv/utils/pg-inline-json.js +63 -0
- package/srv/utils/tx-build-helper.d.ts +2 -0
- package/srv/utils/tx-build-helper.js +12 -0
- package/srv/utils/tx-request-parsers.d.ts +46 -5
- package/srv/utils/tx-request-parsers.js +227 -16
- package/srv/utils/types.d.ts +59 -0
- package/srv/utils/validators.d.ts +5 -1
- package/srv/utils/validators.js +19 -9
|
@@ -26,6 +26,7 @@ export default class {
|
|
|
26
26
|
static readonly resumeCrawler: typeof resumeCrawler;
|
|
27
27
|
static readonly importUtxoSet: typeof importUtxoSet;
|
|
28
28
|
static readonly backfillCertificates: typeof backfillCertificates;
|
|
29
|
+
static readonly backfillTransactions: typeof backfillTransactions;
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
// entity 'SyncState'
|
|
@@ -102,6 +103,7 @@ export declare function _CrawlerStatusAspect<TBase extends new (...args: any[])
|
|
|
102
103
|
consecutiveErrors?: number | null
|
|
103
104
|
utxoSet?: UtxoSetStatus | null
|
|
104
105
|
certificateBackfill?: CertificateBackfillStatus | null
|
|
106
|
+
transactionBackfill?: TransactionBackfillStatus | null
|
|
105
107
|
epochSnapshots?: EpochSnapshotStatus | null
|
|
106
108
|
} & InstanceType<TBase>
|
|
107
109
|
readonly kind: 'type';
|
|
@@ -151,6 +153,31 @@ export declare function _CertificateBackfillStatusAspect<TBase extends new (...a
|
|
|
151
153
|
export class CertificateBackfillStatus extends _CertificateBackfillStatusAspect(__.Entity) {
|
|
152
154
|
}
|
|
153
155
|
|
|
156
|
+
// entity 'TransactionBackfillStatus'
|
|
157
|
+
export declare function _TransactionBackfillStatusAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
158
|
+
new (...args: any[]): {
|
|
159
|
+
status?: string | null
|
|
160
|
+
fromSlot?: string | null
|
|
161
|
+
toSlot?: string | null
|
|
162
|
+
atSlot?: string | null
|
|
163
|
+
blocks?: number | null
|
|
164
|
+
transactions?: number | null
|
|
165
|
+
inputs?: number | null
|
|
166
|
+
redeemers?: number | null
|
|
167
|
+
rewritten?: number | null
|
|
168
|
+
skipped?: number | null
|
|
169
|
+
startedAt?: __.CdsTimestamp | null
|
|
170
|
+
finishedAt?: __.CdsTimestamp | null
|
|
171
|
+
error?: string | null
|
|
172
|
+
} & InstanceType<TBase>
|
|
173
|
+
readonly kind: 'type';
|
|
174
|
+
readonly keys: __.KeysOf<TransactionBackfillStatus>;
|
|
175
|
+
readonly elements: __.ElementsOf<TransactionBackfillStatus>;
|
|
176
|
+
readonly actions: globalThis.Record<never, never>;
|
|
177
|
+
};
|
|
178
|
+
export class TransactionBackfillStatus extends _TransactionBackfillStatusAspect(__.Entity) {
|
|
179
|
+
}
|
|
180
|
+
|
|
154
181
|
// entity 'CertificateBackfillResult'
|
|
155
182
|
export declare function _CertificateBackfillResultAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
156
183
|
new (...args: any[]): {
|
|
@@ -294,4 +321,14 @@ export declare const backfillCertificates: {
|
|
|
294
321
|
// metadata (do not use)
|
|
295
322
|
__parameters: {fromSlot?: number | null, toSlot?: number | null}, __returns: globalThis.Promise<CertificateBackfillResult | null> | CertificateBackfillResult | null, __self: never
|
|
296
323
|
kind: 'action'
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
export declare const backfillTransactions: {
|
|
327
|
+
// positional
|
|
328
|
+
(fromSlot: number | null, toSlot: number | null): globalThis.Promise<CertificateBackfillResult | null> | CertificateBackfillResult | null
|
|
329
|
+
// named
|
|
330
|
+
({fromSlot, toSlot}: {fromSlot?: number | null, toSlot?: number | null}): globalThis.Promise<CertificateBackfillResult | null> | CertificateBackfillResult | null
|
|
331
|
+
// metadata (do not use)
|
|
332
|
+
__parameters: {fromSlot?: number | null, toSlot?: number | null}, __returns: globalThis.Promise<CertificateBackfillResult | null> | CertificateBackfillResult | null, __self: never
|
|
333
|
+
kind: 'action'
|
|
297
334
|
}
|
|
@@ -19,6 +19,9 @@ module.exports.__Array_EpochSnapshotStatus_ = createEntityProxy(['CardanoIndexer
|
|
|
19
19
|
// CertificateBackfillStatus
|
|
20
20
|
module.exports.CertificateBackfillStatus = createEntityProxy(['CardanoIndexerService', 'CertificateBackfillStatus'], { target: { is_singular: true } })
|
|
21
21
|
module.exports.__Array_CertificateBackfillStatus_ = createEntityProxy(['CardanoIndexerService', 'CertificateBackfillStatus'], { target: { is_singular: false }})
|
|
22
|
+
// TransactionBackfillStatus
|
|
23
|
+
module.exports.TransactionBackfillStatus = createEntityProxy(['CardanoIndexerService', 'TransactionBackfillStatus'], { target: { is_singular: true } })
|
|
24
|
+
module.exports.__Array_TransactionBackfillStatus_ = createEntityProxy(['CardanoIndexerService', 'TransactionBackfillStatus'], { target: { is_singular: false }})
|
|
22
25
|
// CertificateBackfillResult
|
|
23
26
|
module.exports.CertificateBackfillResult = createEntityProxy(['CardanoIndexerService', 'CertificateBackfillResult'], { target: { is_singular: true } })
|
|
24
27
|
module.exports.__Array_CertificateBackfillResult_ = createEntityProxy(['CardanoIndexerService', 'CertificateBackfillResult'], { target: { is_singular: false }})
|
|
@@ -41,4 +44,5 @@ module.exports.pauseCrawler = 'pauseCrawler'
|
|
|
41
44
|
module.exports.resumeCrawler = 'resumeCrawler'
|
|
42
45
|
module.exports.importUtxoSet = 'importUtxoSet'
|
|
43
46
|
module.exports.backfillCertificates = 'backfillCertificates'
|
|
47
|
+
module.exports.backfillTransactions = 'backfillTransactions'
|
|
44
48
|
// enums
|
|
@@ -509,6 +509,31 @@ export class TransactionWithdrawals extends Array<TransactionWithdrawal> {
|
|
|
509
509
|
$count?: number
|
|
510
510
|
}
|
|
511
511
|
|
|
512
|
+
// entity 'TransactionRedeemer'
|
|
513
|
+
export declare function _TransactionRedeemerAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
514
|
+
new (...args: any[]): {
|
|
515
|
+
tx?: __.Key<__.Association.to<Transaction>>
|
|
516
|
+
tx_hash?: __.Key<_.Blake2b256>
|
|
517
|
+
purpose?: __.Key<string>
|
|
518
|
+
redeemerIndex?: __.Key<number>
|
|
519
|
+
data?: string | null
|
|
520
|
+
mem?: number | null
|
|
521
|
+
steps?: number | null
|
|
522
|
+
spentTxHash?: _.Blake2b256 | null
|
|
523
|
+
spentOutputIndex?: number | null
|
|
524
|
+
policyId?: _.Blake2b224 | null
|
|
525
|
+
} & InstanceType<TBase>
|
|
526
|
+
readonly kind: 'entity';
|
|
527
|
+
readonly keys: __.KeysOf<TransactionRedeemer>;
|
|
528
|
+
readonly elements: __.ElementsOf<TransactionRedeemer>;
|
|
529
|
+
readonly actions: globalThis.Record<never, never>;
|
|
530
|
+
};
|
|
531
|
+
export class TransactionRedeemer extends _TransactionRedeemerAspect(__.Entity) {
|
|
532
|
+
}
|
|
533
|
+
export class TransactionRedeemers extends Array<TransactionRedeemer> {
|
|
534
|
+
$count?: number
|
|
535
|
+
}
|
|
536
|
+
|
|
512
537
|
// entity 'LedgerUTxO'
|
|
513
538
|
export declare function _LedgerUTxOAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
514
539
|
new (...args: any[]): {
|
|
@@ -595,7 +620,7 @@ export declare function _LedgerAddressAssetAspect<TBase extends new (...args: an
|
|
|
595
620
|
address?: __.Key<__.Association.to<LedgerAddress>>
|
|
596
621
|
address_address?: __.Key<_.Bech32>
|
|
597
622
|
unit?: __.Key<_.AssetUnit>
|
|
598
|
-
asset_quantity?: _.
|
|
623
|
+
asset_quantity?: _.AssetAmount | null
|
|
599
624
|
asset_policyId?: _.Blake2b224 | null
|
|
600
625
|
asset_assetNameHex?: _.HexBytes | null
|
|
601
626
|
asset_assetName?: string | null
|
|
@@ -702,7 +727,7 @@ export declare function _AddressAssetAspect<TBase extends new (...args: any[]) =
|
|
|
702
727
|
address?: __.Key<__.Association.to<Address>>
|
|
703
728
|
address_address?: __.Key<_.Bech32>
|
|
704
729
|
unit?: __.Key<_.AssetUnit>
|
|
705
|
-
asset_quantity?: _.
|
|
730
|
+
asset_quantity?: _.AssetAmount | null
|
|
706
731
|
asset_policyId?: _.Blake2b224 | null
|
|
707
732
|
asset_assetNameHex?: _.HexBytes | null
|
|
708
733
|
asset_assetName?: string | null
|
|
@@ -55,6 +55,9 @@ module.exports.TransactionCertificates = createEntityProxy(['CardanoODataService
|
|
|
55
55
|
// TransactionWithdrawals
|
|
56
56
|
module.exports.TransactionWithdrawal = createEntityProxy(['CardanoODataService', 'TransactionWithdrawals'], { target: { is_singular: true } })
|
|
57
57
|
module.exports.TransactionWithdrawals = createEntityProxy(['CardanoODataService', 'TransactionWithdrawals'], { target: { is_singular: false }})
|
|
58
|
+
// TransactionRedeemers
|
|
59
|
+
module.exports.TransactionRedeemer = createEntityProxy(['CardanoODataService', 'TransactionRedeemers'], { target: { is_singular: true } })
|
|
60
|
+
module.exports.TransactionRedeemers = createEntityProxy(['CardanoODataService', 'TransactionRedeemers'], { target: { is_singular: false }})
|
|
58
61
|
// LedgerUTxOs
|
|
59
62
|
module.exports.LedgerUTxO = createEntityProxy(['CardanoODataService', 'LedgerUTxOs'], { target: { is_singular: true } })
|
|
60
63
|
module.exports.LedgerUTxOs = createEntityProxy(['CardanoODataService', 'LedgerUTxOs'], { target: { is_singular: false }})
|
|
@@ -92,6 +92,7 @@ export declare function _TransactionBuildAspect<TBase extends new (...args: any[
|
|
|
92
92
|
createdAt?: number | null
|
|
93
93
|
inputs?: __.Composition.of.many<TransactionBuildInputs>
|
|
94
94
|
outputs?: __.Composition.of.many<TransactionBuildOutputs>
|
|
95
|
+
redeemers?: __.Composition.of.many<TransactionBuildRedeemers>
|
|
95
96
|
submission?: __.Association.to<TransactionSubmission> | null
|
|
96
97
|
hasInputs?: boolean | null
|
|
97
98
|
hasOutputs?: boolean | null
|
|
@@ -254,6 +255,27 @@ export class TransactionBuildOutputs extends Array<TransactionBuildOutput> {
|
|
|
254
255
|
$count?: number
|
|
255
256
|
}
|
|
256
257
|
|
|
258
|
+
// entity 'TransactionBuildRedeemer'
|
|
259
|
+
export declare function _TransactionBuildRedeemerAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
260
|
+
new (...args: any[]): {
|
|
261
|
+
build?: __.Key<__.Association.to<TransactionBuild>>
|
|
262
|
+
build_id?: __.Key<string>
|
|
263
|
+
tag?: __.Key<string>
|
|
264
|
+
redeemerIndex?: __.Key<number>
|
|
265
|
+
mem?: number | null
|
|
266
|
+
steps?: number | null
|
|
267
|
+
} & InstanceType<TBase>
|
|
268
|
+
readonly kind: 'entity';
|
|
269
|
+
readonly keys: __.KeysOf<TransactionBuildRedeemer>;
|
|
270
|
+
readonly elements: __.ElementsOf<TransactionBuildRedeemer>;
|
|
271
|
+
readonly actions: globalThis.Record<never, never>;
|
|
272
|
+
};
|
|
273
|
+
export class TransactionBuildRedeemer extends _TransactionBuildRedeemerAspect(__.Entity) {
|
|
274
|
+
}
|
|
275
|
+
export class TransactionBuildRedeemers extends Array<TransactionBuildRedeemer> {
|
|
276
|
+
$count?: number
|
|
277
|
+
}
|
|
278
|
+
|
|
257
279
|
// entity 'TransactionSubmissionError'
|
|
258
280
|
export declare function _TransactionSubmissionErrorAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
259
281
|
new (...args: any[]): {
|
|
@@ -309,7 +331,7 @@ export declare function _AddressAssetAspect<TBase extends new (...args: any[]) =
|
|
|
309
331
|
address?: __.Key<__.Association.to<Address>>
|
|
310
332
|
address_address?: __.Key<_.Bech32>
|
|
311
333
|
unit?: __.Key<_.AssetUnit>
|
|
312
|
-
asset_quantity?: _.
|
|
334
|
+
asset_quantity?: _.AssetAmount | null
|
|
313
335
|
asset_policyId?: _.Blake2b224 | null
|
|
314
336
|
asset_assetNameHex?: _.HexBytes | null
|
|
315
337
|
asset_assetName?: string | null
|
|
@@ -28,6 +28,9 @@ module.exports.TransactionBuildInputs = createEntityProxy(['CardanoSignService',
|
|
|
28
28
|
// TransactionBuildOutputs
|
|
29
29
|
module.exports.TransactionBuildOutput = createEntityProxy(['CardanoSignService', 'TransactionBuildOutputs'], { target: { is_singular: true } })
|
|
30
30
|
module.exports.TransactionBuildOutputs = createEntityProxy(['CardanoSignService', 'TransactionBuildOutputs'], { target: { is_singular: false }})
|
|
31
|
+
// TransactionBuildRedeemers
|
|
32
|
+
module.exports.TransactionBuildRedeemer = createEntityProxy(['CardanoSignService', 'TransactionBuildRedeemers'], { target: { is_singular: true } })
|
|
33
|
+
module.exports.TransactionBuildRedeemers = createEntityProxy(['CardanoSignService', 'TransactionBuildRedeemers'], { target: { is_singular: false }})
|
|
31
34
|
// TransactionSubmissionErrors
|
|
32
35
|
module.exports.TransactionSubmissionError = createEntityProxy(['CardanoSignService', 'TransactionSubmissionErrors'], { target: { is_singular: true } })
|
|
33
36
|
module.exports.TransactionSubmissionErrors = createEntityProxy(['CardanoSignService', 'TransactionSubmissionErrors'], { target: { is_singular: false }})
|
|
@@ -22,6 +22,7 @@ export default class {
|
|
|
22
22
|
static readonly SubmitTransaction: typeof SubmitTransaction;
|
|
23
23
|
static readonly SubmitSignedTransaction: typeof SubmitSignedTransaction;
|
|
24
24
|
static readonly BuildPlutusSpendTransaction: typeof BuildPlutusSpendTransaction;
|
|
25
|
+
static readonly BuildPlutusTransaction: typeof BuildPlutusTransaction;
|
|
25
26
|
static readonly SetCollateral: typeof SetCollateral;
|
|
26
27
|
static readonly GetTransactionBuildsByAddress: typeof GetTransactionBuildsByAddress;
|
|
27
28
|
static readonly DeriveScriptAddress: typeof DeriveScriptAddress;
|
|
@@ -45,6 +46,7 @@ export declare function _TransactionBuildAspect<TBase extends new (...args: any[
|
|
|
45
46
|
createdAt?: number | null
|
|
46
47
|
inputs?: __.Composition.of.many<TransactionBuildInputs>
|
|
47
48
|
outputs?: __.Composition.of.many<TransactionBuildOutputs>
|
|
49
|
+
redeemers?: __.Composition.of.many<TransactionBuildRedeemers>
|
|
48
50
|
submission?: __.Association.to<TransactionSubmission> | null
|
|
49
51
|
hasInputs?: boolean | null
|
|
50
52
|
hasOutputs?: boolean | null
|
|
@@ -115,6 +117,27 @@ export class TransactionBuildOutputs extends Array<TransactionBuildOutput> {
|
|
|
115
117
|
$count?: number
|
|
116
118
|
}
|
|
117
119
|
|
|
120
|
+
// entity 'TransactionBuildRedeemer'
|
|
121
|
+
export declare function _TransactionBuildRedeemerAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
122
|
+
new (...args: any[]): {
|
|
123
|
+
build?: __.Key<__.Association.to<TransactionBuild>>
|
|
124
|
+
build_id?: __.Key<string>
|
|
125
|
+
tag?: __.Key<string>
|
|
126
|
+
redeemerIndex?: __.Key<number>
|
|
127
|
+
mem?: number | null
|
|
128
|
+
steps?: number | null
|
|
129
|
+
} & InstanceType<TBase>
|
|
130
|
+
readonly kind: 'entity';
|
|
131
|
+
readonly keys: __.KeysOf<TransactionBuildRedeemer>;
|
|
132
|
+
readonly elements: __.ElementsOf<TransactionBuildRedeemer>;
|
|
133
|
+
readonly actions: globalThis.Record<never, never>;
|
|
134
|
+
};
|
|
135
|
+
export class TransactionBuildRedeemer extends _TransactionBuildRedeemerAspect(__.Entity) {
|
|
136
|
+
}
|
|
137
|
+
export class TransactionBuildRedeemers extends Array<TransactionBuildRedeemer> {
|
|
138
|
+
$count?: number
|
|
139
|
+
}
|
|
140
|
+
|
|
118
141
|
// entity 'TransactionBuildInputAsset'
|
|
119
142
|
export declare function _TransactionBuildInputAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
120
143
|
new (...args: any[]): {
|
|
@@ -315,7 +338,7 @@ export declare function _AddressAssetAspect<TBase extends new (...args: any[]) =
|
|
|
315
338
|
address?: __.Key<__.Association.to<Address>>
|
|
316
339
|
address_address?: __.Key<_.Bech32>
|
|
317
340
|
unit?: __.Key<_.AssetUnit>
|
|
318
|
-
asset_quantity?: _.
|
|
341
|
+
asset_quantity?: _.AssetAmount | null
|
|
319
342
|
asset_policyId?: _.Blake2b224 | null
|
|
320
343
|
asset_assetNameHex?: _.HexBytes | null
|
|
321
344
|
asset_assetName?: string | null
|
|
@@ -468,6 +491,16 @@ export declare const BuildPlutusSpendTransaction: {
|
|
|
468
491
|
kind: 'action'
|
|
469
492
|
}
|
|
470
493
|
|
|
494
|
+
export declare const BuildPlutusTransaction: {
|
|
495
|
+
// positional
|
|
496
|
+
(senderAddress: _.Bech32 | null, changeAddress: _.Bech32 | null, scriptInputsJson: string | null, outputsJson: string | null, referenceInputsJson: string | null, forceInputsJson: string | null, requiredSignersJson: string | null, mintActionsJson: string | null, validityStartMs: string | null, validityEndMs: string | null): globalThis.Promise<TransactionBuild | null> | TransactionBuild | null
|
|
497
|
+
// named
|
|
498
|
+
({senderAddress, changeAddress, scriptInputsJson, outputsJson, referenceInputsJson, forceInputsJson, requiredSignersJson, mintActionsJson, validityStartMs, validityEndMs}: {senderAddress?: _.Bech32 | null, changeAddress?: _.Bech32 | null, scriptInputsJson?: string | null, outputsJson?: string | null, referenceInputsJson?: string | null, forceInputsJson?: string | null, requiredSignersJson?: string | null, mintActionsJson?: string | null, validityStartMs?: string | null, validityEndMs?: string | null}): globalThis.Promise<TransactionBuild | null> | TransactionBuild | null
|
|
499
|
+
// metadata (do not use)
|
|
500
|
+
__parameters: {senderAddress?: _.Bech32 | null, changeAddress?: _.Bech32 | null, scriptInputsJson?: string | null, outputsJson?: string | null, referenceInputsJson?: string | null, forceInputsJson?: string | null, requiredSignersJson?: string | null, mintActionsJson?: string | null, validityStartMs?: string | null, validityEndMs?: string | null}, __returns: globalThis.Promise<TransactionBuild | null> | TransactionBuild | null, __self: never
|
|
501
|
+
kind: 'action'
|
|
502
|
+
}
|
|
503
|
+
|
|
471
504
|
export declare const SetCollateral: {
|
|
472
505
|
// positional
|
|
473
506
|
(address: _.Bech32 | null): globalThis.Promise<TransactionBuild | null> | TransactionBuild | null
|
|
@@ -13,6 +13,9 @@ module.exports.TransactionBuildInputs = createEntityProxy(['CardanoTransactionSe
|
|
|
13
13
|
// TransactionBuildOutputs
|
|
14
14
|
module.exports.TransactionBuildOutput = createEntityProxy(['CardanoTransactionService', 'TransactionBuildOutputs'], { target: { is_singular: true } })
|
|
15
15
|
module.exports.TransactionBuildOutputs = createEntityProxy(['CardanoTransactionService', 'TransactionBuildOutputs'], { target: { is_singular: false }})
|
|
16
|
+
// TransactionBuildRedeemers
|
|
17
|
+
module.exports.TransactionBuildRedeemer = createEntityProxy(['CardanoTransactionService', 'TransactionBuildRedeemers'], { target: { is_singular: true } })
|
|
18
|
+
module.exports.TransactionBuildRedeemers = createEntityProxy(['CardanoTransactionService', 'TransactionBuildRedeemers'], { target: { is_singular: false }})
|
|
16
19
|
// TransactionBuildInputAssets
|
|
17
20
|
module.exports.TransactionBuildInputAsset = createEntityProxy(['CardanoTransactionService', 'TransactionBuildInputAssets'], { target: { is_singular: true } })
|
|
18
21
|
module.exports.TransactionBuildInputAssets = createEntityProxy(['CardanoTransactionService', 'TransactionBuildInputAssets'], { target: { is_singular: false }})
|
|
@@ -53,6 +56,7 @@ module.exports.GetBuildDetails = 'GetBuildDetails'
|
|
|
53
56
|
module.exports.SubmitTransaction = 'SubmitTransaction'
|
|
54
57
|
module.exports.SubmitSignedTransaction = 'SubmitSignedTransaction'
|
|
55
58
|
module.exports.BuildPlutusSpendTransaction = 'BuildPlutusSpendTransaction'
|
|
59
|
+
module.exports.BuildPlutusTransaction = 'BuildPlutusTransaction'
|
|
56
60
|
module.exports.SetCollateral = 'SetCollateral'
|
|
57
61
|
module.exports.GetTransactionBuildsByAddress = 'GetTransactionBuildsByAddress'
|
|
58
62
|
module.exports.DeriveScriptAddress = 'DeriveScriptAddress'
|
package/@cds-models/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export type Blake2b224 = string;
|
|
|
6
6
|
export type Blake2b256 = string;
|
|
7
7
|
export type HexBytes = string;
|
|
8
8
|
export type Lovelace = (number | string);
|
|
9
|
+
export type AssetAmount = (number | string);
|
|
9
10
|
export type AssetUnit = string;
|
|
10
11
|
export type MetadataLabel = string;
|
|
11
12
|
export type Bech32 = string;
|
|
@@ -181,6 +182,23 @@ export declare function _AssetSliceAspect<TBase extends new (...args: any[]) =>
|
|
|
181
182
|
export class AssetSlice extends _AssetSliceAspect(__.Entity) {
|
|
182
183
|
}
|
|
183
184
|
|
|
185
|
+
// entity 'AssetSumSlice'
|
|
186
|
+
export declare function _AssetSumSliceAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
187
|
+
new (...args: any[]): {
|
|
188
|
+
quantity?: AssetAmount | null
|
|
189
|
+
policyId?: Blake2b224 | null
|
|
190
|
+
assetNameHex?: HexBytes | null
|
|
191
|
+
assetName?: string | null
|
|
192
|
+
fingerprint?: string | null
|
|
193
|
+
} & InstanceType<TBase>
|
|
194
|
+
readonly kind: 'type';
|
|
195
|
+
readonly keys: __.KeysOf<AssetSumSlice>;
|
|
196
|
+
readonly elements: __.ElementsOf<AssetSumSlice>;
|
|
197
|
+
readonly actions: globalThis.Record<never, never>;
|
|
198
|
+
};
|
|
199
|
+
export class AssetSumSlice extends _AssetSumSliceAspect(__.Entity) {
|
|
200
|
+
}
|
|
201
|
+
|
|
184
202
|
// entity 'MetadataSlice'
|
|
185
203
|
export declare function _MetadataSliceAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
186
204
|
new (...args: any[]): {
|
package/@cds-models/index.js
CHANGED
|
@@ -3,6 +3,9 @@ const { createEntityProxy } = require('./_')
|
|
|
3
3
|
// AssetSlice
|
|
4
4
|
module.exports.AssetSlice = createEntityProxy(['', 'AssetSlice'], { target: { is_singular: true } })
|
|
5
5
|
module.exports.__Array_AssetSlice_ = createEntityProxy(['', 'AssetSlice'], { target: { is_singular: false }})
|
|
6
|
+
// AssetSumSlice
|
|
7
|
+
module.exports.AssetSumSlice = createEntityProxy(['', 'AssetSumSlice'], { target: { is_singular: true } })
|
|
8
|
+
module.exports.__Array_AssetSumSlice_ = createEntityProxy(['', 'AssetSumSlice'], { target: { is_singular: false }})
|
|
6
9
|
// MetadataSlice
|
|
7
10
|
module.exports.MetadataSlice = createEntityProxy(['', 'MetadataSlice'], { target: { is_singular: true } })
|
|
8
11
|
module.exports.__Array_MetadataSlice_ = createEntityProxy(['', 'MetadataSlice'], { target: { is_singular: false }})
|
|
@@ -315,7 +315,7 @@ export declare function _AddressAssetAspect<TBase extends new (...args: any[]) =
|
|
|
315
315
|
address?: __.Key<__.Association.to<Address>>
|
|
316
316
|
address_address?: __.Key<_.Bech32>
|
|
317
317
|
unit?: __.Key<_.AssetUnit>
|
|
318
|
-
asset_quantity?: _.
|
|
318
|
+
asset_quantity?: _.AssetAmount | null
|
|
319
319
|
asset_policyId?: _.Blake2b224 | null
|
|
320
320
|
asset_assetNameHex?: _.HexBytes | null
|
|
321
321
|
asset_assetName?: string | null
|
|
@@ -592,7 +592,7 @@ export declare function _LedgerAddressAssetAspect<TBase extends new (...args: an
|
|
|
592
592
|
address?: __.Key<__.Association.to<LedgerAddress>>
|
|
593
593
|
address_address?: __.Key<_.Bech32>
|
|
594
594
|
unit?: __.Key<_.AssetUnit>
|
|
595
|
-
asset_quantity?: _.
|
|
595
|
+
asset_quantity?: _.AssetAmount | null
|
|
596
596
|
asset_policyId?: _.Blake2b224 | null
|
|
597
597
|
asset_assetNameHex?: _.HexBytes | null
|
|
598
598
|
asset_assetName?: string | null
|
|
@@ -673,6 +673,31 @@ export class TransactionWithdrawals extends Array<TransactionWithdrawal> {
|
|
|
673
673
|
$count?: number
|
|
674
674
|
}
|
|
675
675
|
|
|
676
|
+
// entity 'TransactionRedeemer'
|
|
677
|
+
export declare function _TransactionRedeemerAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
678
|
+
new (...args: any[]): {
|
|
679
|
+
tx?: __.Key<__.Association.to<Transaction>>
|
|
680
|
+
tx_hash?: __.Key<_.Blake2b256>
|
|
681
|
+
purpose?: __.Key<string>
|
|
682
|
+
redeemerIndex?: __.Key<number>
|
|
683
|
+
data?: string | null
|
|
684
|
+
mem?: number | null
|
|
685
|
+
steps?: number | null
|
|
686
|
+
spentTxHash?: _.Blake2b256 | null
|
|
687
|
+
spentOutputIndex?: number | null
|
|
688
|
+
policyId?: _.Blake2b224 | null
|
|
689
|
+
} & InstanceType<TBase>
|
|
690
|
+
readonly kind: 'entity';
|
|
691
|
+
readonly keys: __.KeysOf<TransactionRedeemer>;
|
|
692
|
+
readonly elements: __.ElementsOf<TransactionRedeemer>;
|
|
693
|
+
readonly actions: globalThis.Record<never, never>;
|
|
694
|
+
};
|
|
695
|
+
export class TransactionRedeemer extends _TransactionRedeemerAspect(__.Entity) {
|
|
696
|
+
}
|
|
697
|
+
export class TransactionRedeemers extends Array<TransactionRedeemer> {
|
|
698
|
+
$count?: number
|
|
699
|
+
}
|
|
700
|
+
|
|
676
701
|
// entity 'TransactionOutput'
|
|
677
702
|
export declare function _TransactionOutputAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
678
703
|
new (...args: any[]): {
|
|
@@ -810,6 +835,7 @@ export declare function _TransactionBuildAspect<TBase extends new (...args: any[
|
|
|
810
835
|
createdAt?: number | null
|
|
811
836
|
inputs?: __.Composition.of.many<TransactionBuildInputs>
|
|
812
837
|
outputs?: __.Composition.of.many<TransactionBuildOutputs>
|
|
838
|
+
redeemers?: __.Composition.of.many<TransactionBuildRedeemers>
|
|
813
839
|
submission?: __.Association.to<TransactionSubmission> | null
|
|
814
840
|
hasInputs?: boolean | null
|
|
815
841
|
hasOutputs?: boolean | null
|
|
@@ -904,6 +930,27 @@ export class TransactionBuildOutputs extends Array<TransactionBuildOutput> {
|
|
|
904
930
|
$count?: number
|
|
905
931
|
}
|
|
906
932
|
|
|
933
|
+
// entity 'TransactionBuildRedeemer'
|
|
934
|
+
export declare function _TransactionBuildRedeemerAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
935
|
+
new (...args: any[]): {
|
|
936
|
+
build?: __.Key<__.Association.to<TransactionBuild>>
|
|
937
|
+
build_id?: __.Key<string>
|
|
938
|
+
tag?: __.Key<string>
|
|
939
|
+
redeemerIndex?: __.Key<number>
|
|
940
|
+
mem?: number | null
|
|
941
|
+
steps?: number | null
|
|
942
|
+
} & InstanceType<TBase>
|
|
943
|
+
readonly kind: 'entity';
|
|
944
|
+
readonly keys: __.KeysOf<TransactionBuildRedeemer>;
|
|
945
|
+
readonly elements: __.ElementsOf<TransactionBuildRedeemer>;
|
|
946
|
+
readonly actions: globalThis.Record<never, never>;
|
|
947
|
+
};
|
|
948
|
+
export class TransactionBuildRedeemer extends _TransactionBuildRedeemerAspect(__.Entity) {
|
|
949
|
+
}
|
|
950
|
+
export class TransactionBuildRedeemers extends Array<TransactionBuildRedeemer> {
|
|
951
|
+
$count?: number
|
|
952
|
+
}
|
|
953
|
+
|
|
907
954
|
// entity 'TransactionBuildOutputAsset'
|
|
908
955
|
export declare function _TransactionBuildOutputAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
|
|
909
956
|
new (...args: any[]): {
|
|
@@ -75,6 +75,9 @@ module.exports.TransactionCertificates = createEntityProxy(['odatano.cardano', '
|
|
|
75
75
|
// TransactionWithdrawals
|
|
76
76
|
module.exports.TransactionWithdrawal = createEntityProxy(['odatano.cardano', 'TransactionWithdrawals'], { target: { is_singular: true } })
|
|
77
77
|
module.exports.TransactionWithdrawals = createEntityProxy(['odatano.cardano', 'TransactionWithdrawals'], { target: { is_singular: false }})
|
|
78
|
+
// TransactionRedeemers
|
|
79
|
+
module.exports.TransactionRedeemer = createEntityProxy(['odatano.cardano', 'TransactionRedeemers'], { target: { is_singular: true } })
|
|
80
|
+
module.exports.TransactionRedeemers = createEntityProxy(['odatano.cardano', 'TransactionRedeemers'], { target: { is_singular: false }})
|
|
78
81
|
// TransactionOutputs
|
|
79
82
|
module.exports.TransactionOutput = createEntityProxy(['odatano.cardano', 'TransactionOutputs'], { target: { is_singular: true } })
|
|
80
83
|
module.exports.TransactionOutputs = createEntityProxy(['odatano.cardano', 'TransactionOutputs'], { target: { is_singular: false }})
|
|
@@ -99,6 +102,9 @@ module.exports.TransactionBuildInputAssets = createEntityProxy(['odatano.cardano
|
|
|
99
102
|
// TransactionBuildOutputs
|
|
100
103
|
module.exports.TransactionBuildOutput = createEntityProxy(['odatano.cardano', 'TransactionBuildOutputs'], { target: { is_singular: true } })
|
|
101
104
|
module.exports.TransactionBuildOutputs = createEntityProxy(['odatano.cardano', 'TransactionBuildOutputs'], { target: { is_singular: false }})
|
|
105
|
+
// TransactionBuildRedeemers
|
|
106
|
+
module.exports.TransactionBuildRedeemer = createEntityProxy(['odatano.cardano', 'TransactionBuildRedeemers'], { target: { is_singular: true } })
|
|
107
|
+
module.exports.TransactionBuildRedeemers = createEntityProxy(['odatano.cardano', 'TransactionBuildRedeemers'], { target: { is_singular: false }})
|
|
102
108
|
// TransactionBuildOutputAssets
|
|
103
109
|
module.exports.TransactionBuildOutputAsset = createEntityProxy(['odatano.cardano', 'TransactionBuildOutputAssets'], { target: { is_singular: true } })
|
|
104
110
|
module.exports.TransactionBuildOutputAssets = createEntityProxy(['odatano.cardano', 'TransactionBuildOutputAssets'], { target: { is_singular: false }})
|
package/db/schema.cds
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
using {temporal, } from '@sap/cds/common';
|
|
2
|
-
using {Lovelace, Blake2b224, Blake2b256, HexBytes, Bech32, AssetUnit, AssetSlice, SigningStatus,SubmissionStatus, UTxODataSlice, MetadataLabel, CrawlSyncStatus, ReorgStatus, WalletJobStatus, WalletJobKind, WorkerSignerType} from '../db/types';
|
|
2
|
+
using {Lovelace, Blake2b224, Blake2b256, HexBytes, Bech32, AssetUnit, AssetSlice, AssetSumSlice, SigningStatus,SubmissionStatus, UTxODataSlice, MetadataLabel, CrawlSyncStatus, ReorgStatus, WalletJobStatus, WalletJobKind, WorkerSignerType} from '../db/types';
|
|
3
3
|
|
|
4
4
|
namespace odatano.cardano;
|
|
5
5
|
|
|
@@ -601,7 +601,7 @@ entity AddressAssets : temporal {
|
|
|
601
601
|
|
|
602
602
|
@title : 'Asset Details'
|
|
603
603
|
@description: 'Structural slice for asset details'
|
|
604
|
-
asset :
|
|
604
|
+
asset : AssetSumSlice;
|
|
605
605
|
}
|
|
606
606
|
|
|
607
607
|
@title : 'Address UTxOs'
|
|
@@ -1021,7 +1021,7 @@ entity LedgerAddressAssets {
|
|
|
1021
1021
|
|
|
1022
1022
|
@title : 'Asset'
|
|
1023
1023
|
@description: 'Quantity and decomposed unit'
|
|
1024
|
-
asset :
|
|
1024
|
+
asset : AssetSumSlice;
|
|
1025
1025
|
}
|
|
1026
1026
|
|
|
1027
1027
|
@title : 'Ledger Accounts'
|
|
@@ -1111,6 +1111,48 @@ entity TransactionWithdrawals {
|
|
|
1111
1111
|
lovelace : Lovelace;
|
|
1112
1112
|
}
|
|
1113
1113
|
|
|
1114
|
+
@title : 'Transaction Redeemers'
|
|
1115
|
+
@description: 'Redeemers of a transaction as the chain crawler saw them (Ogmios chain-sync). A spend redeemer names the redeemed input, a mint redeemer the policy. Not written by the lazy path.'
|
|
1116
|
+
@readonly
|
|
1117
|
+
entity TransactionRedeemers {
|
|
1118
|
+
|
|
1119
|
+
@title : 'Transaction (key)'
|
|
1120
|
+
@description: 'The transaction carrying the redeemer'
|
|
1121
|
+
key tx : Association to Transactions;
|
|
1122
|
+
|
|
1123
|
+
@title : 'Purpose (key)'
|
|
1124
|
+
@description: 'spend | mint | publish | withdraw | vote | propose'
|
|
1125
|
+
key purpose : String(10);
|
|
1126
|
+
|
|
1127
|
+
@title : 'Redeemer Index (key)'
|
|
1128
|
+
@description: 'Index within its purpose (spend: position of the input in the sorted inputs; mint: of the policy in the sorted policies)'
|
|
1129
|
+
key redeemerIndex : Integer;
|
|
1130
|
+
|
|
1131
|
+
@title : 'Data'
|
|
1132
|
+
@description: 'Redeemer data as PlutusData CBOR hex'
|
|
1133
|
+
data : LargeString;
|
|
1134
|
+
|
|
1135
|
+
@title : 'Memory Units'
|
|
1136
|
+
@description: 'Execution memory units'
|
|
1137
|
+
mem : Integer64;
|
|
1138
|
+
|
|
1139
|
+
@title : 'CPU Steps'
|
|
1140
|
+
@description: 'Execution CPU steps'
|
|
1141
|
+
steps : Integer64;
|
|
1142
|
+
|
|
1143
|
+
@title : 'Redeemed Input Transaction'
|
|
1144
|
+
@description: 'spend: transaction that created the redeemed input'
|
|
1145
|
+
spentTxHash : Blake2b256;
|
|
1146
|
+
|
|
1147
|
+
@title : 'Redeemed Input Index'
|
|
1148
|
+
@description: 'spend: output index of the redeemed input'
|
|
1149
|
+
spentOutputIndex : Integer;
|
|
1150
|
+
|
|
1151
|
+
@title : 'Policy ID'
|
|
1152
|
+
@description: 'mint: the policy the redeemer runs'
|
|
1153
|
+
policyId : Blake2b224;
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1114
1156
|
@title : 'Transaction Outputs'
|
|
1115
1157
|
@description: 'Projection for Transaction Outputs'
|
|
1116
1158
|
@readonly
|
|
@@ -1391,6 +1433,10 @@ entity TransactionBuilds : temporal {
|
|
|
1391
1433
|
@description: 'The outputs created in the transaction build'
|
|
1392
1434
|
outputs : Composition of many TransactionBuildOutputs
|
|
1393
1435
|
on outputs.build = $self;
|
|
1436
|
+
@title : 'Redeemers'
|
|
1437
|
+
@description: 'Redeemers of a script build with the execution units stamped on them'
|
|
1438
|
+
redeemers : Composition of many TransactionBuildRedeemers
|
|
1439
|
+
on redeemers.build = $self;
|
|
1394
1440
|
|
|
1395
1441
|
@title : 'Associated Submission'
|
|
1396
1442
|
@description: 'Association to the transaction submission if submitted'
|
|
@@ -1527,6 +1573,31 @@ entity TransactionBuildOutputs {
|
|
|
1527
1573
|
hasAssets : Boolean;
|
|
1528
1574
|
}
|
|
1529
1575
|
|
|
1576
|
+
@title : 'Transaction Build Redeemers'
|
|
1577
|
+
@description: 'Redeemers of a script build (spend, mint, …) with the execution units stamped on them; compare with maxTxExecutionUnits of the protocol parameters'
|
|
1578
|
+
entity TransactionBuildRedeemers {
|
|
1579
|
+
|
|
1580
|
+
@title : 'Build (key)'
|
|
1581
|
+
@description: 'Association to parent transaction build'
|
|
1582
|
+
key build : Association to TransactionBuilds;
|
|
1583
|
+
|
|
1584
|
+
@title : 'Tag (key)'
|
|
1585
|
+
@description: 'Redeemer purpose: Spend, Mint, Cert, Withdraw, Vote or Propose'
|
|
1586
|
+
key tag : String(10);
|
|
1587
|
+
|
|
1588
|
+
@title : 'Redeemer Index (key)'
|
|
1589
|
+
@description: 'Index within its purpose (spend: position of the input in the sorted inputs)'
|
|
1590
|
+
key redeemerIndex : Integer;
|
|
1591
|
+
|
|
1592
|
+
@title : 'Memory Units'
|
|
1593
|
+
@description: 'Execution memory units stamped on the redeemer'
|
|
1594
|
+
mem : Integer64;
|
|
1595
|
+
|
|
1596
|
+
@title : 'CPU Steps'
|
|
1597
|
+
@description: 'Execution CPU steps stamped on the redeemer'
|
|
1598
|
+
steps : Integer64;
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1530
1601
|
@title : 'Transaction Build Output Assets'
|
|
1531
1602
|
@description: 'Entity for storing assets associated with transaction build outputs'
|
|
1532
1603
|
entity TransactionBuildOutputAssets {
|
package/db/types.cds
CHANGED
|
@@ -16,6 +16,8 @@ type HexBytes : String(5000);
|
|
|
16
16
|
@title : 'Lovelace'
|
|
17
17
|
@description: 'Amount of ADA in lovelace (1 ADA = 1_000_000 lovelace)'
|
|
18
18
|
type Lovelace : Decimal(20, 0);
|
|
19
|
+
// Sum of asset quantities: one output holds at most 2^64-1, a sum over an address's outputs does not
|
|
20
|
+
type AssetAmount : Decimal(38, 0);
|
|
19
21
|
|
|
20
22
|
@title : 'Asset Unit'
|
|
21
23
|
@description: 'Concatenation of policyId and assetNameHex representing a unique asset'
|
|
@@ -57,6 +59,31 @@ type AssetSlice {
|
|
|
57
59
|
fingerprint : String(44);
|
|
58
60
|
}
|
|
59
61
|
|
|
62
|
+
@title : 'Asset Sum Slice'
|
|
63
|
+
@description: 'Asset details with the quantity summed over several outputs (per address)'
|
|
64
|
+
type AssetSumSlice {
|
|
65
|
+
|
|
66
|
+
@title : 'Asset Quantity'
|
|
67
|
+
@description: 'Quantity of the Asset summed over the outputs of the address'
|
|
68
|
+
quantity : AssetAmount;
|
|
69
|
+
|
|
70
|
+
@title : 'Asset Policy Id'
|
|
71
|
+
@description: 'Policy Id of the Asset'
|
|
72
|
+
policyId : Blake2b224;
|
|
73
|
+
|
|
74
|
+
@title : 'Asset Name Hex'
|
|
75
|
+
@description: 'Asset Name as Hex String'
|
|
76
|
+
assetNameHex : HexBytes;
|
|
77
|
+
|
|
78
|
+
@title : 'Asset Name'
|
|
79
|
+
@description: 'Asset Name as UTF-8 String'
|
|
80
|
+
assetName : String(128);
|
|
81
|
+
|
|
82
|
+
@title : 'Asset Fingerprint'
|
|
83
|
+
@description: 'CIP-14 Asset Fingerprint'
|
|
84
|
+
fingerprint : String(44);
|
|
85
|
+
}
|
|
86
|
+
|
|
60
87
|
@title : 'Metadata Slice'
|
|
61
88
|
@description: 'Structural slice for metadata details'
|
|
62
89
|
type MetadataSlice {
|