@xyo-network/react-storybook 3.0.1 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/DeprecateStory.d.ts +5 -0
- package/dist/browser/DeprecateStory.d.ts.map +1 -0
- package/dist/browser/WithRefDecorator.d.ts +3 -0
- package/dist/browser/WithRefDecorator.d.ts.map +1 -0
- package/dist/browser/defaultSeedPhrase.d.ts +2 -0
- package/dist/browser/defaultSeedPhrase.d.ts.map +1 -0
- package/dist/browser/index.d.ts +11 -299
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.mjs.map +1 -1
- package/dist/browser/sampleAddressHistory.d.ts +4 -0
- package/dist/browser/sampleAddressHistory.d.ts.map +1 -0
- package/dist/browser/sampleBlock.d.ts +4 -0
- package/dist/browser/sampleBlock.d.ts.map +1 -0
- package/dist/browser/sampleCoinGeckoPayload.d.ts +73 -0
- package/dist/browser/sampleCoinGeckoPayload.d.ts.map +1 -0
- package/dist/browser/sampleEthereumGasDivinerPayload.d.ts +24 -0
- package/dist/browser/sampleEthereumGasDivinerPayload.d.ts.map +1 -0
- package/dist/browser/sampleGasPricePayloads/blocknative.d.ts +68 -0
- package/dist/browser/sampleGasPricePayloads/blocknative.d.ts.map +1 -0
- package/dist/browser/sampleGasPricePayloads/ethGasStation.d.ts +19 -0
- package/dist/browser/sampleGasPricePayloads/ethGasStation.d.ts.map +1 -0
- package/dist/browser/sampleGasPricePayloads/etherchainV1.d.ts +11 -0
- package/dist/browser/sampleGasPricePayloads/etherchainV1.d.ts.map +1 -0
- package/dist/browser/sampleGasPricePayloads/etherchainV2.d.ts +14 -0
- package/dist/browser/sampleGasPricePayloads/etherchainV2.d.ts.map +1 -0
- package/dist/browser/sampleGasPricePayloads/ethers.d.ts +9 -0
- package/dist/browser/sampleGasPricePayloads/ethers.d.ts.map +1 -0
- package/dist/browser/sampleGasPricePayloads/etherscan.d.ts +15 -0
- package/dist/browser/sampleGasPricePayloads/etherscan.d.ts.map +1 -0
- package/dist/browser/sampleGasPricePayloads/index.d.ts +7 -0
- package/dist/browser/sampleGasPricePayloads/index.d.ts.map +1 -0
- package/dist/browser/samplePayload.d.ts +30 -0
- package/dist/browser/samplePayload.d.ts.map +1 -0
- package/dist/browser/sampleUniswapPayload.d.ts +17 -0
- package/dist/browser/sampleUniswapPayload.d.ts.map +1 -0
- package/package.json +51 -46
- package/src/WithRefDecorator.tsx +1 -1
- package/src/sampleAddressHistory.ts +2 -1
- package/src/sampleBlock.ts +4 -8
- package/src/samplePayload.ts +3 -7
- package/xy.config.ts +2 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeprecateStory.d.ts","sourceRoot":"","sources":["../../src/DeprecateStory.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAOzD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WithRefDecorator.d.ts","sourceRoot":"","sources":["../../src/WithRefDecorator.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAGjD,eAAO,MAAM,gBAAgB,EAAE,SAiB9B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaultSeedPhrase.d.ts","sourceRoot":"","sources":["../../src/defaultSeedPhrase.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,iBAAiB,sFAAsF,CAAA"}
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,299 +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
|
-
};
|
|
255
|
-
declare const sampleIdPayload: {
|
|
256
|
-
salt: string;
|
|
257
|
-
schema: string;
|
|
258
|
-
};
|
|
259
|
-
declare const sampleSystemInfoBrowserPayload: {
|
|
260
|
-
bowser: {
|
|
261
|
-
browser: {
|
|
262
|
-
name: string;
|
|
263
|
-
version: string;
|
|
264
|
-
};
|
|
265
|
-
engine: {
|
|
266
|
-
name: string;
|
|
267
|
-
};
|
|
268
|
-
os: {
|
|
269
|
-
name: string;
|
|
270
|
-
version: string;
|
|
271
|
-
versionName: string;
|
|
272
|
-
};
|
|
273
|
-
platform: {
|
|
274
|
-
type: string;
|
|
275
|
-
};
|
|
276
|
-
};
|
|
277
|
-
schema: string;
|
|
278
|
-
};
|
|
279
|
-
|
|
280
|
-
declare const sampleUniswapPayload: {
|
|
281
|
-
pairs: {
|
|
282
|
-
tokens: {
|
|
283
|
-
address: string;
|
|
284
|
-
symbol: string;
|
|
285
|
-
value: number;
|
|
286
|
-
}[];
|
|
287
|
-
}[];
|
|
288
|
-
schema: string;
|
|
289
|
-
timestamp: number;
|
|
290
|
-
};
|
|
291
|
-
declare const payloadDataMissingPairs: {
|
|
292
|
-
pairs: never[];
|
|
293
|
-
schema: string;
|
|
294
|
-
timestamp: number;
|
|
295
|
-
};
|
|
296
|
-
|
|
297
|
-
declare const WithRefDecorator: Decorator;
|
|
298
|
-
|
|
299
|
-
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA;AACpC,cAAc,2BAA2B,CAAA;AACzC,cAAc,kBAAkB,CAAA;AAChC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,sCAAsC,CAAA;AACpD,cAAc,mCAAmC,CAAA;AACjD,cAAc,oBAAoB,CAAA;AAClC,cAAc,2BAA2B,CAAA;AACzC,cAAc,wBAAwB,CAAA"}
|
|
@@ -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 { BoundWitness, BoundWitnessSchema } from '@xyo-network/boundwitness-model'\n\nexport const sampleAddressHistory: BoundWitness[] = [\n {\n $meta: {\n signatures: [\n '186de1122640fc9d6577765e0b0f6822860994a0fbd1f80354963f89eebc3da01d0a68c36d2c6facab89bd777964c0d5b76103eb35b7900cc69bb1b90231117e',\n ],\n },\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['97e693d0eb86eec1ca28f2bb0c77ddaae821fd0a9adc51c1521cdd754e2e207d'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['8f914f739a96cb8baffaf156724240e4d51ab94cd4a374754c4e8f8281dc4191'],\n schema: BoundWitnessSchema,\n timestamp: 1_666_830_950_083,\n },\n {\n $meta: {\n signatures: [\n '35c4aa262694cdf6c72f473e4e2a4b164b35a5f228a6ed1c8345b8a6b7b0d192d6868fc038a09258f2b7016d04157640d7555109102e3c072556f8c4c002543f',\n ],\n },\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['b01dd00648fafa4488ff461c812e80e5c657939da8c7d4bb056177e241554449'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['7456e3a653f6b3cac3ee0204cef37152eeb8cfeef3e20a0e177abf7ec36e0236'],\n schema: BoundWitnessSchema,\n timestamp: 1_666_830_946_487,\n },\n {\n $meta: {\n signatures: [\n 'f273d8a8587ec2c6c9e91416eec66fdd441156f9ce2fb54e3e78e885aa792017e10ea36af44d9453422ffbafd58732a80387ab57c93ae0618b09aa4847f5e457',\n ],\n },\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['03be02066ed31dc92ffd371a48026eac5770a8647160704b70e8dca8fc64cb0a'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['053d47a27012548dc0b3bb469e6598c7a48e81d3a552a790b455922cdb0750ba'],\n schema: BoundWitnessSchema,\n timestamp: 1_666_830_867_311,\n },\n {\n $meta: {\n signatures: [\n '79960dd5c590a1007bc526729a3ffee3153bb37ace383485ed298b3ba94939fffade54980a02c57119238bd9984d2860b822d29dbb36b04251fab83354b5a7cc',\n ],\n },\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['5ebf3c990e08174bcf3987dc94ff0a4ec33b6ba806d3f3ec50e0966395fc1c76'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['9ae219b4d71a5c46321a21cdef08540fafe7e6d51440ba34699883bdaf15e61d'],\n schema: BoundWitnessSchema,\n timestamp: 1_666_830_864_908,\n },\n {\n $meta: {\n signatures: [\n '03830c7e9345a80390524543eb4ca097530bafa5d109b91a5a328399fcffe5af3a32b3a66658c045d013cf9b4fd598cafc9374bd0004d0c1bb2224ac812b855a',\n ],\n },\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['ce405ae29915ea7b5f62a87c316bf4f46052c7bb0a36e67e621fedb1ec96fec5'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['322e48abf142b99635ea51c73d7d6225c04514348ffd3c37399c39b0e17d4972'],\n schema: BoundWitnessSchema,\n timestamp: 1_666_830_860_155,\n },\n {\n $meta: {\n signatures: [\n '2ddd7f65ad5ccdce83318f47040db7f45ef76142d2bb9c549241ac59619bf00a671f1ca5755d4e4b0e59fb8eb11c31e1d26c5d376eb57d8eeee7156469ae770b',\n ],\n },\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['84efe9b19a752d3d997cfe5e7c336b1b090669fc0172f649825b2f24c8d82876'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: [null],\n schema: BoundWitnessSchema,\n timestamp: 1_666_830_779_473,\n },\n]\n\nexport const randomizedSampleAddressHistory: BoundWitness[] = [\n {\n $meta: {\n signatures: [\n '35c4aa262694cdf6c72f473e4e2a4b164b35a5f228a6ed1c8345b8a6b7b0d192d6868fc038a09258f2b7016d04157640d7555109102e3c072556f8c4c002543f',\n ],\n },\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['b01dd00648fafa4488ff461c812e80e5c657939da8c7d4bb056177e241554449'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['7456e3a653f6b3cac3ee0204cef37152eeb8cfeef3e20a0e177abf7ec36e0236'],\n schema: BoundWitnessSchema,\n timestamp: 1_666_830_946_487,\n },\n {\n $meta: {\n signatures: [\n '79960dd5c590a1007bc526729a3ffee3153bb37ace383485ed298b3ba94939fffade54980a02c57119238bd9984d2860b822d29dbb36b04251fab83354b5a7cc',\n ],\n },\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['5ebf3c990e08174bcf3987dc94ff0a4ec33b6ba806d3f3ec50e0966395fc1c76'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['9ae219b4d71a5c46321a21cdef08540fafe7e6d51440ba34699883bdaf15e61d'],\n schema: BoundWitnessSchema,\n timestamp: 1_666_830_864_908,\n },\n {\n $meta: {\n signatures: [\n '186de1122640fc9d6577765e0b0f6822860994a0fbd1f80354963f89eebc3da01d0a68c36d2c6facab89bd777964c0d5b76103eb35b7900cc69bb1b90231117e',\n ],\n },\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['97e693d0eb86eec1ca28f2bb0c77ddaae821fd0a9adc51c1521cdd754e2e207d'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['8f914f739a96cb8baffaf156724240e4d51ab94cd4a374754c4e8f8281dc4191'],\n schema: BoundWitnessSchema,\n timestamp: 1_666_830_950_083,\n },\n {\n $meta: {\n signatures: [\n 'f273d8a8587ec2c6c9e91416eec66fdd441156f9ce2fb54e3e78e885aa792017e10ea36af44d9453422ffbafd58732a80387ab57c93ae0618b09aa4847f5e457',\n ],\n },\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['03be02066ed31dc92ffd371a48026eac5770a8647160704b70e8dca8fc64cb0a'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['053d47a27012548dc0b3bb469e6598c7a48e81d3a552a790b455922cdb0750ba'],\n schema: BoundWitnessSchema,\n timestamp: 1_666_830_867_311,\n },\n {\n $meta: {\n signatures: [\n '2ddd7f65ad5ccdce83318f47040db7f45ef76142d2bb9c549241ac59619bf00a671f1ca5755d4e4b0e59fb8eb11c31e1d26c5d376eb57d8eeee7156469ae770b',\n ],\n },\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['84efe9b19a752d3d997cfe5e7c336b1b090669fc0172f649825b2f24c8d82876'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: [null],\n schema: BoundWitnessSchema,\n timestamp: 1_666_830_779_473,\n },\n {\n $meta: {\n signatures: [\n '03830c7e9345a80390524543eb4ca097530bafa5d109b91a5a328399fcffe5af3a32b3a66658c045d013cf9b4fd598cafc9374bd0004d0c1bb2224ac812b855a',\n ],\n },\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['ce405ae29915ea7b5f62a87c316bf4f46052c7bb0a36e67e621fedb1ec96fec5'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['322e48abf142b99635ea51c73d7d6225c04514348ffd3c37399c39b0e17d4972'],\n schema: BoundWitnessSchema,\n timestamp: 1_666_830_860_155,\n },\n]\n","import { Address } from '@xylabs/hex'\nimport { BoundWitness } from '@xyo-network/boundwitness-model'\n\nexport const sampleBlock: BoundWitness = {\n $meta: {\n signatures: ['d0969a4edd2cbb55f879bb68733a36509dab7516c52e3066fd2e248ee80f98e36bdd56a0711140cfbc55106d4c65fe7ed58df8c03c5d360b34d3c74ea3b6fe1f'],\n },\n addresses: ['9c6df83b84297985d3ccc1f721ba1c2e3608c751', 'BF005E04EF223aa18c0fBFF6B41BbB0227c45A48'.toLowerCase() as Address],\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 timestamp: Date.now(),\n}\nexport const sampleBlockWithBoundWitnessPayload: BoundWitness = {\n $meta: {\n signatures: ['d0969a4edd2cbb55f879bb68733a36509dab7516c52e3066fd2e248ee80f98e36bdd56a0711140cfbc55106d4c65fe7ed58df8c03c5d360b34d3c74ea3b6fe1f'],\n },\n addresses: ['9c6df83b84297985d3ccc1f721ba1c2e3608c751', 'BF005E04EF223aa18c0fBFF6B41BbB0227c45A48'.toLowerCase() as Address],\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 timestamp: Date.now(),\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 { 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 version: '104.0.0.0',\n },\n engine: {\n name: 'Blink',\n },\n os: {\n name: 'Windows',\n version: 'NT 10.0',\n versionName: '10',\n },\n platform: {\n type: 'desktop',\n },\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 { Decorator } from '@storybook/react'\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;;;ACH9D,SAAuBM,0BAA0B;AAE1C,IAAMC,uBAAuC;EAClD;IACEC,OAAO;MACLC,YAAY;QACV;;IAEJ;IACAC,WAAW;MAAC;;IACZC,gBAAgB;MAAC;;IACjBC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B;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","$meta","signatures","addresses","payload_hashes","payload_schemas","previous_hashes","schema","timestamp","randomizedSampleAddressHistory","sampleBlock","$meta","signatures","addresses","toLowerCase","payload_hashes","payload_schemas","previous_hashes","schema","timestamp","Date","now","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 { BoundWitness } from '@xyo-network/boundwitness-model'\nimport { BoundWitnessSchema } from '@xyo-network/boundwitness-model'\n\nexport const sampleAddressHistory: BoundWitness[] = [\n {\n $meta: {\n signatures: [\n '186de1122640fc9d6577765e0b0f6822860994a0fbd1f80354963f89eebc3da01d0a68c36d2c6facab89bd777964c0d5b76103eb35b7900cc69bb1b90231117e',\n ],\n },\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['97e693d0eb86eec1ca28f2bb0c77ddaae821fd0a9adc51c1521cdd754e2e207d'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['8f914f739a96cb8baffaf156724240e4d51ab94cd4a374754c4e8f8281dc4191'],\n schema: BoundWitnessSchema,\n timestamp: 1_666_830_950_083,\n },\n {\n $meta: {\n signatures: [\n '35c4aa262694cdf6c72f473e4e2a4b164b35a5f228a6ed1c8345b8a6b7b0d192d6868fc038a09258f2b7016d04157640d7555109102e3c072556f8c4c002543f',\n ],\n },\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['b01dd00648fafa4488ff461c812e80e5c657939da8c7d4bb056177e241554449'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['7456e3a653f6b3cac3ee0204cef37152eeb8cfeef3e20a0e177abf7ec36e0236'],\n schema: BoundWitnessSchema,\n timestamp: 1_666_830_946_487,\n },\n {\n $meta: {\n signatures: [\n 'f273d8a8587ec2c6c9e91416eec66fdd441156f9ce2fb54e3e78e885aa792017e10ea36af44d9453422ffbafd58732a80387ab57c93ae0618b09aa4847f5e457',\n ],\n },\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['03be02066ed31dc92ffd371a48026eac5770a8647160704b70e8dca8fc64cb0a'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['053d47a27012548dc0b3bb469e6598c7a48e81d3a552a790b455922cdb0750ba'],\n schema: BoundWitnessSchema,\n timestamp: 1_666_830_867_311,\n },\n {\n $meta: {\n signatures: [\n '79960dd5c590a1007bc526729a3ffee3153bb37ace383485ed298b3ba94939fffade54980a02c57119238bd9984d2860b822d29dbb36b04251fab83354b5a7cc',\n ],\n },\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['5ebf3c990e08174bcf3987dc94ff0a4ec33b6ba806d3f3ec50e0966395fc1c76'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['9ae219b4d71a5c46321a21cdef08540fafe7e6d51440ba34699883bdaf15e61d'],\n schema: BoundWitnessSchema,\n timestamp: 1_666_830_864_908,\n },\n {\n $meta: {\n signatures: [\n '03830c7e9345a80390524543eb4ca097530bafa5d109b91a5a328399fcffe5af3a32b3a66658c045d013cf9b4fd598cafc9374bd0004d0c1bb2224ac812b855a',\n ],\n },\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['ce405ae29915ea7b5f62a87c316bf4f46052c7bb0a36e67e621fedb1ec96fec5'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['322e48abf142b99635ea51c73d7d6225c04514348ffd3c37399c39b0e17d4972'],\n schema: BoundWitnessSchema,\n timestamp: 1_666_830_860_155,\n },\n {\n $meta: {\n signatures: [\n '2ddd7f65ad5ccdce83318f47040db7f45ef76142d2bb9c549241ac59619bf00a671f1ca5755d4e4b0e59fb8eb11c31e1d26c5d376eb57d8eeee7156469ae770b',\n ],\n },\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['84efe9b19a752d3d997cfe5e7c336b1b090669fc0172f649825b2f24c8d82876'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: [null],\n schema: BoundWitnessSchema,\n timestamp: 1_666_830_779_473,\n },\n]\n\nexport const randomizedSampleAddressHistory: BoundWitness[] = [\n {\n $meta: {\n signatures: [\n '35c4aa262694cdf6c72f473e4e2a4b164b35a5f228a6ed1c8345b8a6b7b0d192d6868fc038a09258f2b7016d04157640d7555109102e3c072556f8c4c002543f',\n ],\n },\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['b01dd00648fafa4488ff461c812e80e5c657939da8c7d4bb056177e241554449'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['7456e3a653f6b3cac3ee0204cef37152eeb8cfeef3e20a0e177abf7ec36e0236'],\n schema: BoundWitnessSchema,\n timestamp: 1_666_830_946_487,\n },\n {\n $meta: {\n signatures: [\n '79960dd5c590a1007bc526729a3ffee3153bb37ace383485ed298b3ba94939fffade54980a02c57119238bd9984d2860b822d29dbb36b04251fab83354b5a7cc',\n ],\n },\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['5ebf3c990e08174bcf3987dc94ff0a4ec33b6ba806d3f3ec50e0966395fc1c76'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['9ae219b4d71a5c46321a21cdef08540fafe7e6d51440ba34699883bdaf15e61d'],\n schema: BoundWitnessSchema,\n timestamp: 1_666_830_864_908,\n },\n {\n $meta: {\n signatures: [\n '186de1122640fc9d6577765e0b0f6822860994a0fbd1f80354963f89eebc3da01d0a68c36d2c6facab89bd777964c0d5b76103eb35b7900cc69bb1b90231117e',\n ],\n },\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['97e693d0eb86eec1ca28f2bb0c77ddaae821fd0a9adc51c1521cdd754e2e207d'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['8f914f739a96cb8baffaf156724240e4d51ab94cd4a374754c4e8f8281dc4191'],\n schema: BoundWitnessSchema,\n timestamp: 1_666_830_950_083,\n },\n {\n $meta: {\n signatures: [\n 'f273d8a8587ec2c6c9e91416eec66fdd441156f9ce2fb54e3e78e885aa792017e10ea36af44d9453422ffbafd58732a80387ab57c93ae0618b09aa4847f5e457',\n ],\n },\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['03be02066ed31dc92ffd371a48026eac5770a8647160704b70e8dca8fc64cb0a'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['053d47a27012548dc0b3bb469e6598c7a48e81d3a552a790b455922cdb0750ba'],\n schema: BoundWitnessSchema,\n timestamp: 1_666_830_867_311,\n },\n {\n $meta: {\n signatures: [\n '2ddd7f65ad5ccdce83318f47040db7f45ef76142d2bb9c549241ac59619bf00a671f1ca5755d4e4b0e59fb8eb11c31e1d26c5d376eb57d8eeee7156469ae770b',\n ],\n },\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['84efe9b19a752d3d997cfe5e7c336b1b090669fc0172f649825b2f24c8d82876'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: [null],\n schema: BoundWitnessSchema,\n timestamp: 1_666_830_779_473,\n },\n {\n $meta: {\n signatures: [\n '03830c7e9345a80390524543eb4ca097530bafa5d109b91a5a328399fcffe5af3a32b3a66658c045d013cf9b4fd598cafc9374bd0004d0c1bb2224ac812b855a',\n ],\n },\n addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],\n payload_hashes: ['ce405ae29915ea7b5f62a87c316bf4f46052c7bb0a36e67e621fedb1ec96fec5'],\n payload_schemas: ['network.xyo.id'],\n previous_hashes: ['322e48abf142b99635ea51c73d7d6225c04514348ffd3c37399c39b0e17d4972'],\n schema: BoundWitnessSchema,\n timestamp: 1_666_830_860_155,\n },\n]\n","import type { Address } from '@xylabs/hex'\nimport type { BoundWitness } from '@xyo-network/boundwitness-model'\n\nexport const sampleBlock: BoundWitness = {\n $meta: { signatures: ['d0969a4edd2cbb55f879bb68733a36509dab7516c52e3066fd2e248ee80f98e36bdd56a0711140cfbc55106d4c65fe7ed58df8c03c5d360b34d3c74ea3b6fe1f'] },\n addresses: ['9c6df83b84297985d3ccc1f721ba1c2e3608c751', 'BF005E04EF223aa18c0fBFF6B41BbB0227c45A48'.toLowerCase() as Address],\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 timestamp: Date.now(),\n}\nexport const sampleBlockWithBoundWitnessPayload: BoundWitness = {\n $meta: { signatures: ['d0969a4edd2cbb55f879bb68733a36509dab7516c52e3066fd2e248ee80f98e36bdd56a0711140cfbc55106d4c65fe7ed58df8c03c5d360b34d3c74ea3b6fe1f'] },\n addresses: ['9c6df83b84297985d3ccc1f721ba1c2e3608c751', 'BF005E04EF223aa18c0fBFF6B41BbB0227c45A48'.toLowerCase() as Address],\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 timestamp: Date.now(),\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 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'\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,OAAO;MACLC,YAAY;QACV;;IAEJ;IACAC,WAAW;MAAC;;IACZC,gBAAgB;MAAC;;IACjBC,iBAAiB;MAAC;;IAClBC,iBAAiB;MAAC;;IAClBC,QAAQR;IACRS,WAAW;EACb;EACA;IACEP,OAAO;MACLC,YAAY;QACV;;IAEJ;IACAC,WAAW;MAAC;;IACZC,gBAAgB;MAAC;;IACjBC,iBAAiB;MAAC;;IAClBC,iBAAiB;MAAC;;IAClBC,QAAQR;IACRS,WAAW;EACb;EACA;IACEP,OAAO;MACLC,YAAY;QACV;;IAEJ;IACAC,WAAW;MAAC;;IACZC,gBAAgB;MAAC;;IACjBC,iBAAiB;MAAC;;IAClBC,iBAAiB;MAAC;;IAClBC,QAAQR;IACRS,WAAW;EACb;EACA;IACEP,OAAO;MACLC,YAAY;QACV;;IAEJ;IACAC,WAAW;MAAC;;IACZC,gBAAgB;MAAC;;IACjBC,iBAAiB;MAAC;;IAClBC,iBAAiB;MAAC;;IAClBC,QAAQR;IACRS,WAAW;EACb;EACA;IACEP,OAAO;MACLC,YAAY;QACV;;IAEJ;IACAC,WAAW;MAAC;;IACZC,gBAAgB;MAAC;;IACjBC,iBAAiB;MAAC;;IAClBC,iBAAiB;MAAC;;IAClBC,QAAQR;IACRS,WAAW;EACb;EACA;IAC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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,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","$meta","signatures","addresses","payload_hashes","payload_schemas","previous_hashes","schema","timestamp","randomizedSampleAddressHistory","sampleBlock","$meta","signatures","addresses","toLowerCase","payload_hashes","payload_schemas","previous_hashes","schema","timestamp","Date","now","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"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sampleAddressHistory.d.ts","sourceRoot":"","sources":["../../src/sampleAddressHistory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAGnE,eAAO,MAAM,oBAAoB,EAAE,YAAY,EA+E9C,CAAA;AAED,eAAO,MAAM,8BAA8B,EAAE,YAAY,EA+ExD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sampleBlock.d.ts","sourceRoot":"","sources":["../../src/sampleBlock.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAEnE,eAAO,MAAM,WAAW,EAAE,YAsBzB,CAAA;AACD,eAAO,MAAM,kCAAkC,EAAE,YAsBhD,CAAA"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export declare const sampleCoinGeckoPayload: {
|
|
2
|
+
assets: {
|
|
3
|
+
ada: {
|
|
4
|
+
btc: number;
|
|
5
|
+
eth: number;
|
|
6
|
+
eur: number;
|
|
7
|
+
usd: number;
|
|
8
|
+
};
|
|
9
|
+
btc: {
|
|
10
|
+
btc: number;
|
|
11
|
+
eth: number;
|
|
12
|
+
eur: number;
|
|
13
|
+
usd: number;
|
|
14
|
+
};
|
|
15
|
+
busd: {
|
|
16
|
+
btc: number;
|
|
17
|
+
eth: number;
|
|
18
|
+
eur: number;
|
|
19
|
+
usd: number;
|
|
20
|
+
};
|
|
21
|
+
doge: {
|
|
22
|
+
btc: number;
|
|
23
|
+
eth: number;
|
|
24
|
+
eur: number;
|
|
25
|
+
usd: number;
|
|
26
|
+
};
|
|
27
|
+
dot: {
|
|
28
|
+
btc: number;
|
|
29
|
+
eth: number;
|
|
30
|
+
eur: number;
|
|
31
|
+
usd: number;
|
|
32
|
+
};
|
|
33
|
+
eth: {
|
|
34
|
+
btc: number;
|
|
35
|
+
eth: number;
|
|
36
|
+
eur: number;
|
|
37
|
+
usd: number;
|
|
38
|
+
};
|
|
39
|
+
sol: {
|
|
40
|
+
btc: number;
|
|
41
|
+
eth: number;
|
|
42
|
+
eur: number;
|
|
43
|
+
usd: number;
|
|
44
|
+
};
|
|
45
|
+
usdc: {
|
|
46
|
+
btc: number;
|
|
47
|
+
eth: number;
|
|
48
|
+
eur: number;
|
|
49
|
+
usd: number;
|
|
50
|
+
};
|
|
51
|
+
usdt: {
|
|
52
|
+
btc: number;
|
|
53
|
+
eth: number;
|
|
54
|
+
eur: number;
|
|
55
|
+
usd: number;
|
|
56
|
+
};
|
|
57
|
+
wbtc: {
|
|
58
|
+
btc: number;
|
|
59
|
+
eth: number;
|
|
60
|
+
eur: number;
|
|
61
|
+
usd: number;
|
|
62
|
+
};
|
|
63
|
+
xyo: {
|
|
64
|
+
btc: number;
|
|
65
|
+
eth: number;
|
|
66
|
+
eur: number;
|
|
67
|
+
usd: number;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
schema: string;
|
|
71
|
+
timestamp: number;
|
|
72
|
+
};
|
|
73
|
+
//# sourceMappingURL=sampleCoinGeckoPayload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sampleCoinGeckoPayload.d.ts","sourceRoot":"","sources":["../../src/sampleCoinGeckoPayload.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuElC,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const sampleEthereumGasDivinerPayload: {
|
|
2
|
+
baseFee: number;
|
|
3
|
+
feePerGas: {
|
|
4
|
+
high: number;
|
|
5
|
+
low: number;
|
|
6
|
+
medium: number;
|
|
7
|
+
veryHigh: number;
|
|
8
|
+
};
|
|
9
|
+
priorityFeePerGas: {
|
|
10
|
+
high: number;
|
|
11
|
+
low: number;
|
|
12
|
+
medium: number;
|
|
13
|
+
veryHigh: number;
|
|
14
|
+
};
|
|
15
|
+
schema: string;
|
|
16
|
+
timestamp: number;
|
|
17
|
+
};
|
|
18
|
+
export declare const sampleEthereumGasDivinerPayloadMissingFees: {
|
|
19
|
+
feePerGas: {};
|
|
20
|
+
priorityFeePerGas: {};
|
|
21
|
+
schema: string;
|
|
22
|
+
timestamp: number;
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=sampleEthereumGasDivinerPayload.d.ts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export declare const sampleBlocknativeGasPricePayload: {
|
|
2
|
+
blockPrices: {
|
|
3
|
+
baseFeePerGas: number;
|
|
4
|
+
blockNumber: number;
|
|
5
|
+
estimatedPrices: {
|
|
6
|
+
confidence: number;
|
|
7
|
+
maxFeePerGas: number;
|
|
8
|
+
maxPriorityFeePerGas: number;
|
|
9
|
+
price: number;
|
|
10
|
+
}[];
|
|
11
|
+
estimatedTransactionCount: number;
|
|
12
|
+
}[];
|
|
13
|
+
currentBlockNumber: number;
|
|
14
|
+
estimatedBaseFees: ({
|
|
15
|
+
'pending+1': {
|
|
16
|
+
baseFee: number;
|
|
17
|
+
confidence: number;
|
|
18
|
+
}[];
|
|
19
|
+
'pending+2'?: undefined;
|
|
20
|
+
'pending+3'?: undefined;
|
|
21
|
+
'pending+4'?: undefined;
|
|
22
|
+
'pending+5'?: undefined;
|
|
23
|
+
} | {
|
|
24
|
+
'pending+2': {
|
|
25
|
+
baseFee: number;
|
|
26
|
+
confidence: number;
|
|
27
|
+
}[];
|
|
28
|
+
'pending+1'?: undefined;
|
|
29
|
+
'pending+3'?: undefined;
|
|
30
|
+
'pending+4'?: undefined;
|
|
31
|
+
'pending+5'?: undefined;
|
|
32
|
+
} | {
|
|
33
|
+
'pending+3': {
|
|
34
|
+
baseFee: number;
|
|
35
|
+
confidence: number;
|
|
36
|
+
}[];
|
|
37
|
+
'pending+1'?: undefined;
|
|
38
|
+
'pending+2'?: undefined;
|
|
39
|
+
'pending+4'?: undefined;
|
|
40
|
+
'pending+5'?: undefined;
|
|
41
|
+
} | {
|
|
42
|
+
'pending+4': {
|
|
43
|
+
baseFee: number;
|
|
44
|
+
confidence: number;
|
|
45
|
+
}[];
|
|
46
|
+
'pending+1'?: undefined;
|
|
47
|
+
'pending+2'?: undefined;
|
|
48
|
+
'pending+3'?: undefined;
|
|
49
|
+
'pending+5'?: undefined;
|
|
50
|
+
} | {
|
|
51
|
+
'pending+5': {
|
|
52
|
+
baseFee: number;
|
|
53
|
+
confidence: number;
|
|
54
|
+
}[];
|
|
55
|
+
'pending+1'?: undefined;
|
|
56
|
+
'pending+2'?: undefined;
|
|
57
|
+
'pending+3'?: undefined;
|
|
58
|
+
'pending+4'?: undefined;
|
|
59
|
+
})[];
|
|
60
|
+
maxPrice: number;
|
|
61
|
+
msSinceLastBlock: number;
|
|
62
|
+
network: string;
|
|
63
|
+
schema: string;
|
|
64
|
+
system: string;
|
|
65
|
+
timestamp: number;
|
|
66
|
+
unit: string;
|
|
67
|
+
};
|
|
68
|
+
//# sourceMappingURL=blocknative.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blocknative.d.ts","sourceRoot":"","sources":["../../../src/sampleGasPricePayloads/blocknative.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0F5C,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const sampleEthGasStationGasPricePayload: {
|
|
2
|
+
baseFee: number;
|
|
3
|
+
blockNumber: number;
|
|
4
|
+
blockTime: number;
|
|
5
|
+
gasPrice: {
|
|
6
|
+
fast: number;
|
|
7
|
+
instant: number;
|
|
8
|
+
standard: number;
|
|
9
|
+
};
|
|
10
|
+
nextBaseFee: number;
|
|
11
|
+
priorityFee: {
|
|
12
|
+
fast: number;
|
|
13
|
+
instant: number;
|
|
14
|
+
standard: number;
|
|
15
|
+
};
|
|
16
|
+
schema: string;
|
|
17
|
+
timestamp: number;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=ethGasStation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ethGasStation.d.ts","sourceRoot":"","sources":["../../../src/sampleGasPricePayloads/ethGasStation.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;CAiB9C,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const sampleEtherchainV1GasPricePayload: {
|
|
2
|
+
currentBaseFee: number;
|
|
3
|
+
fast: number;
|
|
4
|
+
fastest: number;
|
|
5
|
+
recommendedBaseFee: number;
|
|
6
|
+
safeLow: number;
|
|
7
|
+
schema: string;
|
|
8
|
+
standard: number;
|
|
9
|
+
timestamp: number;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=etherchainV1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"etherchainV1.d.ts","sourceRoot":"","sources":["../../../src/sampleGasPricePayloads/etherchainV1.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iCAAiC;;;;;;;;;CAS7C,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const sampleEtherchainV2GasPricePayload: {
|
|
2
|
+
code: number;
|
|
3
|
+
data: {
|
|
4
|
+
fast: number;
|
|
5
|
+
priceUSD: number;
|
|
6
|
+
rapid: number;
|
|
7
|
+
slow: number;
|
|
8
|
+
standard: number;
|
|
9
|
+
timestamp: number;
|
|
10
|
+
};
|
|
11
|
+
schema: string;
|
|
12
|
+
timestamp: number;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=etherchainV2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"etherchainV2.d.ts","sourceRoot":"","sources":["../../../src/sampleGasPricePayloads/etherchainV2.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iCAAiC;;;;;;;;;;;;CAY7C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ethers.d.ts","sourceRoot":"","sources":["../../../src/sampleGasPricePayloads/ethers.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B;;;;;;;CAOvC,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const sampleEtherscanGasPricePayload: {
|
|
2
|
+
message: string;
|
|
3
|
+
result: {
|
|
4
|
+
FastGasPrice: string;
|
|
5
|
+
LastBlock: string;
|
|
6
|
+
ProposeGasPrice: string;
|
|
7
|
+
SafeGasPrice: string;
|
|
8
|
+
gasUsedRatio: string;
|
|
9
|
+
suggestBaseFee: string;
|
|
10
|
+
};
|
|
11
|
+
schema: string;
|
|
12
|
+
status: string;
|
|
13
|
+
timestamp: number;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=etherscan.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"etherscan.d.ts","sourceRoot":"","sources":["../../../src/sampleGasPricePayloads/etherscan.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;CAa1C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sampleGasPricePayloads/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,oBAAoB,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const samplePayloadFromBuilder: {
|
|
2
|
+
_archive: string;
|
|
3
|
+
schema: "network.xyo.temp";
|
|
4
|
+
test: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const sampleIdPayload: {
|
|
7
|
+
salt: string;
|
|
8
|
+
schema: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const sampleSystemInfoBrowserPayload: {
|
|
11
|
+
bowser: {
|
|
12
|
+
browser: {
|
|
13
|
+
name: string;
|
|
14
|
+
version: string;
|
|
15
|
+
};
|
|
16
|
+
engine: {
|
|
17
|
+
name: string;
|
|
18
|
+
};
|
|
19
|
+
os: {
|
|
20
|
+
name: string;
|
|
21
|
+
version: string;
|
|
22
|
+
versionName: string;
|
|
23
|
+
};
|
|
24
|
+
platform: {
|
|
25
|
+
type: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
schema: string;
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=samplePayload.d.ts.map
|
|
@@ -0,0 +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;;;;;;;;;;;;;;;;;;;CAe1C,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const sampleUniswapPayload: {
|
|
2
|
+
pairs: {
|
|
3
|
+
tokens: {
|
|
4
|
+
address: string;
|
|
5
|
+
symbol: string;
|
|
6
|
+
value: number;
|
|
7
|
+
}[];
|
|
8
|
+
}[];
|
|
9
|
+
schema: string;
|
|
10
|
+
timestamp: number;
|
|
11
|
+
};
|
|
12
|
+
export declare const payloadDataMissingPairs: {
|
|
13
|
+
pairs: never[];
|
|
14
|
+
schema: string;
|
|
15
|
+
timestamp: number;
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=sampleUniswapPayload.d.ts.map
|
|
@@ -0,0 +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"}
|
package/package.json
CHANGED
|
@@ -1,35 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-storybook",
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
"
|
|
7
|
-
|
|
3
|
+
"version": "3.0.3",
|
|
4
|
+
"description": "Common React library for all XYO projects that use React",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"xyo",
|
|
7
|
+
"utility",
|
|
8
|
+
"typescript",
|
|
9
|
+
"react"
|
|
10
|
+
],
|
|
11
|
+
"homepage": "https://xyo.network",
|
|
8
12
|
"bugs": {
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
},
|
|
12
|
-
"dependencies": {
|
|
13
|
-
"@storybook/react": "^8.2.9",
|
|
14
|
-
"@xylabs/hex": "^4.0.1",
|
|
15
|
-
"@xyo-network/boundwitness-model": "^3.0.2",
|
|
16
|
-
"@xyo-network/payload-model": "^3.0.2"
|
|
13
|
+
"url": "git+https://github.com/XYOracleNetwork/sdk-xyo-react-js/issues",
|
|
14
|
+
"email": "support@xyo.network"
|
|
17
15
|
},
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"@mui/styles": "^5",
|
|
22
|
-
"react": "^18",
|
|
23
|
-
"react-dom": "^18"
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/XYOracleNetwork/sdk-xyo-react-js.git"
|
|
24
19
|
},
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"typescript": "^5.5.4"
|
|
20
|
+
"license": "LGPL-3.0-only",
|
|
21
|
+
"author": {
|
|
22
|
+
"name": "XYO Development Team",
|
|
23
|
+
"email": "support@xyo.network",
|
|
24
|
+
"url": "https://xyo.network"
|
|
31
25
|
},
|
|
32
|
-
"
|
|
26
|
+
"sideEffects": false,
|
|
27
|
+
"type": "module",
|
|
33
28
|
"exports": {
|
|
34
29
|
".": {
|
|
35
30
|
"import": {
|
|
@@ -42,27 +37,37 @@
|
|
|
42
37
|
"./package.json": "./package.json"
|
|
43
38
|
},
|
|
44
39
|
"module": "dist/browser/index.mjs",
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"typescript",
|
|
50
|
-
"react"
|
|
51
|
-
],
|
|
52
|
-
"license": "LGPL-3.0-only",
|
|
53
|
-
"publishConfig": {
|
|
54
|
-
"access": "public"
|
|
40
|
+
"types": "dist/browser/index.d.ts",
|
|
41
|
+
"scripts": {
|
|
42
|
+
"license": "yarn license-checker --exclude \"MIT, ISC, Apache-2.0, BSD, BSD-2-Clause, CC-BY-4.0, Unlicense, CC-BY-3.0, CC0-1.0\"",
|
|
43
|
+
"lint-pkg": "npmPkgJsonLint ."
|
|
55
44
|
},
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"@storybook/react": "^8.2.9",
|
|
47
|
+
"@xylabs/hex": "^4.0.5",
|
|
48
|
+
"@xyo-network/boundwitness-model": "^3.0.15",
|
|
49
|
+
"@xyo-network/payload-model": "^3.0.15",
|
|
50
|
+
"storybook": "^8.2.9"
|
|
59
51
|
},
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@mui/icons-material": "^5.16.7",
|
|
54
|
+
"@mui/material": "^5.16.7",
|
|
55
|
+
"@mui/styles": "^5.16.7",
|
|
56
|
+
"@xylabs/ts-scripts-yarn3": "^4.0.7",
|
|
57
|
+
"@xylabs/tsconfig-react": "^4.0.7",
|
|
58
|
+
"react": "^18.3.1",
|
|
59
|
+
"react-dom": "^18.3.1",
|
|
60
|
+
"typescript": "^5.5.4"
|
|
63
61
|
},
|
|
64
|
-
"
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
62
|
+
"peerDependencies": {
|
|
63
|
+
"@mui/icons-material": "^5",
|
|
64
|
+
"@mui/material": "^5",
|
|
65
|
+
"@mui/styles": "^5",
|
|
66
|
+
"react": "^18",
|
|
67
|
+
"react-dom": "^18"
|
|
68
|
+
},
|
|
69
|
+
"publishConfig": {
|
|
70
|
+
"access": "public"
|
|
71
|
+
},
|
|
72
|
+
"docs": "dist/docs.json"
|
|
68
73
|
}
|
package/src/WithRefDecorator.tsx
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { BoundWitness
|
|
1
|
+
import type { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
2
|
+
import { BoundWitnessSchema } from '@xyo-network/boundwitness-model'
|
|
2
3
|
|
|
3
4
|
export const sampleAddressHistory: BoundWitness[] = [
|
|
4
5
|
{
|
package/src/sampleBlock.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { Address } from '@xylabs/hex'
|
|
2
|
-
import { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
1
|
+
import type { Address } from '@xylabs/hex'
|
|
2
|
+
import type { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
3
3
|
|
|
4
4
|
export const sampleBlock: BoundWitness = {
|
|
5
|
-
$meta: {
|
|
6
|
-
signatures: ['d0969a4edd2cbb55f879bb68733a36509dab7516c52e3066fd2e248ee80f98e36bdd56a0711140cfbc55106d4c65fe7ed58df8c03c5d360b34d3c74ea3b6fe1f'],
|
|
7
|
-
},
|
|
5
|
+
$meta: { signatures: ['d0969a4edd2cbb55f879bb68733a36509dab7516c52e3066fd2e248ee80f98e36bdd56a0711140cfbc55106d4c65fe7ed58df8c03c5d360b34d3c74ea3b6fe1f'] },
|
|
8
6
|
addresses: ['9c6df83b84297985d3ccc1f721ba1c2e3608c751', 'BF005E04EF223aa18c0fBFF6B41BbB0227c45A48'.toLowerCase() as Address],
|
|
9
7
|
payload_hashes: [
|
|
10
8
|
'43df96261884ec99e0d7667120d036065c1f6a88dbb999f30d7c820dc9a37ee5',
|
|
@@ -27,9 +25,7 @@ export const sampleBlock: BoundWitness = {
|
|
|
27
25
|
timestamp: Date.now(),
|
|
28
26
|
}
|
|
29
27
|
export const sampleBlockWithBoundWitnessPayload: BoundWitness = {
|
|
30
|
-
$meta: {
|
|
31
|
-
signatures: ['d0969a4edd2cbb55f879bb68733a36509dab7516c52e3066fd2e248ee80f98e36bdd56a0711140cfbc55106d4c65fe7ed58df8c03c5d360b34d3c74ea3b6fe1f'],
|
|
32
|
-
},
|
|
28
|
+
$meta: { signatures: ['d0969a4edd2cbb55f879bb68733a36509dab7516c52e3066fd2e248ee80f98e36bdd56a0711140cfbc55106d4c65fe7ed58df8c03c5d360b34d3c74ea3b6fe1f'] },
|
|
33
29
|
addresses: ['9c6df83b84297985d3ccc1f721ba1c2e3608c751', 'BF005E04EF223aa18c0fBFF6B41BbB0227c45A48'.toLowerCase() as Address],
|
|
34
30
|
payload_hashes: [
|
|
35
31
|
'43df96261884ec99e0d7667120d036065c1f6a88dbb999f30d7c820dc9a37ee5',
|
package/src/samplePayload.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Payload } from '@xyo-network/payload-model'
|
|
1
|
+
import type { Payload } from '@xyo-network/payload-model'
|
|
2
2
|
|
|
3
3
|
type TestPayload = Payload<
|
|
4
4
|
{
|
|
@@ -24,17 +24,13 @@ export const sampleSystemInfoBrowserPayload = {
|
|
|
24
24
|
name: 'Chrome',
|
|
25
25
|
version: '104.0.0.0',
|
|
26
26
|
},
|
|
27
|
-
engine: {
|
|
28
|
-
name: 'Blink',
|
|
29
|
-
},
|
|
27
|
+
engine: { name: 'Blink' },
|
|
30
28
|
os: {
|
|
31
29
|
name: 'Windows',
|
|
32
30
|
version: 'NT 10.0',
|
|
33
31
|
versionName: '10',
|
|
34
32
|
},
|
|
35
|
-
platform: {
|
|
36
|
-
type: 'desktop',
|
|
37
|
-
},
|
|
33
|
+
platform: { type: 'desktop' },
|
|
38
34
|
},
|
|
39
35
|
schema: 'network.xyo.system.info.browser',
|
|
40
36
|
}
|
package/xy.config.ts
CHANGED