@xyo-network/react-storybook 7.4.2 → 7.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/browser/index.mjs +215 -86
  2. package/dist/browser/index.mjs.map +1 -1
  3. package/dist/browser/sampleCoinGeckoPayload.d.ts +3 -1
  4. package/dist/browser/sampleCoinGeckoPayload.d.ts.map +1 -1
  5. package/dist/browser/sampleEthereumGasDivinerPayload.d.ts +6 -2
  6. package/dist/browser/sampleEthereumGasDivinerPayload.d.ts.map +1 -1
  7. package/dist/browser/sampleGasPricePayloads/blocknative.d.ts +3 -1
  8. package/dist/browser/sampleGasPricePayloads/blocknative.d.ts.map +1 -1
  9. package/dist/browser/sampleGasPricePayloads/ethGasStation.d.ts +3 -1
  10. package/dist/browser/sampleGasPricePayloads/ethGasStation.d.ts.map +1 -1
  11. package/dist/browser/sampleGasPricePayloads/etherchainV2.d.ts +3 -1
  12. package/dist/browser/sampleGasPricePayloads/etherchainV2.d.ts.map +1 -1
  13. package/dist/browser/sampleGasPricePayloads/ethers.d.ts +3 -1
  14. package/dist/browser/sampleGasPricePayloads/ethers.d.ts.map +1 -1
  15. package/dist/browser/sampleGasPricePayloads/etherscan.d.ts +3 -1
  16. package/dist/browser/sampleGasPricePayloads/etherscan.d.ts.map +1 -1
  17. package/dist/browser/samplePayload.d.ts +12 -4
  18. package/dist/browser/samplePayload.d.ts.map +1 -1
  19. package/dist/browser/sampleUniswapPayload.d.ts +6 -2
  20. package/dist/browser/sampleUniswapPayload.d.ts.map +1 -1
  21. package/package.json +21 -18
  22. package/src/sampleCoinGeckoPayload.ts +3 -1
  23. package/src/sampleEthereumGasDivinerPayload.ts +4 -2
  24. package/src/sampleGasPricePayloads/blocknative.ts +3 -1
  25. package/src/sampleGasPricePayloads/ethGasStation.ts +3 -1
  26. package/src/sampleGasPricePayloads/etherchainV2.ts +3 -1
  27. package/src/sampleGasPricePayloads/ethers.ts +3 -1
  28. package/src/sampleGasPricePayloads/etherscan.ts +3 -1
  29. package/src/samplePayload.ts +8 -5
  30. package/src/sampleUniswapPayload.ts +4 -2
@@ -1,15 +1,20 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+
1
4
  // src/defaultSeedPhrase.ts
2
5
  var DefaultSeedPhrase = "later puppy sound rebuild rebuild noise ozone amazing hope broccoli crystal grief";
3
6
 
4
7
  // src/DeprecateStory.tsx
5
8
  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
- };
9
+ import React from "react";
10
+ var DeprecateStory = /* @__PURE__ */ __name(({ message }) => {
11
+ return /* @__PURE__ */ React.createElement(Alert, {
12
+ severity: "error",
13
+ sx: {
14
+ marginBottom: "24px"
15
+ }
16
+ }, /* @__PURE__ */ React.createElement(AlertTitle, null, "Story has been Deprecated"), message);
17
+ }, "DeprecateStory");
13
18
 
14
19
  // src/sampleAddressHistory.ts
15
20
  import { BoundWitnessSchema } from "@xyo-network/boundwitness-model";
@@ -18,60 +23,108 @@ var sampleAddressHistory = [
18
23
  $signatures: [
19
24
  "186de1122640fc9d6577765e0b0f6822860994a0fbd1f80354963f89eebc3da01d0a68c36d2c6facab89bd777964c0d5b76103eb35b7900cc69bb1b90231117e"
20
25
  ],
21
- addresses: ["fc0f8a536fe657ebbfa7a3b81bee6053c73debec"],
22
- payload_hashes: ["97e693d0eb86eec1ca28f2bb0c77ddaae821fd0a9adc51c1521cdd754e2e207d"],
23
- payload_schemas: ["network.xyo.id"],
24
- previous_hashes: ["8f914f739a96cb8baffaf156724240e4d51ab94cd4a374754c4e8f8281dc4191"],
26
+ addresses: [
27
+ "fc0f8a536fe657ebbfa7a3b81bee6053c73debec"
28
+ ],
29
+ payload_hashes: [
30
+ "97e693d0eb86eec1ca28f2bb0c77ddaae821fd0a9adc51c1521cdd754e2e207d"
31
+ ],
32
+ payload_schemas: [
33
+ "network.xyo.id"
34
+ ],
35
+ previous_hashes: [
36
+ "8f914f739a96cb8baffaf156724240e4d51ab94cd4a374754c4e8f8281dc4191"
37
+ ],
25
38
  schema: BoundWitnessSchema
26
39
  },
27
40
  {
28
41
  $signatures: [
29
42
  "35c4aa262694cdf6c72f473e4e2a4b164b35a5f228a6ed1c8345b8a6b7b0d192d6868fc038a09258f2b7016d04157640d7555109102e3c072556f8c4c002543f"
30
43
  ],
31
- addresses: ["fc0f8a536fe657ebbfa7a3b81bee6053c73debec"],
32
- payload_hashes: ["b01dd00648fafa4488ff461c812e80e5c657939da8c7d4bb056177e241554449"],
33
- payload_schemas: ["network.xyo.id"],
34
- previous_hashes: ["7456e3a653f6b3cac3ee0204cef37152eeb8cfeef3e20a0e177abf7ec36e0236"],
44
+ addresses: [
45
+ "fc0f8a536fe657ebbfa7a3b81bee6053c73debec"
46
+ ],
47
+ payload_hashes: [
48
+ "b01dd00648fafa4488ff461c812e80e5c657939da8c7d4bb056177e241554449"
49
+ ],
50
+ payload_schemas: [
51
+ "network.xyo.id"
52
+ ],
53
+ previous_hashes: [
54
+ "7456e3a653f6b3cac3ee0204cef37152eeb8cfeef3e20a0e177abf7ec36e0236"
55
+ ],
35
56
  schema: BoundWitnessSchema
36
57
  },
37
58
  {
38
59
  $signatures: [
39
60
  "f273d8a8587ec2c6c9e91416eec66fdd441156f9ce2fb54e3e78e885aa792017e10ea36af44d9453422ffbafd58732a80387ab57c93ae0618b09aa4847f5e457"
40
61
  ],
41
- addresses: ["fc0f8a536fe657ebbfa7a3b81bee6053c73debec"],
42
- payload_hashes: ["03be02066ed31dc92ffd371a48026eac5770a8647160704b70e8dca8fc64cb0a"],
43
- payload_schemas: ["network.xyo.id"],
44
- previous_hashes: ["053d47a27012548dc0b3bb469e6598c7a48e81d3a552a790b455922cdb0750ba"],
62
+ addresses: [
63
+ "fc0f8a536fe657ebbfa7a3b81bee6053c73debec"
64
+ ],
65
+ payload_hashes: [
66
+ "03be02066ed31dc92ffd371a48026eac5770a8647160704b70e8dca8fc64cb0a"
67
+ ],
68
+ payload_schemas: [
69
+ "network.xyo.id"
70
+ ],
71
+ previous_hashes: [
72
+ "053d47a27012548dc0b3bb469e6598c7a48e81d3a552a790b455922cdb0750ba"
73
+ ],
45
74
  schema: BoundWitnessSchema
46
75
  },
47
76
  {
48
77
  $signatures: [
49
78
  "79960dd5c590a1007bc526729a3ffee3153bb37ace383485ed298b3ba94939fffade54980a02c57119238bd9984d2860b822d29dbb36b04251fab83354b5a7cc"
50
79
  ],
51
- addresses: ["fc0f8a536fe657ebbfa7a3b81bee6053c73debec"],
52
- payload_hashes: ["5ebf3c990e08174bcf3987dc94ff0a4ec33b6ba806d3f3ec50e0966395fc1c76"],
53
- payload_schemas: ["network.xyo.id"],
54
- previous_hashes: ["9ae219b4d71a5c46321a21cdef08540fafe7e6d51440ba34699883bdaf15e61d"],
80
+ addresses: [
81
+ "fc0f8a536fe657ebbfa7a3b81bee6053c73debec"
82
+ ],
83
+ payload_hashes: [
84
+ "5ebf3c990e08174bcf3987dc94ff0a4ec33b6ba806d3f3ec50e0966395fc1c76"
85
+ ],
86
+ payload_schemas: [
87
+ "network.xyo.id"
88
+ ],
89
+ previous_hashes: [
90
+ "9ae219b4d71a5c46321a21cdef08540fafe7e6d51440ba34699883bdaf15e61d"
91
+ ],
55
92
  schema: BoundWitnessSchema
56
93
  },
57
94
  {
58
95
  $signatures: [
59
96
  "03830c7e9345a80390524543eb4ca097530bafa5d109b91a5a328399fcffe5af3a32b3a66658c045d013cf9b4fd598cafc9374bd0004d0c1bb2224ac812b855a"
60
97
  ],
61
- addresses: ["fc0f8a536fe657ebbfa7a3b81bee6053c73debec"],
62
- payload_hashes: ["ce405ae29915ea7b5f62a87c316bf4f46052c7bb0a36e67e621fedb1ec96fec5"],
63
- payload_schemas: ["network.xyo.id"],
64
- previous_hashes: ["322e48abf142b99635ea51c73d7d6225c04514348ffd3c37399c39b0e17d4972"],
98
+ addresses: [
99
+ "fc0f8a536fe657ebbfa7a3b81bee6053c73debec"
100
+ ],
101
+ payload_hashes: [
102
+ "ce405ae29915ea7b5f62a87c316bf4f46052c7bb0a36e67e621fedb1ec96fec5"
103
+ ],
104
+ payload_schemas: [
105
+ "network.xyo.id"
106
+ ],
107
+ previous_hashes: [
108
+ "322e48abf142b99635ea51c73d7d6225c04514348ffd3c37399c39b0e17d4972"
109
+ ],
65
110
  schema: BoundWitnessSchema
66
111
  },
67
112
  {
68
113
  $signatures: [
69
114
  "2ddd7f65ad5ccdce83318f47040db7f45ef76142d2bb9c549241ac59619bf00a671f1ca5755d4e4b0e59fb8eb11c31e1d26c5d376eb57d8eeee7156469ae770b"
70
115
  ],
71
- addresses: ["fc0f8a536fe657ebbfa7a3b81bee6053c73debec"],
72
- payload_hashes: ["84efe9b19a752d3d997cfe5e7c336b1b090669fc0172f649825b2f24c8d82876"],
73
- payload_schemas: ["network.xyo.id"],
74
- previous_hashes: [null],
116
+ addresses: [
117
+ "fc0f8a536fe657ebbfa7a3b81bee6053c73debec"
118
+ ],
119
+ payload_hashes: [
120
+ "84efe9b19a752d3d997cfe5e7c336b1b090669fc0172f649825b2f24c8d82876"
121
+ ],
122
+ payload_schemas: [
123
+ "network.xyo.id"
124
+ ],
125
+ previous_hashes: [
126
+ null
127
+ ],
75
128
  schema: BoundWitnessSchema
76
129
  }
77
130
  ];
@@ -80,68 +133,120 @@ var randomizedSampleAddressHistory = [
80
133
  $signatures: [
81
134
  "35c4aa262694cdf6c72f473e4e2a4b164b35a5f228a6ed1c8345b8a6b7b0d192d6868fc038a09258f2b7016d04157640d7555109102e3c072556f8c4c002543f"
82
135
  ],
83
- addresses: ["fc0f8a536fe657ebbfa7a3b81bee6053c73debec"],
84
- payload_hashes: ["b01dd00648fafa4488ff461c812e80e5c657939da8c7d4bb056177e241554449"],
85
- payload_schemas: ["network.xyo.id"],
86
- previous_hashes: ["7456e3a653f6b3cac3ee0204cef37152eeb8cfeef3e20a0e177abf7ec36e0236"],
136
+ addresses: [
137
+ "fc0f8a536fe657ebbfa7a3b81bee6053c73debec"
138
+ ],
139
+ payload_hashes: [
140
+ "b01dd00648fafa4488ff461c812e80e5c657939da8c7d4bb056177e241554449"
141
+ ],
142
+ payload_schemas: [
143
+ "network.xyo.id"
144
+ ],
145
+ previous_hashes: [
146
+ "7456e3a653f6b3cac3ee0204cef37152eeb8cfeef3e20a0e177abf7ec36e0236"
147
+ ],
87
148
  schema: BoundWitnessSchema
88
149
  },
89
150
  {
90
151
  $signatures: [
91
152
  "79960dd5c590a1007bc526729a3ffee3153bb37ace383485ed298b3ba94939fffade54980a02c57119238bd9984d2860b822d29dbb36b04251fab83354b5a7cc"
92
153
  ],
93
- addresses: ["fc0f8a536fe657ebbfa7a3b81bee6053c73debec"],
94
- payload_hashes: ["5ebf3c990e08174bcf3987dc94ff0a4ec33b6ba806d3f3ec50e0966395fc1c76"],
95
- payload_schemas: ["network.xyo.id"],
96
- previous_hashes: ["9ae219b4d71a5c46321a21cdef08540fafe7e6d51440ba34699883bdaf15e61d"],
154
+ addresses: [
155
+ "fc0f8a536fe657ebbfa7a3b81bee6053c73debec"
156
+ ],
157
+ payload_hashes: [
158
+ "5ebf3c990e08174bcf3987dc94ff0a4ec33b6ba806d3f3ec50e0966395fc1c76"
159
+ ],
160
+ payload_schemas: [
161
+ "network.xyo.id"
162
+ ],
163
+ previous_hashes: [
164
+ "9ae219b4d71a5c46321a21cdef08540fafe7e6d51440ba34699883bdaf15e61d"
165
+ ],
97
166
  schema: BoundWitnessSchema
98
167
  },
99
168
  {
100
169
  $signatures: [
101
170
  "186de1122640fc9d6577765e0b0f6822860994a0fbd1f80354963f89eebc3da01d0a68c36d2c6facab89bd777964c0d5b76103eb35b7900cc69bb1b90231117e"
102
171
  ],
103
- addresses: ["fc0f8a536fe657ebbfa7a3b81bee6053c73debec"],
104
- payload_hashes: ["97e693d0eb86eec1ca28f2bb0c77ddaae821fd0a9adc51c1521cdd754e2e207d"],
105
- payload_schemas: ["network.xyo.id"],
106
- previous_hashes: ["8f914f739a96cb8baffaf156724240e4d51ab94cd4a374754c4e8f8281dc4191"],
172
+ addresses: [
173
+ "fc0f8a536fe657ebbfa7a3b81bee6053c73debec"
174
+ ],
175
+ payload_hashes: [
176
+ "97e693d0eb86eec1ca28f2bb0c77ddaae821fd0a9adc51c1521cdd754e2e207d"
177
+ ],
178
+ payload_schemas: [
179
+ "network.xyo.id"
180
+ ],
181
+ previous_hashes: [
182
+ "8f914f739a96cb8baffaf156724240e4d51ab94cd4a374754c4e8f8281dc4191"
183
+ ],
107
184
  schema: BoundWitnessSchema
108
185
  },
109
186
  {
110
187
  $signatures: [
111
188
  "f273d8a8587ec2c6c9e91416eec66fdd441156f9ce2fb54e3e78e885aa792017e10ea36af44d9453422ffbafd58732a80387ab57c93ae0618b09aa4847f5e457"
112
189
  ],
113
- addresses: ["fc0f8a536fe657ebbfa7a3b81bee6053c73debec"],
114
- payload_hashes: ["03be02066ed31dc92ffd371a48026eac5770a8647160704b70e8dca8fc64cb0a"],
115
- payload_schemas: ["network.xyo.id"],
116
- previous_hashes: ["053d47a27012548dc0b3bb469e6598c7a48e81d3a552a790b455922cdb0750ba"],
190
+ addresses: [
191
+ "fc0f8a536fe657ebbfa7a3b81bee6053c73debec"
192
+ ],
193
+ payload_hashes: [
194
+ "03be02066ed31dc92ffd371a48026eac5770a8647160704b70e8dca8fc64cb0a"
195
+ ],
196
+ payload_schemas: [
197
+ "network.xyo.id"
198
+ ],
199
+ previous_hashes: [
200
+ "053d47a27012548dc0b3bb469e6598c7a48e81d3a552a790b455922cdb0750ba"
201
+ ],
117
202
  schema: BoundWitnessSchema
118
203
  },
119
204
  {
120
205
  $signatures: [
121
206
  "2ddd7f65ad5ccdce83318f47040db7f45ef76142d2bb9c549241ac59619bf00a671f1ca5755d4e4b0e59fb8eb11c31e1d26c5d376eb57d8eeee7156469ae770b"
122
207
  ],
123
- addresses: ["fc0f8a536fe657ebbfa7a3b81bee6053c73debec"],
124
- payload_hashes: ["84efe9b19a752d3d997cfe5e7c336b1b090669fc0172f649825b2f24c8d82876"],
125
- payload_schemas: ["network.xyo.id"],
126
- previous_hashes: [null],
208
+ addresses: [
209
+ "fc0f8a536fe657ebbfa7a3b81bee6053c73debec"
210
+ ],
211
+ payload_hashes: [
212
+ "84efe9b19a752d3d997cfe5e7c336b1b090669fc0172f649825b2f24c8d82876"
213
+ ],
214
+ payload_schemas: [
215
+ "network.xyo.id"
216
+ ],
217
+ previous_hashes: [
218
+ null
219
+ ],
127
220
  schema: BoundWitnessSchema
128
221
  },
129
222
  {
130
223
  $signatures: [
131
224
  "03830c7e9345a80390524543eb4ca097530bafa5d109b91a5a328399fcffe5af3a32b3a66658c045d013cf9b4fd598cafc9374bd0004d0c1bb2224ac812b855a"
132
225
  ],
133
- addresses: ["fc0f8a536fe657ebbfa7a3b81bee6053c73debec"],
134
- payload_hashes: ["ce405ae29915ea7b5f62a87c316bf4f46052c7bb0a36e67e621fedb1ec96fec5"],
135
- payload_schemas: ["network.xyo.id"],
136
- previous_hashes: ["322e48abf142b99635ea51c73d7d6225c04514348ffd3c37399c39b0e17d4972"],
226
+ addresses: [
227
+ "fc0f8a536fe657ebbfa7a3b81bee6053c73debec"
228
+ ],
229
+ payload_hashes: [
230
+ "ce405ae29915ea7b5f62a87c316bf4f46052c7bb0a36e67e621fedb1ec96fec5"
231
+ ],
232
+ payload_schemas: [
233
+ "network.xyo.id"
234
+ ],
235
+ previous_hashes: [
236
+ "322e48abf142b99635ea51c73d7d6225c04514348ffd3c37399c39b0e17d4972"
237
+ ],
137
238
  schema: BoundWitnessSchema
138
239
  }
139
240
  ];
140
241
 
141
242
  // src/sampleBlock.ts
142
243
  var sampleBlock = {
143
- $signatures: ["d0969a4edd2cbb55f879bb68733a36509dab7516c52e3066fd2e248ee80f98e36bdd56a0711140cfbc55106d4c65fe7ed58df8c03c5d360b34d3c74ea3b6fe1f"],
144
- addresses: ["9c6df83b84297985d3ccc1f721ba1c2e3608c751"],
244
+ $signatures: [
245
+ "d0969a4edd2cbb55f879bb68733a36509dab7516c52e3066fd2e248ee80f98e36bdd56a0711140cfbc55106d4c65fe7ed58df8c03c5d360b34d3c74ea3b6fe1f"
246
+ ],
247
+ addresses: [
248
+ "9c6df83b84297985d3ccc1f721ba1c2e3608c751"
249
+ ],
145
250
  payload_hashes: [
146
251
  "43df96261884ec99e0d7667120d036065c1f6a88dbb999f30d7c820dc9a37ee5",
147
252
  "31b3a835ebad2b6f2d6cc16ec855b41f237116f52b515aac9a8f555fec05fa3e",
@@ -158,12 +263,18 @@ var sampleBlock = {
158
263
  "network.xyo.location.range.answer",
159
264
  "network.xyo.location.range"
160
265
  ],
161
- previous_hashes: [null],
266
+ previous_hashes: [
267
+ null
268
+ ],
162
269
  schema: "network.xyo.boundwitness"
163
270
  };
164
271
  var sampleBlockWithBoundWitnessPayload = {
165
- $signatures: ["d0969a4edd2cbb55f879bb68733a36509dab7516c52e3066fd2e248ee80f98e36bdd56a0711140cfbc55106d4c65fe7ed58df8c03c5d360b34d3c74ea3b6fe1f"],
166
- addresses: ["9c6df83b84297985d3ccc1f721ba1c2e3608c751"],
272
+ $signatures: [
273
+ "d0969a4edd2cbb55f879bb68733a36509dab7516c52e3066fd2e248ee80f98e36bdd56a0711140cfbc55106d4c65fe7ed58df8c03c5d360b34d3c74ea3b6fe1f"
274
+ ],
275
+ addresses: [
276
+ "9c6df83b84297985d3ccc1f721ba1c2e3608c751"
277
+ ],
167
278
  payload_hashes: [
168
279
  "43df96261884ec99e0d7667120d036065c1f6a88dbb999f30d7c820dc9a37ee5",
169
280
  "31b3a835ebad2b6f2d6cc16ec855b41f237116f52b515aac9a8f555fec05fa3e",
@@ -180,11 +291,14 @@ var sampleBlockWithBoundWitnessPayload = {
180
291
  "network.xyo.location.range.answer",
181
292
  "network.xyo.location.range"
182
293
  ],
183
- previous_hashes: [null],
294
+ previous_hashes: [
295
+ null
296
+ ],
184
297
  schema: "network.xyo.boundwitness"
185
298
  };
186
299
 
187
300
  // src/sampleCoinGeckoPayload.ts
301
+ import { asSchema } from "@xyo-network/payload-model";
188
302
  var sampleCoinGeckoPayload = {
189
303
  assets: {
190
304
  ada: {
@@ -254,11 +368,12 @@ var sampleCoinGeckoPayload = {
254
368
  usd: 86564e-7
255
369
  }
256
370
  },
257
- schema: "network.xyo.crypto.market.coingecko",
371
+ schema: asSchema("network.xyo.crypto.market.coingecko", true),
258
372
  timestamp: 1661188759757
259
373
  };
260
374
 
261
375
  // src/sampleEthereumGasDivinerPayload.ts
376
+ import { asSchema as asSchema2 } from "@xyo-network/payload-model";
262
377
  var sampleEthereumGasDivinerPayload = {
263
378
  baseFee: 13.3646505198,
264
379
  feePerGas: {
@@ -273,17 +388,18 @@ var sampleEthereumGasDivinerPayload = {
273
388
  medium: 0.8566666666666668,
274
389
  veryHigh: 1.2766666666666666
275
390
  },
276
- schema: "network.xyo.blockchain.ethereum.gas",
391
+ schema: asSchema2("network.xyo.blockchain.ethereum.gas", true),
277
392
  timestamp: 1669819808305
278
393
  };
279
394
  var sampleEthereumGasDivinerPayloadMissingFees = {
280
395
  feePerGas: {},
281
396
  priorityFeePerGas: {},
282
- schema: "network.xyo.blockchain.ethereum.gas",
397
+ schema: asSchema2("network.xyo.blockchain.ethereum.gas", true),
283
398
  timestamp: 1659071465718
284
399
  };
285
400
 
286
401
  // src/sampleGasPricePayloads/blocknative.ts
402
+ import { asSchema as asSchema3 } from "@xyo-network/payload-model";
287
403
  var sampleBlocknativeGasPricePayload = {
288
404
  blockPrices: [
289
405
  {
@@ -370,7 +486,7 @@ var sampleBlocknativeGasPricePayload = {
370
486
  maxPrice: 64,
371
487
  msSinceLastBlock: 9645,
372
488
  network: "main",
373
- schema: "network.xyo.blockchain.ethereum.gas.blocknative",
489
+ schema: asSchema3("network.xyo.blockchain.ethereum.gas.blocknative", true),
374
490
  system: "ethereum",
375
491
  timestamp: 1670437800246,
376
492
  unit: "gwei"
@@ -389,6 +505,7 @@ var sampleEtherchainV1GasPricePayload = {
389
505
  };
390
506
 
391
507
  // src/sampleGasPricePayloads/etherchainV2.ts
508
+ import { asSchema as asSchema4 } from "@xyo-network/payload-model";
392
509
  var sampleEtherchainV2GasPricePayload = {
393
510
  code: 200,
394
511
  data: {
@@ -399,21 +516,23 @@ var sampleEtherchainV2GasPricePayload = {
399
516
  standard: 21366997291,
400
517
  timestamp: 1670437795342
401
518
  },
402
- schema: "network.xyo.blockchain.ethereum.gas.etherchain.v2",
519
+ schema: asSchema4("network.xyo.blockchain.ethereum.gas.etherchain.v2", true),
403
520
  timestamp: 1670437800338
404
521
  };
405
522
 
406
523
  // src/sampleGasPricePayloads/ethers.ts
524
+ import { asSchema as asSchema5 } from "@xyo-network/payload-model";
407
525
  var sampleEthersGasPricePayload = {
408
526
  gasPrice: 26770943129,
409
527
  lastBaseFeePerGas: 26494335502,
410
528
  maxFeePerGas: 54488671004,
411
529
  maxPriorityFeePerGas: 15e8,
412
- schema: "network.xyo.blockchain.ethereum.gas.ethers",
530
+ schema: asSchema5("network.xyo.blockchain.ethereum.gas.ethers", true),
413
531
  timestamp: 1670437800345
414
532
  };
415
533
 
416
534
  // src/sampleGasPricePayloads/etherscan.ts
535
+ import { asSchema as asSchema6 } from "@xyo-network/payload-model";
417
536
  var sampleEtherscanGasPricePayload = {
418
537
  message: "OK",
419
538
  result: {
@@ -424,12 +543,13 @@ var sampleEtherscanGasPricePayload = {
424
543
  gasUsedRatio: "0.4491729,0.440816333333333,0.480461266666667,0.373305033333333,0.322907566666667",
425
544
  suggestBaseFee: "33.952097068"
426
545
  },
427
- schema: "network.xyo.blockchain.ethereum.gas.etherscan",
546
+ schema: asSchema6("network.xyo.blockchain.ethereum.gas.etherscan", true),
428
547
  status: "1",
429
548
  timestamp: 1670437200510
430
549
  };
431
550
 
432
551
  // src/sampleGasPricePayloads/ethGasStation.ts
552
+ import { asSchema as asSchema7 } from "@xyo-network/payload-model";
433
553
  var sampleEthGasStationGasPricePayload = {
434
554
  baseFee: 37,
435
555
  blockNumber: 16134572,
@@ -445,18 +565,23 @@ var sampleEthGasStationGasPricePayload = {
445
565
  instant: 14,
446
566
  standard: 2
447
567
  },
448
- schema: "network.xyo.blockchain.ethereum.gas.ethgasstation",
568
+ schema: asSchema7("network.xyo.blockchain.ethereum.gas.ethgasstation", true),
449
569
  timestamp: 1670437200687
450
570
  };
451
571
 
452
572
  // src/samplePayload.ts
573
+ import { asSchema as asSchema8 } from "@xyo-network/payload-model";
574
+ var TempSchema = asSchema8("network.xyo.temp", true);
453
575
  var samplePayloadFromBuilder = {
454
- ...{ schema: "network.xyo.temp", test: "hello" },
576
+ ...{
577
+ schema: TempSchema,
578
+ test: "hello"
579
+ },
455
580
  _archive: "temp"
456
581
  };
457
582
  var sampleIdPayload = {
458
583
  salt: "81b2372a-b4f0-4ab5-8642-c4e6de46a1cf",
459
- schema: "network.xyo.id"
584
+ schema: asSchema8("network.xyo.id", true)
460
585
  };
461
586
  var sampleSystemInfoBrowserPayload = {
462
587
  bowser: {
@@ -464,18 +589,23 @@ var sampleSystemInfoBrowserPayload = {
464
589
  name: "Chrome",
465
590
  version: "104.0.0.0"
466
591
  },
467
- engine: { name: "Blink" },
592
+ engine: {
593
+ name: "Blink"
594
+ },
468
595
  os: {
469
596
  name: "Windows",
470
597
  version: "NT 10.0",
471
598
  versionName: "10"
472
599
  },
473
- platform: { type: "desktop" }
600
+ platform: {
601
+ type: "desktop"
602
+ }
474
603
  },
475
- schema: "network.xyo.system.info.browser"
604
+ schema: asSchema8("network.xyo.system.info.browser", true)
476
605
  };
477
606
 
478
607
  // src/sampleUniswapPayload.ts
608
+ import { asSchema as asSchema9 } from "@xyo-network/payload-model";
479
609
  var sampleUniswapPayload = {
480
610
  pairs: [
481
611
  {
@@ -661,32 +791,31 @@ var sampleUniswapPayload = {
661
791
  ]
662
792
  }
663
793
  ],
664
- schema: "network.xyo.crypto.market.uniswap",
794
+ schema: asSchema9("network.xyo.crypto.market.uniswap", true),
665
795
  timestamp: 1659071465718
666
796
  };
667
797
  var payloadDataMissingPairs = {
668
798
  pairs: [],
669
- schema: "network.xyo.crypto.market.uniswap",
799
+ schema: asSchema9("network.xyo.crypto.market.uniswap", true),
670
800
  timestamp: 1659071465718
671
801
  };
672
802
 
673
803
  // src/WithRefDecorator.tsx
674
804
  import { Button } from "@mui/material";
675
- import { useRef } from "react";
676
- import { Fragment, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
677
- var WithRefDecorator = (Story, args) => {
805
+ import React2, { useRef } from "react";
806
+ var WithRefDecorator = /* @__PURE__ */ __name((Story, args) => {
678
807
  const ref = useRef(null);
679
- const onClick = () => {
808
+ const onClick = /* @__PURE__ */ __name(() => {
680
809
  if (ref.current) {
681
810
  ref.current.style.color = "green";
682
811
  }
683
- };
812
+ }, "onClick");
684
813
  args.args.ref = ref;
685
- return /* @__PURE__ */ jsxs2(Fragment, { children: [
686
- /* @__PURE__ */ jsx2(Button, { onClick, variant: "contained", children: "Change to green" }),
687
- /* @__PURE__ */ jsx2(Story, { ...args })
688
- ] });
689
- };
814
+ return /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(Button, {
815
+ onClick,
816
+ variant: "contained"
817
+ }, "Change to green"), /* @__PURE__ */ React2.createElement(Story, args));
818
+ }, "WithRefDecorator");
690
819
  export {
691
820
  DefaultSeedPhrase,
692
821
  DeprecateStory,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/defaultSeedPhrase.ts","../../src/DeprecateStory.tsx","../../src/sampleAddressHistory.ts","../../src/sampleBlock.ts","../../src/sampleCoinGeckoPayload.ts","../../src/sampleEthereumGasDivinerPayload.ts","../../src/sampleGasPricePayloads/blocknative.ts","../../src/sampleGasPricePayloads/etherchainV1.ts","../../src/sampleGasPricePayloads/etherchainV2.ts","../../src/sampleGasPricePayloads/ethers.ts","../../src/sampleGasPricePayloads/etherscan.ts","../../src/sampleGasPricePayloads/ethGasStation.ts","../../src/samplePayload.ts","../../src/sampleUniswapPayload.ts","../../src/WithRefDecorator.tsx"],"sourcesContent":["// Well known seed phrase. DO NOT USE FOR PERSONAL ACCOUNTS\nexport const DefaultSeedPhrase = 'later puppy sound rebuild rebuild noise ozone amazing hope broccoli crystal grief'\n","import { Alert, AlertTitle } from '@mui/material'\nimport React from 'react'\n\nexport const DeprecateStory: React.FC<{ message?: string }> = ({ message }) => {\n return (\n <Alert severity=\"error\" sx={{ marginBottom: '24px' }}>\n <AlertTitle>Story has been Deprecated</AlertTitle>\n {message}\n </Alert>\n )\n}\n","import type { BoundWitness } from '@xyo-network/boundwitness-model'\nimport { BoundWitnessSchema } from '@xyo-network/boundwitness-model'\n\nexport const sampleAddressHistory = [\n {\n $signatures: [\n '186de1122640fc9d6577765e0b0f6822860994a0fbd1f80354963f89eebc3da01d0a68c36d2c6facab89bd777964c0d5b76103eb35b7900cc69bb1b90231117e',\n ],\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['97e693d0eb86eec1ca28f2bb0c77ddaae821fd0a9adc51c1521cdd754e2e207d'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['8f914f739a96cb8baffaf156724240e4d51ab94cd4a374754c4e8f8281dc4191'],\n schema: BoundWitnessSchema,\n },\n {\n $signatures: [\n '35c4aa262694cdf6c72f473e4e2a4b164b35a5f228a6ed1c8345b8a6b7b0d192d6868fc038a09258f2b7016d04157640d7555109102e3c072556f8c4c002543f',\n ],\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['b01dd00648fafa4488ff461c812e80e5c657939da8c7d4bb056177e241554449'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['7456e3a653f6b3cac3ee0204cef37152eeb8cfeef3e20a0e177abf7ec36e0236'],\n schema: BoundWitnessSchema,\n },\n {\n $signatures: [\n 'f273d8a8587ec2c6c9e91416eec66fdd441156f9ce2fb54e3e78e885aa792017e10ea36af44d9453422ffbafd58732a80387ab57c93ae0618b09aa4847f5e457',\n ],\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['03be02066ed31dc92ffd371a48026eac5770a8647160704b70e8dca8fc64cb0a'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['053d47a27012548dc0b3bb469e6598c7a48e81d3a552a790b455922cdb0750ba'],\n schema: BoundWitnessSchema,\n },\n {\n $signatures: [\n '79960dd5c590a1007bc526729a3ffee3153bb37ace383485ed298b3ba94939fffade54980a02c57119238bd9984d2860b822d29dbb36b04251fab83354b5a7cc',\n ],\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['5ebf3c990e08174bcf3987dc94ff0a4ec33b6ba806d3f3ec50e0966395fc1c76'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['9ae219b4d71a5c46321a21cdef08540fafe7e6d51440ba34699883bdaf15e61d'],\n schema: BoundWitnessSchema,\n },\n {\n $signatures: [\n '03830c7e9345a80390524543eb4ca097530bafa5d109b91a5a328399fcffe5af3a32b3a66658c045d013cf9b4fd598cafc9374bd0004d0c1bb2224ac812b855a',\n ],\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['ce405ae29915ea7b5f62a87c316bf4f46052c7bb0a36e67e621fedb1ec96fec5'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['322e48abf142b99635ea51c73d7d6225c04514348ffd3c37399c39b0e17d4972'],\n schema: BoundWitnessSchema,\n },\n {\n $signatures: [\n '2ddd7f65ad5ccdce83318f47040db7f45ef76142d2bb9c549241ac59619bf00a671f1ca5755d4e4b0e59fb8eb11c31e1d26c5d376eb57d8eeee7156469ae770b',\n ],\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['84efe9b19a752d3d997cfe5e7c336b1b090669fc0172f649825b2f24c8d82876'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: [null],\n schema: BoundWitnessSchema,\n },\n] as BoundWitness[]\n\nexport const randomizedSampleAddressHistory = [\n {\n $signatures: [\n '35c4aa262694cdf6c72f473e4e2a4b164b35a5f228a6ed1c8345b8a6b7b0d192d6868fc038a09258f2b7016d04157640d7555109102e3c072556f8c4c002543f',\n ],\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['b01dd00648fafa4488ff461c812e80e5c657939da8c7d4bb056177e241554449'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['7456e3a653f6b3cac3ee0204cef37152eeb8cfeef3e20a0e177abf7ec36e0236'],\n schema: BoundWitnessSchema,\n },\n {\n $signatures: [\n '79960dd5c590a1007bc526729a3ffee3153bb37ace383485ed298b3ba94939fffade54980a02c57119238bd9984d2860b822d29dbb36b04251fab83354b5a7cc',\n ],\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['5ebf3c990e08174bcf3987dc94ff0a4ec33b6ba806d3f3ec50e0966395fc1c76'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['9ae219b4d71a5c46321a21cdef08540fafe7e6d51440ba34699883bdaf15e61d'],\n schema: BoundWitnessSchema,\n },\n {\n $signatures: [\n '186de1122640fc9d6577765e0b0f6822860994a0fbd1f80354963f89eebc3da01d0a68c36d2c6facab89bd777964c0d5b76103eb35b7900cc69bb1b90231117e',\n ],\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['97e693d0eb86eec1ca28f2bb0c77ddaae821fd0a9adc51c1521cdd754e2e207d'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['8f914f739a96cb8baffaf156724240e4d51ab94cd4a374754c4e8f8281dc4191'],\n schema: BoundWitnessSchema,\n },\n {\n $signatures: [\n 'f273d8a8587ec2c6c9e91416eec66fdd441156f9ce2fb54e3e78e885aa792017e10ea36af44d9453422ffbafd58732a80387ab57c93ae0618b09aa4847f5e457',\n ],\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['03be02066ed31dc92ffd371a48026eac5770a8647160704b70e8dca8fc64cb0a'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['053d47a27012548dc0b3bb469e6598c7a48e81d3a552a790b455922cdb0750ba'],\n schema: BoundWitnessSchema,\n },\n {\n $signatures: [\n '2ddd7f65ad5ccdce83318f47040db7f45ef76142d2bb9c549241ac59619bf00a671f1ca5755d4e4b0e59fb8eb11c31e1d26c5d376eb57d8eeee7156469ae770b',\n ],\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['84efe9b19a752d3d997cfe5e7c336b1b090669fc0172f649825b2f24c8d82876'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: [null],\n schema: BoundWitnessSchema,\n },\n {\n $signatures: [\n '03830c7e9345a80390524543eb4ca097530bafa5d109b91a5a328399fcffe5af3a32b3a66658c045d013cf9b4fd598cafc9374bd0004d0c1bb2224ac812b855a',\n ],\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['ce405ae29915ea7b5f62a87c316bf4f46052c7bb0a36e67e621fedb1ec96fec5'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['322e48abf142b99635ea51c73d7d6225c04514348ffd3c37399c39b0e17d4972'],\n schema: BoundWitnessSchema,\n },\n] as BoundWitness[]\n","import type { BoundWitness, Signed } from '@xyo-network/boundwitness-model'\n\nexport const sampleBlock = {\n $signatures: ['d0969a4edd2cbb55f879bb68733a36509dab7516c52e3066fd2e248ee80f98e36bdd56a0711140cfbc55106d4c65fe7ed58df8c03c5d360b34d3c74ea3b6fe1f'],\n addresses: ['9c6df83b84297985d3ccc1f721ba1c2e3608c751'],\n payload_hashes: [\n '43df96261884ec99e0d7667120d036065c1f6a88dbb999f30d7c820dc9a37ee5',\n '31b3a835ebad2b6f2d6cc16ec855b41f237116f52b515aac9a8f555fec05fa3e',\n '97e693d0eb86eec1ca28f2bb0c77ddaae821fd0a9adc51c1521cdd754e2e207d',\n 'be39d7b3b3383e65405236c0c314e4601eb5e98859266fef4e5caf22b16d5706',\n '21ab79e5fae74ccc22d611a42732f9257e7a29a4da744e51ec99feda948e1115',\n 'bd5825ee3cefa969ded2dd1a35d9f28a9a0f312703e7f57bf8554ccda24f0b5f',\n ],\n payload_schemas: [\n 'network.xyo.location',\n 'network.xyo.id',\n 'network.xyo.id',\n 'network.xyo.payload',\n 'network.xyo.location.range.answer',\n 'network.xyo.location.range',\n ],\n previous_hashes: [null],\n schema: 'network.xyo.boundwitness',\n} as Signed<BoundWitness>\n\nexport const sampleBlockWithBoundWitnessPayload = {\n $signatures: ['d0969a4edd2cbb55f879bb68733a36509dab7516c52e3066fd2e248ee80f98e36bdd56a0711140cfbc55106d4c65fe7ed58df8c03c5d360b34d3c74ea3b6fe1f'],\n addresses: ['9c6df83b84297985d3ccc1f721ba1c2e3608c751'],\n payload_hashes: [\n '43df96261884ec99e0d7667120d036065c1f6a88dbb999f30d7c820dc9a37ee5',\n '31b3a835ebad2b6f2d6cc16ec855b41f237116f52b515aac9a8f555fec05fa3e',\n '97e693d0eb86eec1ca28f2bb0c77ddaae821fd0a9adc51c1521cdd754e2e207d',\n 'be39d7b3b3383e65405236c0c314e4601eb5e98859266fef4e5caf22b16d5706',\n '21ab79e5fae74ccc22d611a42732f9257e7a29a4da744e51ec99feda948e1115',\n 'bd5825ee3cefa969ded2dd1a35d9f28a9a0f312703e7f57bf8554ccda24f0b5f',\n ],\n payload_schemas: [\n 'network.xyo.boundwitness',\n 'network.xyo.id',\n 'network.xyo.id',\n 'network.xyo.payload',\n 'network.xyo.location.range.answer',\n 'network.xyo.location.range',\n ],\n previous_hashes: [null],\n schema: 'network.xyo.boundwitness',\n} as Signed<BoundWitness>\n","export const sampleCoinGeckoPayload = {\n assets: {\n ada: {\n btc: 0.000_021_21,\n eth: 0.000_286_02,\n eur: 0.455_045,\n usd: 0.451_912,\n },\n btc: {\n btc: 1,\n eth: 13.480_925,\n eur: 21_444,\n usd: 21_297,\n },\n busd: {\n btc: 0.000_046_91,\n eth: 0.000_632_54,\n eur: 1.006,\n usd: 0.999_271,\n },\n doge: {\n btc: 0.000_003_15,\n eth: 0.000_042_51,\n eur: 0.067_639,\n usd: 0.067_173,\n },\n dot: {\n btc: 0.000_339_57,\n eth: 0.004_579_09,\n eur: 7.28,\n usd: 7.23,\n },\n eth: {\n btc: 0.074_168_36,\n eth: 1,\n eur: 1590.95,\n usd: 1580,\n },\n sol: {\n btc: 0.001_623_96,\n eth: 0.021_898_73,\n eur: 34.83,\n usd: 34.59,\n },\n usdc: {\n btc: 0.000_046_91,\n eth: 0.000_632_59,\n eur: 1.006,\n usd: 0.999_341,\n },\n usdt: {\n btc: 0.000_046_97,\n eth: 0.000_633_28,\n eur: 1.008,\n usd: 1.001,\n },\n wbtc: {\n btc: 0.999_857_08,\n eth: 13.482_839,\n eur: 21_447,\n usd: 21_300,\n },\n xyo: {\n btc: 4.063_47e-7,\n eth: 0.000_005_48,\n eur: 0.008_716_42,\n usd: 0.008_656_4,\n },\n },\n schema: 'network.xyo.crypto.market.coingecko',\n timestamp: 1_661_188_759_757,\n}\n","export const sampleEthereumGasDivinerPayload = {\n baseFee: 13.364_650_519_8,\n feePerGas: {\n high: 17.306_096_430_2,\n low: 12.155_000_000_000_001,\n medium: 12.5625,\n veryHigh: 16.546_248_588_5,\n },\n priorityFeePerGas: {\n high: 1.075,\n low: 0.746_666_666_666_666_7,\n medium: 0.856_666_666_666_666_8,\n veryHigh: 1.276_666_666_666_666_6,\n },\n schema: 'network.xyo.blockchain.ethereum.gas',\n timestamp: 1_669_819_808_305,\n}\n\nexport const sampleEthereumGasDivinerPayloadMissingFees = {\n feePerGas: {},\n priorityFeePerGas: {},\n schema: 'network.xyo.blockchain.ethereum.gas',\n timestamp: 1_659_071_465_718,\n}\n","export const sampleBlocknativeGasPricePayload = {\n blockPrices: [\n {\n baseFeePerGas: 26.328_474_78,\n blockNumber: 16_134_624,\n estimatedPrices: [\n {\n confidence: 99,\n maxFeePerGas: 41.86,\n maxPriorityFeePerGas: 1.18,\n price: 27,\n },\n {\n confidence: 95,\n maxFeePerGas: 41.54,\n maxPriorityFeePerGas: 0.86,\n price: 27,\n },\n {\n confidence: 90,\n maxFeePerGas: 41.15,\n maxPriorityFeePerGas: 0.47,\n price: 26,\n },\n {\n confidence: 80,\n maxFeePerGas: 41,\n maxPriorityFeePerGas: 0.32,\n price: 26,\n },\n {\n confidence: 70,\n maxFeePerGas: 40.93,\n maxPriorityFeePerGas: 0.25,\n price: 26,\n },\n ],\n estimatedTransactionCount: 186,\n },\n ],\n currentBlockNumber: 16_134_623,\n estimatedBaseFees: [\n {\n 'pending+1': [\n {\n baseFee: 29.62,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+2': [\n {\n baseFee: 33.33,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+3': [\n {\n baseFee: 37.4,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+4': [\n {\n baseFee: 39.26,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+5': [\n {\n baseFee: 40.68,\n confidence: 99,\n },\n ],\n },\n ],\n maxPrice: 64,\n msSinceLastBlock: 9645,\n network: 'main',\n schema: 'network.xyo.blockchain.ethereum.gas.blocknative',\n system: 'ethereum',\n timestamp: 1_670_437_800_246,\n unit: 'gwei',\n}\n","export const sampleEtherchainV1GasPricePayload = {\n currentBaseFee: 28.3,\n fast: 0.9,\n fastest: 1.5,\n recommendedBaseFee: 57.5,\n safeLow: 0.2,\n schema: 'network.xyo.blockchain.ethereum.gas.etherchain.v1',\n standard: 0.4,\n timestamp: 1_670_437_800_313,\n}\n","export const sampleEtherchainV2GasPricePayload = {\n code: 200,\n data: {\n fast: 26_423_463_713,\n priceUSD: 1229.43,\n rapid: 37_143_856_713,\n slow: 13_000_000_000,\n standard: 21_366_997_291,\n timestamp: 1_670_437_795_342,\n },\n schema: 'network.xyo.blockchain.ethereum.gas.etherchain.v2',\n timestamp: 1_670_437_800_338,\n}\n","export const sampleEthersGasPricePayload = {\n gasPrice: 26_770_943_129,\n lastBaseFeePerGas: 26_494_335_502,\n maxFeePerGas: 54_488_671_004,\n maxPriorityFeePerGas: 1_500_000_000,\n schema: 'network.xyo.blockchain.ethereum.gas.ethers',\n timestamp: 1_670_437_800_345,\n}\n","export const sampleEtherscanGasPricePayload = {\n message: 'OK',\n result: {\n FastGasPrice: '35',\n LastBlock: '16134573',\n ProposeGasPrice: '35',\n SafeGasPrice: '34',\n gasUsedRatio: '0.4491729,0.440816333333333,0.480461266666667,0.373305033333333,0.322907566666667',\n suggestBaseFee: '33.952097068',\n },\n schema: 'network.xyo.blockchain.ethereum.gas.etherscan',\n status: '1',\n timestamp: 1_670_437_200_510,\n}\n","export const sampleEthGasStationGasPricePayload = {\n baseFee: 37,\n blockNumber: 16_134_572,\n blockTime: 11.88,\n gasPrice: {\n fast: 84,\n instant: 97,\n standard: 53,\n },\n nextBaseFee: 37,\n priorityFee: {\n fast: 5,\n instant: 14,\n standard: 2,\n },\n schema: 'network.xyo.blockchain.ethereum.gas.ethgasstation',\n timestamp: 1_670_437_200_687,\n}\n","import type { Payload } from '@xyo-network/payload-model'\n\ntype TestPayload = Payload<\n {\n test: string\n },\n 'network.xyo.temp'\n>\n\n// needs to be in a function since cjs doesn't support top level awaits\nexport const samplePayloadFromBuilder = {\n ...({ schema: 'network.xyo.temp', test: 'hello' } as TestPayload),\n _archive: 'temp',\n}\n\nexport const sampleIdPayload = {\n salt: '81b2372a-b4f0-4ab5-8642-c4e6de46a1cf',\n schema: 'network.xyo.id',\n}\n\nexport const sampleSystemInfoBrowserPayload = {\n bowser: {\n browser: {\n name: 'Chrome',\n\n version: '104.0.0.0',\n },\n engine: { name: 'Blink' },\n os: {\n name: 'Windows',\n version: 'NT 10.0',\n versionName: '10',\n },\n platform: { type: 'desktop' },\n },\n schema: 'network.xyo.system.info.browser',\n}\n","export const sampleUniswapPayload = {\n pairs: [\n {\n tokens: [\n {\n address: '0x55296f69f40Ea6d20E478533C15A6B08B654E758',\n symbol: 'xyo',\n value: 0.000_006_889_28,\n },\n {\n address: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',\n symbol: 'weth',\n value: 145_153,\n },\n ],\n },\n {\n tokens: [\n {\n address: '0x55296f69f40Ea6d20E478533C15A6B08B654E758',\n symbol: 'xyo',\n value: 0.011_976_6,\n },\n {\n address: '0xdAC17F958D2ee523a2206206994597C13D831ec7',\n symbol: 'usdt',\n value: 83.496,\n },\n ],\n },\n {\n tokens: [\n {\n address: '0x55296f69f40Ea6d20E478533C15A6B08B654E758',\n symbol: 'xyo',\n value: 0.011_981_5,\n },\n {\n address: '0x6B175474E89094C44Da98b954EedeAC495271d0F',\n symbol: 'dai',\n value: 83.4619,\n },\n ],\n },\n {\n tokens: [\n {\n address: '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599',\n symbol: 'wbtc',\n value: 1_985_210,\n },\n {\n address: '0x55296f69f40Ea6d20E478533C15A6B08B654E758',\n symbol: 'xyo',\n value: 5.037_25e-7,\n },\n ],\n },\n {\n tokens: [\n {\n address: '0x514910771AF9Ca656af840dff83E8264EcF986CA',\n symbol: 'link',\n value: 632.648,\n },\n {\n address: '0x55296f69f40Ea6d20E478533C15A6B08B654E758',\n symbol: 'xyo',\n value: 0.001_580_66,\n },\n ],\n },\n {\n tokens: [\n {\n address: '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599',\n symbol: 'wbtc',\n value: 13.8399,\n },\n {\n address: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',\n symbol: 'weth',\n value: 0.072_255,\n },\n ],\n },\n {\n tokens: [\n {\n address: '0x6B175474E89094C44Da98b954EedeAC495271d0F',\n symbol: 'dai',\n value: 1.000_04,\n },\n {\n address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',\n symbol: 'usdc',\n value: 0.999_964,\n },\n ],\n },\n {\n tokens: [\n {\n address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',\n symbol: 'usdc',\n value: 0.000_575_766,\n },\n {\n address: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',\n symbol: 'weth',\n value: 1736.82,\n },\n ],\n },\n {\n tokens: [\n {\n address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',\n symbol: 'usdc',\n value: 0.000_577_657,\n },\n {\n address: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',\n symbol: 'weth',\n value: 1731.13,\n },\n ],\n },\n {\n tokens: [\n {\n address: '0x6B175474E89094C44Da98b954EedeAC495271d0F',\n symbol: 'dai',\n value: 1.000_02,\n },\n {\n address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',\n symbol: 'usdc',\n value: 0.999_983,\n },\n ],\n },\n {\n tokens: [\n {\n address: '0x853d955aCEf822Db058eb8505911ED77F175b99e',\n symbol: 'frax',\n value: 0.999_829,\n },\n {\n address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',\n symbol: 'usdc',\n value: 1.000_17,\n },\n ],\n },\n {\n tokens: [\n {\n address: '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599',\n symbol: 'wbtc',\n value: 23_967.5,\n },\n {\n address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',\n symbol: 'usdc',\n value: 0.000_041_723_2,\n },\n ],\n },\n {\n tokens: [\n {\n address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',\n symbol: 'usdc',\n value: 0.999_756,\n },\n {\n address: '0xdAC17F958D2ee523a2206206994597C13D831ec7',\n symbol: 'usdt',\n value: 1.000_24,\n },\n ],\n },\n ],\n schema: 'network.xyo.crypto.market.uniswap',\n timestamp: 1_659_071_465_718,\n}\n\nexport const payloadDataMissingPairs = {\n pairs: [],\n schema: 'network.xyo.crypto.market.uniswap',\n timestamp: 1_659_071_465_718,\n}\n","import { Button } from '@mui/material'\nimport type { Decorator } from '@storybook/react-vite'\nimport React, { useRef } from 'react'\n\nexport const WithRefDecorator: Decorator = (Story, args) => {\n const ref = useRef<HTMLDivElement | null>(null)\n const onClick = () => {\n if (ref.current) {\n ref.current.style.color = 'green'\n }\n }\n\n args.args.ref = ref\n return (\n <>\n <Button onClick={onClick} variant=\"contained\">\n Change to green\n </Button>\n <Story {...args} />\n </>\n )\n}\n"],"mappings":";AACO,IAAM,oBAAoB;;;ACDjC,SAAS,OAAO,kBAAkB;AAK9B,SACE,KADF;AAFG,IAAM,iBAAiD,CAAC,EAAE,QAAQ,MAAM;AAC7E,SACE,qBAAC,SAAM,UAAS,SAAQ,IAAI,EAAE,cAAc,OAAO,GACjD;AAAA,wBAAC,cAAW,uCAAyB;AAAA,IACpC;AAAA,KACH;AAEJ;;;ACTA,SAAS,0BAA0B;AAE5B,IAAM,uBAAuB;AAAA,EAClC;AAAA,IACE,aAAa;AAAA,MACX;AAAA,IACF;AAAA,IACA,WAAW,CAAC,0CAA0C;AAAA,IACtD,gBAAgB,CAAC,kEAAkE;AAAA,IACnF,iBAAiB,CAAC,gBAAgB;AAAA,IAClC,iBAAiB,CAAC,kEAAkE;AAAA,IACpF,QAAQ;AAAA,EACV;AAAA,EACA;AAAA,IACE,aAAa;AAAA,MACX;AAAA,IACF;AAAA,IACA,WAAW,CAAC,0CAA0C;AAAA,IACtD,gBAAgB,CAAC,kEAAkE;AAAA,IACnF,iBAAiB,CAAC,gBAAgB;AAAA,IAClC,iBAAiB,CAAC,kEAAkE;AAAA,IACpF,QAAQ;AAAA,EACV;AAAA,EACA;AAAA,IACE,aAAa;AAAA,MACX;AAAA,IACF;AAAA,IACA,WAAW,CAAC,0CAA0C;AAAA,IACtD,gBAAgB,CAAC,kEAAkE;AAAA,IACnF,iBAAiB,CAAC,gBAAg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,cAAc;AAY1B,mBACE,OAAAA,MADF,QAAAC,aAAA;AAVG,IAAM,mBAA8B,CAAC,OAAO,SAAS;AAC1D,QAAM,MAAM,OAA8B,IAAI;AAC9C,QAAM,UAAU,MAAM;AACpB,QAAI,IAAI,SAAS;AACf,UAAI,QAAQ,MAAM,QAAQ;AAAA,IAC5B;AAAA,EACF;AAEA,OAAK,KAAK,MAAM;AAChB,SACE,gBAAAA,MAAA,YACE;AAAA,oBAAAD,KAAC,UAAO,SAAkB,SAAQ,aAAY,6BAE9C;AAAA,IACA,gBAAAA,KAAC,SAAO,GAAG,MAAM;AAAA,KACnB;AAEJ;","names":["jsx","jsxs"]}
1
+ {"version":3,"sources":["../../src/defaultSeedPhrase.ts","../../src/DeprecateStory.tsx","../../src/sampleAddressHistory.ts","../../src/sampleBlock.ts","../../src/sampleCoinGeckoPayload.ts","../../src/sampleEthereumGasDivinerPayload.ts","../../src/sampleGasPricePayloads/blocknative.ts","../../src/sampleGasPricePayloads/etherchainV1.ts","../../src/sampleGasPricePayloads/etherchainV2.ts","../../src/sampleGasPricePayloads/ethers.ts","../../src/sampleGasPricePayloads/etherscan.ts","../../src/sampleGasPricePayloads/ethGasStation.ts","../../src/samplePayload.ts","../../src/sampleUniswapPayload.ts","../../src/WithRefDecorator.tsx"],"sourcesContent":["// Well known seed phrase. DO NOT USE FOR PERSONAL ACCOUNTS\nexport const DefaultSeedPhrase = 'later puppy sound rebuild rebuild noise ozone amazing hope broccoli crystal grief'\n","import { Alert, AlertTitle } from '@mui/material'\nimport React from 'react'\n\nexport const DeprecateStory: React.FC<{ message?: string }> = ({ message }) => {\n return (\n <Alert severity=\"error\" sx={{ marginBottom: '24px' }}>\n <AlertTitle>Story has been Deprecated</AlertTitle>\n {message}\n </Alert>\n )\n}\n","import type { BoundWitness } from '@xyo-network/boundwitness-model'\nimport { BoundWitnessSchema } from '@xyo-network/boundwitness-model'\n\nexport const sampleAddressHistory = [\n {\n $signatures: [\n '186de1122640fc9d6577765e0b0f6822860994a0fbd1f80354963f89eebc3da01d0a68c36d2c6facab89bd777964c0d5b76103eb35b7900cc69bb1b90231117e',\n ],\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['97e693d0eb86eec1ca28f2bb0c77ddaae821fd0a9adc51c1521cdd754e2e207d'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['8f914f739a96cb8baffaf156724240e4d51ab94cd4a374754c4e8f8281dc4191'],\n schema: BoundWitnessSchema,\n },\n {\n $signatures: [\n '35c4aa262694cdf6c72f473e4e2a4b164b35a5f228a6ed1c8345b8a6b7b0d192d6868fc038a09258f2b7016d04157640d7555109102e3c072556f8c4c002543f',\n ],\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['b01dd00648fafa4488ff461c812e80e5c657939da8c7d4bb056177e241554449'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['7456e3a653f6b3cac3ee0204cef37152eeb8cfeef3e20a0e177abf7ec36e0236'],\n schema: BoundWitnessSchema,\n },\n {\n $signatures: [\n 'f273d8a8587ec2c6c9e91416eec66fdd441156f9ce2fb54e3e78e885aa792017e10ea36af44d9453422ffbafd58732a80387ab57c93ae0618b09aa4847f5e457',\n ],\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['03be02066ed31dc92ffd371a48026eac5770a8647160704b70e8dca8fc64cb0a'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['053d47a27012548dc0b3bb469e6598c7a48e81d3a552a790b455922cdb0750ba'],\n schema: BoundWitnessSchema,\n },\n {\n $signatures: [\n '79960dd5c590a1007bc526729a3ffee3153bb37ace383485ed298b3ba94939fffade54980a02c57119238bd9984d2860b822d29dbb36b04251fab83354b5a7cc',\n ],\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['5ebf3c990e08174bcf3987dc94ff0a4ec33b6ba806d3f3ec50e0966395fc1c76'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['9ae219b4d71a5c46321a21cdef08540fafe7e6d51440ba34699883bdaf15e61d'],\n schema: BoundWitnessSchema,\n },\n {\n $signatures: [\n '03830c7e9345a80390524543eb4ca097530bafa5d109b91a5a328399fcffe5af3a32b3a66658c045d013cf9b4fd598cafc9374bd0004d0c1bb2224ac812b855a',\n ],\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['ce405ae29915ea7b5f62a87c316bf4f46052c7bb0a36e67e621fedb1ec96fec5'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['322e48abf142b99635ea51c73d7d6225c04514348ffd3c37399c39b0e17d4972'],\n schema: BoundWitnessSchema,\n },\n {\n $signatures: [\n '2ddd7f65ad5ccdce83318f47040db7f45ef76142d2bb9c549241ac59619bf00a671f1ca5755d4e4b0e59fb8eb11c31e1d26c5d376eb57d8eeee7156469ae770b',\n ],\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['84efe9b19a752d3d997cfe5e7c336b1b090669fc0172f649825b2f24c8d82876'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: [null],\n schema: BoundWitnessSchema,\n },\n] as BoundWitness[]\n\nexport const randomizedSampleAddressHistory = [\n {\n $signatures: [\n '35c4aa262694cdf6c72f473e4e2a4b164b35a5f228a6ed1c8345b8a6b7b0d192d6868fc038a09258f2b7016d04157640d7555109102e3c072556f8c4c002543f',\n ],\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['b01dd00648fafa4488ff461c812e80e5c657939da8c7d4bb056177e241554449'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['7456e3a653f6b3cac3ee0204cef37152eeb8cfeef3e20a0e177abf7ec36e0236'],\n schema: BoundWitnessSchema,\n },\n {\n $signatures: [\n '79960dd5c590a1007bc526729a3ffee3153bb37ace383485ed298b3ba94939fffade54980a02c57119238bd9984d2860b822d29dbb36b04251fab83354b5a7cc',\n ],\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['5ebf3c990e08174bcf3987dc94ff0a4ec33b6ba806d3f3ec50e0966395fc1c76'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['9ae219b4d71a5c46321a21cdef08540fafe7e6d51440ba34699883bdaf15e61d'],\n schema: BoundWitnessSchema,\n },\n {\n $signatures: [\n '186de1122640fc9d6577765e0b0f6822860994a0fbd1f80354963f89eebc3da01d0a68c36d2c6facab89bd777964c0d5b76103eb35b7900cc69bb1b90231117e',\n ],\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['97e693d0eb86eec1ca28f2bb0c77ddaae821fd0a9adc51c1521cdd754e2e207d'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['8f914f739a96cb8baffaf156724240e4d51ab94cd4a374754c4e8f8281dc4191'],\n schema: BoundWitnessSchema,\n },\n {\n $signatures: [\n 'f273d8a8587ec2c6c9e91416eec66fdd441156f9ce2fb54e3e78e885aa792017e10ea36af44d9453422ffbafd58732a80387ab57c93ae0618b09aa4847f5e457',\n ],\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['03be02066ed31dc92ffd371a48026eac5770a8647160704b70e8dca8fc64cb0a'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['053d47a27012548dc0b3bb469e6598c7a48e81d3a552a790b455922cdb0750ba'],\n schema: BoundWitnessSchema,\n },\n {\n $signatures: [\n '2ddd7f65ad5ccdce83318f47040db7f45ef76142d2bb9c549241ac59619bf00a671f1ca5755d4e4b0e59fb8eb11c31e1d26c5d376eb57d8eeee7156469ae770b',\n ],\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['84efe9b19a752d3d997cfe5e7c336b1b090669fc0172f649825b2f24c8d82876'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: [null],\n schema: BoundWitnessSchema,\n },\n {\n $signatures: [\n '03830c7e9345a80390524543eb4ca097530bafa5d109b91a5a328399fcffe5af3a32b3a66658c045d013cf9b4fd598cafc9374bd0004d0c1bb2224ac812b855a',\n ],\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['ce405ae29915ea7b5f62a87c316bf4f46052c7bb0a36e67e621fedb1ec96fec5'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['322e48abf142b99635ea51c73d7d6225c04514348ffd3c37399c39b0e17d4972'],\n schema: BoundWitnessSchema,\n },\n] as BoundWitness[]\n","import type { BoundWitness, Signed } from '@xyo-network/boundwitness-model'\n\nexport const sampleBlock = {\n $signatures: ['d0969a4edd2cbb55f879bb68733a36509dab7516c52e3066fd2e248ee80f98e36bdd56a0711140cfbc55106d4c65fe7ed58df8c03c5d360b34d3c74ea3b6fe1f'],\n addresses: ['9c6df83b84297985d3ccc1f721ba1c2e3608c751'],\n payload_hashes: [\n '43df96261884ec99e0d7667120d036065c1f6a88dbb999f30d7c820dc9a37ee5',\n '31b3a835ebad2b6f2d6cc16ec855b41f237116f52b515aac9a8f555fec05fa3e',\n '97e693d0eb86eec1ca28f2bb0c77ddaae821fd0a9adc51c1521cdd754e2e207d',\n 'be39d7b3b3383e65405236c0c314e4601eb5e98859266fef4e5caf22b16d5706',\n '21ab79e5fae74ccc22d611a42732f9257e7a29a4da744e51ec99feda948e1115',\n 'bd5825ee3cefa969ded2dd1a35d9f28a9a0f312703e7f57bf8554ccda24f0b5f',\n ],\n payload_schemas: [\n 'network.xyo.location',\n 'network.xyo.id',\n 'network.xyo.id',\n 'network.xyo.payload',\n 'network.xyo.location.range.answer',\n 'network.xyo.location.range',\n ],\n previous_hashes: [null],\n schema: 'network.xyo.boundwitness',\n} as Signed<BoundWitness>\n\nexport const sampleBlockWithBoundWitnessPayload = {\n $signatures: ['d0969a4edd2cbb55f879bb68733a36509dab7516c52e3066fd2e248ee80f98e36bdd56a0711140cfbc55106d4c65fe7ed58df8c03c5d360b34d3c74ea3b6fe1f'],\n addresses: ['9c6df83b84297985d3ccc1f721ba1c2e3608c751'],\n payload_hashes: [\n '43df96261884ec99e0d7667120d036065c1f6a88dbb999f30d7c820dc9a37ee5',\n '31b3a835ebad2b6f2d6cc16ec855b41f237116f52b515aac9a8f555fec05fa3e',\n '97e693d0eb86eec1ca28f2bb0c77ddaae821fd0a9adc51c1521cdd754e2e207d',\n 'be39d7b3b3383e65405236c0c314e4601eb5e98859266fef4e5caf22b16d5706',\n '21ab79e5fae74ccc22d611a42732f9257e7a29a4da744e51ec99feda948e1115',\n 'bd5825ee3cefa969ded2dd1a35d9f28a9a0f312703e7f57bf8554ccda24f0b5f',\n ],\n payload_schemas: [\n 'network.xyo.boundwitness',\n 'network.xyo.id',\n 'network.xyo.id',\n 'network.xyo.payload',\n 'network.xyo.location.range.answer',\n 'network.xyo.location.range',\n ],\n previous_hashes: [null],\n schema: 'network.xyo.boundwitness',\n} as Signed<BoundWitness>\n","import { asSchema } from '@xyo-network/payload-model'\n\nexport const sampleCoinGeckoPayload = {\n assets: {\n ada: {\n btc: 0.000_021_21,\n eth: 0.000_286_02,\n eur: 0.455_045,\n usd: 0.451_912,\n },\n btc: {\n btc: 1,\n eth: 13.480_925,\n eur: 21_444,\n usd: 21_297,\n },\n busd: {\n btc: 0.000_046_91,\n eth: 0.000_632_54,\n eur: 1.006,\n usd: 0.999_271,\n },\n doge: {\n btc: 0.000_003_15,\n eth: 0.000_042_51,\n eur: 0.067_639,\n usd: 0.067_173,\n },\n dot: {\n btc: 0.000_339_57,\n eth: 0.004_579_09,\n eur: 7.28,\n usd: 7.23,\n },\n eth: {\n btc: 0.074_168_36,\n eth: 1,\n eur: 1590.95,\n usd: 1580,\n },\n sol: {\n btc: 0.001_623_96,\n eth: 0.021_898_73,\n eur: 34.83,\n usd: 34.59,\n },\n usdc: {\n btc: 0.000_046_91,\n eth: 0.000_632_59,\n eur: 1.006,\n usd: 0.999_341,\n },\n usdt: {\n btc: 0.000_046_97,\n eth: 0.000_633_28,\n eur: 1.008,\n usd: 1.001,\n },\n wbtc: {\n btc: 0.999_857_08,\n eth: 13.482_839,\n eur: 21_447,\n usd: 21_300,\n },\n xyo: {\n btc: 4.063_47e-7,\n eth: 0.000_005_48,\n eur: 0.008_716_42,\n usd: 0.008_656_4,\n },\n },\n schema: asSchema('network.xyo.crypto.market.coingecko', true),\n timestamp: 1_661_188_759_757,\n}\n","import { asSchema } from '@xyo-network/payload-model'\n\nexport const sampleEthereumGasDivinerPayload = {\n baseFee: 13.364_650_519_8,\n feePerGas: {\n high: 17.306_096_430_2,\n low: 12.155_000_000_000_001,\n medium: 12.5625,\n veryHigh: 16.546_248_588_5,\n },\n priorityFeePerGas: {\n high: 1.075,\n low: 0.746_666_666_666_666_7,\n medium: 0.856_666_666_666_666_8,\n veryHigh: 1.276_666_666_666_666_6,\n },\n schema: asSchema('network.xyo.blockchain.ethereum.gas', true),\n timestamp: 1_669_819_808_305,\n}\n\nexport const sampleEthereumGasDivinerPayloadMissingFees = {\n feePerGas: {},\n priorityFeePerGas: {},\n schema: asSchema('network.xyo.blockchain.ethereum.gas', true),\n timestamp: 1_659_071_465_718,\n}\n","import { asSchema } from '@xyo-network/payload-model'\n\nexport const sampleBlocknativeGasPricePayload = {\n blockPrices: [\n {\n baseFeePerGas: 26.328_474_78,\n blockNumber: 16_134_624,\n estimatedPrices: [\n {\n confidence: 99,\n maxFeePerGas: 41.86,\n maxPriorityFeePerGas: 1.18,\n price: 27,\n },\n {\n confidence: 95,\n maxFeePerGas: 41.54,\n maxPriorityFeePerGas: 0.86,\n price: 27,\n },\n {\n confidence: 90,\n maxFeePerGas: 41.15,\n maxPriorityFeePerGas: 0.47,\n price: 26,\n },\n {\n confidence: 80,\n maxFeePerGas: 41,\n maxPriorityFeePerGas: 0.32,\n price: 26,\n },\n {\n confidence: 70,\n maxFeePerGas: 40.93,\n maxPriorityFeePerGas: 0.25,\n price: 26,\n },\n ],\n estimatedTransactionCount: 186,\n },\n ],\n currentBlockNumber: 16_134_623,\n estimatedBaseFees: [\n {\n 'pending+1': [\n {\n baseFee: 29.62,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+2': [\n {\n baseFee: 33.33,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+3': [\n {\n baseFee: 37.4,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+4': [\n {\n baseFee: 39.26,\n confidence: 99,\n },\n ],\n },\n {\n 'pending+5': [\n {\n baseFee: 40.68,\n confidence: 99,\n },\n ],\n },\n ],\n maxPrice: 64,\n msSinceLastBlock: 9645,\n network: 'main',\n schema: asSchema('network.xyo.blockchain.ethereum.gas.blocknative', true),\n system: 'ethereum',\n timestamp: 1_670_437_800_246,\n unit: 'gwei',\n}\n","export const sampleEtherchainV1GasPricePayload = {\n currentBaseFee: 28.3,\n fast: 0.9,\n fastest: 1.5,\n recommendedBaseFee: 57.5,\n safeLow: 0.2,\n schema: 'network.xyo.blockchain.ethereum.gas.etherchain.v1',\n standard: 0.4,\n timestamp: 1_670_437_800_313,\n}\n","import { asSchema } from '@xyo-network/payload-model'\n\nexport const sampleEtherchainV2GasPricePayload = {\n code: 200,\n data: {\n fast: 26_423_463_713,\n priceUSD: 1229.43,\n rapid: 37_143_856_713,\n slow: 13_000_000_000,\n standard: 21_366_997_291,\n timestamp: 1_670_437_795_342,\n },\n schema: asSchema('network.xyo.blockchain.ethereum.gas.etherchain.v2', true),\n timestamp: 1_670_437_800_338,\n}\n","import { asSchema } from '@xyo-network/payload-model'\n\nexport const sampleEthersGasPricePayload = {\n gasPrice: 26_770_943_129,\n lastBaseFeePerGas: 26_494_335_502,\n maxFeePerGas: 54_488_671_004,\n maxPriorityFeePerGas: 1_500_000_000,\n schema: asSchema('network.xyo.blockchain.ethereum.gas.ethers', true),\n timestamp: 1_670_437_800_345,\n}\n","import { asSchema } from '@xyo-network/payload-model'\n\nexport const sampleEtherscanGasPricePayload = {\n message: 'OK',\n result: {\n FastGasPrice: '35',\n LastBlock: '16134573',\n ProposeGasPrice: '35',\n SafeGasPrice: '34',\n gasUsedRatio: '0.4491729,0.440816333333333,0.480461266666667,0.373305033333333,0.322907566666667',\n suggestBaseFee: '33.952097068',\n },\n schema: asSchema('network.xyo.blockchain.ethereum.gas.etherscan', true),\n status: '1',\n timestamp: 1_670_437_200_510,\n}\n","import { asSchema } from '@xyo-network/payload-model'\n\nexport const sampleEthGasStationGasPricePayload = {\n baseFee: 37,\n blockNumber: 16_134_572,\n blockTime: 11.88,\n gasPrice: {\n fast: 84,\n instant: 97,\n standard: 53,\n },\n nextBaseFee: 37,\n priorityFee: {\n fast: 5,\n instant: 14,\n standard: 2,\n },\n schema: asSchema('network.xyo.blockchain.ethereum.gas.ethgasstation', true),\n timestamp: 1_670_437_200_687,\n}\n","import { asSchema, type Payload } from '@xyo-network/payload-model'\n\nconst TempSchema = asSchema('network.xyo.temp', true)\ntype TempSchema = typeof TempSchema\n\ntype TestPayload = Payload<\n {\n test: string\n },\n TempSchema\n>\n\n// needs to be in a function since cjs doesn't support top level awaits\nexport const samplePayloadFromBuilder = {\n ...({ schema: TempSchema, test: 'hello' } as TestPayload),\n _archive: 'temp',\n}\n\nexport const sampleIdPayload = {\n salt: '81b2372a-b4f0-4ab5-8642-c4e6de46a1cf',\n schema: asSchema('network.xyo.id', true),\n}\n\nexport const sampleSystemInfoBrowserPayload = {\n bowser: {\n browser: {\n name: 'Chrome',\n\n version: '104.0.0.0',\n },\n engine: { name: 'Blink' },\n os: {\n name: 'Windows',\n version: 'NT 10.0',\n versionName: '10',\n },\n platform: { type: 'desktop' },\n },\n schema: asSchema('network.xyo.system.info.browser', true),\n}\n","import { asSchema } from '@xyo-network/payload-model'\n\nexport const sampleUniswapPayload = {\n pairs: [\n {\n tokens: [\n {\n address: '0x55296f69f40Ea6d20E478533C15A6B08B654E758',\n symbol: 'xyo',\n value: 0.000_006_889_28,\n },\n {\n address: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',\n symbol: 'weth',\n value: 145_153,\n },\n ],\n },\n {\n tokens: [\n {\n address: '0x55296f69f40Ea6d20E478533C15A6B08B654E758',\n symbol: 'xyo',\n value: 0.011_976_6,\n },\n {\n address: '0xdAC17F958D2ee523a2206206994597C13D831ec7',\n symbol: 'usdt',\n value: 83.496,\n },\n ],\n },\n {\n tokens: [\n {\n address: '0x55296f69f40Ea6d20E478533C15A6B08B654E758',\n symbol: 'xyo',\n value: 0.011_981_5,\n },\n {\n address: '0x6B175474E89094C44Da98b954EedeAC495271d0F',\n symbol: 'dai',\n value: 83.4619,\n },\n ],\n },\n {\n tokens: [\n {\n address: '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599',\n symbol: 'wbtc',\n value: 1_985_210,\n },\n {\n address: '0x55296f69f40Ea6d20E478533C15A6B08B654E758',\n symbol: 'xyo',\n value: 5.037_25e-7,\n },\n ],\n },\n {\n tokens: [\n {\n address: '0x514910771AF9Ca656af840dff83E8264EcF986CA',\n symbol: 'link',\n value: 632.648,\n },\n {\n address: '0x55296f69f40Ea6d20E478533C15A6B08B654E758',\n symbol: 'xyo',\n value: 0.001_580_66,\n },\n ],\n },\n {\n tokens: [\n {\n address: '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599',\n symbol: 'wbtc',\n value: 13.8399,\n },\n {\n address: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',\n symbol: 'weth',\n value: 0.072_255,\n },\n ],\n },\n {\n tokens: [\n {\n address: '0x6B175474E89094C44Da98b954EedeAC495271d0F',\n symbol: 'dai',\n value: 1.000_04,\n },\n {\n address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',\n symbol: 'usdc',\n value: 0.999_964,\n },\n ],\n },\n {\n tokens: [\n {\n address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',\n symbol: 'usdc',\n value: 0.000_575_766,\n },\n {\n address: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',\n symbol: 'weth',\n value: 1736.82,\n },\n ],\n },\n {\n tokens: [\n {\n address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',\n symbol: 'usdc',\n value: 0.000_577_657,\n },\n {\n address: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',\n symbol: 'weth',\n value: 1731.13,\n },\n ],\n },\n {\n tokens: [\n {\n address: '0x6B175474E89094C44Da98b954EedeAC495271d0F',\n symbol: 'dai',\n value: 1.000_02,\n },\n {\n address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',\n symbol: 'usdc',\n value: 0.999_983,\n },\n ],\n },\n {\n tokens: [\n {\n address: '0x853d955aCEf822Db058eb8505911ED77F175b99e',\n symbol: 'frax',\n value: 0.999_829,\n },\n {\n address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',\n symbol: 'usdc',\n value: 1.000_17,\n },\n ],\n },\n {\n tokens: [\n {\n address: '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599',\n symbol: 'wbtc',\n value: 23_967.5,\n },\n {\n address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',\n symbol: 'usdc',\n value: 0.000_041_723_2,\n },\n ],\n },\n {\n tokens: [\n {\n address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',\n symbol: 'usdc',\n value: 0.999_756,\n },\n {\n address: '0xdAC17F958D2ee523a2206206994597C13D831ec7',\n symbol: 'usdt',\n value: 1.000_24,\n },\n ],\n },\n ],\n schema: asSchema('network.xyo.crypto.market.uniswap', true),\n timestamp: 1_659_071_465_718,\n}\n\nexport const payloadDataMissingPairs = {\n pairs: [],\n schema: asSchema('network.xyo.crypto.market.uniswap', true),\n timestamp: 1_659_071_465_718,\n}\n","import { Button } from '@mui/material'\nimport type { Decorator } from '@storybook/react-vite'\nimport React, { useRef } from 'react'\n\nexport const WithRefDecorator: Decorator = (Story, args) => {\n const ref = useRef<HTMLDivElement | null>(null)\n const onClick = () => {\n if (ref.current) {\n ref.current.style.color = 'green'\n }\n }\n\n args.args.ref = ref\n return (\n <>\n <Button onClick={onClick} variant=\"contained\">\n Change to green\n </Button>\n <Story {...args} />\n </>\n )\n}\n"],"mappings":";;;;AACO,IAAMA,oBAAoB;;;ACDjC,SAASC,OAAOC,kBAAkB;AAClC,OAAOC,WAAW;AAEX,IAAMC,iBAAiD,wBAAC,EAAEC,QAAO,MAAE;AACxE,SACE,sBAAA,cAACC,OAAAA;IAAMC,UAAS;IAAQC,IAAI;MAAEC,cAAc;IAAO;KACjD,sBAAA,cAACC,YAAAA,MAAW,2BAAA,GACXL,OAAAA;AAGP,GAP8D;;;ACF9D,SAASM,0BAA0B;AAE5B,IAAMC,uBAAuB;EAClC;IACEC,aAAa;MACX;;IAEFC,WAAW;MAAC;;IACZC,gBAAgB;MAAC;;IACjBC,iBAAiB;MAAC;;IAClBC,iBAAiB;MAAC;;IAClBC,QAAQP;EACV;EACA;IACEE,aAAa;MACX;;IAEFC,WAAW;MAAC;;IACZC,gBAAgB;MAAC;;IACjBC,iBAAiB;MAAC;;IAClBC,iBAAiB;MAAC;;IAClBC,QAAQP;EACV;EACA;IACEE,aAAa;MACX;;IAEFC,WAAW;MAAC;;IACZC,gBAAgB;MAAC;;IACjBC,iBAAiB;MAAC;;IAClBC,iBAAiB;MAAC;;IAClBC,QAAQP;EACV;EACA;IACEE,aAAa;MACX;;IAEFC,WAAW;MAAC;;IACZC,gBAAgB;MAAC;;IACjBC,iBAAiB;MAAC;;IAClBC,iBAAiB;MAAC;;IAClBC,QAAQP;EACV;EACA;IACEE,aAAa;MACX;;IAEFC,WAAW;MAAC;;IACZC,gBAAgB;MAAC;;IACjBC,iBAAiB;MAAC;;IAClBC,iBAAiB;MAAC;;IAClBC,QAAQP;EACV;EACA;IACEE,aAAa;MACX;;IAEFC,WAAW;MAAC;;IACZC,gBAAgB;MAAC;;IACjBC,iBAAiB;MAAC;;IAClBC,iBAAiB;MAAC;;IACl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AO;QACT;;IAEJ;IACA;MACEH,QAAQ;QACN;UACEC,SAAS;UACTC,QAAQ;UACRC,OAAO;QACT;QACA;UACEF,SAAS;UACTC,QAAQ;UACRC,OAAO;QACT;;IAEJ;IACA;MACEH,QAAQ;QACN;UACEC,SAAS;UACTC,QAAQ;UACRC,OAAO;QACT;QACA;UACEF,SAAS;UACTC,QAAQ;UACRC,OAAO;QACT;;IAEJ;;EAEFC,QAAQP,UAAS,qCAAqC,IAAA;EACtDQ,WAAW;AACb;AAEO,IAAMC,0BAA0B;EACrCP,OAAO,CAAA;EACPK,QAAQP,UAAS,qCAAqC,IAAA;EACtDQ,WAAW;AACb;;;ACnMA,SAASE,cAAc;AAEvB,OAAOC,UAASC,cAAc;AAEvB,IAAMC,mBAA8B,wBAACC,OAAOC,SAAAA;AACjD,QAAMC,MAAMC,OAA8B,IAAA;AAC1C,QAAMC,UAAU,6BAAA;AACd,QAAIF,IAAIG,SAAS;AACfH,UAAIG,QAAQC,MAAMC,QAAQ;IAC5B;EACF,GAJgB;AAMhBN,OAAKA,KAAKC,MAAMA;AAChB,SACE,gBAAAM,OAAA,cAAAA,OAAA,UAAA,MACE,gBAAAA,OAAA,cAACC,QAAAA;IAAOL;IAAkBM,SAAQ;KAAY,iBAAA,GAG9C,gBAAAF,OAAA,cAACR,OAAUC,IAAAA,CAAAA;AAGjB,GAjB2C;","names":["DefaultSeedPhrase","Alert","AlertTitle","React","DeprecateStory","message","Alert","severity","sx","marginBottom","AlertTitle","BoundWitnessSchema","sampleAddressHistory","$signatures","addresses","payload_hashes","payload_schemas","previous_hashes","schema","randomizedSampleAddressHistory","sampleBlock","$signatures","addresses","payload_hashes","payload_schemas","previous_hashes","schema","sampleBlockWithBoundWitnessPayload","asSchema","sampleCoinGeckoPayload","assets","ada","btc","eth","eur","usd","busd","doge","dot","sol","usdc","usdt","wbtc","xyo","schema","timestamp","asSchema","sampleEthereumGasDivinerPayload","baseFee","feePerGas","high","low","medium","veryHigh","priorityFeePerGas","schema","timestamp","sampleEthereumGasDivinerPayloadMissingFees","asSchema","sampleBlocknativeGasPricePayload","blockPrices","baseFeePerGas","blockNumber","estimatedPrices","confidence","maxFeePerGas","maxPriorityFeePerGas","price","estimatedTransactionCount","currentBlockNumber","estimatedBaseFees","baseFee","maxPrice","msSinceLastBlock","network","schema","system","timestamp","unit","sampleEtherchainV1GasPricePayload","currentBaseFee","fast","fastest","recommendedBaseFee","safeLow","schema","standard","timestamp","asSchema","sampleEtherchainV2GasPricePayload","code","data","fast","priceUSD","rapid","slow","standard","timestamp","schema","asSchema","sampleEthersGasPricePayload","gasPrice","lastBaseFeePerGas","maxFeePerGas","maxPriorityFeePerGas","schema","timestamp","asSchema","sampleEtherscanGasPricePayload","message","result","FastGasPrice","LastBlock","ProposeGasPrice","SafeGasPrice","gasUsedRatio","suggestBaseFee","schema","status","timestamp","asSchema","sampleEthGasStationGasPricePayload","baseFee","blockNumber","blockTime","gasPrice","fast","instant","standard","nextBaseFee","priorityFee","schema","timestamp","asSchema","TempSchema","samplePayloadFromBuilder","schema","test","_archive","sampleIdPayload","salt","sampleSystemInfoBrowserPayload","bowser","browser","name","version","engine","os","versionName","platform","type","asSchema","sampleUniswapPayload","pairs","tokens","address","symbol","value","schema","timestamp","payloadDataMissingPairs","Button","React","useRef","WithRefDecorator","Story","args","ref","useRef","onClick","current","style","color","React","Button","variant"]}
@@ -67,7 +67,9 @@ export declare const sampleCoinGeckoPayload: {
67
67
  usd: number;
68
68
  };
69
69
  };
70
- schema: string;
70
+ schema: "network.xyo.crypto.market.coingecko" & {
71
+ readonly __schema: true;
72
+ };
71
73
  timestamp: number;
72
74
  };
73
75
  //# sourceMappingURL=sampleCoinGeckoPayload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sampleCoinGeckoPayload.d.ts","sourceRoot":"","sources":["../../src/sampleCoinGeckoPayload.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuElC,CAAA"}
1
+ {"version":3,"file":"sampleCoinGeckoPayload.d.ts","sourceRoot":"","sources":["../../src/sampleCoinGeckoPayload.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuElC,CAAA"}
@@ -12,13 +12,17 @@ export declare const sampleEthereumGasDivinerPayload: {
12
12
  medium: number;
13
13
  veryHigh: number;
14
14
  };
15
- schema: string;
15
+ schema: "network.xyo.blockchain.ethereum.gas" & {
16
+ readonly __schema: true;
17
+ };
16
18
  timestamp: number;
17
19
  };
18
20
  export declare const sampleEthereumGasDivinerPayloadMissingFees: {
19
21
  feePerGas: {};
20
22
  priorityFeePerGas: {};
21
- schema: string;
23
+ schema: "network.xyo.blockchain.ethereum.gas" & {
24
+ readonly __schema: true;
25
+ };
22
26
  timestamp: number;
23
27
  };
24
28
  //# sourceMappingURL=sampleEthereumGasDivinerPayload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sampleEthereumGasDivinerPayload.d.ts","sourceRoot":"","sources":["../../src/sampleEthereumGasDivinerPayload.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;CAgB3C,CAAA;AAED,eAAO,MAAM,0CAA0C;;;;;CAKtD,CAAA"}
1
+ {"version":3,"file":"sampleEthereumGasDivinerPayload.d.ts","sourceRoot":"","sources":["../../src/sampleEthereumGasDivinerPayload.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;CAgB3C,CAAA;AAED,eAAO,MAAM,0CAA0C;;;;;;;CAKtD,CAAA"}
@@ -60,7 +60,9 @@ export declare const sampleBlocknativeGasPricePayload: {
60
60
  maxPrice: number;
61
61
  msSinceLastBlock: number;
62
62
  network: string;
63
- schema: string;
63
+ schema: "network.xyo.blockchain.ethereum.gas.blocknative" & {
64
+ readonly __schema: true;
65
+ };
64
66
  system: string;
65
67
  timestamp: number;
66
68
  unit: string;
@@ -1 +1 @@
1
- {"version":3,"file":"blocknative.d.ts","sourceRoot":"","sources":["../../../src/sampleGasPricePayloads/blocknative.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0F5C,CAAA"}
1
+ {"version":3,"file":"blocknative.d.ts","sourceRoot":"","sources":["../../../src/sampleGasPricePayloads/blocknative.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0F5C,CAAA"}
@@ -13,7 +13,9 @@ export declare const sampleEthGasStationGasPricePayload: {
13
13
  instant: number;
14
14
  standard: number;
15
15
  };
16
- schema: string;
16
+ schema: "network.xyo.blockchain.ethereum.gas.ethgasstation" & {
17
+ readonly __schema: true;
18
+ };
17
19
  timestamp: number;
18
20
  };
19
21
  //# sourceMappingURL=ethGasStation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ethGasStation.d.ts","sourceRoot":"","sources":["../../../src/sampleGasPricePayloads/ethGasStation.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;CAiB9C,CAAA"}
1
+ {"version":3,"file":"ethGasStation.d.ts","sourceRoot":"","sources":["../../../src/sampleGasPricePayloads/ethGasStation.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;CAiB9C,CAAA"}
@@ -8,7 +8,9 @@ export declare const sampleEtherchainV2GasPricePayload: {
8
8
  standard: number;
9
9
  timestamp: number;
10
10
  };
11
- schema: string;
11
+ schema: "network.xyo.blockchain.ethereum.gas.etherchain.v2" & {
12
+ readonly __schema: true;
13
+ };
12
14
  timestamp: number;
13
15
  };
14
16
  //# sourceMappingURL=etherchainV2.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"etherchainV2.d.ts","sourceRoot":"","sources":["../../../src/sampleGasPricePayloads/etherchainV2.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iCAAiC;;;;;;;;;;;;CAY7C,CAAA"}
1
+ {"version":3,"file":"etherchainV2.d.ts","sourceRoot":"","sources":["../../../src/sampleGasPricePayloads/etherchainV2.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;CAY7C,CAAA"}
@@ -3,7 +3,9 @@ export declare const sampleEthersGasPricePayload: {
3
3
  lastBaseFeePerGas: number;
4
4
  maxFeePerGas: number;
5
5
  maxPriorityFeePerGas: number;
6
- schema: string;
6
+ schema: "network.xyo.blockchain.ethereum.gas.ethers" & {
7
+ readonly __schema: true;
8
+ };
7
9
  timestamp: number;
8
10
  };
9
11
  //# sourceMappingURL=ethers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ethers.d.ts","sourceRoot":"","sources":["../../../src/sampleGasPricePayloads/ethers.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B;;;;;;;CAOvC,CAAA"}
1
+ {"version":3,"file":"ethers.d.ts","sourceRoot":"","sources":["../../../src/sampleGasPricePayloads/ethers.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,2BAA2B;;;;;;;;;CAOvC,CAAA"}
@@ -8,7 +8,9 @@ export declare const sampleEtherscanGasPricePayload: {
8
8
  gasUsedRatio: string;
9
9
  suggestBaseFee: string;
10
10
  };
11
- schema: string;
11
+ schema: "network.xyo.blockchain.ethereum.gas.etherscan" & {
12
+ readonly __schema: true;
13
+ };
12
14
  status: string;
13
15
  timestamp: number;
14
16
  };
@@ -1 +1 @@
1
- {"version":3,"file":"etherscan.d.ts","sourceRoot":"","sources":["../../../src/sampleGasPricePayloads/etherscan.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;CAa1C,CAAA"}
1
+ {"version":3,"file":"etherscan.d.ts","sourceRoot":"","sources":["../../../src/sampleGasPricePayloads/etherscan.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;CAa1C,CAAA"}
@@ -1,12 +1,18 @@
1
1
  export declare const samplePayloadFromBuilder: {
2
2
  _archive: string;
3
- schema: "network.xyo.temp";
3
+ schema: {
4
+ readonly __schema: true;
5
+ } & "network.xyo.temp" & {
6
+ readonly __schema: true;
7
+ };
4
8
  test: string;
5
- $sources?: import(".store/@xylabs-hex-npm-5.0.50-a7a7e1b900/package").Hash[] | undefined;
9
+ $sources?: import("@xylabs/hex").BrandedHash[] | undefined;
6
10
  };
7
11
  export declare const sampleIdPayload: {
8
12
  salt: string;
9
- schema: string;
13
+ schema: "network.xyo.id" & {
14
+ readonly __schema: true;
15
+ };
10
16
  };
11
17
  export declare const sampleSystemInfoBrowserPayload: {
12
18
  bowser: {
@@ -26,6 +32,8 @@ export declare const sampleSystemInfoBrowserPayload: {
26
32
  type: string;
27
33
  };
28
34
  };
29
- schema: string;
35
+ schema: "network.xyo.system.info.browser" & {
36
+ readonly __schema: true;
37
+ };
30
38
  };
31
39
  //# sourceMappingURL=samplePayload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"samplePayload.d.ts","sourceRoot":"","sources":["../../src/samplePayload.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,wBAAwB;;;UAN3B,MAAM;;CASf,CAAA;AAED,eAAO,MAAM,eAAe;;;CAG3B,CAAA;AAED,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;CAgB1C,CAAA"}
1
+ {"version":3,"file":"samplePayload.d.ts","sourceRoot":"","sources":["../../src/samplePayload.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,wBAAwB;;;;;;;UAN3B,MAAM;;CASf,CAAA;AAED,eAAO,MAAM,eAAe;;;;;CAG3B,CAAA;AAED,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;CAgB1C,CAAA"}
@@ -6,12 +6,16 @@ export declare const sampleUniswapPayload: {
6
6
  value: number;
7
7
  }[];
8
8
  }[];
9
- schema: string;
9
+ schema: "network.xyo.crypto.market.uniswap" & {
10
+ readonly __schema: true;
11
+ };
10
12
  timestamp: number;
11
13
  };
12
14
  export declare const payloadDataMissingPairs: {
13
15
  pairs: never[];
14
- schema: string;
16
+ schema: "network.xyo.crypto.market.uniswap" & {
17
+ readonly __schema: true;
18
+ };
15
19
  timestamp: number;
16
20
  };
17
21
  //# sourceMappingURL=sampleUniswapPayload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sampleUniswapPayload.d.ts","sourceRoot":"","sources":["../../src/sampleUniswapPayload.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB;;;;;;;;;;CA2LhC,CAAA;AAED,eAAO,MAAM,uBAAuB;;;;CAInC,CAAA"}
1
+ {"version":3,"file":"sampleUniswapPayload.d.ts","sourceRoot":"","sources":["../../src/sampleUniswapPayload.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;CA2LhC,CAAA;AAED,eAAO,MAAM,uBAAuB;;;;;;CAInC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/react-storybook",
3
- "version": "7.4.2",
3
+ "version": "7.5.1",
4
4
  "description": "Common React library for all XYO projects that use React",
5
5
  "keywords": [
6
6
  "xyo",
@@ -43,33 +43,36 @@
43
43
  "src"
44
44
  ],
45
45
  "dependencies": {
46
- "@storybook/react-vite": "~10.1.4",
47
- "@xyo-network/boundwitness-model": "~5.2.17"
46
+ "@storybook/react-vite": "~10.2.1",
47
+ "@xyo-network/boundwitness-model": "~5.3.2",
48
+ "@xyo-network/payload-model": "~5.3.2"
48
49
  },
49
50
  "devDependencies": {
50
- "@mui/icons-material": "~7.3.6",
51
- "@mui/material": "~7.3.6",
52
- "@types/react": "^19.2.7",
53
- "@xylabs/hex": "~5.0.50",
54
- "@xylabs/ts-scripts-yarn3": "~7.2.8",
55
- "@xylabs/tsconfig": "~7.2.8",
56
- "@xylabs/tsconfig-dom": "~7.2.8",
57
- "@xylabs/tsconfig-react": "~7.2.8",
58
- "@xyo-network/payload-model": "~5.2.17",
59
- "react": "^19.2.1",
60
- "react-dom": "^19.2.1",
61
- "storybook": "~10.1.4",
51
+ "@mui/icons-material": "~7.3.7",
52
+ "@mui/material": "~7.3.7",
53
+ "@types/react": "^19.2.10",
54
+ "@xylabs/sdk-js": "~5.0.64",
55
+ "@xylabs/ts-scripts-yarn3": "~7.3.2",
56
+ "@xylabs/tsconfig": "~7.3.2",
57
+ "@xylabs/tsconfig-dom": "~7.3.2",
58
+ "@xylabs/tsconfig-react": "~7.3.2",
59
+ "@xyo-network/payload-model": "~5.3.2",
60
+ "react": "^19.2.4",
61
+ "react-dom": "^19.2.4",
62
+ "storybook": "~10.2.1",
62
63
  "typescript": "^5.9.3",
63
- "vite": "~7.2.6"
64
+ "vite": "~7.3.1",
65
+ "zod": "^4.3.6"
64
66
  },
65
67
  "peerDependencies": {
66
68
  "@mui/icons-material": ">=6 <8",
67
69
  "@mui/material": ">=6 <8",
68
70
  "react": "^19",
69
- "react-dom": "^19"
71
+ "react-dom": "^19",
72
+ "zod": "^4"
70
73
  },
71
74
  "publishConfig": {
72
75
  "access": "public"
73
76
  },
74
77
  "docs": "dist/docs.json"
75
- }
78
+ }
@@ -1,3 +1,5 @@
1
+ import { asSchema } from '@xyo-network/payload-model'
2
+
1
3
  export const sampleCoinGeckoPayload = {
2
4
  assets: {
3
5
  ada: {
@@ -67,6 +69,6 @@ export const sampleCoinGeckoPayload = {
67
69
  usd: 0.008_656_4,
68
70
  },
69
71
  },
70
- schema: 'network.xyo.crypto.market.coingecko',
72
+ schema: asSchema('network.xyo.crypto.market.coingecko', true),
71
73
  timestamp: 1_661_188_759_757,
72
74
  }
@@ -1,3 +1,5 @@
1
+ import { asSchema } from '@xyo-network/payload-model'
2
+
1
3
  export const sampleEthereumGasDivinerPayload = {
2
4
  baseFee: 13.364_650_519_8,
3
5
  feePerGas: {
@@ -12,13 +14,13 @@ export const sampleEthereumGasDivinerPayload = {
12
14
  medium: 0.856_666_666_666_666_8,
13
15
  veryHigh: 1.276_666_666_666_666_6,
14
16
  },
15
- schema: 'network.xyo.blockchain.ethereum.gas',
17
+ schema: asSchema('network.xyo.blockchain.ethereum.gas', true),
16
18
  timestamp: 1_669_819_808_305,
17
19
  }
18
20
 
19
21
  export const sampleEthereumGasDivinerPayloadMissingFees = {
20
22
  feePerGas: {},
21
23
  priorityFeePerGas: {},
22
- schema: 'network.xyo.blockchain.ethereum.gas',
24
+ schema: asSchema('network.xyo.blockchain.ethereum.gas', true),
23
25
  timestamp: 1_659_071_465_718,
24
26
  }
@@ -1,3 +1,5 @@
1
+ import { asSchema } from '@xyo-network/payload-model'
2
+
1
3
  export const sampleBlocknativeGasPricePayload = {
2
4
  blockPrices: [
3
5
  {
@@ -84,7 +86,7 @@ export const sampleBlocknativeGasPricePayload = {
84
86
  maxPrice: 64,
85
87
  msSinceLastBlock: 9645,
86
88
  network: 'main',
87
- schema: 'network.xyo.blockchain.ethereum.gas.blocknative',
89
+ schema: asSchema('network.xyo.blockchain.ethereum.gas.blocknative', true),
88
90
  system: 'ethereum',
89
91
  timestamp: 1_670_437_800_246,
90
92
  unit: 'gwei',
@@ -1,3 +1,5 @@
1
+ import { asSchema } from '@xyo-network/payload-model'
2
+
1
3
  export const sampleEthGasStationGasPricePayload = {
2
4
  baseFee: 37,
3
5
  blockNumber: 16_134_572,
@@ -13,6 +15,6 @@ export const sampleEthGasStationGasPricePayload = {
13
15
  instant: 14,
14
16
  standard: 2,
15
17
  },
16
- schema: 'network.xyo.blockchain.ethereum.gas.ethgasstation',
18
+ schema: asSchema('network.xyo.blockchain.ethereum.gas.ethgasstation', true),
17
19
  timestamp: 1_670_437_200_687,
18
20
  }
@@ -1,3 +1,5 @@
1
+ import { asSchema } from '@xyo-network/payload-model'
2
+
1
3
  export const sampleEtherchainV2GasPricePayload = {
2
4
  code: 200,
3
5
  data: {
@@ -8,6 +10,6 @@ export const sampleEtherchainV2GasPricePayload = {
8
10
  standard: 21_366_997_291,
9
11
  timestamp: 1_670_437_795_342,
10
12
  },
11
- schema: 'network.xyo.blockchain.ethereum.gas.etherchain.v2',
13
+ schema: asSchema('network.xyo.blockchain.ethereum.gas.etherchain.v2', true),
12
14
  timestamp: 1_670_437_800_338,
13
15
  }
@@ -1,8 +1,10 @@
1
+ import { asSchema } from '@xyo-network/payload-model'
2
+
1
3
  export const sampleEthersGasPricePayload = {
2
4
  gasPrice: 26_770_943_129,
3
5
  lastBaseFeePerGas: 26_494_335_502,
4
6
  maxFeePerGas: 54_488_671_004,
5
7
  maxPriorityFeePerGas: 1_500_000_000,
6
- schema: 'network.xyo.blockchain.ethereum.gas.ethers',
8
+ schema: asSchema('network.xyo.blockchain.ethereum.gas.ethers', true),
7
9
  timestamp: 1_670_437_800_345,
8
10
  }
@@ -1,3 +1,5 @@
1
+ import { asSchema } from '@xyo-network/payload-model'
2
+
1
3
  export const sampleEtherscanGasPricePayload = {
2
4
  message: 'OK',
3
5
  result: {
@@ -8,7 +10,7 @@ export const sampleEtherscanGasPricePayload = {
8
10
  gasUsedRatio: '0.4491729,0.440816333333333,0.480461266666667,0.373305033333333,0.322907566666667',
9
11
  suggestBaseFee: '33.952097068',
10
12
  },
11
- schema: 'network.xyo.blockchain.ethereum.gas.etherscan',
13
+ schema: asSchema('network.xyo.blockchain.ethereum.gas.etherscan', true),
12
14
  status: '1',
13
15
  timestamp: 1_670_437_200_510,
14
16
  }
@@ -1,21 +1,24 @@
1
- import type { Payload } from '@xyo-network/payload-model'
1
+ import { asSchema, type Payload } from '@xyo-network/payload-model'
2
+
3
+ const TempSchema = asSchema('network.xyo.temp', true)
4
+ type TempSchema = typeof TempSchema
2
5
 
3
6
  type TestPayload = Payload<
4
7
  {
5
8
  test: string
6
9
  },
7
- 'network.xyo.temp'
10
+ TempSchema
8
11
  >
9
12
 
10
13
  // needs to be in a function since cjs doesn't support top level awaits
11
14
  export const samplePayloadFromBuilder = {
12
- ...({ schema: 'network.xyo.temp', test: 'hello' } as TestPayload),
15
+ ...({ schema: TempSchema, test: 'hello' } as TestPayload),
13
16
  _archive: 'temp',
14
17
  }
15
18
 
16
19
  export const sampleIdPayload = {
17
20
  salt: '81b2372a-b4f0-4ab5-8642-c4e6de46a1cf',
18
- schema: 'network.xyo.id',
21
+ schema: asSchema('network.xyo.id', true),
19
22
  }
20
23
 
21
24
  export const sampleSystemInfoBrowserPayload = {
@@ -33,5 +36,5 @@ export const sampleSystemInfoBrowserPayload = {
33
36
  },
34
37
  platform: { type: 'desktop' },
35
38
  },
36
- schema: 'network.xyo.system.info.browser',
39
+ schema: asSchema('network.xyo.system.info.browser', true),
37
40
  }
@@ -1,3 +1,5 @@
1
+ import { asSchema } from '@xyo-network/payload-model'
2
+
1
3
  export const sampleUniswapPayload = {
2
4
  pairs: [
3
5
  {
@@ -183,12 +185,12 @@ export const sampleUniswapPayload = {
183
185
  ],
184
186
  },
185
187
  ],
186
- schema: 'network.xyo.crypto.market.uniswap',
188
+ schema: asSchema('network.xyo.crypto.market.uniswap', true),
187
189
  timestamp: 1_659_071_465_718,
188
190
  }
189
191
 
190
192
  export const payloadDataMissingPairs = {
191
193
  pairs: [],
192
- schema: 'network.xyo.crypto.market.uniswap',
194
+ schema: asSchema('network.xyo.crypto.market.uniswap', true),
193
195
  timestamp: 1_659_071_465_718,
194
196
  }