@xyo-network/react-gas-price 10.0.4 → 10.0.6
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/dist/browser/index.d.ts +1 -2
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.mjs +2 -352
- package/dist/browser/index.mjs.map +4 -4
- package/package.json +98 -62
- package/dist/browser/components/Avatar/EthereumGasPriceAvatar.d.ts +0 -4
- package/dist/browser/components/Avatar/EthereumGasPriceAvatar.d.ts.map +0 -1
- package/dist/browser/components/Avatar/index.d.ts +0 -2
- package/dist/browser/components/Avatar/index.d.ts.map +0 -1
- package/dist/browser/components/CardHeader/CardHeader.d.ts +0 -12
- package/dist/browser/components/CardHeader/CardHeader.d.ts.map +0 -1
- package/dist/browser/components/CardHeader/index.d.ts +0 -2
- package/dist/browser/components/CardHeader/index.d.ts.map +0 -1
- package/dist/browser/components/GasFees/Card.d.ts +0 -11
- package/dist/browser/components/GasFees/Card.d.ts.map +0 -1
- package/dist/browser/components/GasFees/components/GasPriceBox.d.ts +0 -7
- package/dist/browser/components/GasFees/components/GasPriceBox.d.ts.map +0 -1
- package/dist/browser/components/GasFees/components/GweiLabelTypography.d.ts +0 -4
- package/dist/browser/components/GasFees/components/GweiLabelTypography.d.ts.map +0 -1
- package/dist/browser/components/GasFees/components/PriorityFeeBox.d.ts +0 -8
- package/dist/browser/components/GasFees/components/PriorityFeeBox.d.ts.map +0 -1
- package/dist/browser/components/GasFees/components/SpeedBox.d.ts +0 -7
- package/dist/browser/components/GasFees/components/SpeedBox.d.ts.map +0 -1
- package/dist/browser/components/GasFees/components/index.d.ts +0 -4
- package/dist/browser/components/GasFees/components/index.d.ts.map +0 -1
- package/dist/browser/components/GasFees/index.d.ts +0 -2
- package/dist/browser/components/GasFees/index.d.ts.map +0 -1
- package/dist/browser/components/HeaderBox.d.ts +0 -9
- package/dist/browser/components/HeaderBox.d.ts.map +0 -1
- package/dist/browser/components/HeaderComponents/Actions.d.ts +0 -11
- package/dist/browser/components/HeaderComponents/Actions.d.ts.map +0 -1
- package/dist/browser/components/HeaderComponents/Header/Header.d.ts +0 -8
- package/dist/browser/components/HeaderComponents/Header/Header.d.ts.map +0 -1
- package/dist/browser/components/HeaderComponents/Header/Heading.d.ts +0 -10
- package/dist/browser/components/HeaderComponents/Header/Heading.d.ts.map +0 -1
- package/dist/browser/components/HeaderComponents/Header/index.d.ts +0 -3
- package/dist/browser/components/HeaderComponents/Header/index.d.ts.map +0 -1
- package/dist/browser/components/HeaderComponents/index.d.ts +0 -3
- package/dist/browser/components/HeaderComponents/index.d.ts.map +0 -1
- package/dist/browser/components/RawPayload/ToggleRawPayloadBox.d.ts +0 -7
- package/dist/browser/components/RawPayload/ToggleRawPayloadBox.d.ts.map +0 -1
- package/dist/browser/components/RawPayload/index.d.ts +0 -2
- package/dist/browser/components/RawPayload/index.d.ts.map +0 -1
- package/dist/browser/components/index.d.ts +0 -8
- package/dist/browser/components/index.d.ts.map +0 -1
- package/dist/browser/components/layout/Header.d.ts +0 -4
- package/dist/browser/components/layout/Header.d.ts.map +0 -1
- package/dist/browser/components/layout/StyledCardHeader.d.ts +0 -4
- package/dist/browser/components/layout/StyledCardHeader.d.ts.map +0 -1
- package/dist/browser/components/layout/index.d.ts +0 -3
- package/dist/browser/components/layout/index.d.ts.map +0 -1
- package/dist/browser/types/GasPriceWitnessPayload.d.ts +0 -17
- package/dist/browser/types/GasPriceWitnessPayload.d.ts.map +0 -1
- package/dist/browser/types/index.d.ts +0 -2
- package/dist/browser/types/index.d.ts.map +0 -1
package/dist/browser/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,cAAc,kCAAkC,CAAA"}
|
package/dist/browser/index.mjs
CHANGED
|
@@ -1,353 +1,3 @@
|
|
|
1
|
-
// src/
|
|
2
|
-
|
|
3
|
-
import { Avatar } from "@mui/material";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
var EthereumGasPriceAvatar = ({ ...props }) => {
|
|
6
|
-
return /* @__PURE__ */ jsx(Avatar, { ...props, children: /* @__PURE__ */ jsx(LocalGasStationRoundedIcon, {}) });
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
// src/components/HeaderComponents/Actions.tsx
|
|
10
|
-
import { FlexRow } from "@ariestools/sdk-react/flexbox";
|
|
11
|
-
import { Chip } from "@mui/material";
|
|
12
|
-
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
13
|
-
var GasPriceHeaderActionsBox = ({
|
|
14
|
-
baseFee,
|
|
15
|
-
baseFeeLabel = "Base Fee",
|
|
16
|
-
blockNumber,
|
|
17
|
-
blockNumberLabel = "Block Number",
|
|
18
|
-
timestamp,
|
|
19
|
-
...props
|
|
20
|
-
}) => {
|
|
21
|
-
return /* @__PURE__ */ jsxs(
|
|
22
|
-
FlexRow,
|
|
23
|
-
{
|
|
24
|
-
...props,
|
|
25
|
-
sx: [{
|
|
26
|
-
columnGap: 1,
|
|
27
|
-
rowGap: 1,
|
|
28
|
-
flexWrap: "wrap"
|
|
29
|
-
}, ...Array.isArray(props.sx) ? props.sx : [props.sx]],
|
|
30
|
-
children: [
|
|
31
|
-
timestamp ? /* @__PURE__ */ jsx2(Chip, { label: new Date(timestamp).toLocaleString() }) : null,
|
|
32
|
-
baseFee ? /* @__PURE__ */ jsx2(Chip, { label: `${baseFeeLabel} - ${baseFee.toFixed(2)} GWEI` }) : null,
|
|
33
|
-
blockNumber ? /* @__PURE__ */ jsx2(Chip, { label: `${blockNumberLabel} - ${blockNumber}` }) : null
|
|
34
|
-
]
|
|
35
|
-
}
|
|
36
|
-
);
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
// src/components/HeaderComponents/Header/Header.tsx
|
|
40
|
-
import { useTheme as useTheme2 } from "@mui/material";
|
|
41
|
-
import { getTokenData } from "@xyo-network/react-shared";
|
|
42
|
-
|
|
43
|
-
// src/components/HeaderComponents/Header/Heading.tsx
|
|
44
|
-
import { useTheme } from "@mui/material";
|
|
45
|
-
import { TypographyEx } from "@xyo-network/react-shared";
|
|
46
|
-
import { jsxs as jsxs2 } from "react/jsx-runtime";
|
|
47
|
-
var GasPriceHeadingTypography = ({
|
|
48
|
-
children,
|
|
49
|
-
heading,
|
|
50
|
-
networkIcon,
|
|
51
|
-
...props
|
|
52
|
-
}) => {
|
|
53
|
-
const theme = useTheme();
|
|
54
|
-
return /* @__PURE__ */ jsxs2(
|
|
55
|
-
TypographyEx,
|
|
56
|
-
{
|
|
57
|
-
...props,
|
|
58
|
-
sx: [{
|
|
59
|
-
fontSize: theme.spacing(6),
|
|
60
|
-
lineHeight: 1
|
|
61
|
-
}, ...Array.isArray(props.sx) ? props.sx : [props.sx]],
|
|
62
|
-
children: [
|
|
63
|
-
heading,
|
|
64
|
-
" ",
|
|
65
|
-
networkIcon,
|
|
66
|
-
" ",
|
|
67
|
-
children
|
|
68
|
-
]
|
|
69
|
-
}
|
|
70
|
-
);
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
// src/components/HeaderComponents/Header/Header.tsx
|
|
74
|
-
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
75
|
-
var GasPriceHeaderTypography = ({
|
|
76
|
-
heading,
|
|
77
|
-
children,
|
|
78
|
-
...props
|
|
79
|
-
}) => {
|
|
80
|
-
const theme = useTheme2();
|
|
81
|
-
const [ethData] = getTokenData(["eth"]);
|
|
82
|
-
const networkIcon = /* @__PURE__ */ jsx3("img", { height: theme.spacing(4), src: ethData.icon });
|
|
83
|
-
return /* @__PURE__ */ jsx3(GasPriceHeadingTypography, { heading, networkIcon, ...props, children });
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
// src/components/layout/Header.tsx
|
|
87
|
-
import { FlexRow as FlexRow2 } from "@ariestools/sdk-react/flexbox";
|
|
88
|
-
import { styled } from "@mui/material";
|
|
89
|
-
var StyledGasPriceHeaderBox = styled(FlexRow2, { name: "StyledGasPriceEstimateBox" })(({ theme }) => ({
|
|
90
|
-
alignItems: "end",
|
|
91
|
-
columnGap: theme.spacing(2),
|
|
92
|
-
flexWrap: "wrap",
|
|
93
|
-
justifyContent: "space-between",
|
|
94
|
-
justifyItems: "space-between",
|
|
95
|
-
rowGap: theme.spacing(2),
|
|
96
|
-
width: "100%"
|
|
97
|
-
}));
|
|
98
|
-
|
|
99
|
-
// src/components/layout/StyledCardHeader.tsx
|
|
100
|
-
import { CardHeader, styled as styled2 } from "@mui/material";
|
|
101
|
-
var StyledCardHeader = styled2(CardHeader, { name: "StyledCardHeader" })(({ theme }) => ({
|
|
102
|
-
flexWrap: "wrap",
|
|
103
|
-
rowGap: theme.spacing(2)
|
|
104
|
-
}));
|
|
105
|
-
|
|
106
|
-
// src/components/CardHeader/CardHeader.tsx
|
|
107
|
-
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
108
|
-
var GasPriceWitnessCardHeader = ({
|
|
109
|
-
ref,
|
|
110
|
-
title,
|
|
111
|
-
parsedPayload,
|
|
112
|
-
...props
|
|
113
|
-
}) => /* @__PURE__ */ jsx4(
|
|
114
|
-
StyledCardHeader,
|
|
115
|
-
{
|
|
116
|
-
title: /* @__PURE__ */ jsx4(GasPriceHeaderTypography, { heading: title }),
|
|
117
|
-
action: /* @__PURE__ */ jsx4(
|
|
118
|
-
GasPriceHeaderActionsBox,
|
|
119
|
-
{
|
|
120
|
-
timestamp: parsedPayload?.timestamp,
|
|
121
|
-
baseFee: parsedPayload?.baseFee?.value,
|
|
122
|
-
baseFeeLabel: parsedPayload?.baseFee?.label,
|
|
123
|
-
blockNumber: parsedPayload?.blockNumber?.value,
|
|
124
|
-
blockNumberLabel: parsedPayload?.blockNumber?.label
|
|
125
|
-
}
|
|
126
|
-
),
|
|
127
|
-
ref,
|
|
128
|
-
...props
|
|
129
|
-
}
|
|
130
|
-
);
|
|
131
|
-
GasPriceWitnessCardHeader.displayName = "GasPriceWitnessCardHeader";
|
|
132
|
-
|
|
133
|
-
// src/components/GasFees/Card.tsx
|
|
134
|
-
import { FlexGrowCol as FlexGrowCol2 } from "@ariestools/sdk-react/flexbox";
|
|
135
|
-
import {
|
|
136
|
-
Card,
|
|
137
|
-
Paper,
|
|
138
|
-
useTheme as useTheme6
|
|
139
|
-
} from "@mui/material";
|
|
140
|
-
import { CardContentEx } from "@xyo-network/react-card";
|
|
141
|
-
|
|
142
|
-
// src/components/GasFees/components/GasPriceBox.tsx
|
|
143
|
-
import { FlexRow as FlexRow3 } from "@ariestools/sdk-react/flexbox";
|
|
144
|
-
import { useTheme as useTheme3 } from "@mui/material";
|
|
145
|
-
import { TypographyEx as TypographyEx3 } from "@xyo-network/react-shared";
|
|
146
|
-
|
|
147
|
-
// src/components/GasFees/components/GweiLabelTypography.tsx
|
|
148
|
-
import { TypographyEx as TypographyEx2 } from "@xyo-network/react-shared";
|
|
149
|
-
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
150
|
-
var GweiLabelTypography = (props) => /* @__PURE__ */ jsx5(TypographyEx2, { variant: "caption", ...props, children: "GWEI" });
|
|
151
|
-
|
|
152
|
-
// src/components/GasFees/components/GasPriceBox.tsx
|
|
153
|
-
import { jsx as jsx6, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
154
|
-
var GasPriceBox = ({ gasPrice, ...props }) => {
|
|
155
|
-
const theme = useTheme3();
|
|
156
|
-
return /* @__PURE__ */ jsxs3(
|
|
157
|
-
FlexRow3,
|
|
158
|
-
{
|
|
159
|
-
...props,
|
|
160
|
-
sx: [{
|
|
161
|
-
columnGap: 1.5,
|
|
162
|
-
rowGap: 1.5,
|
|
163
|
-
alignItems: "end"
|
|
164
|
-
}, ...Array.isArray(props.sx) ? props.sx : [props.sx]],
|
|
165
|
-
children: [
|
|
166
|
-
/* @__PURE__ */ jsx6(
|
|
167
|
-
TypographyEx3,
|
|
168
|
-
{
|
|
169
|
-
title: gasPrice?.toString() ?? "",
|
|
170
|
-
sx: {
|
|
171
|
-
lineHeight: 1,
|
|
172
|
-
fontWeight: "200",
|
|
173
|
-
fontSize: theme.spacing(6)
|
|
174
|
-
},
|
|
175
|
-
children: gasPrice?.toFixed(2)
|
|
176
|
-
}
|
|
177
|
-
),
|
|
178
|
-
/* @__PURE__ */ jsx6(GweiLabelTypography, { sx: { fontSize: theme.spacing(2) } })
|
|
179
|
-
]
|
|
180
|
-
}
|
|
181
|
-
);
|
|
182
|
-
};
|
|
183
|
-
|
|
184
|
-
// src/components/GasFees/components/PriorityFeeBox.tsx
|
|
185
|
-
import { FlexCol, FlexGrowRow } from "@ariestools/sdk-react/flexbox";
|
|
186
|
-
import { LocalGasStationRounded as LocalGasStationRoundedIcon2 } from "@mui/icons-material";
|
|
187
|
-
import { useTheme as useTheme4 } from "@mui/material";
|
|
188
|
-
import { TypographyEx as TypographyEx4 } from "@xyo-network/react-shared";
|
|
189
|
-
import { jsx as jsx7, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
190
|
-
var PriorityFeeBox = ({
|
|
191
|
-
priorityFee,
|
|
192
|
-
priorityFeeLabel = "Priority Fee",
|
|
193
|
-
...props
|
|
194
|
-
}) => {
|
|
195
|
-
const theme = useTheme4();
|
|
196
|
-
return /* @__PURE__ */ jsxs4(
|
|
197
|
-
FlexGrowRow,
|
|
198
|
-
{
|
|
199
|
-
...props,
|
|
200
|
-
sx: [{
|
|
201
|
-
width: "100%",
|
|
202
|
-
justifyContent: "space-between",
|
|
203
|
-
alignItems: "end"
|
|
204
|
-
}, ...Array.isArray(props.sx) ? props.sx : [props.sx]],
|
|
205
|
-
children: [
|
|
206
|
-
/* @__PURE__ */ jsxs4(FlexCol, { sx: { alignItems: "start" }, children: [
|
|
207
|
-
/* @__PURE__ */ jsx7(TypographyEx4, { children: priorityFeeLabel }),
|
|
208
|
-
/* @__PURE__ */ jsxs4(TypographyEx4, { title: priorityFee?.toString() ?? "", children: [
|
|
209
|
-
priorityFee?.toFixed(2),
|
|
210
|
-
" ",
|
|
211
|
-
/* @__PURE__ */ jsx7(GweiLabelTypography, { sx: { fontSize: theme.spacing(1) } })
|
|
212
|
-
] })
|
|
213
|
-
] }),
|
|
214
|
-
/* @__PURE__ */ jsx7(LocalGasStationRoundedIcon2, {})
|
|
215
|
-
]
|
|
216
|
-
}
|
|
217
|
-
);
|
|
218
|
-
};
|
|
219
|
-
|
|
220
|
-
// src/components/GasFees/components/SpeedBox.tsx
|
|
221
|
-
import { FlexGrowCol } from "@ariestools/sdk-react/flexbox";
|
|
222
|
-
import { useTheme as useTheme5 } from "@mui/material";
|
|
223
|
-
import { TypographyEx as TypographyEx5 } from "@xyo-network/react-shared";
|
|
224
|
-
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
225
|
-
var SpeedBox = ({ speed, ...props }) => {
|
|
226
|
-
const theme = useTheme5();
|
|
227
|
-
return speed ? /* @__PURE__ */ jsx8(FlexGrowCol, { ...props, children: /* @__PURE__ */ jsx8(
|
|
228
|
-
TypographyEx5,
|
|
229
|
-
{
|
|
230
|
-
sx: {
|
|
231
|
-
fontSize: theme.spacing(3),
|
|
232
|
-
fontWeight: "200",
|
|
233
|
-
p: 1
|
|
234
|
-
},
|
|
235
|
-
children: speed
|
|
236
|
-
}
|
|
237
|
-
) }) : null;
|
|
238
|
-
};
|
|
239
|
-
|
|
240
|
-
// src/components/GasFees/Card.tsx
|
|
241
|
-
import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
242
|
-
var GasFeeCard = ({
|
|
243
|
-
gasPrice,
|
|
244
|
-
speedPaperElevation,
|
|
245
|
-
priorityFee,
|
|
246
|
-
priorityFeeLabel,
|
|
247
|
-
speed = "low",
|
|
248
|
-
...props
|
|
249
|
-
}) => {
|
|
250
|
-
const theme = useTheme6();
|
|
251
|
-
return /* @__PURE__ */ jsx9(Card, { sx: { p: 0 }, ...props, children: /* @__PURE__ */ jsxs5(
|
|
252
|
-
CardContentEx,
|
|
253
|
-
{
|
|
254
|
-
removePadding: true,
|
|
255
|
-
sx: {
|
|
256
|
-
flexDirection: "column",
|
|
257
|
-
flexGrow: 1,
|
|
258
|
-
p: 0,
|
|
259
|
-
rowGap: 2
|
|
260
|
-
},
|
|
261
|
-
children: [
|
|
262
|
-
/* @__PURE__ */ jsxs5(
|
|
263
|
-
FlexGrowCol2,
|
|
264
|
-
{
|
|
265
|
-
sx: {
|
|
266
|
-
bgcolor: theme.vars.palette.secondary.dark,
|
|
267
|
-
alignItems: "start",
|
|
268
|
-
p: 2,
|
|
269
|
-
rowGap: 1.5,
|
|
270
|
-
color: theme.vars.palette.common.white
|
|
271
|
-
},
|
|
272
|
-
children: [
|
|
273
|
-
/* @__PURE__ */ jsx9(GasPriceBox, { gasPrice }),
|
|
274
|
-
priorityFee ? /* @__PURE__ */ jsx9(PriorityFeeBox, { priorityFee, priorityFeeLabel }) : null
|
|
275
|
-
]
|
|
276
|
-
}
|
|
277
|
-
),
|
|
278
|
-
/* @__PURE__ */ jsx9(Paper, { elevation: speedPaperElevation, sx: { borderRadius: `0 0 ${theme.shape.borderRadius}px ${theme.shape.borderRadius}px` }, children: /* @__PURE__ */ jsx9(SpeedBox, { speed }) })
|
|
279
|
-
]
|
|
280
|
-
}
|
|
281
|
-
) });
|
|
282
|
-
};
|
|
283
|
-
|
|
284
|
-
// src/components/HeaderBox.tsx
|
|
285
|
-
import { jsx as jsx10, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
286
|
-
var GasPriceWitnessHeaderBox = ({
|
|
287
|
-
heading,
|
|
288
|
-
parsedPayload,
|
|
289
|
-
...props
|
|
290
|
-
}) => {
|
|
291
|
-
return /* @__PURE__ */ jsxs6(StyledGasPriceHeaderBox, { ...props, children: [
|
|
292
|
-
/* @__PURE__ */ jsx10(GasPriceHeaderTypography, { heading }),
|
|
293
|
-
/* @__PURE__ */ jsx10(
|
|
294
|
-
GasPriceHeaderActionsBox,
|
|
295
|
-
{
|
|
296
|
-
timestamp: parsedPayload?.timestamp,
|
|
297
|
-
baseFee: parsedPayload?.baseFee?.value,
|
|
298
|
-
baseFeeLabel: parsedPayload?.baseFee?.label,
|
|
299
|
-
blockNumber: parsedPayload?.blockNumber?.value,
|
|
300
|
-
blockNumberLabel: parsedPayload?.blockNumber?.label
|
|
301
|
-
}
|
|
302
|
-
)
|
|
303
|
-
] });
|
|
304
|
-
};
|
|
305
|
-
|
|
306
|
-
// src/components/RawPayload/ToggleRawPayloadBox.tsx
|
|
307
|
-
import { FlexCol as FlexCol2 } from "@ariestools/sdk-react/flexbox";
|
|
308
|
-
import {
|
|
309
|
-
Button,
|
|
310
|
-
Collapse,
|
|
311
|
-
Paper as Paper2
|
|
312
|
-
} from "@mui/material";
|
|
313
|
-
import { useState } from "react";
|
|
314
|
-
import { jsx as jsx11, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
315
|
-
var ToggleRawPayloadBox = ({ gasPricePayload, ...props }) => {
|
|
316
|
-
const [collapse, setCollapse] = useState(false);
|
|
317
|
-
return gasPricePayload ? /* @__PURE__ */ jsxs7(
|
|
318
|
-
FlexCol2,
|
|
319
|
-
{
|
|
320
|
-
...props,
|
|
321
|
-
sx: [{ rowGap: 1 }, ...Array.isArray(props.sx) ? props.sx : [props.sx]],
|
|
322
|
-
children: [
|
|
323
|
-
/* @__PURE__ */ jsx11(
|
|
324
|
-
Button,
|
|
325
|
-
{
|
|
326
|
-
variant: "contained",
|
|
327
|
-
color: "secondary",
|
|
328
|
-
onClick: () => setCollapse(!collapse),
|
|
329
|
-
sx: {
|
|
330
|
-
bgcolor: "secondary.dark",
|
|
331
|
-
color: "white"
|
|
332
|
-
},
|
|
333
|
-
children: "Raw Payload"
|
|
334
|
-
}
|
|
335
|
-
),
|
|
336
|
-
/* @__PURE__ */ jsx11(Collapse, { in: collapse, children: /* @__PURE__ */ jsx11(Paper2, { elevation: 4, sx: { p: 2 }, children: /* @__PURE__ */ jsx11("pre", { children: JSON.stringify(gasPricePayload, null, 2) }) }) })
|
|
337
|
-
]
|
|
338
|
-
}
|
|
339
|
-
) : null;
|
|
340
|
-
};
|
|
341
|
-
export {
|
|
342
|
-
EthereumGasPriceAvatar,
|
|
343
|
-
GasFeeCard,
|
|
344
|
-
GasPriceHeaderActionsBox,
|
|
345
|
-
GasPriceHeaderTypography,
|
|
346
|
-
GasPriceHeadingTypography,
|
|
347
|
-
GasPriceWitnessCardHeader,
|
|
348
|
-
GasPriceWitnessHeaderBox,
|
|
349
|
-
StyledCardHeader,
|
|
350
|
-
StyledGasPriceHeaderBox,
|
|
351
|
-
ToggleRawPayloadBox
|
|
352
|
-
};
|
|
1
|
+
// src/index.ts
|
|
2
|
+
export * from "@xyo-network/react-sdk/gas-price";
|
|
353
3
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/
|
|
4
|
-
"sourcesContent": ["import { LocalGasStationRounded as LocalGasStationRoundedIcon } from '@mui/icons-material'\nimport type { AvatarProps } from '@mui/material'\nimport { Avatar } from '@mui/material'\nimport React from 'react'\n\nexport const EthereumGasPriceAvatar: React.FC<AvatarProps> = ({ ...props }) => {\n return (\n <Avatar {...props}>\n <LocalGasStationRoundedIcon />\n </Avatar>\n )\n}\n", "import type { FlexBoxProps } from '@ariestools/sdk-react/flexbox'\nimport { FlexRow } from '@ariestools/sdk-react/flexbox'\nimport { Chip } from '@mui/material'\nimport React from 'react'\n\nexport interface GasPriceEstimateActionsBoxProps extends FlexBoxProps {\n baseFee?: number\n baseFeeLabel?: string\n blockNumber?: number\n blockNumberLabel?: string\n timestamp?: number\n}\n\nexport const GasPriceHeaderActionsBox: React.FC<GasPriceEstimateActionsBoxProps> = ({\n baseFee,\n baseFeeLabel = 'Base Fee',\n blockNumber,\n blockNumberLabel = 'Block Number',\n timestamp,\n ...props\n}) => {\n return (\n <FlexRow\n {...props}\n sx={[{\n columnGap: 1,\n rowGap: 1,\n flexWrap: 'wrap',\n }, ...(Array.isArray(props.sx) ? props.sx : [props.sx])]}\n >\n {timestamp\n ? <Chip label={new Date(timestamp).toLocaleString()} />\n : null}\n {baseFee\n ? <Chip label={`${baseFeeLabel} - ${baseFee.toFixed(2)} GWEI`} />\n : null}\n {blockNumber\n ? <Chip label={`${blockNumberLabel} - ${blockNumber}`} />\n : null}\n </FlexRow>\n )\n}\n", "import { useTheme } from '@mui/material'\nimport type { TypographyExProps } from '@xyo-network/react-shared'\nimport { getTokenData } from '@xyo-network/react-shared'\nimport type { PropsWithChildren } from 'react'\nimport React from 'react'\n\nimport { GasPriceHeadingTypography } from './Heading.tsx'\n\nexport interface GasPriceHeaderTypographyProps extends TypographyExProps, PropsWithChildren {\n heading?: string\n}\n\nexport const GasPriceHeaderTypography: React.FC<GasPriceHeaderTypographyProps> = ({\n heading, children, ...props\n}) => {\n const theme = useTheme()\n const [ethData] = getTokenData(['eth'])\n const networkIcon = <img height={theme.spacing(4)} src={ethData.icon} />\n\n return (\n <GasPriceHeadingTypography heading={heading} networkIcon={networkIcon} {...props}>\n {children}\n </GasPriceHeadingTypography>\n )\n}\n", "import { useTheme } from '@mui/material'\nimport type { TypographyExProps } from '@xyo-network/react-shared'\nimport { TypographyEx } from '@xyo-network/react-shared'\nimport type { ReactNode } from 'react'\nimport React from 'react'\n\nexport interface GasPriceHeadingTypographyProps extends TypographyExProps {\n children?: ReactNode\n heading?: string\n networkIcon?: ReactNode\n}\n\nexport const GasPriceHeadingTypography: React.FC<GasPriceHeadingTypographyProps> = ({\n children, heading, networkIcon, ...props\n}) => {\n const theme = useTheme()\n return (\n <TypographyEx\n {...props}\n sx={[{\n fontSize: theme.spacing(6),\n lineHeight: 1,\n }, ...(Array.isArray(props.sx) ? props.sx : [props.sx])]}\n >\n {heading}\n {' '}\n {networkIcon}\n {' '}\n {children}\n </TypographyEx>\n )\n}\n", "import { FlexRow } from '@ariestools/sdk-react/flexbox'\nimport { styled } from '@mui/material'\nimport type React from 'react'\n\nexport const StyledGasPriceHeaderBox: React.FC<React.ComponentProps<typeof FlexRow>> = styled(FlexRow, { name: 'StyledGasPriceEstimateBox' })(({ theme }) => ({\n alignItems: 'end',\n columnGap: theme.spacing(2),\n flexWrap: 'wrap',\n justifyContent: 'space-between',\n justifyItems: 'space-between',\n rowGap: theme.spacing(2),\n width: '100%',\n}))\n", "import { CardHeader, styled } from '@mui/material'\nimport type React from 'react'\n\nexport const StyledCardHeader: React.FC<React.ComponentProps<typeof CardHeader>> = styled(CardHeader, { name: 'StyledCardHeader' })(({ theme }) => ({\n flexWrap: 'wrap',\n rowGap: theme.spacing(2),\n}))\n", "import type { CardProps } from '@mui/material'\nimport React from 'react'\n\nimport type { GasPriceWitnessUIBasePayload } from '../../types/index.ts'\nimport { GasPriceHeaderActionsBox, GasPriceHeaderTypography } from '../HeaderComponents/index.ts'\nimport { StyledCardHeader } from '../layout/index.ts'\n\nexport interface GasPriceCardHeaderProps extends CardProps {\n parsedPayload?: GasPriceWitnessUIBasePayload\n title?: string\n}\nexport const GasPriceWitnessCardHeader = ({\n ref, title, parsedPayload, ...props\n}: GasPriceCardHeaderProps) => (\n <StyledCardHeader\n title={<GasPriceHeaderTypography heading={title} />}\n action={(\n <GasPriceHeaderActionsBox\n timestamp={parsedPayload?.timestamp}\n baseFee={parsedPayload?.baseFee?.value}\n baseFeeLabel={parsedPayload?.baseFee?.label}\n blockNumber={parsedPayload?.blockNumber?.value}\n blockNumberLabel={parsedPayload?.blockNumber?.label}\n />\n )}\n ref={ref}\n {...props}\n />\n)\n\nGasPriceWitnessCardHeader.displayName = 'GasPriceWitnessCardHeader'\n", "import { FlexGrowCol } from '@ariestools/sdk-react/flexbox'\nimport type { CardProps } from '@mui/material'\nimport {\n Card, Paper, useTheme,\n} from '@mui/material'\nimport { CardContentEx } from '@xyo-network/react-card'\nimport React from 'react'\n\nimport {\n GasPriceBox, PriorityFeeBox, SpeedBox,\n} from './components/index.ts'\n\nexport interface GasFeeCardProps extends CardProps {\n gasPrice?: number\n priorityFee?: number\n priorityFeeLabel?: string\n speed?: string\n speedPaperElevation?: number\n}\n\nexport const GasFeeCard: React.FC<GasFeeCardProps> = ({\n gasPrice, speedPaperElevation, priorityFee, priorityFeeLabel, speed = 'low', ...props\n}) => {\n const theme = useTheme()\n\n return (\n <Card sx={{ p: 0 }} {...props}>\n <CardContentEx\n removePadding\n sx={{\n flexDirection: 'column', flexGrow: 1, p: 0, rowGap: 2,\n }}\n >\n <FlexGrowCol\n sx={{\n bgcolor: theme.vars.palette.secondary.dark,\n alignItems: 'start',\n p: 2,\n rowGap: 1.5,\n color: theme.vars.palette.common.white,\n }}\n >\n <GasPriceBox gasPrice={gasPrice} />\n {priorityFee\n ? <PriorityFeeBox priorityFee={priorityFee} priorityFeeLabel={priorityFeeLabel} />\n : null}\n </FlexGrowCol>\n <Paper elevation={speedPaperElevation} sx={{ borderRadius: `0 0 ${theme.shape.borderRadius}px ${theme.shape.borderRadius}px` }}>\n <SpeedBox speed={speed} />\n </Paper>\n </CardContentEx>\n </Card>\n )\n}\n", "import type { FlexBoxProps } from '@ariestools/sdk-react/flexbox'\nimport { FlexRow } from '@ariestools/sdk-react/flexbox'\nimport { useTheme } from '@mui/material'\nimport { TypographyEx } from '@xyo-network/react-shared'\nimport React from 'react'\n\nimport { GweiLabelTypography } from './GweiLabelTypography.tsx'\n\nexport interface GasPriceBoxProps extends FlexBoxProps {\n gasPrice?: number\n}\n\nexport const GasPriceBox: React.FC<GasPriceBoxProps> = ({ gasPrice, ...props }) => {\n const theme = useTheme()\n return (\n <FlexRow\n {...props}\n sx={[{\n columnGap: 1.5,\n rowGap: 1.5,\n alignItems: 'end',\n }, ...(Array.isArray(props.sx) ? props.sx : [props.sx])]}\n >\n <TypographyEx\n title={gasPrice?.toString() ?? ''}\n sx={{\n lineHeight: 1,\n fontWeight: '200',\n fontSize: theme.spacing(6),\n }}\n >\n {gasPrice?.toFixed(2)}\n </TypographyEx>\n <GweiLabelTypography sx={{ fontSize: theme.spacing(2) }} />\n </FlexRow>\n )\n}\n", "import type { TypographyExProps } from '@xyo-network/react-shared'\nimport { TypographyEx } from '@xyo-network/react-shared'\nimport React from 'react'\n\nexport const GweiLabelTypography: React.FC<TypographyExProps> = props => (\n <TypographyEx variant=\"caption\" {...props}>\n GWEI\n </TypographyEx>\n)\n", "import type { FlexBoxProps } from '@ariestools/sdk-react/flexbox'\nimport { FlexCol, FlexGrowRow } from '@ariestools/sdk-react/flexbox'\nimport { LocalGasStationRounded as LocalGasStationRoundedIcon } from '@mui/icons-material'\nimport { useTheme } from '@mui/material'\nimport { TypographyEx } from '@xyo-network/react-shared'\nimport React from 'react'\n\nimport { GweiLabelTypography } from './GweiLabelTypography.tsx'\n\nexport interface PriorityFeeBoxProps extends FlexBoxProps {\n priorityFee?: number\n priorityFeeLabel?: string\n}\n\nexport const PriorityFeeBox: React.FC<PriorityFeeBoxProps> = ({\n priorityFee, priorityFeeLabel = 'Priority Fee', ...props\n}) => {\n const theme = useTheme()\n\n return (\n <FlexGrowRow\n {...props}\n sx={[{\n width: '100%',\n justifyContent: 'space-between',\n alignItems: 'end',\n }, ...(Array.isArray(props.sx) ? props.sx : [props.sx])]}\n >\n <FlexCol sx={{ alignItems: 'start' }}>\n <TypographyEx>{priorityFeeLabel}</TypographyEx>\n <TypographyEx title={priorityFee?.toString() ?? ''}>\n {priorityFee?.toFixed(2)}\n {' '}\n <GweiLabelTypography sx={{ fontSize: theme.spacing(1) }} />\n </TypographyEx>\n </FlexCol>\n <LocalGasStationRoundedIcon />\n </FlexGrowRow>\n )\n}\n", "import type { FlexBoxProps } from '@ariestools/sdk-react/flexbox'\nimport { FlexGrowCol } from '@ariestools/sdk-react/flexbox'\nimport { useTheme } from '@mui/material'\nimport { TypographyEx } from '@xyo-network/react-shared'\nimport React from 'react'\n\nexport interface SpeedBoxProps extends FlexBoxProps {\n speed?: string\n}\n\nexport const SpeedBox: React.FC<SpeedBoxProps> = ({ speed, ...props }) => {\n const theme = useTheme()\n\n return speed\n ? (\n <FlexGrowCol {...props}>\n <TypographyEx\n sx={{\n fontSize: theme.spacing(3),\n fontWeight: '200',\n p: 1,\n }}\n >\n {speed}\n </TypographyEx>\n </FlexGrowCol>\n )\n : null\n}\n", "import type { FlexBoxProps } from '@ariestools/sdk-react/flexbox'\nimport React from 'react'\n\nimport type { GasPriceWitnessUIBasePayload } from '../types/index.ts'\nimport { GasPriceHeaderActionsBox, GasPriceHeaderTypography } from './HeaderComponents/index.ts'\nimport { StyledGasPriceHeaderBox } from './layout/index.ts'\n\nexport interface GasPriceWitnessHeaderBoxProps extends FlexBoxProps {\n heading?: string\n parsedPayload?: GasPriceWitnessUIBasePayload\n}\n\nexport const GasPriceWitnessHeaderBox: React.FC<GasPriceWitnessHeaderBoxProps> = ({\n heading, parsedPayload, ...props\n}) => {\n return (\n <StyledGasPriceHeaderBox {...props}>\n <GasPriceHeaderTypography heading={heading} />\n <GasPriceHeaderActionsBox\n timestamp={parsedPayload?.timestamp}\n baseFee={parsedPayload?.baseFee?.value}\n baseFeeLabel={parsedPayload?.baseFee?.label}\n blockNumber={parsedPayload?.blockNumber?.value}\n blockNumberLabel={parsedPayload?.blockNumber?.label}\n />\n </StyledGasPriceHeaderBox>\n )\n}\n", "import type { FlexBoxProps } from '@ariestools/sdk-react/flexbox'\nimport { FlexCol } from '@ariestools/sdk-react/flexbox'\nimport {\n Button, Collapse, Paper,\n} from '@mui/material'\nimport React, { useState } from 'react'\n\nexport interface ToggleRawPayloadBoxProps extends FlexBoxProps {\n gasPricePayload?: object\n}\n\nexport const ToggleRawPayloadBox: React.FC<ToggleRawPayloadBoxProps> = ({ gasPricePayload, ...props }) => {\n const [collapse, setCollapse] = useState(false)\n return gasPricePayload\n ? (\n <FlexCol\n {...props}\n sx={[{ rowGap: 1 }, ...(Array.isArray(props.sx) ? props.sx : [props.sx])]}\n >\n <Button\n variant=\"contained\"\n color=\"secondary\"\n onClick={() => setCollapse(!collapse)}\n sx={{\n bgcolor: 'secondary.dark',\n color: 'white',\n }}\n >\n Raw Payload\n </Button>\n <Collapse in={collapse}>\n <Paper elevation={4} sx={{ p: 2 }}>\n <pre>{JSON.stringify(gasPricePayload, null, 2)}</pre>\n </Paper>\n </Collapse>\n </FlexCol>\n )\n : null\n}\n"],
|
|
5
|
-
"mappings": ";
|
|
6
|
-
"names": [
|
|
3
|
+
"sources": ["../../src/index.ts"],
|
|
4
|
+
"sourcesContent": ["// Compatibility shim: this package re-exports from @xyo-network/react-sdk.\nexport * from '@xyo-network/react-sdk/gas-price'\n"],
|
|
5
|
+
"mappings": ";AACA,cAAc;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-gas-price",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.6",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -41,95 +41,131 @@
|
|
|
41
41
|
"README.md"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@xyo-network/react-
|
|
45
|
-
"@xyo-network/react-shared": "~10.0.4"
|
|
44
|
+
"@xyo-network/react-sdk": "~10.0.6"
|
|
46
45
|
},
|
|
47
46
|
"devDependencies": {
|
|
48
|
-
"@ariestools/
|
|
49
|
-
"@ariestools/
|
|
47
|
+
"@ariestools/eth-address": "~8.0.2",
|
|
48
|
+
"@ariestools/pixel": "~8.0.2",
|
|
49
|
+
"@ariestools/sdk": "~8.0.2",
|
|
50
|
+
"@ariestools/sdk-react": "~11.0.0",
|
|
51
|
+
"@ariestools/threads": "~8.0.2",
|
|
50
52
|
"@bitauth/libauth": "~3.0.0",
|
|
53
|
+
"@metamask/providers": "~22.1.1",
|
|
54
|
+
"@mui/icons-material": "~9.2.0",
|
|
55
|
+
"@mui/material": "~9.2.0",
|
|
56
|
+
"@mui/system": "~9.2.0",
|
|
57
|
+
"@mui/x-tree-view": "~9.8.0",
|
|
58
|
+
"@noble/post-quantum": "~0.6.1",
|
|
59
|
+
"@opentelemetry/api": "~1.9.1",
|
|
60
|
+
"@opentelemetry/sdk-trace-base": "~2.9.0",
|
|
61
|
+
"@react-spring/web": "~10.1.2",
|
|
62
|
+
"@scure/base": "~2.2.0",
|
|
63
|
+
"@scure/bip39": "~2.2.0",
|
|
64
|
+
"@types/react": "~19.2.17",
|
|
65
|
+
"@xylabs/toolchain": "~8.6.8",
|
|
66
|
+
"@xylabs/tsconfig": "~8.6.8",
|
|
67
|
+
"@xylabs/tsconfig-dom": "~8.6.8",
|
|
68
|
+
"@xylabs/tsconfig-react": "~8.6.8",
|
|
69
|
+
"@xyo-network/advertising-payload-plugins": "~7.0.2",
|
|
70
|
+
"@xyo-network/archivist-storage": "~7.0.9",
|
|
71
|
+
"@xyo-network/diviner-address-history-model": "~7.0.9",
|
|
72
|
+
"@xyo-network/diviner-hash-lease": "~7.0.9",
|
|
73
|
+
"@xyo-network/diviner-huri": "~7.0.9",
|
|
74
|
+
"@xyo-network/diviner-schema-list": "~7.0.9",
|
|
75
|
+
"@xyo-network/diviner-schema-stats": "~7.0.9",
|
|
76
|
+
"@xyo-network/node-core-types": "~4.2.2",
|
|
77
|
+
"@xyo-network/sdk": "~7.0.9",
|
|
78
|
+
"@xyo-network/sdk-geo": "~3.0.3",
|
|
79
|
+
"@xyo-network/sdk-protocol": "~7.0.14",
|
|
80
|
+
"@xyo-network/typeof": "~5.3.30",
|
|
81
|
+
"@xyo-network/xns-record-payloadset-plugins": "~7.0.2",
|
|
82
|
+
"ajv": "~8.20.0",
|
|
83
|
+
"async-mutex": "~0.5.0",
|
|
84
|
+
"card-validator": "~10.0.4",
|
|
85
|
+
"clsx": "~2.1.1",
|
|
86
|
+
"debug": "~4.4.3",
|
|
87
|
+
"eslint": "~10.6.0",
|
|
88
|
+
"ethers": "~6.17.0",
|
|
89
|
+
"hash-wasm": "~4.12.0",
|
|
90
|
+
"idb": "~8.0.3",
|
|
91
|
+
"lru-cache": "~11.5.1",
|
|
92
|
+
"mapbox-gl": "~3.25.0",
|
|
93
|
+
"md5": "~2.3.0",
|
|
94
|
+
"numeral": "~2.0.6",
|
|
95
|
+
"observable-fns": "~0.6.1",
|
|
96
|
+
"query-string": "~9.4.1",
|
|
97
|
+
"react": "~19.2.7",
|
|
98
|
+
"react-dom": "~19.2.7",
|
|
99
|
+
"react-icons": "~5.7.0",
|
|
100
|
+
"react-router-dom": "~7.18.1",
|
|
101
|
+
"rollbar": "~3.1.0",
|
|
102
|
+
"store2": "~2.14.4",
|
|
103
|
+
"typescript": "~6.0.3",
|
|
104
|
+
"viem": "~2.54.3",
|
|
105
|
+
"webextension-polyfill": "~0.12.0",
|
|
106
|
+
"zod": "~4.4.3",
|
|
107
|
+
"zustand": "~5.0.14"
|
|
108
|
+
},
|
|
109
|
+
"peerDependencies": {
|
|
110
|
+
"@ariestools/eth-address": "^8.0.2",
|
|
111
|
+
"@ariestools/pixel": "^8.0.2",
|
|
112
|
+
"@ariestools/sdk": "^8.0.2",
|
|
113
|
+
"@ariestools/sdk-react": "^11.0.0",
|
|
114
|
+
"@ariestools/threads": "^8.0.2",
|
|
115
|
+
"@bitauth/libauth": "^3.0.0",
|
|
116
|
+
"@metamask/providers": "^22.1.1",
|
|
51
117
|
"@mui/icons-material": "^9.2.0",
|
|
52
118
|
"@mui/material": "^9.2.0",
|
|
53
|
-
"@
|
|
119
|
+
"@mui/system": "^9.2.0",
|
|
120
|
+
"@mui/x-tree-view": "^9.8.0",
|
|
121
|
+
"@noble/post-quantum": "^0.6.1",
|
|
54
122
|
"@opentelemetry/api": "^1.9.1",
|
|
55
123
|
"@opentelemetry/sdk-trace-base": "^2.9.0",
|
|
56
124
|
"@react-spring/web": "^10.1.2",
|
|
57
|
-
"@scure/base": "
|
|
58
|
-
"@scure/bip39": "
|
|
59
|
-
"@storybook/react-vite": "~10.4.6",
|
|
125
|
+
"@scure/base": "^2.2.0",
|
|
126
|
+
"@scure/bip39": "^2.2.0",
|
|
60
127
|
"@types/react": "^19.2.17",
|
|
61
|
-
"@
|
|
62
|
-
"@
|
|
63
|
-
"@
|
|
64
|
-
"@
|
|
65
|
-
"@
|
|
66
|
-
"@
|
|
67
|
-
"@
|
|
68
|
-
"@
|
|
69
|
-
"@xyo-network/sdk": "^7.0.
|
|
70
|
-
"@xyo-network/sdk-
|
|
128
|
+
"@xyo-network/advertising-payload-plugins": "^7.0.2",
|
|
129
|
+
"@xyo-network/archivist-storage": "^7.0.9",
|
|
130
|
+
"@xyo-network/diviner-address-history-model": "^7.0.9",
|
|
131
|
+
"@xyo-network/diviner-hash-lease": "^7.0.9",
|
|
132
|
+
"@xyo-network/diviner-huri": "^7.0.9",
|
|
133
|
+
"@xyo-network/diviner-schema-list": "^7.0.9",
|
|
134
|
+
"@xyo-network/diviner-schema-stats": "^7.0.9",
|
|
135
|
+
"@xyo-network/node-core-types": "^4.2.2",
|
|
136
|
+
"@xyo-network/sdk": "^7.0.9",
|
|
137
|
+
"@xyo-network/sdk-geo": "^3.0.3",
|
|
138
|
+
"@xyo-network/sdk-protocol": "^7.0.14",
|
|
139
|
+
"@xyo-network/typeof": "^5.3.30",
|
|
140
|
+
"@xyo-network/xns-record-payloadset-plugins": "^7.0.2",
|
|
71
141
|
"ajv": "^8.20.0",
|
|
72
142
|
"async-mutex": "^0.5.0",
|
|
143
|
+
"card-validator": "^10.0.4",
|
|
73
144
|
"clsx": "^2.1.1",
|
|
74
145
|
"debug": "^4.4.3",
|
|
75
|
-
"eslint": "^10.6.0",
|
|
76
146
|
"ethers": "^6.17.0",
|
|
77
|
-
"hash-wasm": "
|
|
147
|
+
"hash-wasm": "^4.12.0",
|
|
78
148
|
"idb": "^8.0.3",
|
|
79
149
|
"lru-cache": "^11.5.1",
|
|
150
|
+
"mapbox-gl": "^3.25.0",
|
|
80
151
|
"md5": "^2.3.0",
|
|
81
152
|
"numeral": "^2.0.6",
|
|
82
153
|
"observable-fns": "^0.6.1",
|
|
83
154
|
"query-string": "^9.4.1",
|
|
84
155
|
"react": "^19.2.7",
|
|
85
156
|
"react-dom": "^19.2.7",
|
|
157
|
+
"react-icons": "^5.7.0",
|
|
86
158
|
"react-router-dom": "^7.18.1",
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"viem": "^2.54.
|
|
90
|
-
"
|
|
159
|
+
"rollbar": "^3.1.0",
|
|
160
|
+
"store2": "^2.14.4",
|
|
161
|
+
"viem": "^2.54.3",
|
|
162
|
+
"webextension-polyfill": "^0.12.0",
|
|
91
163
|
"zod": "^4.4.3",
|
|
92
164
|
"zustand": "^5.0.14"
|
|
93
165
|
},
|
|
94
|
-
"peerDependencies": {
|
|
95
|
-
"@ariestools/sdk": "^7.0",
|
|
96
|
-
"@ariestools/sdk-react": "^10.0",
|
|
97
|
-
"@bitauth/libauth": "~3.0",
|
|
98
|
-
"@mui/icons-material": "^9.0",
|
|
99
|
-
"@mui/material": "^9.0",
|
|
100
|
-
"@noble/post-quantum": "~0.6.1",
|
|
101
|
-
"@opentelemetry/api": "^1.9",
|
|
102
|
-
"@opentelemetry/sdk-trace-base": "^2.7",
|
|
103
|
-
"@react-spring/web": "^10.1",
|
|
104
|
-
"@scure/base": "~2.2",
|
|
105
|
-
"@scure/bip39": "~2.2",
|
|
106
|
-
"@xylabs/eth-address": "^7.0",
|
|
107
|
-
"@xylabs/geo": "^7.0",
|
|
108
|
-
"@xylabs/pixel": "^7.0",
|
|
109
|
-
"@xylabs/threads": "^7.0",
|
|
110
|
-
"@xyo-network/sdk": "*",
|
|
111
|
-
"@xyo-network/sdk-protocol": "^7.0",
|
|
112
|
-
"ajv": "^8.20",
|
|
113
|
-
"async-mutex": "^0.5",
|
|
114
|
-
"clsx": "^2.1",
|
|
115
|
-
"debug": "^4.4",
|
|
116
|
-
"ethers": "^6.16",
|
|
117
|
-
"hash-wasm": "~4.12",
|
|
118
|
-
"idb": "^8.0",
|
|
119
|
-
"lru-cache": "^11.3",
|
|
120
|
-
"md5": "^2.3",
|
|
121
|
-
"numeral": "^2.0",
|
|
122
|
-
"observable-fns": "^0.6",
|
|
123
|
-
"query-string": "^9.4",
|
|
124
|
-
"react": "^19.2",
|
|
125
|
-
"react-dom": "^19.2",
|
|
126
|
-
"react-router-dom": "^7.15",
|
|
127
|
-
"viem": "^2.48",
|
|
128
|
-
"zod": "^4.4",
|
|
129
|
-
"zustand": "^5.0"
|
|
130
|
-
},
|
|
131
166
|
"publishConfig": {
|
|
132
167
|
"access": "public"
|
|
133
168
|
},
|
|
169
|
+
"deprecated": "Use @xyo-network/react-sdk/gas-price instead. Replace @xyo-network/react-gas-price with @xyo-network/react-sdk/gas-price. This package is a compatibility shim only and will not receive further updates.",
|
|
134
170
|
"docs": "dist/docs.json"
|
|
135
171
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EthereumGasPriceAvatar.d.ts","sourceRoot":"","sources":["../../../../src/components/Avatar/EthereumGasPriceAvatar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAEhD,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAMxD,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Avatar/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { CardProps } from '@mui/material';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { GasPriceWitnessUIBasePayload } from '../../types/index.ts';
|
|
4
|
-
export interface GasPriceCardHeaderProps extends CardProps {
|
|
5
|
-
parsedPayload?: GasPriceWitnessUIBasePayload;
|
|
6
|
-
title?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const GasPriceWitnessCardHeader: {
|
|
9
|
-
({ ref, title, parsedPayload, ...props }: GasPriceCardHeaderProps): React.JSX.Element;
|
|
10
|
-
displayName: string;
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=CardHeader.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CardHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/CardHeader/CardHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAA;AAIxE,MAAM,WAAW,uBAAwB,SAAQ,SAAS;IACxD,aAAa,CAAC,EAAE,4BAA4B,CAAA;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AACD,eAAO,MAAM,yBAAyB;8CAEnC,uBAAuB;;CAezB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/CardHeader/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { CardProps } from '@mui/material';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export interface GasFeeCardProps extends CardProps {
|
|
4
|
-
gasPrice?: number;
|
|
5
|
-
priorityFee?: number;
|
|
6
|
-
priorityFeeLabel?: string;
|
|
7
|
-
speed?: string;
|
|
8
|
-
speedPaperElevation?: number;
|
|
9
|
-
}
|
|
10
|
-
export declare const GasFeeCard: React.FC<GasFeeCardProps>;
|
|
11
|
-
//# sourceMappingURL=Card.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../src/components/GasFees/Card.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAK9C,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,MAAM,WAAW,eAAgB,SAAQ,SAAS;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,mBAAmB,CAAC,EAAE,MAAM,CAAA;CAC7B;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAiChD,CAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { FlexBoxProps } from '@ariestools/sdk-react/flexbox';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export interface GasPriceBoxProps extends FlexBoxProps {
|
|
4
|
-
gasPrice?: number;
|
|
5
|
-
}
|
|
6
|
-
export declare const GasPriceBox: React.FC<GasPriceBoxProps>;
|
|
7
|
-
//# sourceMappingURL=GasPriceBox.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GasPriceBox.d.ts","sourceRoot":"","sources":["../../../../../src/components/GasFees/components/GasPriceBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAIjE,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,gBAAiB,SAAQ,YAAY;IACpD,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAwBlD,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GweiLabelTypography.d.ts","sourceRoot":"","sources":["../../../../../src/components/GasFees/components/GweiLabelTypography.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAElE,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAI3D,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { FlexBoxProps } from '@ariestools/sdk-react/flexbox';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export interface PriorityFeeBoxProps extends FlexBoxProps {
|
|
4
|
-
priorityFee?: number;
|
|
5
|
-
priorityFeeLabel?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const PriorityFeeBox: React.FC<PriorityFeeBoxProps>;
|
|
8
|
-
//# sourceMappingURL=PriorityFeeBox.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PriorityFeeBox.d.ts","sourceRoot":"","sources":["../../../../../src/components/GasFees/components/PriorityFeeBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAKjE,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACvD,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAyBxD,CAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { FlexBoxProps } from '@ariestools/sdk-react/flexbox';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export interface SpeedBoxProps extends FlexBoxProps {
|
|
4
|
-
speed?: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const SpeedBox: React.FC<SpeedBoxProps>;
|
|
7
|
-
//# sourceMappingURL=SpeedBox.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SpeedBox.d.ts","sourceRoot":"","sources":["../../../../../src/components/GasFees/components/SpeedBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAIjE,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,WAAW,aAAc,SAAQ,YAAY;IACjD,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAkB5C,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/GasFees/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,sBAAsB,CAAA;AACpC,cAAc,gBAAgB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/GasFees/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { FlexBoxProps } from '@ariestools/sdk-react/flexbox';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { GasPriceWitnessUIBasePayload } from '../types/index.ts';
|
|
4
|
-
export interface GasPriceWitnessHeaderBoxProps extends FlexBoxProps {
|
|
5
|
-
heading?: string;
|
|
6
|
-
parsedPayload?: GasPriceWitnessUIBasePayload;
|
|
7
|
-
}
|
|
8
|
-
export declare const GasPriceWitnessHeaderBox: React.FC<GasPriceWitnessHeaderBoxProps>;
|
|
9
|
-
//# sourceMappingURL=HeaderBox.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderBox.d.ts","sourceRoot":"","sources":["../../../src/components/HeaderBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAA;AAIrE,MAAM,WAAW,6BAA8B,SAAQ,YAAY;IACjE,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,aAAa,CAAC,EAAE,4BAA4B,CAAA;CAC7C;AAED,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAe5E,CAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { FlexBoxProps } from '@ariestools/sdk-react/flexbox';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export interface GasPriceEstimateActionsBoxProps extends FlexBoxProps {
|
|
4
|
-
baseFee?: number;
|
|
5
|
-
baseFeeLabel?: string;
|
|
6
|
-
blockNumber?: number;
|
|
7
|
-
blockNumberLabel?: string;
|
|
8
|
-
timestamp?: number;
|
|
9
|
-
}
|
|
10
|
-
export declare const GasPriceHeaderActionsBox: React.FC<GasPriceEstimateActionsBoxProps>;
|
|
11
|
-
//# sourceMappingURL=Actions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Actions.d.ts","sourceRoot":"","sources":["../../../../src/components/HeaderComponents/Actions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAGjE,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,WAAW,+BAAgC,SAAQ,YAAY;IACnE,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,+BAA+B,CA4B9E,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { TypographyExProps } from '@xyo-network/react-shared';
|
|
2
|
-
import type { PropsWithChildren } from 'react';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
export interface GasPriceHeaderTypographyProps extends TypographyExProps, PropsWithChildren {
|
|
5
|
-
heading?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const GasPriceHeaderTypography: React.FC<GasPriceHeaderTypographyProps>;
|
|
8
|
-
//# sourceMappingURL=Header.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../../src/components/HeaderComponents/Header/Header.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAElE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,6BAA8B,SAAQ,iBAAiB,EAAE,iBAAiB;IACzF,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAY5E,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { TypographyExProps } from '@xyo-network/react-shared';
|
|
2
|
-
import type { ReactNode } from 'react';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
export interface GasPriceHeadingTypographyProps extends TypographyExProps {
|
|
5
|
-
children?: ReactNode;
|
|
6
|
-
heading?: string;
|
|
7
|
-
networkIcon?: ReactNode;
|
|
8
|
-
}
|
|
9
|
-
export declare const GasPriceHeadingTypography: React.FC<GasPriceHeadingTypographyProps>;
|
|
10
|
-
//# sourceMappingURL=Heading.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../../../../src/components/HeaderComponents/Header/Heading.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAElE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,WAAW,8BAA+B,SAAQ,iBAAiB;IACvE,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,WAAW,CAAC,EAAE,SAAS,CAAA;CACxB;AAED,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CAmB9E,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/HeaderComponents/Header/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/HeaderComponents/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,mBAAmB,CAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { FlexBoxProps } from '@ariestools/sdk-react/flexbox';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export interface ToggleRawPayloadBoxProps extends FlexBoxProps {
|
|
4
|
-
gasPricePayload?: object;
|
|
5
|
-
}
|
|
6
|
-
export declare const ToggleRawPayloadBox: React.FC<ToggleRawPayloadBoxProps>;
|
|
7
|
-
//# sourceMappingURL=ToggleRawPayloadBox.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ToggleRawPayloadBox.d.ts","sourceRoot":"","sources":["../../../../src/components/RawPayload/ToggleRawPayloadBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAKjE,OAAO,KAAmB,MAAM,OAAO,CAAA;AAEvC,MAAM,WAAW,wBAAyB,SAAQ,YAAY;IAC5D,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA2BlE,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/RawPayload/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from './Avatar/index.ts';
|
|
2
|
-
export * from './CardHeader/index.ts';
|
|
3
|
-
export * from './GasFees/index.ts';
|
|
4
|
-
export * from './HeaderBox.tsx';
|
|
5
|
-
export * from './HeaderComponents/index.ts';
|
|
6
|
-
export * from './layout/index.ts';
|
|
7
|
-
export * from './RawPayload/index.ts';
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,6BAA6B,CAAA;AAC3C,cAAc,mBAAmB,CAAA;AACjC,cAAc,uBAAuB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAA;AAEvD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,OAAO,CAAC,CAQhF,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StyledCardHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/StyledCardHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAU,MAAM,eAAe,CAAA;AAClD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,CAG5E,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,wBAAwB,CAAA"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export interface GasPriceWitnessUIBasePayload {
|
|
2
|
-
baseFee?: UIField;
|
|
3
|
-
blockNumber?: UIField;
|
|
4
|
-
gasPrice?: GasPrice[];
|
|
5
|
-
schema?: string;
|
|
6
|
-
timestamp?: number;
|
|
7
|
-
website?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface GasPrice {
|
|
10
|
-
price?: UIField;
|
|
11
|
-
priorityFee?: UIField;
|
|
12
|
-
}
|
|
13
|
-
export interface UIField {
|
|
14
|
-
label?: string;
|
|
15
|
-
value?: number;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=GasPriceWitnessPayload.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GasPriceWitnessPayload.d.ts","sourceRoot":"","sources":["../../../src/types/GasPriceWitnessPayload.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,4BAA4B;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAA;IACrB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,MAAM,WAAW,OAAO;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAA"}
|