@odatano/core 1.10.0 → 2.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@cds-models/CardanoIndexerService/index.d.ts +142 -0
- package/@cds-models/CardanoIndexerService/index.js +23 -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 +443 -1574
- package/@cds-models/CardanoSignService/index.js +62 -293
- package/@cds-models/CardanoTransactionService/index.d.ts +431 -1488
- 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 +896 -2947
- package/@cds-models/odatano/cardano/index.js +109 -536
- package/@cds-models/sap/common/index.d.ts +196 -600
- package/@cds-models/sap/common/index.js +28 -269
- package/README.md +136 -102
- package/db/schema.cds +283 -1
- package/db/types.cds +48 -0
- package/package.json +43 -34
- package/src/index.d.ts +1 -1
- package/src/index.js +10 -2
- package/src/plugin.js +12 -2
- package/srv/blockchain/backends/blockfrost-backend.d.ts +21 -2
- package/srv/blockchain/backends/blockfrost-backend.js +68 -15
- 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 +147 -15
- package/srv/blockchain/backends/ogmios-backend.d.ts +37 -6
- package/srv/blockchain/backends/ogmios-backend.js +254 -5
- 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 +191 -0
- package/srv/blockchain/crawler/crawler.d.ts +151 -0
- package/srv/blockchain/crawler/crawler.js +677 -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 +26 -0
- package/srv/blockchain/crawler/index.js +135 -0
- package/srv/blockchain/crawler/sync-state.d.ts +94 -0
- package/srv/blockchain/crawler/sync-state.js +265 -0
- package/srv/blockchain/signing/hsm-signer.d.ts +45 -0
- package/srv/blockchain/signing/hsm-signer.js +8 -1
- package/srv/blockchain/signing/signature-verifier.js +4 -5
- package/srv/blockchain/transaction-building/buildooor-tx.d.ts +7 -10
- package/srv/blockchain/transaction-building/buildooor-tx.js +12 -15
- package/srv/blockchain/wallet-worker/build-request.d.ts +26 -0
- package/srv/blockchain/wallet-worker/build-request.js +341 -0
- package/srv/blockchain/wallet-worker/confirmation-tracker.d.ts +86 -0
- package/srv/blockchain/wallet-worker/confirmation-tracker.js +228 -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 +261 -0
- package/srv/blockchain/wallet-worker/job-store.js +564 -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-indexer-service.cds +73 -0
- package/srv/cardano-indexer-service.d.ts +2 -0
- package/srv/cardano-indexer-service.js +76 -0
- package/srv/cardano-service.js +22 -1
- package/srv/cardano-tx-service.d.ts +1 -11
- package/srv/cardano-tx-service.js +11 -162
- 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 +32 -1
- package/srv/server.js +228 -2
- 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/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/mappers.js +13 -3
- package/srv/utils/service-events.d.ts +26 -0
- package/srv/utils/service-events.js +46 -0
- package/srv/utils/tx-build-helper.d.ts +1 -2
- package/srv/utils/tx-build-helper.js +3 -5
- package/srv/utils/tx-request-parsers.d.ts +58 -0
- package/srv/utils/tx-request-parsers.js +170 -0
- package/srv/utils/tx-utils.d.ts +2 -1
- package/srv/utils/tx-utils.js +3 -2
- package/srv/utils/types.d.ts +2 -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
- package/srv/blockchain/transaction-building/keep-relevant.d.ts +0 -29
- package/srv/blockchain/transaction-building/keep-relevant.js +0 -116
|
@@ -1,270 +1,29 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.Timezones = exports.Timezone = exports.Currencies = exports.Currency = exports.Countries = exports.Country = exports.Languages = exports.Language = exports.FlowHistory_ = exports.FlowHistory = exports.TextsAspect_ = exports.TextsAspect = exports.CodeList_ = exports.CodeList = void 0;
|
|
37
|
-
exports._CodeListAspect = _CodeListAspect;
|
|
38
|
-
exports._TextsAspectAspect = _TextsAspectAspect;
|
|
39
|
-
exports._FlowHistoryAspect = _FlowHistoryAspect;
|
|
40
|
-
exports._LanguageAspect = _LanguageAspect;
|
|
41
|
-
exports._CountryAspect = _CountryAspect;
|
|
42
|
-
exports._CurrencyAspect = _CurrencyAspect;
|
|
43
|
-
exports._TimezoneAspect = _TimezoneAspect;
|
|
44
1
|
// This is an automatically generated file. Please do not change its contents manually!
|
|
45
|
-
const
|
|
46
|
-
//
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
exports.
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
exports.
|
|
69
|
-
|
|
70
|
-
//
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
static kind = 'aspect';
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
class TextsAspect extends _TextsAspectAspect(__.Entity) {
|
|
77
|
-
}
|
|
78
|
-
exports.TextsAspect = TextsAspect;
|
|
79
|
-
class TextsAspect_ extends Array {
|
|
80
|
-
$count;
|
|
81
|
-
}
|
|
82
|
-
exports.TextsAspect_ = TextsAspect_;
|
|
83
|
-
Object.defineProperty(TextsAspect_, 'name', { value: 'sap.common.TextsAspect' });
|
|
84
|
-
// the following represents the CDS aspect 'FlowHistory'
|
|
85
|
-
function _FlowHistoryAspect(Base) {
|
|
86
|
-
return class FlowHistory extends Base {
|
|
87
|
-
static kind = 'aspect';
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
class FlowHistory extends _FlowHistoryAspect(__.Entity) {
|
|
91
|
-
}
|
|
92
|
-
exports.FlowHistory = FlowHistory;
|
|
93
|
-
class FlowHistory_ extends Array {
|
|
94
|
-
$count;
|
|
95
|
-
}
|
|
96
|
-
exports.FlowHistory_ = FlowHistory_;
|
|
97
|
-
Object.defineProperty(FlowHistory_, 'name', { value: 'sap.common.FlowHistory' });
|
|
98
|
-
function _LanguageAspect(Base) {
|
|
99
|
-
return class Language extends _CodeListAspect(Base) {
|
|
100
|
-
static kind = 'entity';
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Code list for languages
|
|
105
|
-
*
|
|
106
|
-
* See https://cap.cloud.sap/docs/cds/common#entity-languages
|
|
107
|
-
*/
|
|
108
|
-
class Language extends _LanguageAspect(__.Entity) {
|
|
109
|
-
}
|
|
110
|
-
exports.Language = Language;
|
|
111
|
-
Object.defineProperty(Language, 'name', { value: 'sap.common.Languages' });
|
|
112
|
-
Object.defineProperty(Language, 'is_singular', { value: true });
|
|
113
|
-
/**
|
|
114
|
-
* Code list for languages
|
|
115
|
-
*
|
|
116
|
-
* See https://cap.cloud.sap/docs/cds/common#entity-languages
|
|
117
|
-
*/
|
|
118
|
-
class Languages extends Array {
|
|
119
|
-
$count;
|
|
120
|
-
}
|
|
121
|
-
exports.Languages = Languages;
|
|
122
|
-
Object.defineProperty(Languages, 'name', { value: 'sap.common.Languages' });
|
|
123
|
-
function _CountryAspect(Base) {
|
|
124
|
-
return class Country extends _CodeListAspect(Base) {
|
|
125
|
-
static kind = 'entity';
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* Code list for countries
|
|
130
|
-
*
|
|
131
|
-
* See https://cap.cloud.sap/docs/cds/common#entity-countries
|
|
132
|
-
*/
|
|
133
|
-
class Country extends _CountryAspect(__.Entity) {
|
|
134
|
-
}
|
|
135
|
-
exports.Country = Country;
|
|
136
|
-
Object.defineProperty(Country, 'name', { value: 'sap.common.Countries' });
|
|
137
|
-
Object.defineProperty(Country, 'is_singular', { value: true });
|
|
138
|
-
/**
|
|
139
|
-
* Code list for countries
|
|
140
|
-
*
|
|
141
|
-
* See https://cap.cloud.sap/docs/cds/common#entity-countries
|
|
142
|
-
*/
|
|
143
|
-
class Countries extends Array {
|
|
144
|
-
$count;
|
|
145
|
-
}
|
|
146
|
-
exports.Countries = Countries;
|
|
147
|
-
Object.defineProperty(Countries, 'name', { value: 'sap.common.Countries' });
|
|
148
|
-
function _CurrencyAspect(Base) {
|
|
149
|
-
return class Currency extends _CodeListAspect(Base) {
|
|
150
|
-
static kind = 'entity';
|
|
151
|
-
};
|
|
152
|
-
}
|
|
153
|
-
/**
|
|
154
|
-
* Code list for currencies
|
|
155
|
-
*
|
|
156
|
-
* See https://cap.cloud.sap/docs/cds/common#entity-currencies
|
|
157
|
-
*/
|
|
158
|
-
class Currency extends _CurrencyAspect(__.Entity) {
|
|
159
|
-
}
|
|
160
|
-
exports.Currency = Currency;
|
|
161
|
-
Object.defineProperty(Currency, 'name', { value: 'sap.common.Currencies' });
|
|
162
|
-
Object.defineProperty(Currency, 'is_singular', { value: true });
|
|
163
|
-
/**
|
|
164
|
-
* Code list for currencies
|
|
165
|
-
*
|
|
166
|
-
* See https://cap.cloud.sap/docs/cds/common#entity-currencies
|
|
167
|
-
*/
|
|
168
|
-
class Currencies extends Array {
|
|
169
|
-
$count;
|
|
170
|
-
}
|
|
171
|
-
exports.Currencies = Currencies;
|
|
172
|
-
Object.defineProperty(Currencies, 'name', { value: 'sap.common.Currencies' });
|
|
173
|
-
function _TimezoneAspect(Base) {
|
|
174
|
-
return class Timezone extends _CodeListAspect(Base) {
|
|
175
|
-
static kind = 'entity';
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
/**
|
|
179
|
-
* Code list for time zones
|
|
180
|
-
*
|
|
181
|
-
* See https://cap.cloud.sap/docs/cds/common#entity-timezones
|
|
182
|
-
*/
|
|
183
|
-
class Timezone extends _TimezoneAspect(__.Entity) {
|
|
184
|
-
}
|
|
185
|
-
exports.Timezone = Timezone;
|
|
186
|
-
Object.defineProperty(Timezone, 'name', { value: 'sap.common.Timezones' });
|
|
187
|
-
Object.defineProperty(Timezone, 'is_singular', { value: true });
|
|
188
|
-
/**
|
|
189
|
-
* Code list for time zones
|
|
190
|
-
*
|
|
191
|
-
* See https://cap.cloud.sap/docs/cds/common#entity-timezones
|
|
192
|
-
*/
|
|
193
|
-
class Timezones extends Array {
|
|
194
|
-
$count;
|
|
195
|
-
}
|
|
196
|
-
exports.Timezones = Timezones;
|
|
197
|
-
Object.defineProperty(Timezones, 'name', { value: 'sap.common.Timezones' });
|
|
198
|
-
(function (Languages) {
|
|
199
|
-
function _textAspect(Base) {
|
|
200
|
-
return class text extends _TextsAspectAspect(Base) {
|
|
201
|
-
static kind = 'entity';
|
|
202
|
-
};
|
|
203
|
-
}
|
|
204
|
-
Languages._textAspect = _textAspect;
|
|
205
|
-
class text extends _textAspect(__.Entity) {
|
|
206
|
-
}
|
|
207
|
-
Languages.text = text;
|
|
208
|
-
Object.defineProperty(text, 'name', { value: 'sap.common.Languages.texts' });
|
|
209
|
-
Object.defineProperty(text, 'is_singular', { value: true });
|
|
210
|
-
class texts extends Array {
|
|
211
|
-
$count;
|
|
212
|
-
}
|
|
213
|
-
Languages.texts = texts;
|
|
214
|
-
Object.defineProperty(texts, 'name', { value: 'sap.common.Languages.texts' });
|
|
215
|
-
})(Languages || (exports.Languages = Languages = {}));
|
|
216
|
-
(function (Countries) {
|
|
217
|
-
function _textAspect(Base) {
|
|
218
|
-
return class text extends _TextsAspectAspect(Base) {
|
|
219
|
-
static kind = 'entity';
|
|
220
|
-
};
|
|
221
|
-
}
|
|
222
|
-
Countries._textAspect = _textAspect;
|
|
223
|
-
class text extends _textAspect(__.Entity) {
|
|
224
|
-
}
|
|
225
|
-
Countries.text = text;
|
|
226
|
-
Object.defineProperty(text, 'name', { value: 'sap.common.Countries.texts' });
|
|
227
|
-
Object.defineProperty(text, 'is_singular', { value: true });
|
|
228
|
-
class texts extends Array {
|
|
229
|
-
$count;
|
|
230
|
-
}
|
|
231
|
-
Countries.texts = texts;
|
|
232
|
-
Object.defineProperty(texts, 'name', { value: 'sap.common.Countries.texts' });
|
|
233
|
-
})(Countries || (exports.Countries = Countries = {}));
|
|
234
|
-
(function (Currencies) {
|
|
235
|
-
function _textAspect(Base) {
|
|
236
|
-
return class text extends _TextsAspectAspect(Base) {
|
|
237
|
-
static kind = 'entity';
|
|
238
|
-
};
|
|
239
|
-
}
|
|
240
|
-
Currencies._textAspect = _textAspect;
|
|
241
|
-
class text extends _textAspect(__.Entity) {
|
|
242
|
-
}
|
|
243
|
-
Currencies.text = text;
|
|
244
|
-
Object.defineProperty(text, 'name', { value: 'sap.common.Currencies.texts' });
|
|
245
|
-
Object.defineProperty(text, 'is_singular', { value: true });
|
|
246
|
-
class texts extends Array {
|
|
247
|
-
$count;
|
|
248
|
-
}
|
|
249
|
-
Currencies.texts = texts;
|
|
250
|
-
Object.defineProperty(texts, 'name', { value: 'sap.common.Currencies.texts' });
|
|
251
|
-
})(Currencies || (exports.Currencies = Currencies = {}));
|
|
252
|
-
(function (Timezones) {
|
|
253
|
-
function _textAspect(Base) {
|
|
254
|
-
return class text extends _TextsAspectAspect(Base) {
|
|
255
|
-
static kind = 'entity';
|
|
256
|
-
};
|
|
257
|
-
}
|
|
258
|
-
Timezones._textAspect = _textAspect;
|
|
259
|
-
class text extends _textAspect(__.Entity) {
|
|
260
|
-
}
|
|
261
|
-
Timezones.text = text;
|
|
262
|
-
Object.defineProperty(text, 'name', { value: 'sap.common.Timezones.texts' });
|
|
263
|
-
Object.defineProperty(text, 'is_singular', { value: true });
|
|
264
|
-
class texts extends Array {
|
|
265
|
-
$count;
|
|
266
|
-
}
|
|
267
|
-
Timezones.texts = texts;
|
|
268
|
-
Object.defineProperty(texts, 'name', { value: 'sap.common.Timezones.texts' });
|
|
269
|
-
})(Timezones || (exports.Timezones = Timezones = {}));
|
|
270
|
-
//# sourceMappingURL=index.js.map
|
|
2
|
+
const { createEntityProxy } = require('./../../_')
|
|
3
|
+
// Languages
|
|
4
|
+
module.exports.Language = createEntityProxy(['sap.common', 'Languages'], { target: { is_singular: true } })
|
|
5
|
+
module.exports.Languages = createEntityProxy(['sap.common', 'Languages'], { target: { is_singular: false }})
|
|
6
|
+
// Countries
|
|
7
|
+
module.exports.Country = createEntityProxy(['sap.common', 'Countries'], { target: { is_singular: true } })
|
|
8
|
+
module.exports.Countries = createEntityProxy(['sap.common', 'Countries'], { target: { is_singular: false }})
|
|
9
|
+
// Currencies
|
|
10
|
+
module.exports.Currency = createEntityProxy(['sap.common', 'Currencies'], { target: { is_singular: true } })
|
|
11
|
+
module.exports.Currencies = createEntityProxy(['sap.common', 'Currencies'], { target: { is_singular: false }})
|
|
12
|
+
// Timezones
|
|
13
|
+
module.exports.Timezone = createEntityProxy(['sap.common', 'Timezones'], { target: { is_singular: true } })
|
|
14
|
+
module.exports.Timezones = createEntityProxy(['sap.common', 'Timezones'], { target: { is_singular: false }})
|
|
15
|
+
// Languages.texts
|
|
16
|
+
module.exports.Languages.text = createEntityProxy(['sap.common', 'Languages.texts'], { target: { is_singular: true } })
|
|
17
|
+
module.exports.Languages.texts = createEntityProxy(['sap.common', 'Languages.texts'], { target: { is_singular: false }})
|
|
18
|
+
// Countries.texts
|
|
19
|
+
module.exports.Countries.text = createEntityProxy(['sap.common', 'Countries.texts'], { target: { is_singular: true } })
|
|
20
|
+
module.exports.Countries.texts = createEntityProxy(['sap.common', 'Countries.texts'], { target: { is_singular: false }})
|
|
21
|
+
// Currencies.texts
|
|
22
|
+
module.exports.Currencies.text = createEntityProxy(['sap.common', 'Currencies.texts'], { target: { is_singular: true } })
|
|
23
|
+
module.exports.Currencies.texts = createEntityProxy(['sap.common', 'Currencies.texts'], { target: { is_singular: false }})
|
|
24
|
+
// Timezones.texts
|
|
25
|
+
module.exports.Timezones.text = createEntityProxy(['sap.common', 'Timezones.texts'], { target: { is_singular: true } })
|
|
26
|
+
module.exports.Timezones.texts = createEntityProxy(['sap.common', 'Timezones.texts'], { target: { is_singular: false }})
|
|
27
|
+
// events
|
|
28
|
+
// actions
|
|
29
|
+
// enums
|
package/README.md
CHANGED
|
@@ -1,102 +1,136 @@
|
|
|
1
|
-

|
|
2
|
-
|
|
3
|
-
# Enterprise OData Services for the Cardano Blockchain
|
|
4
|
-
|
|
5
|
-
Funded by [Cardano Catalyst Fund 14](https://projectcatalyst.io/funds/14/sponsored-by-leftovers/sap-cardano-odata-v4-api-with-cap-and-sap-cardano-sdk) all four milestones completed and approved (April 2026).
|
|
6
|
-
|
|
7
|
-
**ODATANO** is an SAP CAP–based service that exposes the Cardano blockchain via a standardized **OData V4** interface, enabling enterprise-grade read and write access with native transaction building.
|
|
8
|
-
|
|
9
|
-
[](https://github.com/ODATANO/ODATANO/actions/workflows/test.yaml)
|
|
10
|
-
[](https://codecov.io/gh/ODATANO/ODATANO)
|
|
11
|
-
[](https://www.npmjs.com/package/@odatano/core)
|
|
12
|
-
[](https://www.npmjs.com/package/@odatano/core)
|
|
13
|
-
[](LICENSE)
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
## Quick Start
|
|
17
|
-
|
|
18
|
-
### As CAP Plugin (recommended)
|
|
19
|
-
|
|
20
|
-
Add ODATANO to any existing SAP CAP project:
|
|
21
|
-
|
|
22
|
-
```bash
|
|
23
|
-
npm install @odatano/core @cap-js/sqlite
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
```json
|
|
27
|
-
{
|
|
28
|
-
"cds": {
|
|
29
|
-
"requires": {
|
|
30
|
-
"db": { "kind": "sqlite" },
|
|
31
|
-
"odatano-core": {
|
|
32
|
-
"network": "preview",
|
|
33
|
-
"backends": ["blockfrost"]
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
>
|
|
81
|
-
>
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
-
|
|
101
|
-
|
|
102
|
-
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
# Enterprise OData Services for the Cardano Blockchain
|
|
4
|
+
|
|
5
|
+
Funded by [Cardano Catalyst Fund 14](https://projectcatalyst.io/funds/14/sponsored-by-leftovers/sap-cardano-odata-v4-api-with-cap-and-sap-cardano-sdk) all four milestones completed and approved (April 2026).
|
|
6
|
+
|
|
7
|
+
**ODATANO** is an SAP CAP–based service that exposes the Cardano blockchain via a standardized **OData V4** interface, enabling enterprise-grade read and write access with native transaction building.
|
|
8
|
+
|
|
9
|
+
[](https://github.com/ODATANO/ODATANO/actions/workflows/test.yaml)
|
|
10
|
+
[](https://codecov.io/gh/ODATANO/ODATANO)
|
|
11
|
+
[](https://www.npmjs.com/package/@odatano/core)
|
|
12
|
+
[](https://www.npmjs.com/package/@odatano/core)
|
|
13
|
+
[](LICENSE)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## Quick Start
|
|
17
|
+
|
|
18
|
+
### As CAP Plugin (recommended)
|
|
19
|
+
|
|
20
|
+
Add ODATANO to any existing SAP CAP project:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
npm install @odatano/core @cap-js/sqlite
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
```json
|
|
27
|
+
{
|
|
28
|
+
"cds": {
|
|
29
|
+
"requires": {
|
|
30
|
+
"db": { "kind": "sqlite" },
|
|
31
|
+
"odatano-core": {
|
|
32
|
+
"network": "preview",
|
|
33
|
+
"backends": ["blockfrost"]
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Put your API key in a `.env` file in the project root (loaded automatically by `cds serve` / `cds watch`) — don't commit it to `package.json`:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
# .env
|
|
44
|
+
BLOCKFROST_API_KEY=preview_your_api_key_here
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
cds deploy --to sqlite
|
|
49
|
+
cds serve
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
> Config in `cds.requires.odatano-core` takes precedence over environment
|
|
53
|
+
> variables; a `blockfrostApiKey` set there would override the `.env` value.
|
|
54
|
+
|
|
55
|
+
> **Self-hosted Blockfrost-compatible node?** (Dolos MiniBF, Demeter Self-Hosted)
|
|
56
|
+
> Set `blockfrostCustomBackend` to the node's base URL (e.g. `http://localhost:3010/api/v0`).
|
|
57
|
+
> When set, `blockfrostApiKey` becomes optional. See the [Backend Configuration Guide](docs/guides/BACKEND_CONFIGURATION.md#self-hosted-blockfrost-compatible-backends).
|
|
58
|
+
|
|
59
|
+
### Standalone
|
|
60
|
+
|
|
61
|
+
Run ODATANO as a self-contained service (no host CAP project needed):
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
git clone https://github.com/ODATANO/ODATANO && cd ODATANO
|
|
65
|
+
npm ci
|
|
66
|
+
cp .env.example .env # set BLOCKFROST_API_KEY, NETWORK, BACKENDS
|
|
67
|
+
cds deploy --to sqlite
|
|
68
|
+
cds serve
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Or with Docker — this brings up a local **cardano-node + Ogmios + ODATANO** stack
|
|
72
|
+
(Preview), with the service pre-wired to the local Ogmios backend:
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
docker compose up -d # full stack
|
|
76
|
+
docker compose up -d cardano-node ogmios # just the chain backend (pre-sync)
|
|
77
|
+
docker compose logs -f ogmios # watch sync (/health: 202 syncing, 200 near tip)
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
> First sync from genesis takes hours; the node DB persists in a Docker volume so
|
|
81
|
+
> restarts resume. Until Ogmios catches up, historical queries fall back to
|
|
82
|
+
> Blockfrost (set `BLOCKFROST_API_KEY`).
|
|
83
|
+
|
|
84
|
+
Service available at `http://localhost:4004`. See the [Quick Start Guide](docs/QUICK_START.md#local-ogmios--cardano-node-docker) for the local Ogmios stack and full details.
|
|
85
|
+
|
|
86
|
+
## Dev Mode: Mocked Authentication
|
|
87
|
+
|
|
88
|
+
> **Heads-up.** `cds serve` uses CAP's mocked auth: `@requires: 'authenticated-user'` accepts any Basic-Auth header against a mock user (`alice`, `bob`, …) — passwords are not checked. Anonymous requests get 401, but anyone reaching the port can authenticate.
|
|
89
|
+
>
|
|
90
|
+
> Production needs the `[production]` profile (`NODE_ENV=production`), which switches to `auth: xsuaa`. Don't expose a dev-mode instance. See the [Security Guide](docs/guides/SECURITY_GUIDE.md#authentication-xsuaa).
|
|
91
|
+
|
|
92
|
+
## Services
|
|
93
|
+
|
|
94
|
+
| Service | Path | Purpose |
|
|
95
|
+
|---|---|---|
|
|
96
|
+
| CardanoODataService | `/odata/v4/cardano-odata/` | Read blockchain data (20 entities, 19 actions) |
|
|
97
|
+
| CardanoTransactionService | `/odata/v4/cardano-transaction/` | Build & submit transactions (13 actions) |
|
|
98
|
+
| CardanoSignService | `/odata/v4/cardano-sign/` | External signing + HSM (9 actions) |
|
|
99
|
+
| CardanoIndexerService | `/odata/v4/cardano-indexer/` | Chain crawler / pre-sync control (v2.0, off by default) |
|
|
100
|
+
| CardanoWorkerService | `/odata/v4/cardano-worker/` | Asynchronous wallet jobs (v2.0, off by default) |
|
|
101
|
+
|
|
102
|
+
Both v2.0 services also publish **CAP events**, so a consumer can subscribe instead of polling —
|
|
103
|
+
in-process, no broker required:
|
|
104
|
+
|
|
105
|
+
```js
|
|
106
|
+
(await cds.connect.to('CardanoWorkerService')).on('jobConfirmed', ({ data }) => …)
|
|
107
|
+
(await cds.connect.to('CardanoIndexerService')).on('blockIndexed', ({ data }) => …)
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## Requirements
|
|
111
|
+
|
|
112
|
+
- **Node.js >= 22.5** and **@sap/cds >= 10** (peer dependency). CAP 9 hosts cannot load `@odatano/core@2`.
|
|
113
|
+
- Upgrading a consumer from 1.x: run **`cds deploy`**. 2.0 adds four tables (`CardanoSyncState`,
|
|
114
|
+
`CardanoReorgLog`, `CardanoWorkerWallets`, `CardanoWalletJobs`) plus a `dedupKey` column; without
|
|
115
|
+
the redeploy the new services answer `no such table` while the old ones keep working.
|
|
116
|
+
|
|
117
|
+
## Documentation
|
|
118
|
+
|
|
119
|
+
| Guide | Description |
|
|
120
|
+
|-------|-------------|
|
|
121
|
+
| [Quick Start](docs/QUICK_START.md) | Get running in 5 minutes |
|
|
122
|
+
| [User Guide](docs/guides/USER_GUIDE.md) | API usage, entities, and examples |
|
|
123
|
+
| [Developer Guide](docs/guides/DEVELOPER_GUIDE.md) | Architecture and development |
|
|
124
|
+
| [Transaction Workflow](docs/guides/TRANSACTION_WORKFLOW.md) | Build → Sign → Submit flow |
|
|
125
|
+
| [Security Guide](docs/guides/SECURITY_GUIDE.md) | Authentication, signing security, HSM |
|
|
126
|
+
| [Docker Deployment](docs/guides/DOCKER_DEPLOYMENT.md) | Container deployment |
|
|
127
|
+
|
|
128
|
+
## License
|
|
129
|
+
|
|
130
|
+
Apache License 2.0 - see [LICENSE](LICENSE)
|
|
131
|
+
|
|
132
|
+
## Support
|
|
133
|
+
|
|
134
|
+
- **Issues**: [GitHub Issues](https://github.com/ODATANO/ODATANO/issues)
|
|
135
|
+
- **Project Lead**: Max Weber
|
|
136
|
+
- **Contact**: info@odatano.dev
|