@xyo-network/react-storybook 2.64.0 → 2.64.3

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.
Files changed (40) hide show
  1. package/dist/browser/DeprecateStory.js +3 -2
  2. package/dist/browser/DeprecateStory.js.map +1 -1
  3. package/dist/browser/WithMapboxSetup.js +3 -2
  4. package/dist/browser/WithMapboxSetup.js.map +1 -1
  5. package/dist/browser/WithRefDecorator.js +3 -2
  6. package/dist/browser/WithRefDecorator.js.map +1 -1
  7. package/dist/browser/defaultSeedPhrase.js +2 -1
  8. package/dist/browser/defaultSeedPhrase.js.map +1 -1
  9. package/dist/browser/index.js +781 -12
  10. package/dist/browser/index.js.map +1 -1
  11. package/dist/browser/sampleAddressHistory.js +3 -2
  12. package/dist/browser/sampleAddressHistory.js.map +1 -1
  13. package/dist/browser/sampleBlock.js +4 -3
  14. package/dist/browser/sampleBlock.js.map +1 -1
  15. package/dist/browser/sampleCoinGeckoPayload.js +2 -1
  16. package/dist/browser/sampleCoinGeckoPayload.js.map +1 -1
  17. package/dist/browser/sampleEthereumGasDivinerPayload.js +3 -2
  18. package/dist/browser/sampleEthereumGasDivinerPayload.js.map +1 -1
  19. package/dist/browser/sampleGasPricePayloads/blocknative.js +2 -1
  20. package/dist/browser/sampleGasPricePayloads/blocknative.js.map +1 -1
  21. package/dist/browser/sampleGasPricePayloads/ethGasStation.js +2 -1
  22. package/dist/browser/sampleGasPricePayloads/ethGasStation.js.map +1 -1
  23. package/dist/browser/sampleGasPricePayloads/etherchainV1.js +2 -1
  24. package/dist/browser/sampleGasPricePayloads/etherchainV1.js.map +1 -1
  25. package/dist/browser/sampleGasPricePayloads/etherchainV2.js +2 -1
  26. package/dist/browser/sampleGasPricePayloads/etherchainV2.js.map +1 -1
  27. package/dist/browser/sampleGasPricePayloads/ethers.js +2 -1
  28. package/dist/browser/sampleGasPricePayloads/ethers.js.map +1 -1
  29. package/dist/browser/sampleGasPricePayloads/etherscan.js +2 -1
  30. package/dist/browser/sampleGasPricePayloads/etherscan.js.map +1 -1
  31. package/dist/browser/sampleGasPricePayloads/index.js +173 -6
  32. package/dist/browser/sampleGasPricePayloads/index.js.map +1 -1
  33. package/dist/browser/samplePayload.js +4 -3
  34. package/dist/browser/samplePayload.js.map +1 -1
  35. package/dist/browser/sampleUniswapPayload.js +3 -2
  36. package/dist/browser/sampleUniswapPayload.js.map +1 -1
  37. package/dist/browser/useAppThemeDecorator.js +3 -2
  38. package/dist/browser/useAppThemeDecorator.js.map +1 -1
  39. package/dist/docs.json +315 -315
  40. package/package.json +10 -10
@@ -1,13 +1,782 @@
1
- export * from "./defaultSeedPhrase";
2
- export * from "./DeprecateStory";
3
- export * from "./sampleAddressHistory";
4
- export * from "./sampleBlock";
5
- export * from "./sampleCoinGeckoPayload";
6
- export * from "./sampleEthereumGasDivinerPayload";
7
- export * from "./sampleGasPricePayloads";
8
- export * from "./samplePayload";
9
- export * from "./sampleUniswapPayload";
10
- export * from "./useAppThemeDecorator";
11
- export * from "./WithMapboxSetup";
12
- export * from "./WithRefDecorator";
1
+ // src/defaultSeedPhrase.ts
2
+ var DefaultSeedPhrase = "later puppy sound rebuild rebuild noise ozone amazing hope broccoli crystal grief";
3
+
4
+ // src/DeprecateStory.tsx
5
+ import { Alert, AlertTitle } from "@mui/material";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
+ var DeprecateStory = ({ message }) => {
8
+ return /* @__PURE__ */ jsxs(Alert, { severity: "error", sx: { marginBottom: "24px" }, children: [
9
+ /* @__PURE__ */ jsx(AlertTitle, { children: "Story has been Deprecated" }),
10
+ message
11
+ ] });
12
+ };
13
+
14
+ // src/sampleAddressHistory.ts
15
+ import { BoundWitnessSchema } from "@xyo-network/boundwitness-model";
16
+ var sampleAddressHistory = [
17
+ {
18
+ _signatures: ["186de1122640fc9d6577765e0b0f6822860994a0fbd1f80354963f89eebc3da01d0a68c36d2c6facab89bd777964c0d5b76103eb35b7900cc69bb1b90231117e"],
19
+ addresses: ["fc0f8a536fe657ebbfa7a3b81bee6053c73debec"],
20
+ payload_hashes: ["97e693d0eb86eec1ca28f2bb0c77ddaae821fd0a9adc51c1521cdd754e2e207d"],
21
+ payload_schemas: ["network.xyo.id"],
22
+ previous_hashes: ["8f914f739a96cb8baffaf156724240e4d51ab94cd4a374754c4e8f8281dc4191"],
23
+ schema: BoundWitnessSchema,
24
+ timestamp: 1666830950083
25
+ },
26
+ {
27
+ _signatures: ["35c4aa262694cdf6c72f473e4e2a4b164b35a5f228a6ed1c8345b8a6b7b0d192d6868fc038a09258f2b7016d04157640d7555109102e3c072556f8c4c002543f"],
28
+ addresses: ["fc0f8a536fe657ebbfa7a3b81bee6053c73debec"],
29
+ payload_hashes: ["b01dd00648fafa4488ff461c812e80e5c657939da8c7d4bb056177e241554449"],
30
+ payload_schemas: ["network.xyo.id"],
31
+ previous_hashes: ["7456e3a653f6b3cac3ee0204cef37152eeb8cfeef3e20a0e177abf7ec36e0236"],
32
+ schema: BoundWitnessSchema,
33
+ timestamp: 1666830946487
34
+ },
35
+ {
36
+ _signatures: ["f273d8a8587ec2c6c9e91416eec66fdd441156f9ce2fb54e3e78e885aa792017e10ea36af44d9453422ffbafd58732a80387ab57c93ae0618b09aa4847f5e457"],
37
+ addresses: ["fc0f8a536fe657ebbfa7a3b81bee6053c73debec"],
38
+ payload_hashes: ["03be02066ed31dc92ffd371a48026eac5770a8647160704b70e8dca8fc64cb0a"],
39
+ payload_schemas: ["network.xyo.id"],
40
+ previous_hashes: ["053d47a27012548dc0b3bb469e6598c7a48e81d3a552a790b455922cdb0750ba"],
41
+ schema: BoundWitnessSchema,
42
+ timestamp: 1666830867311
43
+ },
44
+ {
45
+ _signatures: ["79960dd5c590a1007bc526729a3ffee3153bb37ace383485ed298b3ba94939fffade54980a02c57119238bd9984d2860b822d29dbb36b04251fab83354b5a7cc"],
46
+ addresses: ["fc0f8a536fe657ebbfa7a3b81bee6053c73debec"],
47
+ payload_hashes: ["5ebf3c990e08174bcf3987dc94ff0a4ec33b6ba806d3f3ec50e0966395fc1c76"],
48
+ payload_schemas: ["network.xyo.id"],
49
+ previous_hashes: ["9ae219b4d71a5c46321a21cdef08540fafe7e6d51440ba34699883bdaf15e61d"],
50
+ schema: BoundWitnessSchema,
51
+ timestamp: 1666830864908
52
+ },
53
+ {
54
+ _signatures: ["03830c7e9345a80390524543eb4ca097530bafa5d109b91a5a328399fcffe5af3a32b3a66658c045d013cf9b4fd598cafc9374bd0004d0c1bb2224ac812b855a"],
55
+ addresses: ["fc0f8a536fe657ebbfa7a3b81bee6053c73debec"],
56
+ payload_hashes: ["ce405ae29915ea7b5f62a87c316bf4f46052c7bb0a36e67e621fedb1ec96fec5"],
57
+ payload_schemas: ["network.xyo.id"],
58
+ previous_hashes: ["322e48abf142b99635ea51c73d7d6225c04514348ffd3c37399c39b0e17d4972"],
59
+ schema: BoundWitnessSchema,
60
+ timestamp: 1666830860155
61
+ },
62
+ {
63
+ _signatures: ["2ddd7f65ad5ccdce83318f47040db7f45ef76142d2bb9c549241ac59619bf00a671f1ca5755d4e4b0e59fb8eb11c31e1d26c5d376eb57d8eeee7156469ae770b"],
64
+ addresses: ["fc0f8a536fe657ebbfa7a3b81bee6053c73debec"],
65
+ payload_hashes: ["84efe9b19a752d3d997cfe5e7c336b1b090669fc0172f649825b2f24c8d82876"],
66
+ payload_schemas: ["network.xyo.id"],
67
+ previous_hashes: [null],
68
+ schema: BoundWitnessSchema,
69
+ timestamp: 1666830779473
70
+ }
71
+ ];
72
+ var randomizedSampleAddressHistory = [
73
+ {
74
+ _signatures: ["35c4aa262694cdf6c72f473e4e2a4b164b35a5f228a6ed1c8345b8a6b7b0d192d6868fc038a09258f2b7016d04157640d7555109102e3c072556f8c4c002543f"],
75
+ addresses: ["fc0f8a536fe657ebbfa7a3b81bee6053c73debec"],
76
+ payload_hashes: ["b01dd00648fafa4488ff461c812e80e5c657939da8c7d4bb056177e241554449"],
77
+ payload_schemas: ["network.xyo.id"],
78
+ previous_hashes: ["7456e3a653f6b3cac3ee0204cef37152eeb8cfeef3e20a0e177abf7ec36e0236"],
79
+ schema: BoundWitnessSchema,
80
+ timestamp: 1666830946487
81
+ },
82
+ {
83
+ _signatures: ["79960dd5c590a1007bc526729a3ffee3153bb37ace383485ed298b3ba94939fffade54980a02c57119238bd9984d2860b822d29dbb36b04251fab83354b5a7cc"],
84
+ addresses: ["fc0f8a536fe657ebbfa7a3b81bee6053c73debec"],
85
+ payload_hashes: ["5ebf3c990e08174bcf3987dc94ff0a4ec33b6ba806d3f3ec50e0966395fc1c76"],
86
+ payload_schemas: ["network.xyo.id"],
87
+ previous_hashes: ["9ae219b4d71a5c46321a21cdef08540fafe7e6d51440ba34699883bdaf15e61d"],
88
+ schema: BoundWitnessSchema,
89
+ timestamp: 1666830864908
90
+ },
91
+ {
92
+ _signatures: ["186de1122640fc9d6577765e0b0f6822860994a0fbd1f80354963f89eebc3da01d0a68c36d2c6facab89bd777964c0d5b76103eb35b7900cc69bb1b90231117e"],
93
+ addresses: ["fc0f8a536fe657ebbfa7a3b81bee6053c73debec"],
94
+ payload_hashes: ["97e693d0eb86eec1ca28f2bb0c77ddaae821fd0a9adc51c1521cdd754e2e207d"],
95
+ payload_schemas: ["network.xyo.id"],
96
+ previous_hashes: ["8f914f739a96cb8baffaf156724240e4d51ab94cd4a374754c4e8f8281dc4191"],
97
+ schema: BoundWitnessSchema,
98
+ timestamp: 1666830950083
99
+ },
100
+ {
101
+ _signatures: ["f273d8a8587ec2c6c9e91416eec66fdd441156f9ce2fb54e3e78e885aa792017e10ea36af44d9453422ffbafd58732a80387ab57c93ae0618b09aa4847f5e457"],
102
+ addresses: ["fc0f8a536fe657ebbfa7a3b81bee6053c73debec"],
103
+ payload_hashes: ["03be02066ed31dc92ffd371a48026eac5770a8647160704b70e8dca8fc64cb0a"],
104
+ payload_schemas: ["network.xyo.id"],
105
+ previous_hashes: ["053d47a27012548dc0b3bb469e6598c7a48e81d3a552a790b455922cdb0750ba"],
106
+ schema: BoundWitnessSchema,
107
+ timestamp: 1666830867311
108
+ },
109
+ {
110
+ _signatures: ["2ddd7f65ad5ccdce83318f47040db7f45ef76142d2bb9c549241ac59619bf00a671f1ca5755d4e4b0e59fb8eb11c31e1d26c5d376eb57d8eeee7156469ae770b"],
111
+ addresses: ["fc0f8a536fe657ebbfa7a3b81bee6053c73debec"],
112
+ payload_hashes: ["84efe9b19a752d3d997cfe5e7c336b1b090669fc0172f649825b2f24c8d82876"],
113
+ payload_schemas: ["network.xyo.id"],
114
+ previous_hashes: [null],
115
+ schema: BoundWitnessSchema,
116
+ timestamp: 1666830779473
117
+ },
118
+ {
119
+ _signatures: ["03830c7e9345a80390524543eb4ca097530bafa5d109b91a5a328399fcffe5af3a32b3a66658c045d013cf9b4fd598cafc9374bd0004d0c1bb2224ac812b855a"],
120
+ addresses: ["fc0f8a536fe657ebbfa7a3b81bee6053c73debec"],
121
+ payload_hashes: ["ce405ae29915ea7b5f62a87c316bf4f46052c7bb0a36e67e621fedb1ec96fec5"],
122
+ payload_schemas: ["network.xyo.id"],
123
+ previous_hashes: ["322e48abf142b99635ea51c73d7d6225c04514348ffd3c37399c39b0e17d4972"],
124
+ schema: BoundWitnessSchema,
125
+ timestamp: 1666830860155
126
+ }
127
+ ];
128
+
129
+ // src/sampleBlock.ts
130
+ var sampleBlock = {
131
+ _signatures: ["d0969a4edd2cbb55f879bb68733a36509dab7516c52e3066fd2e248ee80f98e36bdd56a0711140cfbc55106d4c65fe7ed58df8c03c5d360b34d3c74ea3b6fe1f"],
132
+ addresses: ["9c6df83b84297985d3ccc1f721ba1c2e3608c751", "BF005E04EF223aa18c0fBFF6B41BbB0227c45A48"],
133
+ payload_hashes: [
134
+ "43df96261884ec99e0d7667120d036065c1f6a88dbb999f30d7c820dc9a37ee5",
135
+ "31b3a835ebad2b6f2d6cc16ec855b41f237116f52b515aac9a8f555fec05fa3e",
136
+ "97e693d0eb86eec1ca28f2bb0c77ddaae821fd0a9adc51c1521cdd754e2e207d",
137
+ "be39d7b3b3383e65405236c0c314e4601eb5e98859266fef4e5caf22b16d5706",
138
+ "21ab79e5fae74ccc22d611a42732f9257e7a29a4da744e51ec99feda948e1115",
139
+ "bd5825ee3cefa969ded2dd1a35d9f28a9a0f312703e7f57bf8554ccda24f0b5f"
140
+ ],
141
+ payload_schemas: [
142
+ "network.xyo.location",
143
+ "network.xyo.id",
144
+ "network.xyo.id",
145
+ "network.xyo.payload",
146
+ "network.xyo.location.range.answer",
147
+ "network.xyo.location.range.query"
148
+ ],
149
+ previous_hashes: [null],
150
+ schema: "network.xyo.boundwitness"
151
+ };
152
+ var sampleBlockWithBoundWitnessPayload = {
153
+ _signatures: ["d0969a4edd2cbb55f879bb68733a36509dab7516c52e3066fd2e248ee80f98e36bdd56a0711140cfbc55106d4c65fe7ed58df8c03c5d360b34d3c74ea3b6fe1f"],
154
+ addresses: ["9c6df83b84297985d3ccc1f721ba1c2e3608c751", "BF005E04EF223aa18c0fBFF6B41BbB0227c45A48"],
155
+ payload_hashes: [
156
+ "43df96261884ec99e0d7667120d036065c1f6a88dbb999f30d7c820dc9a37ee5",
157
+ "31b3a835ebad2b6f2d6cc16ec855b41f237116f52b515aac9a8f555fec05fa3e",
158
+ "97e693d0eb86eec1ca28f2bb0c77ddaae821fd0a9adc51c1521cdd754e2e207d",
159
+ "be39d7b3b3383e65405236c0c314e4601eb5e98859266fef4e5caf22b16d5706",
160
+ "21ab79e5fae74ccc22d611a42732f9257e7a29a4da744e51ec99feda948e1115",
161
+ "bd5825ee3cefa969ded2dd1a35d9f28a9a0f312703e7f57bf8554ccda24f0b5f"
162
+ ],
163
+ payload_schemas: [
164
+ "network.xyo.boundwitness",
165
+ "network.xyo.id",
166
+ "network.xyo.id",
167
+ "network.xyo.payload",
168
+ "network.xyo.location.range.answer",
169
+ "network.xyo.location.range.query"
170
+ ],
171
+ previous_hashes: [null],
172
+ schema: "network.xyo.boundwitness"
173
+ };
174
+ var sampleBlockWithPayloads = {
175
+ _archive: "temp",
176
+ _client: "js",
177
+ _hash: "b31230e7f3386a63acc64cb5f89e5353d5f9379b3bd3ae7385c47b2e600fcbb2",
178
+ _payloads: [
179
+ {
180
+ _archive: "temp",
181
+ _client: "js",
182
+ _hash: "ebeb156c9aa0db6e5bf9fe3bfcab5e7f2765235587667adc34c1e8966f899349",
183
+ _observeDuration: 48,
184
+ _timestamp: 1651520931057,
185
+ definition: {
186
+ $id: "'network.xyo.payload'",
187
+ $schema: "http://json-schema.org/draft-07/schema#",
188
+ properties: {
189
+ schema: {
190
+ type: "'string'"
191
+ }
192
+ },
193
+ required: ["'schema'"],
194
+ type: "'object'"
195
+ },
196
+ schema: "network.xyo.payload"
197
+ },
198
+ {
199
+ _archive: "temp",
200
+ _client: "js",
201
+ _hash: "930443bfebbdd0c9d14d8787def961ab41838fe9681f64acdad82c84e8803b59",
202
+ _observeDuration: 47,
203
+ _timestamp: 1651520931057,
204
+ salt: "117243fd-ee33-45af-b82c-d2cfeb1f85c9",
205
+ schema: "network.xyo.id"
206
+ }
207
+ ],
208
+ _signatures: ["0c742ec946ae28759e997dab4a7d3ca2fa1315e76b6a60c985bd6508b1f870f0ce914a927e15af6ed84f113be4b14ee1a432a896fc1294fc33fa1bb557f1ad6a"],
209
+ _timestamp: 1651520931051,
210
+ addresses: ["9e828f8ba1e8e212398b0fb8ef2a6167e91db24c"],
211
+ payload_hashes: [
212
+ "ebeb156c9aa0db6e5bf9fe3bfcab5e7f2765235587667adc34c1e8966f899349",
213
+ "930443bfebbdd0c9d14d8787def961ab41838fe9681f64acdad82c84e8803b59"
214
+ ],
215
+ payload_schemas: ["network.xyo.payload", "network.xyo.id"],
216
+ previous_hashes: [null],
217
+ schema: "network.xyo.boundwitness"
218
+ };
219
+
220
+ // src/sampleCoinGeckoPayload.ts
221
+ var sampleCoinGeckoPayload = {
222
+ assets: {
223
+ ada: {
224
+ btc: 2121e-8,
225
+ eth: 28602e-8,
226
+ eur: 0.455045,
227
+ usd: 0.451912
228
+ },
229
+ btc: {
230
+ btc: 1,
231
+ eth: 13.480925,
232
+ eur: 21444,
233
+ usd: 21297
234
+ },
235
+ busd: {
236
+ btc: 4691e-8,
237
+ eth: 63254e-8,
238
+ eur: 1.006,
239
+ usd: 0.999271
240
+ },
241
+ doge: {
242
+ btc: 315e-8,
243
+ eth: 4251e-8,
244
+ eur: 0.067639,
245
+ usd: 0.067173
246
+ },
247
+ dot: {
248
+ btc: 33957e-8,
249
+ eth: 457909e-8,
250
+ eur: 7.28,
251
+ usd: 7.23
252
+ },
253
+ eth: {
254
+ btc: 0.07416836,
255
+ eth: 1,
256
+ eur: 1590.95,
257
+ usd: 1580
258
+ },
259
+ sol: {
260
+ btc: 162396e-8,
261
+ eth: 0.02189873,
262
+ eur: 34.83,
263
+ usd: 34.59
264
+ },
265
+ usdc: {
266
+ btc: 4691e-8,
267
+ eth: 63259e-8,
268
+ eur: 1.006,
269
+ usd: 0.999341
270
+ },
271
+ usdt: {
272
+ btc: 4697e-8,
273
+ eth: 63328e-8,
274
+ eur: 1.008,
275
+ usd: 1.001
276
+ },
277
+ wbtc: {
278
+ btc: 0.99985708,
279
+ eth: 13.482839,
280
+ eur: 21447,
281
+ usd: 21300
282
+ },
283
+ xyo: {
284
+ btc: 406347e-12,
285
+ eth: 548e-8,
286
+ eur: 871642e-8,
287
+ usd: 86564e-7
288
+ }
289
+ },
290
+ schema: "network.xyo.crypto.market.coingecko",
291
+ timestamp: 1661188759757
292
+ };
293
+
294
+ // src/sampleEthereumGasDivinerPayload.ts
295
+ var sampleEthereumGasDivinerPayload = {
296
+ baseFee: 13.3646505198,
297
+ feePerGas: {
298
+ high: 17.3060964302,
299
+ low: 12.155000000000001,
300
+ medium: 12.5625,
301
+ veryHigh: 16.5462485885
302
+ },
303
+ priorityFeePerGas: {
304
+ high: 1.075,
305
+ low: 0.7466666666666667,
306
+ medium: 0.8566666666666668,
307
+ veryHigh: 1.2766666666666666
308
+ },
309
+ schema: "network.xyo.blockchain.ethereum.gas",
310
+ timestamp: 1669819808305
311
+ };
312
+ var sampleEthereumGasDivinerPayloadMissingFees = {
313
+ feePerGas: {},
314
+ priorityFeePerGas: {},
315
+ schema: "network.xyo.blockchain.ethereum.gas",
316
+ timestamp: 1659071465718
317
+ };
318
+
319
+ // src/sampleGasPricePayloads/blocknative.ts
320
+ var sampleBlocknativeGasPricePayload = {
321
+ blockPrices: [
322
+ {
323
+ baseFeePerGas: 26.32847478,
324
+ blockNumber: 16134624,
325
+ estimatedPrices: [
326
+ {
327
+ confidence: 99,
328
+ maxFeePerGas: 41.86,
329
+ maxPriorityFeePerGas: 1.18,
330
+ price: 27
331
+ },
332
+ {
333
+ confidence: 95,
334
+ maxFeePerGas: 41.54,
335
+ maxPriorityFeePerGas: 0.86,
336
+ price: 27
337
+ },
338
+ {
339
+ confidence: 90,
340
+ maxFeePerGas: 41.15,
341
+ maxPriorityFeePerGas: 0.47,
342
+ price: 26
343
+ },
344
+ {
345
+ confidence: 80,
346
+ maxFeePerGas: 41,
347
+ maxPriorityFeePerGas: 0.32,
348
+ price: 26
349
+ },
350
+ {
351
+ confidence: 70,
352
+ maxFeePerGas: 40.93,
353
+ maxPriorityFeePerGas: 0.25,
354
+ price: 26
355
+ }
356
+ ],
357
+ estimatedTransactionCount: 186
358
+ }
359
+ ],
360
+ currentBlockNumber: 16134623,
361
+ estimatedBaseFees: [
362
+ {
363
+ "pending+1": [
364
+ {
365
+ baseFee: 29.62,
366
+ confidence: 99
367
+ }
368
+ ]
369
+ },
370
+ {
371
+ "pending+2": [
372
+ {
373
+ baseFee: 33.33,
374
+ confidence: 99
375
+ }
376
+ ]
377
+ },
378
+ {
379
+ "pending+3": [
380
+ {
381
+ baseFee: 37.4,
382
+ confidence: 99
383
+ }
384
+ ]
385
+ },
386
+ {
387
+ "pending+4": [
388
+ {
389
+ baseFee: 39.26,
390
+ confidence: 99
391
+ }
392
+ ]
393
+ },
394
+ {
395
+ "pending+5": [
396
+ {
397
+ baseFee: 40.68,
398
+ confidence: 99
399
+ }
400
+ ]
401
+ }
402
+ ],
403
+ maxPrice: 64,
404
+ msSinceLastBlock: 9645,
405
+ network: "main",
406
+ schema: "network.xyo.blockchain.ethereum.gas.blocknative",
407
+ system: "ethereum",
408
+ timestamp: 1670437800246,
409
+ unit: "gwei"
410
+ };
411
+
412
+ // src/sampleGasPricePayloads/etherchainV1.ts
413
+ var sampleEtherchainV1GasPricePayload = {
414
+ currentBaseFee: 28.3,
415
+ fast: 0.9,
416
+ fastest: 1.5,
417
+ recommendedBaseFee: 57.5,
418
+ safeLow: 0.2,
419
+ schema: "network.xyo.blockchain.ethereum.gas.etherchain.v1",
420
+ standard: 0.4,
421
+ timestamp: 1670437800313
422
+ };
423
+
424
+ // src/sampleGasPricePayloads/etherchainV2.ts
425
+ var sampleEtherchainV2GasPricePayload = {
426
+ code: 200,
427
+ data: {
428
+ fast: 26423463713,
429
+ priceUSD: 1229.43,
430
+ rapid: 37143856713,
431
+ slow: 13e9,
432
+ standard: 21366997291,
433
+ timestamp: 1670437795342
434
+ },
435
+ schema: "network.xyo.blockchain.ethereum.gas.etherchain.v2",
436
+ timestamp: 1670437800338
437
+ };
438
+
439
+ // src/sampleGasPricePayloads/ethers.ts
440
+ var sampleEthersGasPricePayload = {
441
+ gasPrice: 26770943129,
442
+ lastBaseFeePerGas: 26494335502,
443
+ maxFeePerGas: 54488671004,
444
+ maxPriorityFeePerGas: 15e8,
445
+ schema: "network.xyo.blockchain.ethereum.gas.ethers",
446
+ timestamp: 1670437800345
447
+ };
448
+
449
+ // src/sampleGasPricePayloads/etherscan.ts
450
+ var sampleEtherscanGasPricePayload = {
451
+ message: "OK",
452
+ result: {
453
+ FastGasPrice: "35",
454
+ LastBlock: "16134573",
455
+ ProposeGasPrice: "35",
456
+ SafeGasPrice: "34",
457
+ gasUsedRatio: "0.4491729,0.440816333333333,0.480461266666667,0.373305033333333,0.322907566666667",
458
+ suggestBaseFee: "33.952097068"
459
+ },
460
+ schema: "network.xyo.blockchain.ethereum.gas.etherscan",
461
+ status: "1",
462
+ timestamp: 1670437200510
463
+ };
464
+
465
+ // src/sampleGasPricePayloads/ethGasStation.ts
466
+ var sampleEthGasStationGasPricePayload = {
467
+ baseFee: 37,
468
+ blockNumber: 16134572,
469
+ blockTime: 11.88,
470
+ gasPrice: {
471
+ fast: 84,
472
+ instant: 97,
473
+ standard: 53
474
+ },
475
+ nextBaseFee: 37,
476
+ priorityFee: {
477
+ fast: 5,
478
+ instant: 14,
479
+ standard: 2
480
+ },
481
+ schema: "network.xyo.blockchain.ethereum.gas.ethgasstation",
482
+ timestamp: 1670437200687
483
+ };
484
+
485
+ // src/samplePayload.ts
486
+ import { PayloadBuilder } from "@xyo-network/payload-builder";
487
+ var samplePayloadFromBuilder = {
488
+ ...new PayloadBuilder({ schema: "network.xyo.temp" }).fields({ test: "hello" }).build(),
489
+ _archive: "temp"
490
+ };
491
+ var sampleIdPayload = {
492
+ salt: "81b2372a-b4f0-4ab5-8642-c4e6de46a1cf",
493
+ schema: "network.xyo.id"
494
+ };
495
+ var sampleSystemInfoBrowserPayload = {
496
+ bowser: {
497
+ browser: {
498
+ name: "Chrome",
499
+ version: "104.0.0.0"
500
+ },
501
+ engine: {
502
+ name: "Blink"
503
+ },
504
+ os: {
505
+ name: "Windows",
506
+ version: "NT 10.0",
507
+ versionName: "10"
508
+ },
509
+ platform: {
510
+ type: "desktop"
511
+ }
512
+ },
513
+ schema: "network.xyo.system.info.browser"
514
+ };
515
+
516
+ // src/sampleUniswapPayload.ts
517
+ var sampleUniswapPayload = {
518
+ pairs: [
519
+ {
520
+ tokens: [
521
+ {
522
+ address: "0x55296f69f40Ea6d20E478533C15A6B08B654E758",
523
+ symbol: "xyo",
524
+ value: 688928e-11
525
+ },
526
+ {
527
+ address: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
528
+ symbol: "weth",
529
+ value: 145153
530
+ }
531
+ ]
532
+ },
533
+ {
534
+ tokens: [
535
+ {
536
+ address: "0x55296f69f40Ea6d20E478533C15A6B08B654E758",
537
+ symbol: "xyo",
538
+ value: 0.0119766
539
+ },
540
+ {
541
+ address: "0xdAC17F958D2ee523a2206206994597C13D831ec7",
542
+ symbol: "usdt",
543
+ value: 83.496
544
+ }
545
+ ]
546
+ },
547
+ {
548
+ tokens: [
549
+ {
550
+ address: "0x55296f69f40Ea6d20E478533C15A6B08B654E758",
551
+ symbol: "xyo",
552
+ value: 0.0119815
553
+ },
554
+ {
555
+ address: "0x6B175474E89094C44Da98b954EedeAC495271d0F",
556
+ symbol: "dai",
557
+ value: 83.4619
558
+ }
559
+ ]
560
+ },
561
+ {
562
+ tokens: [
563
+ {
564
+ address: "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",
565
+ symbol: "wbtc",
566
+ value: 1985210
567
+ },
568
+ {
569
+ address: "0x55296f69f40Ea6d20E478533C15A6B08B654E758",
570
+ symbol: "xyo",
571
+ value: 503725e-12
572
+ }
573
+ ]
574
+ },
575
+ {
576
+ tokens: [
577
+ {
578
+ address: "0x514910771AF9Ca656af840dff83E8264EcF986CA",
579
+ symbol: "link",
580
+ value: 632.648
581
+ },
582
+ {
583
+ address: "0x55296f69f40Ea6d20E478533C15A6B08B654E758",
584
+ symbol: "xyo",
585
+ value: 158066e-8
586
+ }
587
+ ]
588
+ },
589
+ {
590
+ tokens: [
591
+ {
592
+ address: "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",
593
+ symbol: "wbtc",
594
+ value: 13.8399
595
+ },
596
+ {
597
+ address: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
598
+ symbol: "weth",
599
+ value: 0.072255
600
+ }
601
+ ]
602
+ },
603
+ {
604
+ tokens: [
605
+ {
606
+ address: "0x6B175474E89094C44Da98b954EedeAC495271d0F",
607
+ symbol: "dai",
608
+ value: 1.00004
609
+ },
610
+ {
611
+ address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
612
+ symbol: "usdc",
613
+ value: 0.999964
614
+ }
615
+ ]
616
+ },
617
+ {
618
+ tokens: [
619
+ {
620
+ address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
621
+ symbol: "usdc",
622
+ value: 575766e-9
623
+ },
624
+ {
625
+ address: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
626
+ symbol: "weth",
627
+ value: 1736.82
628
+ }
629
+ ]
630
+ },
631
+ {
632
+ tokens: [
633
+ {
634
+ address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
635
+ symbol: "usdc",
636
+ value: 577657e-9
637
+ },
638
+ {
639
+ address: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
640
+ symbol: "weth",
641
+ value: 1731.13
642
+ }
643
+ ]
644
+ },
645
+ {
646
+ tokens: [
647
+ {
648
+ address: "0x6B175474E89094C44Da98b954EedeAC495271d0F",
649
+ symbol: "dai",
650
+ value: 1.00002
651
+ },
652
+ {
653
+ address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
654
+ symbol: "usdc",
655
+ value: 0.999983
656
+ }
657
+ ]
658
+ },
659
+ {
660
+ tokens: [
661
+ {
662
+ address: "0x853d955aCEf822Db058eb8505911ED77F175b99e",
663
+ symbol: "frax",
664
+ value: 0.999829
665
+ },
666
+ {
667
+ address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
668
+ symbol: "usdc",
669
+ value: 1.00017
670
+ }
671
+ ]
672
+ },
673
+ {
674
+ tokens: [
675
+ {
676
+ address: "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",
677
+ symbol: "wbtc",
678
+ value: 23967.5
679
+ },
680
+ {
681
+ address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
682
+ symbol: "usdc",
683
+ value: 417232e-10
684
+ }
685
+ ]
686
+ },
687
+ {
688
+ tokens: [
689
+ {
690
+ address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
691
+ symbol: "usdc",
692
+ value: 0.999756
693
+ },
694
+ {
695
+ address: "0xdAC17F958D2ee523a2206206994597C13D831ec7",
696
+ symbol: "usdt",
697
+ value: 1.00024
698
+ }
699
+ ]
700
+ }
701
+ ],
702
+ schema: "network.xyo.crypto.market.uniswap",
703
+ timestamp: 1659071465718
704
+ };
705
+ var payloadDataMissingPairs = {
706
+ pairs: [],
707
+ schema: "network.xyo.crypto.market.uniswap",
708
+ timestamp: 1659071465718
709
+ };
710
+
711
+ // src/useAppThemeDecorator.tsx
712
+ import { merge } from "@xylabs/lodash";
713
+ import { InvertibleThemeProvider } from "@xylabs/react-invertible-theme";
714
+ import { appThemeOptions, partialAppDarkThemeOptions, partialAppLightThemeOptions, themeOptions } from "@xyo-network/react-theme";
715
+ import { useDarkMode } from "storybook-dark-mode";
716
+ import { jsx as jsx2 } from "react/jsx-runtime";
717
+ var useAppThemeDecorator = (Story, { args }) => {
718
+ const darkMode = useDarkMode();
719
+ const mergedThemeOptions = merge(themeOptions, appThemeOptions);
720
+ return /* @__PURE__ */ jsx2(
721
+ InvertibleThemeProvider,
722
+ {
723
+ dark: darkMode,
724
+ options: mergedThemeOptions,
725
+ lightOptions: partialAppLightThemeOptions,
726
+ darkOptions: partialAppDarkThemeOptions,
727
+ children: /* @__PURE__ */ jsx2(Story, { ...args })
728
+ }
729
+ );
730
+ };
731
+
732
+ // src/WithMapboxSetup.tsx
733
+ import { MapboxAccessTokenProvider } from "@xyo-network/react-map";
734
+ import { jsx as jsx3 } from "react/jsx-runtime";
735
+ var WithMapboxSetup = (Story, context) => {
736
+ return /* @__PURE__ */ jsx3(MapboxAccessTokenProvider, { defaultAccessToken: process.env.STORYBOOK_MAPBOX_TOKEN, children: /* @__PURE__ */ jsx3(Story, { ...context }) });
737
+ };
738
+
739
+ // src/WithRefDecorator.tsx
740
+ import { Button } from "@mui/material";
741
+ import { useRef } from "react";
742
+ import { Fragment, jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
743
+ var WithRefDecorator = (Story, args) => {
744
+ const ref = useRef(null);
745
+ const onClick = () => {
746
+ if (ref.current) {
747
+ ref.current.style.color = "green";
748
+ }
749
+ };
750
+ args.args.ref = ref;
751
+ return /* @__PURE__ */ jsxs2(Fragment, { children: [
752
+ /* @__PURE__ */ jsx4(Button, { onClick, variant: "contained", children: "Change to green" }),
753
+ /* @__PURE__ */ jsx4(Story, { ...args })
754
+ ] });
755
+ };
756
+ export {
757
+ DefaultSeedPhrase,
758
+ DeprecateStory,
759
+ WithMapboxSetup,
760
+ WithRefDecorator,
761
+ payloadDataMissingPairs,
762
+ randomizedSampleAddressHistory,
763
+ sampleAddressHistory,
764
+ sampleBlock,
765
+ sampleBlockWithBoundWitnessPayload,
766
+ sampleBlockWithPayloads,
767
+ sampleBlocknativeGasPricePayload,
768
+ sampleCoinGeckoPayload,
769
+ sampleEthGasStationGasPricePayload,
770
+ sampleEtherchainV1GasPricePayload,
771
+ sampleEtherchainV2GasPricePayload,
772
+ sampleEthereumGasDivinerPayload,
773
+ sampleEthereumGasDivinerPayloadMissingFees,
774
+ sampleEthersGasPricePayload,
775
+ sampleEtherscanGasPricePayload,
776
+ sampleIdPayload,
777
+ samplePayloadFromBuilder,
778
+ sampleSystemInfoBrowserPayload,
779
+ sampleUniswapPayload,
780
+ useAppThemeDecorator
781
+ };
13
782
  //# sourceMappingURL=index.js.map