@xyo-network/react-price-forecast-plugin 2.48.8
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/LICENSE +165 -0
- package/README.md +13 -0
- package/dist/cjs/Plugin.js +15 -0
- package/dist/cjs/Plugin.js.map +1 -0
- package/dist/cjs/components/DetailsBox.js +33 -0
- package/dist/cjs/components/DetailsBox.js.map +1 -0
- package/dist/cjs/components/index.js +5 -0
- package/dist/cjs/components/index.js.map +1 -0
- package/dist/cjs/index.js +6 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/lib/DataLineStyles.js +10 -0
- package/dist/cjs/lib/DataLineStyles.js.map +1 -0
- package/dist/cjs/lib/DataPointStyles.js +12 -0
- package/dist/cjs/lib/DataPointStyles.js.map +1 -0
- package/dist/cjs/lib/ForecastLineChartConfigBuilder.js +133 -0
- package/dist/cjs/lib/ForecastLineChartConfigBuilder.js.map +1 -0
- package/dist/cjs/lib/MockSourcePayloads.js +24 -0
- package/dist/cjs/lib/MockSourcePayloads.js.map +1 -0
- package/dist/cjs/lib/SourcePayloads.js +49 -0
- package/dist/cjs/lib/SourcePayloads.js.map +1 -0
- package/dist/cjs/lib/index.js +7 -0
- package/dist/cjs/lib/index.js.map +1 -0
- package/dist/docs.json +18568 -0
- package/dist/esm/Plugin.js +14 -0
- package/dist/esm/Plugin.js.map +1 -0
- package/dist/esm/components/DetailsBox.js +27 -0
- package/dist/esm/components/DetailsBox.js.map +1 -0
- package/dist/esm/components/index.js +2 -0
- package/dist/esm/components/index.js.map +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lib/DataLineStyles.js +6 -0
- package/dist/esm/lib/DataLineStyles.js.map +1 -0
- package/dist/esm/lib/DataPointStyles.js +8 -0
- package/dist/esm/lib/DataPointStyles.js.map +1 -0
- package/dist/esm/lib/ForecastLineChartConfigBuilder.js +130 -0
- package/dist/esm/lib/ForecastLineChartConfigBuilder.js.map +1 -0
- package/dist/esm/lib/MockSourcePayloads.js +20 -0
- package/dist/esm/lib/MockSourcePayloads.js.map +1 -0
- package/dist/esm/lib/SourcePayloads.js +41 -0
- package/dist/esm/lib/SourcePayloads.js.map +1 -0
- package/dist/esm/lib/index.js +4 -0
- package/dist/esm/lib/index.js.map +1 -0
- package/dist/types/Plugin.d.ts +3 -0
- package/dist/types/Plugin.d.ts.map +1 -0
- package/dist/types/components/DetailsBox.d.ts +9 -0
- package/dist/types/components/DetailsBox.d.ts.map +1 -0
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/components/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/lib/DataLineStyles.d.ts +5 -0
- package/dist/types/lib/DataLineStyles.d.ts.map +1 -0
- package/dist/types/lib/DataPointStyles.d.ts +8 -0
- package/dist/types/lib/DataPointStyles.d.ts.map +1 -0
- package/dist/types/lib/ForecastLineChartConfigBuilder.d.ts +47 -0
- package/dist/types/lib/ForecastLineChartConfigBuilder.d.ts.map +1 -0
- package/dist/types/lib/MockSourcePayloads.d.ts +18 -0
- package/dist/types/lib/MockSourcePayloads.d.ts.map +1 -0
- package/dist/types/lib/SourcePayloads.d.ts +30 -0
- package/dist/types/lib/SourcePayloads.d.ts.map +1 -0
- package/dist/types/lib/index.d.ts +4 -0
- package/dist/types/lib/index.d.ts.map +1 -0
- package/package.json +82 -0
- package/src/Plugin.ts +15 -0
- package/src/components/DetailsBox.stories.tsx +78 -0
- package/src/components/DetailsBox.tsx +55 -0
- package/src/components/index.ts +1 -0
- package/src/index.ts +2 -0
- package/src/lib/DataLineStyles.ts +6 -0
- package/src/lib/DataPointStyles.ts +7 -0
- package/src/lib/ForecastLineChartConfigBuilder.ts +169 -0
- package/src/lib/MockSourcePayloads.ts +19 -0
- package/src/lib/SourcePayloads.ts +47 -0
- package/src/lib/index.ts +3 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
|
2
|
+
Version 3, 29 June 2007
|
|
3
|
+
|
|
4
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
5
|
+
Everyone is permitted to copy and distribute verbatim copies
|
|
6
|
+
of this license document, but changing it is not allowed.
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
This version of the GNU Lesser General Public License incorporates
|
|
10
|
+
the terms and conditions of version 3 of the GNU General Public
|
|
11
|
+
License, supplemented by the additional permissions listed below.
|
|
12
|
+
|
|
13
|
+
0. Additional Definitions.
|
|
14
|
+
|
|
15
|
+
As used herein, "this License" refers to version 3 of the GNU Lesser
|
|
16
|
+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
|
17
|
+
General Public License.
|
|
18
|
+
|
|
19
|
+
"The Library" refers to a covered work governed by this License,
|
|
20
|
+
other than an Application or a Combined Work as defined below.
|
|
21
|
+
|
|
22
|
+
An "Application" is any work that makes use of an interface provided
|
|
23
|
+
by the Library, but which is not otherwise based on the Library.
|
|
24
|
+
Defining a subclass of a class defined by the Library is deemed a mode
|
|
25
|
+
of using an interface provided by the Library.
|
|
26
|
+
|
|
27
|
+
A "Combined Work" is a work produced by combining or linking an
|
|
28
|
+
Application with the Library. The particular version of the Library
|
|
29
|
+
with which the Combined Work was made is also called the "Linked
|
|
30
|
+
Version".
|
|
31
|
+
|
|
32
|
+
The "Minimal Corresponding Source" for a Combined Work means the
|
|
33
|
+
Corresponding Source for the Combined Work, excluding any source code
|
|
34
|
+
for portions of the Combined Work that, considered in isolation, are
|
|
35
|
+
based on the Application, and not on the Linked Version.
|
|
36
|
+
|
|
37
|
+
The "Corresponding Application Code" for a Combined Work means the
|
|
38
|
+
object code and/or source code for the Application, including any data
|
|
39
|
+
and utility programs needed for reproducing the Combined Work from the
|
|
40
|
+
Application, but excluding the System Libraries of the Combined Work.
|
|
41
|
+
|
|
42
|
+
1. Exception to Section 3 of the GNU GPL.
|
|
43
|
+
|
|
44
|
+
You may convey a covered work under sections 3 and 4 of this License
|
|
45
|
+
without being bound by section 3 of the GNU GPL.
|
|
46
|
+
|
|
47
|
+
2. Conveying Modified Versions.
|
|
48
|
+
|
|
49
|
+
If you modify a copy of the Library, and, in your modifications, a
|
|
50
|
+
facility refers to a function or data to be supplied by an Application
|
|
51
|
+
that uses the facility (other than as an argument passed when the
|
|
52
|
+
facility is invoked), then you may convey a copy of the modified
|
|
53
|
+
version:
|
|
54
|
+
|
|
55
|
+
a) under this License, provided that you make a good faith effort to
|
|
56
|
+
ensure that, in the event an Application does not supply the
|
|
57
|
+
function or data, the facility still operates, and performs
|
|
58
|
+
whatever part of its purpose remains meaningful, or
|
|
59
|
+
|
|
60
|
+
b) under the GNU GPL, with none of the additional permissions of
|
|
61
|
+
this License applicable to that copy.
|
|
62
|
+
|
|
63
|
+
3. Object Code Incorporating Material from Library Header Files.
|
|
64
|
+
|
|
65
|
+
The object code form of an Application may incorporate material from
|
|
66
|
+
a header file that is part of the Library. You may convey such object
|
|
67
|
+
code under terms of your choice, provided that, if the incorporated
|
|
68
|
+
material is not limited to numerical parameters, data structure
|
|
69
|
+
layouts and accessors, or small macros, inline functions and templates
|
|
70
|
+
(ten or fewer lines in length), you do both of the following:
|
|
71
|
+
|
|
72
|
+
a) Give prominent notice with each copy of the object code that the
|
|
73
|
+
Library is used in it and that the Library and its use are
|
|
74
|
+
covered by this License.
|
|
75
|
+
|
|
76
|
+
b) Accompany the object code with a copy of the GNU GPL and this license
|
|
77
|
+
document.
|
|
78
|
+
|
|
79
|
+
4. Combined Works.
|
|
80
|
+
|
|
81
|
+
You may convey a Combined Work under terms of your choice that,
|
|
82
|
+
taken together, effectively do not restrict modification of the
|
|
83
|
+
portions of the Library contained in the Combined Work and reverse
|
|
84
|
+
engineering for debugging such modifications, if you also do each of
|
|
85
|
+
the following:
|
|
86
|
+
|
|
87
|
+
a) Give prominent notice with each copy of the Combined Work that
|
|
88
|
+
the Library is used in it and that the Library and its use are
|
|
89
|
+
covered by this License.
|
|
90
|
+
|
|
91
|
+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
|
92
|
+
document.
|
|
93
|
+
|
|
94
|
+
c) For a Combined Work that displays copyright notices during
|
|
95
|
+
execution, include the copyright notice for the Library among
|
|
96
|
+
these notices, as well as a reference directing the user to the
|
|
97
|
+
copies of the GNU GPL and this license document.
|
|
98
|
+
|
|
99
|
+
d) Do one of the following:
|
|
100
|
+
|
|
101
|
+
0) Convey the Minimal Corresponding Source under the terms of this
|
|
102
|
+
License, and the Corresponding Application Code in a form
|
|
103
|
+
suitable for, and under terms that permit, the user to
|
|
104
|
+
recombine or relink the Application with a modified version of
|
|
105
|
+
the Linked Version to produce a modified Combined Work, in the
|
|
106
|
+
manner specified by section 6 of the GNU GPL for conveying
|
|
107
|
+
Corresponding Source.
|
|
108
|
+
|
|
109
|
+
1) Use a suitable shared library mechanism for linking with the
|
|
110
|
+
Library. A suitable mechanism is one that (a) uses at run time
|
|
111
|
+
a copy of the Library already present on the user's computer
|
|
112
|
+
system, and (b) will operate properly with a modified version
|
|
113
|
+
of the Library that is interface-compatible with the Linked
|
|
114
|
+
Version.
|
|
115
|
+
|
|
116
|
+
e) Provide Installation Information, but only if you would otherwise
|
|
117
|
+
be required to provide such information under section 6 of the
|
|
118
|
+
GNU GPL, and only to the extent that such information is
|
|
119
|
+
necessary to install and execute a modified version of the
|
|
120
|
+
Combined Work produced by recombining or relinking the
|
|
121
|
+
Application with a modified version of the Linked Version. (If
|
|
122
|
+
you use option 4d0, the Installation Information must accompany
|
|
123
|
+
the Minimal Corresponding Source and Corresponding Application
|
|
124
|
+
Code. If you use option 4d1, you must provide the Installation
|
|
125
|
+
Information in the manner specified by section 6 of the GNU GPL
|
|
126
|
+
for conveying Corresponding Source.)
|
|
127
|
+
|
|
128
|
+
5. Combined Libraries.
|
|
129
|
+
|
|
130
|
+
You may place library facilities that are a work based on the
|
|
131
|
+
Library side by side in a single library together with other library
|
|
132
|
+
facilities that are not Applications and are not covered by this
|
|
133
|
+
License, and convey such a combined library under terms of your
|
|
134
|
+
choice, if you do both of the following:
|
|
135
|
+
|
|
136
|
+
a) Accompany the combined library with a copy of the same work based
|
|
137
|
+
on the Library, uncombined with any other library facilities,
|
|
138
|
+
conveyed under the terms of this License.
|
|
139
|
+
|
|
140
|
+
b) Give prominent notice with the combined library that part of it
|
|
141
|
+
is a work based on the Library, and explaining where to find the
|
|
142
|
+
accompanying uncombined form of the same work.
|
|
143
|
+
|
|
144
|
+
6. Revised Versions of the GNU Lesser General Public License.
|
|
145
|
+
|
|
146
|
+
The Free Software Foundation may publish revised and/or new versions
|
|
147
|
+
of the GNU Lesser General Public License from time to time. Such new
|
|
148
|
+
versions will be similar in spirit to the present version, but may
|
|
149
|
+
differ in detail to address new problems or concerns.
|
|
150
|
+
|
|
151
|
+
Each version is given a distinguishing version number. If the
|
|
152
|
+
Library as you received it specifies that a certain numbered version
|
|
153
|
+
of the GNU Lesser General Public License "or any later version"
|
|
154
|
+
applies to it, you have the option of following the terms and
|
|
155
|
+
conditions either of that published version or of any later version
|
|
156
|
+
published by the Free Software Foundation. If the Library as you
|
|
157
|
+
received it does not specify a version number of the GNU Lesser
|
|
158
|
+
General Public License, you may choose any version of the GNU Lesser
|
|
159
|
+
General Public License ever published by the Free Software Foundation.
|
|
160
|
+
|
|
161
|
+
If the Library as you received it specifies that a proxy can decide
|
|
162
|
+
whether future versions of the GNU Lesser General Public License shall
|
|
163
|
+
apply, that proxy's public statement of acceptance of any version is
|
|
164
|
+
permanent authorization for you to choose that version for the
|
|
165
|
+
Library.
|
package/README.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
[![logo][]](https://xyo.network)
|
|
2
|
+
|
|
3
|
+
Part of [@xyo-network/sdk-xyo-react](https://www.npmjs.com/package/@xyo-network/sdk-xyo-react)
|
|
4
|
+
|
|
5
|
+
## License
|
|
6
|
+
|
|
7
|
+
> See the [LICENSE](LICENSE) file for license details
|
|
8
|
+
|
|
9
|
+
## Credits
|
|
10
|
+
|
|
11
|
+
[Made with 🔥 and ❄️ by XYO](https://xyo.network)
|
|
12
|
+
|
|
13
|
+
[logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PriceForecastRenderPlugin = void 0;
|
|
4
|
+
const react_payload_plugin_1 = require("@xyo-network/react-payload-plugin");
|
|
5
|
+
const components_1 = require("./components");
|
|
6
|
+
exports.PriceForecastRenderPlugin = Object.assign({}, (0, react_payload_plugin_1.createPayloadRenderPlugin)({
|
|
7
|
+
canRender: () => true,
|
|
8
|
+
components: {
|
|
9
|
+
box: {
|
|
10
|
+
detailsBox: components_1.PriceForecastDetailsBox,
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
name: 'PriceForecast',
|
|
14
|
+
}));
|
|
15
|
+
//# sourceMappingURL=Plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Plugin.js","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":";;;AAAA,4EAAkG;AAElG,6CAAsD;AAEzC,QAAA,yBAAyB,qBACjC,IAAA,gDAAyB,EAAC;IAC3B,SAAS,EAAE,GAAG,EAAE,CAAC,IAAI;IACrB,UAAU,EAAE;QACV,GAAG,EAAE;YACH,UAAU,EAAE,oCAAuB;SACpC;KACF;IACD,IAAI,EAAE,eAAe;CACtB,CAAC,EACH"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PriceForecastDetailsBox = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
+
require("chartjs-adapter-luxon");
|
|
7
|
+
const material_1 = require("@mui/material");
|
|
8
|
+
const react_async_effect_1 = require("@xylabs/react-async-effect");
|
|
9
|
+
const react_flexbox_1 = require("@xylabs/react-flexbox");
|
|
10
|
+
const chart_js_1 = require("chart.js");
|
|
11
|
+
const react_1 = require("react");
|
|
12
|
+
const react_chartjs_2_1 = require("react-chartjs-2");
|
|
13
|
+
const lib_1 = require("../lib");
|
|
14
|
+
chart_js_1.Chart.register(chart_js_1.CategoryScale, chart_js_1.TimeScale, chart_js_1.PointElement, chart_js_1.LineElement, chart_js_1.LinearScale, chart_js_1.Title, chart_js_1.Tooltip, chart_js_1.Legend);
|
|
15
|
+
const PriceForecastDetailsBox = (_a) => {
|
|
16
|
+
var { payload } = _a, props = tslib_1.__rest(_a, ["payload"]);
|
|
17
|
+
const priceForecastPayload = payload;
|
|
18
|
+
const theme = (0, material_1.useTheme)();
|
|
19
|
+
const [data, setData] = (0, react_1.useState)({ datasets: [] });
|
|
20
|
+
const [options, setOptions] = (0, react_1.useState)({});
|
|
21
|
+
(0, react_async_effect_1.useAsyncEffect)(
|
|
22
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
23
|
+
(mounted) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
24
|
+
const { data, options } = yield lib_1.ForecastLineChartConfigBuilder.create(theme, priceForecastPayload, { fetch: true });
|
|
25
|
+
if (mounted()) {
|
|
26
|
+
setData(data);
|
|
27
|
+
setOptions(options);
|
|
28
|
+
}
|
|
29
|
+
}), [priceForecastPayload, theme]);
|
|
30
|
+
return ((0, jsx_runtime_1.jsx)(react_flexbox_1.FlexCol, Object.assign({}, props, { busy: priceForecastPayload === undefined, minHeight: "25vh" }, { children: priceForecastPayload ? (0, jsx_runtime_1.jsx)(react_chartjs_2_1.Line, { options: options, data: data }) : null })));
|
|
31
|
+
};
|
|
32
|
+
exports.PriceForecastDetailsBox = PriceForecastDetailsBox;
|
|
33
|
+
//# sourceMappingURL=DetailsBox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":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MAAM,gBAC3E,oBAAoB,CAAC,CAAC,CAAC,uBAAC,sBAAI,IAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,IAC7D,CACX,CAAA;AACH,CAAC,CAAA;AAvBY,QAAA,uBAAuB,2BAuBnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":";;;AAAA,uDAA4B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,uDAA4B;AAC5B,mDAAwB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DataLineStyles = void 0;
|
|
4
|
+
const material_1 = require("@mui/material");
|
|
5
|
+
const DataLineStyles = (color) => ({
|
|
6
|
+
backgroundColor: color ? (0, material_1.alpha)(color, 0.5) : undefined,
|
|
7
|
+
borderColor: color,
|
|
8
|
+
});
|
|
9
|
+
exports.DataLineStyles = DataLineStyles;
|
|
10
|
+
//# sourceMappingURL=DataLineStyles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataLineStyles.js","sourceRoot":"","sources":["../../../src/lib/DataLineStyles.ts"],"names":[],"mappings":";;;AAAA,4CAAqC;AAE9B,MAAM,cAAc,GAAG,CAAC,KAAc,EAAE,EAAE,CAAC,CAAC;IACjD,eAAe,EAAE,KAAK,CAAC,CAAC,CAAC,IAAA,gBAAK,EAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS;IACtD,WAAW,EAAE,KAAK;CACnB,CAAC,CAAA;AAHW,QAAA,cAAc,kBAGzB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DataPointStyles = void 0;
|
|
4
|
+
const DataPointStyles = (pointHoverBackgroundColor) => ({
|
|
5
|
+
pointHitRadius: 20,
|
|
6
|
+
pointHoverBackgroundColor,
|
|
7
|
+
pointHoverRadius: 10,
|
|
8
|
+
pointRadius: 5,
|
|
9
|
+
pointStyle: 'circle',
|
|
10
|
+
});
|
|
11
|
+
exports.DataPointStyles = DataPointStyles;
|
|
12
|
+
//# sourceMappingURL=DataPointStyles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataPointStyles.js","sourceRoot":"","sources":["../../../src/lib/DataPointStyles.ts"],"names":[],"mappings":";;;AAAO,MAAM,eAAe,GAAG,CAAC,yBAAkC,EAAE,EAAE,CAAC,CAAC;IACtE,cAAc,EAAE,EAAE;IAClB,yBAAyB;IACzB,gBAAgB,EAAE,EAAE;IACpB,WAAW,EAAE,CAAC;IACd,UAAU,EAAE,QAAQ;CACrB,CAAC,CAAA;AANW,QAAA,eAAe,mBAM1B"}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ForecastLineChartConfigBuilder = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const DataLineStyles_1 = require("./DataLineStyles");
|
|
6
|
+
const DataPointStyles_1 = require("./DataPointStyles");
|
|
7
|
+
const SourcePayloads_1 = require("./SourcePayloads");
|
|
8
|
+
const defaultOptions = () => ({
|
|
9
|
+
plugins: {
|
|
10
|
+
legend: {
|
|
11
|
+
position: 'top',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
responsive: true,
|
|
15
|
+
});
|
|
16
|
+
class ForecastLineChartConfigBuilder {
|
|
17
|
+
constructor(theme, payload) {
|
|
18
|
+
this.payload = payload;
|
|
19
|
+
this.data = {
|
|
20
|
+
datasets: [],
|
|
21
|
+
};
|
|
22
|
+
this.options = defaultOptions();
|
|
23
|
+
this.themeColors = this.parseTheme(theme);
|
|
24
|
+
}
|
|
25
|
+
get forecastPayload() {
|
|
26
|
+
if (this.payload) {
|
|
27
|
+
return this.payload;
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
throw Error('ForecastPayload was not defined');
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
static create(theme, payload, sourcePayloadConfig) {
|
|
34
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
const instance = new ForecastLineChartConfigBuilder(theme, payload);
|
|
36
|
+
yield instance.build(sourcePayloadConfig === null || sourcePayloadConfig === void 0 ? void 0 : sourcePayloadConfig.fetch);
|
|
37
|
+
instance.refreshValues();
|
|
38
|
+
return instance;
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
build(includeSources) {
|
|
42
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
this.buildOptions();
|
|
44
|
+
yield this.buildData(includeSources);
|
|
45
|
+
return this;
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
buildData(includeSources) {
|
|
49
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
const forecastData = this.generateDataSetForecastData();
|
|
51
|
+
const datasets = [forecastData];
|
|
52
|
+
if (includeSources) {
|
|
53
|
+
// build data from sources in forecastPayload
|
|
54
|
+
const sourceData = yield this.generateDataSetSourcePayloads();
|
|
55
|
+
datasets.unshift(sourceData);
|
|
56
|
+
// add last source point as first item in prediction to connect the lines
|
|
57
|
+
const lastSourceDataItem = sourceData.data.at(-1);
|
|
58
|
+
forecastData.data.unshift(lastSourceDataItem);
|
|
59
|
+
}
|
|
60
|
+
this.data = {
|
|
61
|
+
datasets,
|
|
62
|
+
};
|
|
63
|
+
return this;
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
buildOptions() {
|
|
67
|
+
if (this.options.plugins) {
|
|
68
|
+
this.options.plugins.title = this.generateTitle();
|
|
69
|
+
this.options.plugins.legend = this.generateLegend();
|
|
70
|
+
}
|
|
71
|
+
this.options.scales = this.generateScales();
|
|
72
|
+
return this;
|
|
73
|
+
}
|
|
74
|
+
refreshValues() {
|
|
75
|
+
this.data = Object.assign({}, this.data);
|
|
76
|
+
this.options = Object.assign({}, this.options);
|
|
77
|
+
}
|
|
78
|
+
generateLegend() {
|
|
79
|
+
return {
|
|
80
|
+
labels: {
|
|
81
|
+
pointStyle: 'circle',
|
|
82
|
+
usePointStyle: true,
|
|
83
|
+
},
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
generateScales() {
|
|
87
|
+
var _a, _b;
|
|
88
|
+
return {
|
|
89
|
+
x: {
|
|
90
|
+
grid: {
|
|
91
|
+
color: (_a = this.themeColors) === null || _a === void 0 ? void 0 : _a.gridColor,
|
|
92
|
+
},
|
|
93
|
+
time: {
|
|
94
|
+
unit: 'minute',
|
|
95
|
+
},
|
|
96
|
+
type: 'time',
|
|
97
|
+
},
|
|
98
|
+
y: {
|
|
99
|
+
grid: {
|
|
100
|
+
color: (_b = this.themeColors) === null || _b === void 0 ? void 0 : _b.gridColor,
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
generateTitle() {
|
|
106
|
+
var _a;
|
|
107
|
+
return {
|
|
108
|
+
display: true,
|
|
109
|
+
text: `Gas Price Forecaster (GWEI over time from ${((_a = this.forecastPayload) === null || _a === void 0 ? void 0 : _a.values[0].timestamp) ? new Date(this.forecastPayload.values[0].timestamp).toLocaleDateString() : ''})`,
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
parseTheme(theme) {
|
|
113
|
+
const dark = theme.palette.mode === 'dark';
|
|
114
|
+
return {
|
|
115
|
+
dataSetColorPrimary: theme.palette.primary.light,
|
|
116
|
+
dataSetColorSecondary: theme.palette.secondary.light,
|
|
117
|
+
gridColor: dark ? theme.palette.grey[800] : theme.palette.grey[300],
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
generateDataSetForecastData() {
|
|
121
|
+
var _a, _b;
|
|
122
|
+
return Object.assign(Object.assign({ borderDash: [5], borderDashOffset: 0.5, data: this.forecastPayload.values.map((price) => { var _a; return ({ x: (_a = price.timestamp) !== null && _a !== void 0 ? _a : 0, y: price.value }); }), label: 'Forecast Price' }, (0, DataPointStyles_1.DataPointStyles)((_a = this.themeColors) === null || _a === void 0 ? void 0 : _a.dataSetColorPrimary)), (0, DataLineStyles_1.DataLineStyles)((_b = this.themeColors) === null || _b === void 0 ? void 0 : _b.dataSetColorPrimary));
|
|
123
|
+
}
|
|
124
|
+
generateDataSetSourcePayloads() {
|
|
125
|
+
var _a, _b;
|
|
126
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
127
|
+
const { sourcePrices } = yield SourcePayloads_1.SourcePayloads.build('feePerGas.medium');
|
|
128
|
+
return Object.assign(Object.assign({ data: sourcePrices, label: 'Source Prices' }, (0, DataLineStyles_1.DataLineStyles)((_a = this.themeColors) === null || _a === void 0 ? void 0 : _a.dataSetColorSecondary)), (0, DataPointStyles_1.DataPointStyles)((_b = this.themeColors) === null || _b === void 0 ? void 0 : _b.dataSetColorSecondary));
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
exports.ForecastLineChartConfigBuilder = ForecastLineChartConfigBuilder;
|
|
133
|
+
//# sourceMappingURL=ForecastLineChartConfigBuilder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ForecastLineChartConfigBuilder.js","sourceRoot":"","sources":["../../../src/lib/ForecastLineChartConfigBuilder.ts"],"names":[],"mappings":";;;;AAMA,qDAAiD;AACjD,uDAAmD;AACnD,qDAAiD;AAajD,MAAM,cAAc,GAA+B,GAAG,EAAE,CAAC,CAAC;IACxD,OAAO,EAAE;QACP,MAAM,EAAE;YACN,QAAQ,EAAE,KAAc;SACzB;KACF;IACD,UAAU,EAAE,IAAI;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AAG,MAAM,+BAAc,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAA;YACvE,qCACE,IAAI,EAAE,YAAY,EAClB,KAAK,EAAE,eAAe,IACnB,IAAA,+BAAc,EAAC,MAAA,IAAI,CAAC,WAAW,0CAAE,qBAAqB,CAAC,GACvD,IAAA,iCAAe,EAAC,MAAA,IAAI,CAAC,WAAW,0CAAE,qBAAqB,CAAC,EAC5D;;KACF;CACF;AA1ID,wEA0IC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MockSourcePayloads = void 0;
|
|
4
|
+
const MockSourcePayloads = () => {
|
|
5
|
+
const tenMin = 600000;
|
|
6
|
+
return [
|
|
7
|
+
{
|
|
8
|
+
baseFee: 38.90155387825,
|
|
9
|
+
feePerGas: { high: 47.9945864396, low: 39.006868093, medium: 39.306868093, veryHigh: 44.45384380525 },
|
|
10
|
+
priorityFeePerGas: { high: 1.0266666666666666, low: -0.41000000000000003, medium: 0.38, veryHigh: 1.3900000000000001 },
|
|
11
|
+
schema: 'network.xyo.blockchain.ethereum.gas',
|
|
12
|
+
timestamp: Date.now() - tenMin,
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
baseFee: 38.90155387825,
|
|
16
|
+
feePerGas: { high: 47.9945864396, low: 39.006868093, medium: 100, veryHigh: 44.45384380525 },
|
|
17
|
+
priorityFeePerGas: { high: 1.0266666666666666, low: -0.41000000000000003, medium: 0.38, veryHigh: 1.3900000000000001 },
|
|
18
|
+
schema: 'network.xyo.blockchain.ethereum.gas',
|
|
19
|
+
timestamp: Date.now(),
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
};
|
|
23
|
+
exports.MockSourcePayloads = MockSourcePayloads;
|
|
24
|
+
//# sourceMappingURL=MockSourcePayloads.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MockSourcePayloads.js","sourceRoot":"","sources":["../../../src/lib/MockSourcePayloads.ts"],"names":[],"mappings":";;;AAAO,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACrC,MAAM,MAAM,GAAG,MAAM,CAAA;IACrB,OAAO;QACL;YACE,OAAO,EAAE,cAAc;YACvB,SAAS,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,cAAc,EAAE;YACrG,iBAAiB,EAAE,EAAE,IAAI,EAAE,kBAAkB,EAAE,GAAG,EAAE,CAAC,mBAAmB,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,kBAAkB,EAAE;YACtH,MAAM,EAAE,qCAAqC;YAC7C,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,MAAM;SAC/B;QACD;YACE,OAAO,EAAE,cAAc;YACvB,SAAS,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,cAAc,EAAE;YAC5F,iBAAiB,EAAE,EAAE,IAAI,EAAE,kBAAkB,EAAE,GAAG,EAAE,CAAC,mBAAmB,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,kBAAkB,EAAE;YACtH,MAAM,EAAE,qCAAqC;YAC7C,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;SACtB;KACF,CAAA;AACH,CAAC,CAAA;AAlBY,QAAA,kBAAkB,sBAkB9B"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SourcePayloads = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const MockSourcePayloads_1 = require("./MockSourcePayloads");
|
|
6
|
+
class SourcePayloads {
|
|
7
|
+
constructor(sourcePayloads) {
|
|
8
|
+
this.sourcePayloads = sourcePayloads;
|
|
9
|
+
this.sourcePrices = [];
|
|
10
|
+
}
|
|
11
|
+
get payloads() {
|
|
12
|
+
return this.sourcePayloads;
|
|
13
|
+
}
|
|
14
|
+
static build(jsonPath) {
|
|
15
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
16
|
+
const sourcePayloads = yield this.fetchSourcePayloads();
|
|
17
|
+
const instance = new this(sourcePayloads);
|
|
18
|
+
const paths = jsonPath.split('.');
|
|
19
|
+
instance.sourcePrices = sourcePayloads.map((payload) => {
|
|
20
|
+
return { x: payload.timestamp, y: instance.jsonPathTraverser(payload, paths) };
|
|
21
|
+
});
|
|
22
|
+
return instance;
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
// TODO - fetch from archivist
|
|
26
|
+
static fetchSourcePayloads() {
|
|
27
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
const payloads = yield Promise.resolve((0, MockSourcePayloads_1.MockSourcePayloads)());
|
|
29
|
+
return payloads;
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
jsonPathTraverser(obj, path) {
|
|
33
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
34
|
+
let result = obj;
|
|
35
|
+
for (const key of path) {
|
|
36
|
+
if (key in result) {
|
|
37
|
+
const foundKey = key;
|
|
38
|
+
result = result[foundKey];
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
result = undefined;
|
|
42
|
+
break;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return result;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.SourcePayloads = SourcePayloads;
|
|
49
|
+
//# sourceMappingURL=SourcePayloads.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SourcePayloads.js","sourceRoot":"","sources":["../../../src/lib/SourcePayloads.ts"],"names":[],"mappings":";;;;AAGA,6DAAyD;AAEzD,MAAa,cAAc;IAGzB,YAAmB,cAAyB;QAAzB,mBAAc,G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|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./ForecastLineChartConfigBuilder"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./MockSourcePayloads"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./SourcePayloads"), exports);
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":";;;AAAA,2EAAgD;AAChD,+DAAoC;AACpC,2DAAgC"}
|