@xyo-network/react-storybook 7.5.8 → 7.5.12
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.mjs +74 -193
- package/dist/browser/index.mjs.map +1 -1
- package/dist/browser/samplePayload.d.ts +10 -8
- package/dist/browser/samplePayload.d.ts.map +1 -1
- package/package.json +39 -28
- package/src/DeprecateStory.tsx +0 -11
- package/src/WithRefDecorator.tsx +0 -22
- package/src/defaultSeedPhrase.ts +0 -2
- package/src/index.ts +0 -10
- package/src/sampleAddressHistory.ts +0 -128
- package/src/sampleBlock.ts +0 -47
- package/src/sampleCoinGeckoPayload.ts +0 -74
- package/src/sampleEthereumGasDivinerPayload.ts +0 -26
- package/src/sampleGasPricePayloads/blocknative.ts +0 -93
- package/src/sampleGasPricePayloads/ethGasStation.ts +0 -20
- package/src/sampleGasPricePayloads/etherchainV1.ts +0 -10
- package/src/sampleGasPricePayloads/etherchainV2.ts +0 -15
- package/src/sampleGasPricePayloads/ethers.ts +0 -10
- package/src/sampleGasPricePayloads/etherscan.ts +0 -16
- package/src/sampleGasPricePayloads/index.ts +0 -6
- package/src/samplePayload.ts +0 -40
- package/src/sampleUniswapPayload.ts +0 -196
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-storybook",
|
|
3
|
-
"version": "7.5.
|
|
3
|
+
"version": "7.5.12",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -36,44 +36,55 @@
|
|
|
36
36
|
},
|
|
37
37
|
"./package.json": "./package.json"
|
|
38
38
|
},
|
|
39
|
-
"module": "dist/browser/index.mjs",
|
|
40
|
-
"types": "dist/browser/index.d.ts",
|
|
41
39
|
"files": [
|
|
42
40
|
"dist",
|
|
43
|
-
"
|
|
41
|
+
"README.md"
|
|
44
42
|
],
|
|
45
|
-
"dependencies": {
|
|
46
|
-
"@storybook/react-vite": "~10.3.3",
|
|
47
|
-
"@xyo-network/boundwitness-model": "~5.3.17",
|
|
48
|
-
"@xyo-network/payload-model": "~5.3.17"
|
|
49
|
-
},
|
|
50
43
|
"devDependencies": {
|
|
51
|
-
"@mui/
|
|
52
|
-
"@
|
|
44
|
+
"@mui/material": "^7.3.10",
|
|
45
|
+
"@opentelemetry/api": "^1.9.1",
|
|
46
|
+
"@opentelemetry/sdk-trace-base": "^2.7.0",
|
|
47
|
+
"@storybook/react-vite": "~10.3.5",
|
|
48
|
+
"@types/node": "~25.6.0",
|
|
53
49
|
"@types/react": "^19.2.14",
|
|
54
|
-
"@xylabs/sdk-js": "
|
|
55
|
-
"@xylabs/
|
|
56
|
-
"@xylabs/
|
|
57
|
-
"@xylabs/tsconfig": "
|
|
58
|
-
"@xylabs/tsconfig-
|
|
59
|
-
"@
|
|
60
|
-
"@xyo-network/payload-model": "
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
50
|
+
"@xylabs/sdk-js": "^5.0.100",
|
|
51
|
+
"@xylabs/toolchain": "~7.11.9",
|
|
52
|
+
"@xylabs/tsconfig": "^7.11.9",
|
|
53
|
+
"@xylabs/tsconfig-dom": "^7.11.9",
|
|
54
|
+
"@xylabs/tsconfig-react": "~7.11.9",
|
|
55
|
+
"@xyo-network/boundwitness-model": "^5.5.1",
|
|
56
|
+
"@xyo-network/payload-model": "^5.5.1",
|
|
57
|
+
"async-mutex": "^0.5.0",
|
|
58
|
+
"axios": "^1.15.2",
|
|
59
|
+
"bn.js": "^5.2.3",
|
|
60
|
+
"buffer": "^6.0.3",
|
|
61
|
+
"chalk": "^5.6.2",
|
|
62
|
+
"esbuild": "~0.28.0",
|
|
63
|
+
"eslint": "^10.2.1",
|
|
64
|
+
"ethers": "^6.16.0",
|
|
65
|
+
"pako": "^2.1.0",
|
|
66
|
+
"react": "^19.2.5",
|
|
67
|
+
"react-dom": "^19.2.5",
|
|
68
|
+
"storybook": "^10.3.5",
|
|
64
69
|
"typescript": "^5.9.3",
|
|
65
|
-
"vite": "
|
|
70
|
+
"vite": "^8.0.10",
|
|
66
71
|
"zod": "^4.3.6"
|
|
67
72
|
},
|
|
68
73
|
"peerDependencies": {
|
|
69
|
-
"@mui/
|
|
70
|
-
"@
|
|
71
|
-
"react": "^19",
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
+
"@mui/material": "^7.3.10",
|
|
75
|
+
"@storybook/react-vite": "~10.3.5",
|
|
76
|
+
"@types/react": "^19.2.14",
|
|
77
|
+
"@xylabs/sdk-js": "^5.0.100",
|
|
78
|
+
"@xyo-network/boundwitness-model": "^5.5.1",
|
|
79
|
+
"@xyo-network/payload-model": "^5.5.1",
|
|
80
|
+
"react": "^19.2.5",
|
|
81
|
+
"react-dom": "^19.2.5",
|
|
82
|
+
"storybook": "^10.3.5",
|
|
83
|
+
"vite": "^8.0.10",
|
|
84
|
+
"zod": "^4.3.6"
|
|
74
85
|
},
|
|
75
86
|
"publishConfig": {
|
|
76
87
|
"access": "public"
|
|
77
88
|
},
|
|
78
89
|
"docs": "dist/docs.json"
|
|
79
|
-
}
|
|
90
|
+
}
|
package/src/DeprecateStory.tsx
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Alert, AlertTitle } from '@mui/material'
|
|
2
|
-
import React from 'react'
|
|
3
|
-
|
|
4
|
-
export const DeprecateStory: React.FC<{ message?: string }> = ({ message }) => {
|
|
5
|
-
return (
|
|
6
|
-
<Alert severity="error" sx={{ marginBottom: '24px' }}>
|
|
7
|
-
<AlertTitle>Story has been Deprecated</AlertTitle>
|
|
8
|
-
{message}
|
|
9
|
-
</Alert>
|
|
10
|
-
)
|
|
11
|
-
}
|
package/src/WithRefDecorator.tsx
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Button } from '@mui/material'
|
|
2
|
-
import type { Decorator } from '@storybook/react-vite'
|
|
3
|
-
import React, { useRef } from 'react'
|
|
4
|
-
|
|
5
|
-
export const WithRefDecorator: Decorator = (Story, args) => {
|
|
6
|
-
const ref = useRef<HTMLDivElement | null>(null)
|
|
7
|
-
const onClick = () => {
|
|
8
|
-
if (ref.current) {
|
|
9
|
-
ref.current.style.color = 'green'
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
args.args.ref = ref
|
|
14
|
-
return (
|
|
15
|
-
<>
|
|
16
|
-
<Button onClick={onClick} variant="contained">
|
|
17
|
-
Change to green
|
|
18
|
-
</Button>
|
|
19
|
-
<Story {...args} />
|
|
20
|
-
</>
|
|
21
|
-
)
|
|
22
|
-
}
|
package/src/defaultSeedPhrase.ts
DELETED
package/src/index.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
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'
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import type { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
2
|
-
import { BoundWitnessSchema } from '@xyo-network/boundwitness-model'
|
|
3
|
-
|
|
4
|
-
export const sampleAddressHistory = [
|
|
5
|
-
{
|
|
6
|
-
$signatures: [
|
|
7
|
-
'186de1122640fc9d6577765e0b0f6822860994a0fbd1f80354963f89eebc3da01d0a68c36d2c6facab89bd777964c0d5b76103eb35b7900cc69bb1b90231117e',
|
|
8
|
-
],
|
|
9
|
-
addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],
|
|
10
|
-
payload_hashes: ['97e693d0eb86eec1ca28f2bb0c77ddaae821fd0a9adc51c1521cdd754e2e207d'],
|
|
11
|
-
payload_schemas: ['network.xyo.id'],
|
|
12
|
-
previous_hashes: ['8f914f739a96cb8baffaf156724240e4d51ab94cd4a374754c4e8f8281dc4191'],
|
|
13
|
-
schema: BoundWitnessSchema,
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
$signatures: [
|
|
17
|
-
'35c4aa262694cdf6c72f473e4e2a4b164b35a5f228a6ed1c8345b8a6b7b0d192d6868fc038a09258f2b7016d04157640d7555109102e3c072556f8c4c002543f',
|
|
18
|
-
],
|
|
19
|
-
addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],
|
|
20
|
-
payload_hashes: ['b01dd00648fafa4488ff461c812e80e5c657939da8c7d4bb056177e241554449'],
|
|
21
|
-
payload_schemas: ['network.xyo.id'],
|
|
22
|
-
previous_hashes: ['7456e3a653f6b3cac3ee0204cef37152eeb8cfeef3e20a0e177abf7ec36e0236'],
|
|
23
|
-
schema: BoundWitnessSchema,
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
$signatures: [
|
|
27
|
-
'f273d8a8587ec2c6c9e91416eec66fdd441156f9ce2fb54e3e78e885aa792017e10ea36af44d9453422ffbafd58732a80387ab57c93ae0618b09aa4847f5e457',
|
|
28
|
-
],
|
|
29
|
-
addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],
|
|
30
|
-
payload_hashes: ['03be02066ed31dc92ffd371a48026eac5770a8647160704b70e8dca8fc64cb0a'],
|
|
31
|
-
payload_schemas: ['network.xyo.id'],
|
|
32
|
-
previous_hashes: ['053d47a27012548dc0b3bb469e6598c7a48e81d3a552a790b455922cdb0750ba'],
|
|
33
|
-
schema: BoundWitnessSchema,
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
$signatures: [
|
|
37
|
-
'79960dd5c590a1007bc526729a3ffee3153bb37ace383485ed298b3ba94939fffade54980a02c57119238bd9984d2860b822d29dbb36b04251fab83354b5a7cc',
|
|
38
|
-
],
|
|
39
|
-
addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],
|
|
40
|
-
payload_hashes: ['5ebf3c990e08174bcf3987dc94ff0a4ec33b6ba806d3f3ec50e0966395fc1c76'],
|
|
41
|
-
payload_schemas: ['network.xyo.id'],
|
|
42
|
-
previous_hashes: ['9ae219b4d71a5c46321a21cdef08540fafe7e6d51440ba34699883bdaf15e61d'],
|
|
43
|
-
schema: BoundWitnessSchema,
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
$signatures: [
|
|
47
|
-
'03830c7e9345a80390524543eb4ca097530bafa5d109b91a5a328399fcffe5af3a32b3a66658c045d013cf9b4fd598cafc9374bd0004d0c1bb2224ac812b855a',
|
|
48
|
-
],
|
|
49
|
-
addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],
|
|
50
|
-
payload_hashes: ['ce405ae29915ea7b5f62a87c316bf4f46052c7bb0a36e67e621fedb1ec96fec5'],
|
|
51
|
-
payload_schemas: ['network.xyo.id'],
|
|
52
|
-
previous_hashes: ['322e48abf142b99635ea51c73d7d6225c04514348ffd3c37399c39b0e17d4972'],
|
|
53
|
-
schema: BoundWitnessSchema,
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
$signatures: [
|
|
57
|
-
'2ddd7f65ad5ccdce83318f47040db7f45ef76142d2bb9c549241ac59619bf00a671f1ca5755d4e4b0e59fb8eb11c31e1d26c5d376eb57d8eeee7156469ae770b',
|
|
58
|
-
],
|
|
59
|
-
addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],
|
|
60
|
-
payload_hashes: ['84efe9b19a752d3d997cfe5e7c336b1b090669fc0172f649825b2f24c8d82876'],
|
|
61
|
-
payload_schemas: ['network.xyo.id'],
|
|
62
|
-
previous_hashes: [null],
|
|
63
|
-
schema: BoundWitnessSchema,
|
|
64
|
-
},
|
|
65
|
-
] as BoundWitness[]
|
|
66
|
-
|
|
67
|
-
export const randomizedSampleAddressHistory = [
|
|
68
|
-
{
|
|
69
|
-
$signatures: [
|
|
70
|
-
'35c4aa262694cdf6c72f473e4e2a4b164b35a5f228a6ed1c8345b8a6b7b0d192d6868fc038a09258f2b7016d04157640d7555109102e3c072556f8c4c002543f',
|
|
71
|
-
],
|
|
72
|
-
addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],
|
|
73
|
-
payload_hashes: ['b01dd00648fafa4488ff461c812e80e5c657939da8c7d4bb056177e241554449'],
|
|
74
|
-
payload_schemas: ['network.xyo.id'],
|
|
75
|
-
previous_hashes: ['7456e3a653f6b3cac3ee0204cef37152eeb8cfeef3e20a0e177abf7ec36e0236'],
|
|
76
|
-
schema: BoundWitnessSchema,
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
$signatures: [
|
|
80
|
-
'79960dd5c590a1007bc526729a3ffee3153bb37ace383485ed298b3ba94939fffade54980a02c57119238bd9984d2860b822d29dbb36b04251fab83354b5a7cc',
|
|
81
|
-
],
|
|
82
|
-
addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],
|
|
83
|
-
payload_hashes: ['5ebf3c990e08174bcf3987dc94ff0a4ec33b6ba806d3f3ec50e0966395fc1c76'],
|
|
84
|
-
payload_schemas: ['network.xyo.id'],
|
|
85
|
-
previous_hashes: ['9ae219b4d71a5c46321a21cdef08540fafe7e6d51440ba34699883bdaf15e61d'],
|
|
86
|
-
schema: BoundWitnessSchema,
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
$signatures: [
|
|
90
|
-
'186de1122640fc9d6577765e0b0f6822860994a0fbd1f80354963f89eebc3da01d0a68c36d2c6facab89bd777964c0d5b76103eb35b7900cc69bb1b90231117e',
|
|
91
|
-
],
|
|
92
|
-
addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],
|
|
93
|
-
payload_hashes: ['97e693d0eb86eec1ca28f2bb0c77ddaae821fd0a9adc51c1521cdd754e2e207d'],
|
|
94
|
-
payload_schemas: ['network.xyo.id'],
|
|
95
|
-
previous_hashes: ['8f914f739a96cb8baffaf156724240e4d51ab94cd4a374754c4e8f8281dc4191'],
|
|
96
|
-
schema: BoundWitnessSchema,
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
$signatures: [
|
|
100
|
-
'f273d8a8587ec2c6c9e91416eec66fdd441156f9ce2fb54e3e78e885aa792017e10ea36af44d9453422ffbafd58732a80387ab57c93ae0618b09aa4847f5e457',
|
|
101
|
-
],
|
|
102
|
-
addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],
|
|
103
|
-
payload_hashes: ['03be02066ed31dc92ffd371a48026eac5770a8647160704b70e8dca8fc64cb0a'],
|
|
104
|
-
payload_schemas: ['network.xyo.id'],
|
|
105
|
-
previous_hashes: ['053d47a27012548dc0b3bb469e6598c7a48e81d3a552a790b455922cdb0750ba'],
|
|
106
|
-
schema: BoundWitnessSchema,
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
$signatures: [
|
|
110
|
-
'2ddd7f65ad5ccdce83318f47040db7f45ef76142d2bb9c549241ac59619bf00a671f1ca5755d4e4b0e59fb8eb11c31e1d26c5d376eb57d8eeee7156469ae770b',
|
|
111
|
-
],
|
|
112
|
-
addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],
|
|
113
|
-
payload_hashes: ['84efe9b19a752d3d997cfe5e7c336b1b090669fc0172f649825b2f24c8d82876'],
|
|
114
|
-
payload_schemas: ['network.xyo.id'],
|
|
115
|
-
previous_hashes: [null],
|
|
116
|
-
schema: BoundWitnessSchema,
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
$signatures: [
|
|
120
|
-
'03830c7e9345a80390524543eb4ca097530bafa5d109b91a5a328399fcffe5af3a32b3a66658c045d013cf9b4fd598cafc9374bd0004d0c1bb2224ac812b855a',
|
|
121
|
-
],
|
|
122
|
-
addresses: ['fc0f8a536fe657ebbfa7a3b81bee6053c73debec'],
|
|
123
|
-
payload_hashes: ['ce405ae29915ea7b5f62a87c316bf4f46052c7bb0a36e67e621fedb1ec96fec5'],
|
|
124
|
-
payload_schemas: ['network.xyo.id'],
|
|
125
|
-
previous_hashes: ['322e48abf142b99635ea51c73d7d6225c04514348ffd3c37399c39b0e17d4972'],
|
|
126
|
-
schema: BoundWitnessSchema,
|
|
127
|
-
},
|
|
128
|
-
] as BoundWitness[]
|
package/src/sampleBlock.ts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import type { BoundWitness, Signed } from '@xyo-network/boundwitness-model'
|
|
2
|
-
|
|
3
|
-
export const sampleBlock = {
|
|
4
|
-
$signatures: ['d0969a4edd2cbb55f879bb68733a36509dab7516c52e3066fd2e248ee80f98e36bdd56a0711140cfbc55106d4c65fe7ed58df8c03c5d360b34d3c74ea3b6fe1f'],
|
|
5
|
-
addresses: ['9c6df83b84297985d3ccc1f721ba1c2e3608c751'],
|
|
6
|
-
payload_hashes: [
|
|
7
|
-
'43df96261884ec99e0d7667120d036065c1f6a88dbb999f30d7c820dc9a37ee5',
|
|
8
|
-
'31b3a835ebad2b6f2d6cc16ec855b41f237116f52b515aac9a8f555fec05fa3e',
|
|
9
|
-
'97e693d0eb86eec1ca28f2bb0c77ddaae821fd0a9adc51c1521cdd754e2e207d',
|
|
10
|
-
'be39d7b3b3383e65405236c0c314e4601eb5e98859266fef4e5caf22b16d5706',
|
|
11
|
-
'21ab79e5fae74ccc22d611a42732f9257e7a29a4da744e51ec99feda948e1115',
|
|
12
|
-
'bd5825ee3cefa969ded2dd1a35d9f28a9a0f312703e7f57bf8554ccda24f0b5f',
|
|
13
|
-
],
|
|
14
|
-
payload_schemas: [
|
|
15
|
-
'network.xyo.location',
|
|
16
|
-
'network.xyo.id',
|
|
17
|
-
'network.xyo.id',
|
|
18
|
-
'network.xyo.payload',
|
|
19
|
-
'network.xyo.location.range.answer',
|
|
20
|
-
'network.xyo.location.range',
|
|
21
|
-
],
|
|
22
|
-
previous_hashes: [null],
|
|
23
|
-
schema: 'network.xyo.boundwitness',
|
|
24
|
-
} as Signed<BoundWitness>
|
|
25
|
-
|
|
26
|
-
export const sampleBlockWithBoundWitnessPayload = {
|
|
27
|
-
$signatures: ['d0969a4edd2cbb55f879bb68733a36509dab7516c52e3066fd2e248ee80f98e36bdd56a0711140cfbc55106d4c65fe7ed58df8c03c5d360b34d3c74ea3b6fe1f'],
|
|
28
|
-
addresses: ['9c6df83b84297985d3ccc1f721ba1c2e3608c751'],
|
|
29
|
-
payload_hashes: [
|
|
30
|
-
'43df96261884ec99e0d7667120d036065c1f6a88dbb999f30d7c820dc9a37ee5',
|
|
31
|
-
'31b3a835ebad2b6f2d6cc16ec855b41f237116f52b515aac9a8f555fec05fa3e',
|
|
32
|
-
'97e693d0eb86eec1ca28f2bb0c77ddaae821fd0a9adc51c1521cdd754e2e207d',
|
|
33
|
-
'be39d7b3b3383e65405236c0c314e4601eb5e98859266fef4e5caf22b16d5706',
|
|
34
|
-
'21ab79e5fae74ccc22d611a42732f9257e7a29a4da744e51ec99feda948e1115',
|
|
35
|
-
'bd5825ee3cefa969ded2dd1a35d9f28a9a0f312703e7f57bf8554ccda24f0b5f',
|
|
36
|
-
],
|
|
37
|
-
payload_schemas: [
|
|
38
|
-
'network.xyo.boundwitness',
|
|
39
|
-
'network.xyo.id',
|
|
40
|
-
'network.xyo.id',
|
|
41
|
-
'network.xyo.payload',
|
|
42
|
-
'network.xyo.location.range.answer',
|
|
43
|
-
'network.xyo.location.range',
|
|
44
|
-
],
|
|
45
|
-
previous_hashes: [null],
|
|
46
|
-
schema: 'network.xyo.boundwitness',
|
|
47
|
-
} as Signed<BoundWitness>
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { asSchema } from '@xyo-network/payload-model'
|
|
2
|
-
|
|
3
|
-
export const sampleCoinGeckoPayload = {
|
|
4
|
-
assets: {
|
|
5
|
-
ada: {
|
|
6
|
-
btc: 0.000_021_21,
|
|
7
|
-
eth: 0.000_286_02,
|
|
8
|
-
eur: 0.455_045,
|
|
9
|
-
usd: 0.451_912,
|
|
10
|
-
},
|
|
11
|
-
btc: {
|
|
12
|
-
btc: 1,
|
|
13
|
-
eth: 13.480_925,
|
|
14
|
-
eur: 21_444,
|
|
15
|
-
usd: 21_297,
|
|
16
|
-
},
|
|
17
|
-
busd: {
|
|
18
|
-
btc: 0.000_046_91,
|
|
19
|
-
eth: 0.000_632_54,
|
|
20
|
-
eur: 1.006,
|
|
21
|
-
usd: 0.999_271,
|
|
22
|
-
},
|
|
23
|
-
doge: {
|
|
24
|
-
btc: 0.000_003_15,
|
|
25
|
-
eth: 0.000_042_51,
|
|
26
|
-
eur: 0.067_639,
|
|
27
|
-
usd: 0.067_173,
|
|
28
|
-
},
|
|
29
|
-
dot: {
|
|
30
|
-
btc: 0.000_339_57,
|
|
31
|
-
eth: 0.004_579_09,
|
|
32
|
-
eur: 7.28,
|
|
33
|
-
usd: 7.23,
|
|
34
|
-
},
|
|
35
|
-
eth: {
|
|
36
|
-
btc: 0.074_168_36,
|
|
37
|
-
eth: 1,
|
|
38
|
-
eur: 1590.95,
|
|
39
|
-
usd: 1580,
|
|
40
|
-
},
|
|
41
|
-
sol: {
|
|
42
|
-
btc: 0.001_623_96,
|
|
43
|
-
eth: 0.021_898_73,
|
|
44
|
-
eur: 34.83,
|
|
45
|
-
usd: 34.59,
|
|
46
|
-
},
|
|
47
|
-
usdc: {
|
|
48
|
-
btc: 0.000_046_91,
|
|
49
|
-
eth: 0.000_632_59,
|
|
50
|
-
eur: 1.006,
|
|
51
|
-
usd: 0.999_341,
|
|
52
|
-
},
|
|
53
|
-
usdt: {
|
|
54
|
-
btc: 0.000_046_97,
|
|
55
|
-
eth: 0.000_633_28,
|
|
56
|
-
eur: 1.008,
|
|
57
|
-
usd: 1.001,
|
|
58
|
-
},
|
|
59
|
-
wbtc: {
|
|
60
|
-
btc: 0.999_857_08,
|
|
61
|
-
eth: 13.482_839,
|
|
62
|
-
eur: 21_447,
|
|
63
|
-
usd: 21_300,
|
|
64
|
-
},
|
|
65
|
-
xyo: {
|
|
66
|
-
btc: 4.063_47e-7,
|
|
67
|
-
eth: 0.000_005_48,
|
|
68
|
-
eur: 0.008_716_42,
|
|
69
|
-
usd: 0.008_656_4,
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
schema: asSchema('network.xyo.crypto.market.coingecko', true),
|
|
73
|
-
timestamp: 1_661_188_759_757,
|
|
74
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { asSchema } from '@xyo-network/payload-model'
|
|
2
|
-
|
|
3
|
-
export const sampleEthereumGasDivinerPayload = {
|
|
4
|
-
baseFee: 13.364_650_519_8,
|
|
5
|
-
feePerGas: {
|
|
6
|
-
high: 17.306_096_430_2,
|
|
7
|
-
low: 12.155_000_000_000_001,
|
|
8
|
-
medium: 12.5625,
|
|
9
|
-
veryHigh: 16.546_248_588_5,
|
|
10
|
-
},
|
|
11
|
-
priorityFeePerGas: {
|
|
12
|
-
high: 1.075,
|
|
13
|
-
low: 0.746_666_666_666_666_7,
|
|
14
|
-
medium: 0.856_666_666_666_666_8,
|
|
15
|
-
veryHigh: 1.276_666_666_666_666_6,
|
|
16
|
-
},
|
|
17
|
-
schema: asSchema('network.xyo.blockchain.ethereum.gas', true),
|
|
18
|
-
timestamp: 1_669_819_808_305,
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export const sampleEthereumGasDivinerPayloadMissingFees = {
|
|
22
|
-
feePerGas: {},
|
|
23
|
-
priorityFeePerGas: {},
|
|
24
|
-
schema: asSchema('network.xyo.blockchain.ethereum.gas', true),
|
|
25
|
-
timestamp: 1_659_071_465_718,
|
|
26
|
-
}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { asSchema } from '@xyo-network/payload-model'
|
|
2
|
-
|
|
3
|
-
export const sampleBlocknativeGasPricePayload = {
|
|
4
|
-
blockPrices: [
|
|
5
|
-
{
|
|
6
|
-
baseFeePerGas: 26.328_474_78,
|
|
7
|
-
blockNumber: 16_134_624,
|
|
8
|
-
estimatedPrices: [
|
|
9
|
-
{
|
|
10
|
-
confidence: 99,
|
|
11
|
-
maxFeePerGas: 41.86,
|
|
12
|
-
maxPriorityFeePerGas: 1.18,
|
|
13
|
-
price: 27,
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
confidence: 95,
|
|
17
|
-
maxFeePerGas: 41.54,
|
|
18
|
-
maxPriorityFeePerGas: 0.86,
|
|
19
|
-
price: 27,
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
confidence: 90,
|
|
23
|
-
maxFeePerGas: 41.15,
|
|
24
|
-
maxPriorityFeePerGas: 0.47,
|
|
25
|
-
price: 26,
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
confidence: 80,
|
|
29
|
-
maxFeePerGas: 41,
|
|
30
|
-
maxPriorityFeePerGas: 0.32,
|
|
31
|
-
price: 26,
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
confidence: 70,
|
|
35
|
-
maxFeePerGas: 40.93,
|
|
36
|
-
maxPriorityFeePerGas: 0.25,
|
|
37
|
-
price: 26,
|
|
38
|
-
},
|
|
39
|
-
],
|
|
40
|
-
estimatedTransactionCount: 186,
|
|
41
|
-
},
|
|
42
|
-
],
|
|
43
|
-
currentBlockNumber: 16_134_623,
|
|
44
|
-
estimatedBaseFees: [
|
|
45
|
-
{
|
|
46
|
-
'pending+1': [
|
|
47
|
-
{
|
|
48
|
-
baseFee: 29.62,
|
|
49
|
-
confidence: 99,
|
|
50
|
-
},
|
|
51
|
-
],
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
'pending+2': [
|
|
55
|
-
{
|
|
56
|
-
baseFee: 33.33,
|
|
57
|
-
confidence: 99,
|
|
58
|
-
},
|
|
59
|
-
],
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
'pending+3': [
|
|
63
|
-
{
|
|
64
|
-
baseFee: 37.4,
|
|
65
|
-
confidence: 99,
|
|
66
|
-
},
|
|
67
|
-
],
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
'pending+4': [
|
|
71
|
-
{
|
|
72
|
-
baseFee: 39.26,
|
|
73
|
-
confidence: 99,
|
|
74
|
-
},
|
|
75
|
-
],
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
'pending+5': [
|
|
79
|
-
{
|
|
80
|
-
baseFee: 40.68,
|
|
81
|
-
confidence: 99,
|
|
82
|
-
},
|
|
83
|
-
],
|
|
84
|
-
},
|
|
85
|
-
],
|
|
86
|
-
maxPrice: 64,
|
|
87
|
-
msSinceLastBlock: 9645,
|
|
88
|
-
network: 'main',
|
|
89
|
-
schema: asSchema('network.xyo.blockchain.ethereum.gas.blocknative', true),
|
|
90
|
-
system: 'ethereum',
|
|
91
|
-
timestamp: 1_670_437_800_246,
|
|
92
|
-
unit: 'gwei',
|
|
93
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { asSchema } from '@xyo-network/payload-model'
|
|
2
|
-
|
|
3
|
-
export const sampleEthGasStationGasPricePayload = {
|
|
4
|
-
baseFee: 37,
|
|
5
|
-
blockNumber: 16_134_572,
|
|
6
|
-
blockTime: 11.88,
|
|
7
|
-
gasPrice: {
|
|
8
|
-
fast: 84,
|
|
9
|
-
instant: 97,
|
|
10
|
-
standard: 53,
|
|
11
|
-
},
|
|
12
|
-
nextBaseFee: 37,
|
|
13
|
-
priorityFee: {
|
|
14
|
-
fast: 5,
|
|
15
|
-
instant: 14,
|
|
16
|
-
standard: 2,
|
|
17
|
-
},
|
|
18
|
-
schema: asSchema('network.xyo.blockchain.ethereum.gas.ethgasstation', true),
|
|
19
|
-
timestamp: 1_670_437_200_687,
|
|
20
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export const sampleEtherchainV1GasPricePayload = {
|
|
2
|
-
currentBaseFee: 28.3,
|
|
3
|
-
fast: 0.9,
|
|
4
|
-
fastest: 1.5,
|
|
5
|
-
recommendedBaseFee: 57.5,
|
|
6
|
-
safeLow: 0.2,
|
|
7
|
-
schema: 'network.xyo.blockchain.ethereum.gas.etherchain.v1',
|
|
8
|
-
standard: 0.4,
|
|
9
|
-
timestamp: 1_670_437_800_313,
|
|
10
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { asSchema } from '@xyo-network/payload-model'
|
|
2
|
-
|
|
3
|
-
export const sampleEtherchainV2GasPricePayload = {
|
|
4
|
-
code: 200,
|
|
5
|
-
data: {
|
|
6
|
-
fast: 26_423_463_713,
|
|
7
|
-
priceUSD: 1229.43,
|
|
8
|
-
rapid: 37_143_856_713,
|
|
9
|
-
slow: 13_000_000_000,
|
|
10
|
-
standard: 21_366_997_291,
|
|
11
|
-
timestamp: 1_670_437_795_342,
|
|
12
|
-
},
|
|
13
|
-
schema: asSchema('network.xyo.blockchain.ethereum.gas.etherchain.v2', true),
|
|
14
|
-
timestamp: 1_670_437_800_338,
|
|
15
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { asSchema } from '@xyo-network/payload-model'
|
|
2
|
-
|
|
3
|
-
export const sampleEthersGasPricePayload = {
|
|
4
|
-
gasPrice: 26_770_943_129,
|
|
5
|
-
lastBaseFeePerGas: 26_494_335_502,
|
|
6
|
-
maxFeePerGas: 54_488_671_004,
|
|
7
|
-
maxPriorityFeePerGas: 1_500_000_000,
|
|
8
|
-
schema: asSchema('network.xyo.blockchain.ethereum.gas.ethers', true),
|
|
9
|
-
timestamp: 1_670_437_800_345,
|
|
10
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { asSchema } from '@xyo-network/payload-model'
|
|
2
|
-
|
|
3
|
-
export const sampleEtherscanGasPricePayload = {
|
|
4
|
-
message: 'OK',
|
|
5
|
-
result: {
|
|
6
|
-
FastGasPrice: '35',
|
|
7
|
-
LastBlock: '16134573',
|
|
8
|
-
ProposeGasPrice: '35',
|
|
9
|
-
SafeGasPrice: '34',
|
|
10
|
-
gasUsedRatio: '0.4491729,0.440816333333333,0.480461266666667,0.373305033333333,0.322907566666667',
|
|
11
|
-
suggestBaseFee: '33.952097068',
|
|
12
|
-
},
|
|
13
|
-
schema: asSchema('network.xyo.blockchain.ethereum.gas.etherscan', true),
|
|
14
|
-
status: '1',
|
|
15
|
-
timestamp: 1_670_437_200_510,
|
|
16
|
-
}
|
package/src/samplePayload.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { asSchema, type Payload } from '@xyo-network/payload-model'
|
|
2
|
-
|
|
3
|
-
const TempSchema = asSchema('network.xyo.temp', true)
|
|
4
|
-
type TempSchema = typeof TempSchema
|
|
5
|
-
|
|
6
|
-
type TestPayload = Payload<
|
|
7
|
-
{
|
|
8
|
-
test: string
|
|
9
|
-
},
|
|
10
|
-
TempSchema
|
|
11
|
-
>
|
|
12
|
-
|
|
13
|
-
// needs to be in a function since cjs doesn't support top level awaits
|
|
14
|
-
export const samplePayloadFromBuilder = {
|
|
15
|
-
...({ schema: TempSchema, test: 'hello' } as TestPayload),
|
|
16
|
-
_archive: 'temp',
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export const sampleIdPayload = {
|
|
20
|
-
salt: '81b2372a-b4f0-4ab5-8642-c4e6de46a1cf',
|
|
21
|
-
schema: asSchema('network.xyo.id', true),
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export const sampleSystemInfoBrowserPayload = {
|
|
25
|
-
bowser: {
|
|
26
|
-
browser: {
|
|
27
|
-
name: 'Chrome',
|
|
28
|
-
|
|
29
|
-
version: '104.0.0.0',
|
|
30
|
-
},
|
|
31
|
-
engine: { name: 'Blink' },
|
|
32
|
-
os: {
|
|
33
|
-
name: 'Windows',
|
|
34
|
-
version: 'NT 10.0',
|
|
35
|
-
versionName: '10',
|
|
36
|
-
},
|
|
37
|
-
platform: { type: 'desktop' },
|
|
38
|
-
},
|
|
39
|
-
schema: asSchema('network.xyo.system.info.browser', true),
|
|
40
|
-
}
|