@xyo-network/react-storybook 6.1.3 → 6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.d.ts +11 -300
- package/dist/browser/index.mjs.map +1 -1
- package/dist/browser/sampleAddressHistory.d.ts.map +1 -1
- package/dist/browser/sampleBlock.d.ts.map +1 -1
- package/dist/browser/samplePayload.d.ts +1 -1
- package/package.json +10 -9
- package/src/sampleAddressHistory.ts +5 -4
- package/src/sampleBlock.ts +5 -4
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,300 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
declare const randomizedSampleAddressHistory: BoundWitness[];
|
|
13
|
-
|
|
14
|
-
declare const sampleBlock: BoundWitness;
|
|
15
|
-
declare const sampleBlockWithBoundWitnessPayload: BoundWitness;
|
|
16
|
-
|
|
17
|
-
declare const sampleCoinGeckoPayload: {
|
|
18
|
-
assets: {
|
|
19
|
-
ada: {
|
|
20
|
-
btc: number;
|
|
21
|
-
eth: number;
|
|
22
|
-
eur: number;
|
|
23
|
-
usd: number;
|
|
24
|
-
};
|
|
25
|
-
btc: {
|
|
26
|
-
btc: number;
|
|
27
|
-
eth: number;
|
|
28
|
-
eur: number;
|
|
29
|
-
usd: number;
|
|
30
|
-
};
|
|
31
|
-
busd: {
|
|
32
|
-
btc: number;
|
|
33
|
-
eth: number;
|
|
34
|
-
eur: number;
|
|
35
|
-
usd: number;
|
|
36
|
-
};
|
|
37
|
-
doge: {
|
|
38
|
-
btc: number;
|
|
39
|
-
eth: number;
|
|
40
|
-
eur: number;
|
|
41
|
-
usd: number;
|
|
42
|
-
};
|
|
43
|
-
dot: {
|
|
44
|
-
btc: number;
|
|
45
|
-
eth: number;
|
|
46
|
-
eur: number;
|
|
47
|
-
usd: number;
|
|
48
|
-
};
|
|
49
|
-
eth: {
|
|
50
|
-
btc: number;
|
|
51
|
-
eth: number;
|
|
52
|
-
eur: number;
|
|
53
|
-
usd: number;
|
|
54
|
-
};
|
|
55
|
-
sol: {
|
|
56
|
-
btc: number;
|
|
57
|
-
eth: number;
|
|
58
|
-
eur: number;
|
|
59
|
-
usd: number;
|
|
60
|
-
};
|
|
61
|
-
usdc: {
|
|
62
|
-
btc: number;
|
|
63
|
-
eth: number;
|
|
64
|
-
eur: number;
|
|
65
|
-
usd: number;
|
|
66
|
-
};
|
|
67
|
-
usdt: {
|
|
68
|
-
btc: number;
|
|
69
|
-
eth: number;
|
|
70
|
-
eur: number;
|
|
71
|
-
usd: number;
|
|
72
|
-
};
|
|
73
|
-
wbtc: {
|
|
74
|
-
btc: number;
|
|
75
|
-
eth: number;
|
|
76
|
-
eur: number;
|
|
77
|
-
usd: number;
|
|
78
|
-
};
|
|
79
|
-
xyo: {
|
|
80
|
-
btc: number;
|
|
81
|
-
eth: number;
|
|
82
|
-
eur: number;
|
|
83
|
-
usd: number;
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
schema: string;
|
|
87
|
-
timestamp: number;
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
declare const sampleEthereumGasDivinerPayload: {
|
|
91
|
-
baseFee: number;
|
|
92
|
-
feePerGas: {
|
|
93
|
-
high: number;
|
|
94
|
-
low: number;
|
|
95
|
-
medium: number;
|
|
96
|
-
veryHigh: number;
|
|
97
|
-
};
|
|
98
|
-
priorityFeePerGas: {
|
|
99
|
-
high: number;
|
|
100
|
-
low: number;
|
|
101
|
-
medium: number;
|
|
102
|
-
veryHigh: number;
|
|
103
|
-
};
|
|
104
|
-
schema: string;
|
|
105
|
-
timestamp: number;
|
|
106
|
-
};
|
|
107
|
-
declare const sampleEthereumGasDivinerPayloadMissingFees: {
|
|
108
|
-
feePerGas: {};
|
|
109
|
-
priorityFeePerGas: {};
|
|
110
|
-
schema: string;
|
|
111
|
-
timestamp: number;
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
declare const sampleBlocknativeGasPricePayload: {
|
|
115
|
-
blockPrices: {
|
|
116
|
-
baseFeePerGas: number;
|
|
117
|
-
blockNumber: number;
|
|
118
|
-
estimatedPrices: {
|
|
119
|
-
confidence: number;
|
|
120
|
-
maxFeePerGas: number;
|
|
121
|
-
maxPriorityFeePerGas: number;
|
|
122
|
-
price: number;
|
|
123
|
-
}[];
|
|
124
|
-
estimatedTransactionCount: number;
|
|
125
|
-
}[];
|
|
126
|
-
currentBlockNumber: number;
|
|
127
|
-
estimatedBaseFees: ({
|
|
128
|
-
'pending+1': {
|
|
129
|
-
baseFee: number;
|
|
130
|
-
confidence: number;
|
|
131
|
-
}[];
|
|
132
|
-
'pending+2'?: undefined;
|
|
133
|
-
'pending+3'?: undefined;
|
|
134
|
-
'pending+4'?: undefined;
|
|
135
|
-
'pending+5'?: undefined;
|
|
136
|
-
} | {
|
|
137
|
-
'pending+2': {
|
|
138
|
-
baseFee: number;
|
|
139
|
-
confidence: number;
|
|
140
|
-
}[];
|
|
141
|
-
'pending+1'?: undefined;
|
|
142
|
-
'pending+3'?: undefined;
|
|
143
|
-
'pending+4'?: undefined;
|
|
144
|
-
'pending+5'?: undefined;
|
|
145
|
-
} | {
|
|
146
|
-
'pending+3': {
|
|
147
|
-
baseFee: number;
|
|
148
|
-
confidence: number;
|
|
149
|
-
}[];
|
|
150
|
-
'pending+1'?: undefined;
|
|
151
|
-
'pending+2'?: undefined;
|
|
152
|
-
'pending+4'?: undefined;
|
|
153
|
-
'pending+5'?: undefined;
|
|
154
|
-
} | {
|
|
155
|
-
'pending+4': {
|
|
156
|
-
baseFee: number;
|
|
157
|
-
confidence: number;
|
|
158
|
-
}[];
|
|
159
|
-
'pending+1'?: undefined;
|
|
160
|
-
'pending+2'?: undefined;
|
|
161
|
-
'pending+3'?: undefined;
|
|
162
|
-
'pending+5'?: undefined;
|
|
163
|
-
} | {
|
|
164
|
-
'pending+5': {
|
|
165
|
-
baseFee: number;
|
|
166
|
-
confidence: number;
|
|
167
|
-
}[];
|
|
168
|
-
'pending+1'?: undefined;
|
|
169
|
-
'pending+2'?: undefined;
|
|
170
|
-
'pending+3'?: undefined;
|
|
171
|
-
'pending+4'?: undefined;
|
|
172
|
-
})[];
|
|
173
|
-
maxPrice: number;
|
|
174
|
-
msSinceLastBlock: number;
|
|
175
|
-
network: string;
|
|
176
|
-
schema: string;
|
|
177
|
-
system: string;
|
|
178
|
-
timestamp: number;
|
|
179
|
-
unit: string;
|
|
180
|
-
};
|
|
181
|
-
|
|
182
|
-
declare const sampleEtherchainV1GasPricePayload: {
|
|
183
|
-
currentBaseFee: number;
|
|
184
|
-
fast: number;
|
|
185
|
-
fastest: number;
|
|
186
|
-
recommendedBaseFee: number;
|
|
187
|
-
safeLow: number;
|
|
188
|
-
schema: string;
|
|
189
|
-
standard: number;
|
|
190
|
-
timestamp: number;
|
|
191
|
-
};
|
|
192
|
-
|
|
193
|
-
declare const sampleEtherchainV2GasPricePayload: {
|
|
194
|
-
code: number;
|
|
195
|
-
data: {
|
|
196
|
-
fast: number;
|
|
197
|
-
priceUSD: number;
|
|
198
|
-
rapid: number;
|
|
199
|
-
slow: number;
|
|
200
|
-
standard: number;
|
|
201
|
-
timestamp: number;
|
|
202
|
-
};
|
|
203
|
-
schema: string;
|
|
204
|
-
timestamp: number;
|
|
205
|
-
};
|
|
206
|
-
|
|
207
|
-
declare const sampleEthersGasPricePayload: {
|
|
208
|
-
gasPrice: number;
|
|
209
|
-
lastBaseFeePerGas: number;
|
|
210
|
-
maxFeePerGas: number;
|
|
211
|
-
maxPriorityFeePerGas: number;
|
|
212
|
-
schema: string;
|
|
213
|
-
timestamp: number;
|
|
214
|
-
};
|
|
215
|
-
|
|
216
|
-
declare const sampleEtherscanGasPricePayload: {
|
|
217
|
-
message: string;
|
|
218
|
-
result: {
|
|
219
|
-
FastGasPrice: string;
|
|
220
|
-
LastBlock: string;
|
|
221
|
-
ProposeGasPrice: string;
|
|
222
|
-
SafeGasPrice: string;
|
|
223
|
-
gasUsedRatio: string;
|
|
224
|
-
suggestBaseFee: string;
|
|
225
|
-
};
|
|
226
|
-
schema: string;
|
|
227
|
-
status: string;
|
|
228
|
-
timestamp: number;
|
|
229
|
-
};
|
|
230
|
-
|
|
231
|
-
declare const sampleEthGasStationGasPricePayload: {
|
|
232
|
-
baseFee: number;
|
|
233
|
-
blockNumber: number;
|
|
234
|
-
blockTime: number;
|
|
235
|
-
gasPrice: {
|
|
236
|
-
fast: number;
|
|
237
|
-
instant: number;
|
|
238
|
-
standard: number;
|
|
239
|
-
};
|
|
240
|
-
nextBaseFee: number;
|
|
241
|
-
priorityFee: {
|
|
242
|
-
fast: number;
|
|
243
|
-
instant: number;
|
|
244
|
-
standard: number;
|
|
245
|
-
};
|
|
246
|
-
schema: string;
|
|
247
|
-
timestamp: number;
|
|
248
|
-
};
|
|
249
|
-
|
|
250
|
-
declare const samplePayloadFromBuilder: {
|
|
251
|
-
_archive: string;
|
|
252
|
-
schema: "network.xyo.temp";
|
|
253
|
-
test: string;
|
|
254
|
-
$sources?: Lowercase<string>[] | undefined;
|
|
255
|
-
};
|
|
256
|
-
declare const sampleIdPayload: {
|
|
257
|
-
salt: string;
|
|
258
|
-
schema: string;
|
|
259
|
-
};
|
|
260
|
-
declare const sampleSystemInfoBrowserPayload: {
|
|
261
|
-
bowser: {
|
|
262
|
-
browser: {
|
|
263
|
-
name: string;
|
|
264
|
-
version: string;
|
|
265
|
-
};
|
|
266
|
-
engine: {
|
|
267
|
-
name: string;
|
|
268
|
-
};
|
|
269
|
-
os: {
|
|
270
|
-
name: string;
|
|
271
|
-
version: string;
|
|
272
|
-
versionName: string;
|
|
273
|
-
};
|
|
274
|
-
platform: {
|
|
275
|
-
type: string;
|
|
276
|
-
};
|
|
277
|
-
};
|
|
278
|
-
schema: string;
|
|
279
|
-
};
|
|
280
|
-
|
|
281
|
-
declare const sampleUniswapPayload: {
|
|
282
|
-
pairs: {
|
|
283
|
-
tokens: {
|
|
284
|
-
address: string;
|
|
285
|
-
symbol: string;
|
|
286
|
-
value: number;
|
|
287
|
-
}[];
|
|
288
|
-
}[];
|
|
289
|
-
schema: string;
|
|
290
|
-
timestamp: number;
|
|
291
|
-
};
|
|
292
|
-
declare const payloadDataMissingPairs: {
|
|
293
|
-
pairs: never[];
|
|
294
|
-
schema: string;
|
|
295
|
-
timestamp: number;
|
|
296
|
-
};
|
|
297
|
-
|
|
298
|
-
declare const WithRefDecorator: Decorator;
|
|
299
|
-
|
|
300
|
-
export { DefaultSeedPhrase, DeprecateStory, WithRefDecorator, payloadDataMissingPairs, randomizedSampleAddressHistory, sampleAddressHistory, sampleBlock, sampleBlockWithBoundWitnessPayload, sampleBlocknativeGasPricePayload, sampleCoinGeckoPayload, sampleEthGasStationGasPricePayload, sampleEtherchainV1GasPricePayload, sampleEtherchainV2GasPricePayload, sampleEthereumGasDivinerPayload, sampleEthereumGasDivinerPayloadMissingFees, sampleEthersGasPricePayload, sampleEtherscanGasPricePayload, sampleIdPayload, samplePayloadFromBuilder, sampleSystemInfoBrowserPayload, sampleUniswapPayload };
|
|
1
|
+
export * from './defaultSeedPhrase.ts';
|
|
2
|
+
export * from './DeprecateStory.tsx';
|
|
3
|
+
export * from './sampleAddressHistory.ts';
|
|
4
|
+
export * from './sampleBlock.ts';
|
|
5
|
+
export * from './sampleCoinGeckoPayload.ts';
|
|
6
|
+
export * from './sampleEthereumGasDivinerPayload.ts';
|
|
7
|
+
export * from './sampleGasPricePayloads/index.ts';
|
|
8
|
+
export * from './samplePayload.ts';
|
|
9
|
+
export * from './sampleUniswapPayload.ts';
|
|
10
|
+
export * from './WithRefDecorator.tsx';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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: BoundWitness[] = [\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]\n\nexport const randomizedSampleAddressHistory: BoundWitness[] = [\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]\n","import type { BoundWitness } from '@xyo-network/boundwitness-model'\n\nexport const sampleBlock: BoundWitness = {\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}\nexport const sampleBlockWithBoundWitnessPayload: BoundWitness = {\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}\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,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,uBAAuC;EAClD;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,WA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AS;UACTC,QAAQ;UACRC,OAAO;QACT;QACA;UACEF,SAAS;UACTC,QAAQ;UACRC,OAAO;QACT;;IAEJ;;EAEFC,QAAQ;EACRC,WAAW;AACb;AAEO,IAAMC,0BAA0B;EACrCP,OAAO,CAAA;EACPK,QAAQ;EACRC,WAAW;AACb;;;ACjMA,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","sampleCoinGeckoPayload","assets","ada","btc","eth","eur","usd","busd","doge","dot","sol","usdc","usdt","wbtc","xyo","schema","timestamp","sampleEthereumGasDivinerPayload","baseFee","feePerGas","high","low","medium","veryHigh","priorityFeePerGas","schema","timestamp","sampleEthereumGasDivinerPayloadMissingFees","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","sampleEtherchainV2GasPricePayload","code","data","fast","priceUSD","rapid","slow","standard","timestamp","schema","sampleEthersGasPricePayload","gasPrice","lastBaseFeePerGas","maxFeePerGas","maxPriorityFeePerGas","schema","timestamp","sampleEtherscanGasPricePayload","message","result","FastGasPrice","LastBlock","ProposeGasPrice","SafeGasPrice","gasUsedRatio","suggestBaseFee","schema","status","timestamp","sampleEthGasStationGasPricePayload","baseFee","blockNumber","blockTime","gasPrice","fast","instant","standard","nextBaseFee","priorityFee","schema","timestamp","samplePayloadFromBuilder","schema","test","_archive","sampleIdPayload","salt","sampleSystemInfoBrowserPayload","bowser","browser","name","version","engine","os","versionName","platform","type","sampleUniswapPayload","pairs","tokens","address","symbol","value","schema","timestamp","payloadDataMissingPairs","Button","React","useRef","WithRefDecorator","Story","args","ref","useRef","onClick","current","style","color","React","Button","variant"]}
|
|
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 { Hex } from '@xylabs/hex'\nimport 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 } 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 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 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,IAAMA,oBAAoB;;;ACDjC,SAASC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AOL;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","sampleCoinGeckoPayload","assets","ada","btc","eth","eur","usd","busd","doge","dot","sol","usdc","usdt","wbtc","xyo","schema","timestamp","sampleEthereumGasDivinerPayload","baseFee","feePerGas","high","low","medium","veryHigh","priorityFeePerGas","schema","timestamp","sampleEthereumGasDivinerPayloadMissingFees","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","sampleEtherchainV2GasPricePayload","code","data","fast","priceUSD","rapid","slow","standard","timestamp","schema","sampleEthersGasPricePayload","gasPrice","lastBaseFeePerGas","maxFeePerGas","maxPriorityFeePerGas","schema","timestamp","sampleEtherscanGasPricePayload","message","result","FastGasPrice","LastBlock","ProposeGasPrice","SafeGasPrice","gasUsedRatio","suggestBaseFee","schema","status","timestamp","sampleEthGasStationGasPricePayload","baseFee","blockNumber","blockTime","gasPrice","fast","instant","standard","nextBaseFee","priorityFee","schema","timestamp","samplePayloadFromBuilder","schema","test","_archive","sampleIdPayload","salt","sampleSystemInfoBrowserPayload","bowser","browser","name","version","engine","os","versionName","platform","type","sampleUniswapPayload","pairs","tokens","address","symbol","value","schema","timestamp","payloadDataMissingPairs","Button","React","useRef","WithRefDecorator","Story","args","ref","useRef","onClick","current","style","color","React","Button","variant"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sampleAddressHistory.d.ts","sourceRoot":"","sources":["../../src/sampleAddressHistory.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sampleAddressHistory.d.ts","sourceRoot":"","sources":["../../src/sampleAddressHistory.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAGnE,eAAO,MAAM,oBAAoB,EA6D5B,YAAY,EAAE,CAAA;AAEnB,eAAO,MAAM,8BAA8B,EA6DtC,YAAY,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sampleBlock.d.ts","sourceRoot":"","sources":["../../src/sampleBlock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAEnE,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"sampleBlock.d.ts","sourceRoot":"","sources":["../../src/sampleBlock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAEnE,eAAO,MAAM,WAAW,EAqBnB,YAAY,CAAA;AAEjB,eAAO,MAAM,kCAAkC,EAqB1C,YAAY,CAAA"}
|
|
@@ -2,7 +2,7 @@ export declare const samplePayloadFromBuilder: {
|
|
|
2
2
|
_archive: string;
|
|
3
3
|
schema: "network.xyo.temp";
|
|
4
4
|
test: string;
|
|
5
|
-
$sources?:
|
|
5
|
+
$sources?: import("@xylabs/hex").Hash[] | undefined;
|
|
6
6
|
};
|
|
7
7
|
export declare const sampleIdPayload: {
|
|
8
8
|
salt: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-storybook",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.2.0",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -39,19 +39,20 @@
|
|
|
39
39
|
"module": "dist/browser/index.mjs",
|
|
40
40
|
"types": "dist/browser/index.d.ts",
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@storybook/react-vite": "^9.0.
|
|
43
|
-
"@xyo-network/boundwitness-model": "^4.
|
|
42
|
+
"@storybook/react-vite": "^9.0.18",
|
|
43
|
+
"@xyo-network/boundwitness-model": "^4.3.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@mui/icons-material": "^7.2.0",
|
|
47
47
|
"@mui/material": "^7.2.0",
|
|
48
48
|
"@types/react": "^19.1.8",
|
|
49
|
-
"@xylabs/
|
|
50
|
-
"@xylabs/
|
|
51
|
-
"@
|
|
52
|
-
"
|
|
53
|
-
"react
|
|
54
|
-
"
|
|
49
|
+
"@xylabs/hex": "^4.15.0",
|
|
50
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.1",
|
|
51
|
+
"@xylabs/tsconfig-react": "^7.0.1",
|
|
52
|
+
"@xyo-network/payload-model": "^4.3.0",
|
|
53
|
+
"react": "^19.1.1",
|
|
54
|
+
"react-dom": "^19.1.1",
|
|
55
|
+
"storybook": "^9.0.18",
|
|
55
56
|
"typescript": "^5.8.3"
|
|
56
57
|
},
|
|
57
58
|
"peerDependencies": {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import type { Hex } from '@xylabs/hex'
|
|
1
2
|
import type { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
2
3
|
import { BoundWitnessSchema } from '@xyo-network/boundwitness-model'
|
|
3
4
|
|
|
4
|
-
export const sampleAddressHistory
|
|
5
|
+
export const sampleAddressHistory = [
|
|
5
6
|
{
|
|
6
7
|
$signatures: [
|
|
7
8
|
'186de1122640fc9d6577765e0b0f6822860994a0fbd1f80354963f89eebc3da01d0a68c36d2c6facab89bd777964c0d5b76103eb35b7900cc69bb1b90231117e',
|
|
@@ -62,9 +63,9 @@ export const sampleAddressHistory: BoundWitness[] = [
|
|
|
62
63
|
previous_hashes: [null],
|
|
63
64
|
schema: BoundWitnessSchema,
|
|
64
65
|
},
|
|
65
|
-
]
|
|
66
|
+
] as BoundWitness[]
|
|
66
67
|
|
|
67
|
-
export const randomizedSampleAddressHistory
|
|
68
|
+
export const randomizedSampleAddressHistory = [
|
|
68
69
|
{
|
|
69
70
|
$signatures: [
|
|
70
71
|
'35c4aa262694cdf6c72f473e4e2a4b164b35a5f228a6ed1c8345b8a6b7b0d192d6868fc038a09258f2b7016d04157640d7555109102e3c072556f8c4c002543f',
|
|
@@ -125,4 +126,4 @@ export const randomizedSampleAddressHistory: BoundWitness[] = [
|
|
|
125
126
|
previous_hashes: ['322e48abf142b99635ea51c73d7d6225c04514348ffd3c37399c39b0e17d4972'],
|
|
126
127
|
schema: BoundWitnessSchema,
|
|
127
128
|
},
|
|
128
|
-
]
|
|
129
|
+
] as BoundWitness[]
|
package/src/sampleBlock.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
2
2
|
|
|
3
|
-
export const sampleBlock
|
|
3
|
+
export const sampleBlock = {
|
|
4
4
|
$signatures: ['d0969a4edd2cbb55f879bb68733a36509dab7516c52e3066fd2e248ee80f98e36bdd56a0711140cfbc55106d4c65fe7ed58df8c03c5d360b34d3c74ea3b6fe1f'],
|
|
5
5
|
addresses: ['9c6df83b84297985d3ccc1f721ba1c2e3608c751'],
|
|
6
6
|
payload_hashes: [
|
|
@@ -21,8 +21,9 @@ export const sampleBlock: BoundWitness = {
|
|
|
21
21
|
],
|
|
22
22
|
previous_hashes: [null],
|
|
23
23
|
schema: 'network.xyo.boundwitness',
|
|
24
|
-
}
|
|
25
|
-
|
|
24
|
+
} as BoundWitness
|
|
25
|
+
|
|
26
|
+
export const sampleBlockWithBoundWitnessPayload = {
|
|
26
27
|
$signatures: ['d0969a4edd2cbb55f879bb68733a36509dab7516c52e3066fd2e248ee80f98e36bdd56a0711140cfbc55106d4c65fe7ed58df8c03c5d360b34d3c74ea3b6fe1f'],
|
|
27
28
|
addresses: ['9c6df83b84297985d3ccc1f721ba1c2e3608c751'],
|
|
28
29
|
payload_hashes: [
|
|
@@ -43,4 +44,4 @@ export const sampleBlockWithBoundWitnessPayload: BoundWitness = {
|
|
|
43
44
|
],
|
|
44
45
|
previous_hashes: [null],
|
|
45
46
|
schema: 'network.xyo.boundwitness',
|
|
46
|
-
}
|
|
47
|
+
} as BoundWitness
|