@xyo-network/react-chain-blockchain 1.15.24 → 1.15.25
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/components/block/BlockHeadingFlexbox.stories.d.ts.map +1 -1
- package/dist/browser/components/chain/controls/PollingControlsFlexbox.d.ts.map +1 -1
- package/dist/browser/components/chain/stats/Dialog.d.ts.map +1 -1
- package/dist/browser/hooks/chain-iterator/useChainIteratorParams.d.ts +1 -0
- package/dist/browser/hooks/chain-iterator/useChainIteratorParams.d.ts.map +1 -1
- package/dist/browser/index.mjs +13 -13
- package/dist/browser/index.mjs.map +1 -1
- package/package.json +11 -11
- package/src/components/block/BlockHeadingFlexbox.stories.tsx +20 -18
- package/src/components/chain/controls/PollingControlsFlexbox.tsx +14 -10
- package/src/components/chain/stats/Dialog.tsx +11 -7
- package/src/components/payload/builder/Flexbox.tsx +1 -1
- package/src/components/payload/fields/BlockNumberTextField.tsx +1 -1
- package/src/components/payload/fields/XyoAddressTextField.tsx +1 -1
- package/src/stories/ChainArchivistDelayedInsertDecorator.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@xyo-network/react-chain-blockchain",
|
|
4
|
-
"version": "1.15.
|
|
4
|
+
"version": "1.15.25",
|
|
5
5
|
"description": "XYO Layer One React SDK Blockchain",
|
|
6
6
|
"homepage": "https://xylabs.com",
|
|
7
7
|
"bugs": {
|
|
@@ -66,24 +66,24 @@
|
|
|
66
66
|
"@xyo-network/boundwitness-builder": "~5.1.15",
|
|
67
67
|
"@xyo-network/boundwitness-model": "~5.1.15",
|
|
68
68
|
"@xyo-network/bridge-http": "~5.1.15",
|
|
69
|
-
"@xyo-network/chain-analyze": "~1.15.
|
|
70
|
-
"@xyo-network/chain-protocol": "~1.15.
|
|
71
|
-
"@xyo-network/chain-services": "~1.15.
|
|
72
|
-
"@xyo-network/chain-utils": "~1.15.
|
|
73
|
-
"@xyo-network/chain-wrappers": "~1.15.
|
|
69
|
+
"@xyo-network/chain-analyze": "~1.15.25",
|
|
70
|
+
"@xyo-network/chain-protocol": "~1.15.25",
|
|
71
|
+
"@xyo-network/chain-services": "~1.15.25",
|
|
72
|
+
"@xyo-network/chain-utils": "~1.15.25",
|
|
73
|
+
"@xyo-network/chain-wrappers": "~1.15.25",
|
|
74
74
|
"@xyo-network/module-model": "~5.1.15",
|
|
75
75
|
"@xyo-network/payload-builder": "~5.1.15",
|
|
76
76
|
"@xyo-network/payload-model": "~5.1.15",
|
|
77
77
|
"@xyo-network/react-boundwitness-plugin": "~7.3.8",
|
|
78
|
-
"@xyo-network/react-chain-blockies": "~1.15.
|
|
79
|
-
"@xyo-network/react-chain-shared": "~1.15.
|
|
78
|
+
"@xyo-network/react-chain-blockies": "~1.15.25",
|
|
79
|
+
"@xyo-network/react-chain-shared": "~1.15.25",
|
|
80
80
|
"@xyo-network/react-event": "~7.3.8",
|
|
81
81
|
"@xyo-network/react-payload-raw-info": "~7.3.8",
|
|
82
82
|
"@xyo-network/react-payload-table": "~7.3.8",
|
|
83
83
|
"@xyo-network/react-shared": "~7.3.8",
|
|
84
84
|
"@xyo-network/react-table": "~7.3.8",
|
|
85
|
-
"@xyo-network/xl1-protocol": "~1.12.
|
|
86
|
-
"@xyo-network/xl1-protocol-sdk": "~1.15.
|
|
85
|
+
"@xyo-network/xl1-protocol": "~1.12.95",
|
|
86
|
+
"@xyo-network/xl1-protocol-sdk": "~1.15.25"
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": {
|
|
89
89
|
"@emotion/react": "~11.14.0",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"@xylabs/tsconfig-dom": "~7.1.8",
|
|
99
99
|
"@xylabs/tsconfig-react": "~7.1.8",
|
|
100
100
|
"@xyo-network/api-models": "~5.1.15",
|
|
101
|
-
"eslint": "^9.
|
|
101
|
+
"eslint": "^9.39.0",
|
|
102
102
|
"react": "~19.2.0",
|
|
103
103
|
"react-dom": "~19.2.0",
|
|
104
104
|
"react-router-dom": "^7.9.5",
|
|
@@ -36,24 +36,26 @@ const TemplateWithEvents: StoryFn<typeof BlockHeadingFlexbox> = (args) => {
|
|
|
36
36
|
<div ref={ref}>
|
|
37
37
|
<BlockHeadingFlexbox {...args} />
|
|
38
38
|
<Stack gap={2} flexDirection="column">
|
|
39
|
-
{eventData.length > 0
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
39
|
+
{eventData.length > 0
|
|
40
|
+
? eventData.map(event => (
|
|
41
|
+
<Alert key={event.data} sx={{ display: 'flex' }}>
|
|
42
|
+
<AlertTitle>Event Data</AlertTitle>
|
|
43
|
+
<List>
|
|
44
|
+
<ListItem>
|
|
45
|
+
Noun:
|
|
46
|
+
{event.noun}
|
|
47
|
+
</ListItem>
|
|
48
|
+
<ListItem>
|
|
49
|
+
Verb:
|
|
50
|
+
{event.verb}
|
|
51
|
+
</ListItem>
|
|
52
|
+
</List>
|
|
53
|
+
<pre>
|
|
54
|
+
<code>{event.data}</code>
|
|
55
|
+
</pre>
|
|
56
|
+
</Alert>
|
|
57
|
+
))
|
|
58
|
+
: null}
|
|
57
59
|
</Stack>
|
|
58
60
|
</div>
|
|
59
61
|
)
|
|
@@ -31,16 +31,20 @@ export const PollingControlsFlexbox: React.FC<PollingControlsFlexboxProps> = ({
|
|
|
31
31
|
return (
|
|
32
32
|
<FlexRow justifyContent="space-between" width="100%">
|
|
33
33
|
<FlexRow gap={2}>
|
|
34
|
-
{running
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
34
|
+
{running
|
|
35
|
+
? (
|
|
36
|
+
<IconButton onClick={() => setPollingState?.('paused')} title="Pause Block Stream">
|
|
37
|
+
<Pause />
|
|
38
|
+
</IconButton>
|
|
39
|
+
)
|
|
40
|
+
: null}
|
|
41
|
+
{paused
|
|
42
|
+
? (
|
|
43
|
+
<IconButton onClick={() => setPollingState?.('running')} title="Re-Sync Block Stream">
|
|
44
|
+
<Autorenew />
|
|
45
|
+
</IconButton>
|
|
46
|
+
)
|
|
47
|
+
: null}
|
|
44
48
|
<ChainAnalyzerStatsDialogFromContext />
|
|
45
49
|
</FlexRow>
|
|
46
50
|
<FlexRow gap={2}>
|
|
@@ -18,13 +18,17 @@ export const ChainAnalyzerStatsDialog: React.FC<ChainAnalyzerStatsDialogProps> =
|
|
|
18
18
|
<Dialog {...props}>
|
|
19
19
|
<DialogTitle>Chain Analysis</DialogTitle>
|
|
20
20
|
<DialogContent>
|
|
21
|
-
{statsUpdated > 0
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
{statsUpdated > 0
|
|
22
|
+
? Object.entries(analyzers).map(([id, analyzer]) => (
|
|
23
|
+
<div key={id}>
|
|
24
|
+
{id === 'producers'
|
|
25
|
+
? (
|
|
26
|
+
<BlockProducerStatsFlexbox payload={analyzer.result()} />
|
|
27
|
+
)
|
|
28
|
+
: null}
|
|
29
|
+
</div>
|
|
30
|
+
))
|
|
31
|
+
: null}
|
|
28
32
|
</DialogContent>
|
|
29
33
|
</Dialog>
|
|
30
34
|
)
|
|
@@ -24,7 +24,7 @@ export const PayloadBuilderFlexbox: React.FC<PayloadBuilderFlexboxProps> = ({
|
|
|
24
24
|
return (
|
|
25
25
|
<FlexCol gap={2} {...props}>
|
|
26
26
|
<BuilderComponent onBuild={onBuildLocal} />
|
|
27
|
-
{payload
|
|
27
|
+
{payload ? <JsonViewerEx value={payload} /> : null}
|
|
28
28
|
</FlexCol>
|
|
29
29
|
)
|
|
30
30
|
}
|
|
@@ -33,7 +33,7 @@ export const BlockNumberTextField: React.FC<BlockNumberTextFieldProps> = ({
|
|
|
33
33
|
value={blockNumber ?? ''}
|
|
34
34
|
{...props}
|
|
35
35
|
/>
|
|
36
|
-
{errored
|
|
36
|
+
{errored ? <FormHelperText sx={{ color: 'error.main' }}>{errorMessage}</FormHelperText> : null}
|
|
37
37
|
</FormControl>
|
|
38
38
|
)
|
|
39
39
|
}
|
|
@@ -50,7 +50,7 @@ export const XyoAddressTextField: React.FC<XyoAddressTextFieldProps> = ({
|
|
|
50
50
|
value={address}
|
|
51
51
|
{...props}
|
|
52
52
|
/>
|
|
53
|
-
{addressError
|
|
53
|
+
{addressError ? <FormHelperText sx={{ color: 'error.main' }}>{addressError.message}</FormHelperText> : null}
|
|
54
54
|
</FormControl>
|
|
55
55
|
)
|
|
56
56
|
}
|
|
@@ -36,7 +36,7 @@ export const ChainArchivistDelayedInsertDecorator: Decorator = (Story, context)
|
|
|
36
36
|
await chainArchivist.insert(flattened)
|
|
37
37
|
|
|
38
38
|
// confirm the first block was inserted and set state so the story can load
|
|
39
|
-
setFirstBlock(prev => prev
|
|
39
|
+
setFirstBlock(prev => prev ?? hydratedBlock[0])
|
|
40
40
|
|
|
41
41
|
// we know we are gonna get a new block, so simulate the delay
|
|
42
42
|
await delay(1000)
|