@odatano/core 2.0.0-rc.23 → 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/CardanoBackendService/index.d.ts +357 -0
- package/@cds-models/CardanoBackendService/index.js +40 -0
- 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 -181
- 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 +64 -0
- package/srv/blockchain/backends/odatano-backend.js +166 -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 +23 -9
- package/srv/blockchain/cardano-client.js +77 -25
- package/srv/blockchain/cardano-indexer.d.ts +61 -15
- package/srv/blockchain/cardano-indexer.js +248 -79
- package/srv/blockchain/cardano-tx-builder.d.ts +11 -1
- package/srv/blockchain/cardano-tx-builder.js +59 -4
- 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 +33 -0
- package/srv/blockchain/stored-chain.js +234 -0
- 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.cds +52 -0
- package/srv/cardano-backend-service.d.ts +2 -0
- package/srv/cardano-backend-service.js +244 -0
- 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 +20 -2
- package/srv/utils/agent-grants.js +8 -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
|
@@ -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 {
|