@xyo-network/react-chain-blockchain 1.20.4 → 1.20.5

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/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.20.4",
4
+ "version": "1.20.5",
5
5
  "description": "XYO Layer One React SDK Blockchain",
6
6
  "homepage": "https://xylabs.com",
7
7
  "bugs": {
@@ -55,15 +55,15 @@
55
55
  "@xylabs/react-quick-tip-button": "~7.1.17",
56
56
  "@xylabs/react-shared": "~7.1.17",
57
57
  "@xylabs/react-theme": "~7.1.17",
58
- "@xylabs/sdk-js": "~5.0.80",
58
+ "@xylabs/sdk-js": "~5.0.83",
59
59
  "@xyo-network/boundwitness-model": "~5.3.15",
60
- "@xyo-network/chain-analyze": "~1.20.4",
61
- "@xyo-network/chain-protocol": "~1.20.4",
62
- "@xyo-network/chain-wrappers": "~1.20.4",
60
+ "@xyo-network/chain-analyze": "~1.20.5",
61
+ "@xyo-network/chain-protocol": "~1.20.5",
62
+ "@xyo-network/chain-wrappers": "~1.20.5",
63
63
  "@xyo-network/react-boundwitness-plugin": "~7.5.5",
64
- "@xyo-network/react-chain-blockies": "~1.20.4",
65
- "@xyo-network/react-chain-provider": "~1.20.4",
66
- "@xyo-network/react-chain-shared": "~1.20.4",
64
+ "@xyo-network/react-chain-blockies": "~1.20.5",
65
+ "@xyo-network/react-chain-provider": "~1.20.5",
66
+ "@xyo-network/react-chain-shared": "~1.20.5",
67
67
  "@xyo-network/react-error": "~7.5.5",
68
68
  "@xyo-network/react-event": "~7.5.5",
69
69
  "@xyo-network/react-payload-raw-info": "~7.5.5",
@@ -71,7 +71,7 @@
71
71
  "@xyo-network/react-shared": "~7.5.5",
72
72
  "@xyo-network/react-table": "~7.5.5",
73
73
  "@xyo-network/sdk-js": "~5.3.15",
74
- "@xyo-network/xl1-sdk": "~1.25.20"
74
+ "@xyo-network/xl1-sdk": "~1.25.22"
75
75
  },
76
76
  "devDependencies": {
77
77
  "@emotion/react": "~11.14.0",
@@ -81,14 +81,15 @@
81
81
  "@textea/json-viewer": "~4.0.1",
82
82
  "@types/react": "~19.2.14",
83
83
  "@xylabs/react-button": "~7.1.17",
84
- "@xylabs/sdk-js": "~5.0.80",
85
- "@xylabs/ts-scripts-yarn3": "~7.4.10",
86
- "@xylabs/tsconfig": "~7.4.10",
87
- "@xylabs/tsconfig-dom": "~7.4.10",
88
- "@xylabs/tsconfig-react": "~7.4.10",
84
+ "@xylabs/sdk-js": "~5.0.83",
85
+ "@xylabs/ts-scripts-yarn3": "~7.4.13",
86
+ "@xylabs/tsconfig": "~7.4.13",
87
+ "@xylabs/tsconfig-dom": "~7.4.13",
88
+ "@xylabs/tsconfig-react": "~7.4.13",
89
89
  "@xyo-network/bridge-http": "~5.3.15",
90
+ "@xyo-network/react-chain-network": "~1.20.5",
90
91
  "@xyo-network/sdk-js": "~5.3.15",
91
- "@xyo-network/xl1-sdk": "~1.25.20",
92
+ "@xyo-network/xl1-sdk": "~1.25.22",
92
93
  "axios": "^1.13.6",
93
94
  "eslint": "^9.39.4",
94
95
  "ethers": "^6.16.0",
@@ -1,18 +1,18 @@
1
1
  import type { Meta, StoryFn } from '@storybook/react-vite'
2
2
  import type { Address } from '@xylabs/sdk-js'
3
- import { useHttpRpcViewer } from '@xyo-network/react-chain-provider'
4
- import { LocalNetwork } from '@xyo-network/xl1-sdk'
5
- import React from 'react'
3
+ import { SequenceNetworkGatewayDecorator } from '@xyo-network/react-chain-network'
4
+ import { useViewerFromGateway } from '@xyo-network/react-chain-provider'
6
5
 
7
6
  import { AccountBalanceHistoryFlexBox } from './BalanceHistoryFlexbox.tsx'
8
7
 
9
8
  export default {
10
9
  title: 'AccountBalanceHistory/FlexBox',
11
10
  component: AccountBalanceHistoryFlexBox,
11
+ decorators: [SequenceNetworkGatewayDecorator],
12
12
  } as Meta
13
13
 
14
14
  const Template: StoryFn<typeof AccountBalanceHistoryFlexBox> = (args) => {
15
- const viewer = useHttpRpcViewer(LocalNetwork.url)
15
+ const viewer = useViewerFromGateway()
16
16
  return <AccountBalanceHistoryFlexBox viewer={viewer} {...args} />
17
17
  }
18
18
 
@@ -1,17 +1,15 @@
1
1
  import {
2
- Alert, AlertTitle,
3
- LinearProgress, Snackbar,
4
- Stack,
2
+ Alert, AlertTitle, LinearProgress, Snackbar, Stack,
5
3
  } from '@mui/material'
6
4
  import type { Meta, StoryFn } from '@storybook/react-vite'
7
5
  import { ButtonEx } from '@xylabs/react-button'
8
6
  import { type Address, isDefined } from '@xylabs/sdk-js'
9
- import { useAccountBalanceHistory, useHttpRpcViewer } from '@xyo-network/react-chain-provider'
7
+ import { SequenceNetworkGatewayDecorator, useViewerInPage } from '@xyo-network/react-chain-network'
8
+ import { useAccountBalanceHistory, useViewerFromGateway } from '@xyo-network/react-chain-provider'
10
9
  import { ErrorRender } from '@xyo-network/react-error'
11
10
  import type { Event } from '@xyo-network/react-event'
12
11
  import { useEvent } from '@xyo-network/react-event'
13
12
  import type { XL1BlockRange } from '@xyo-network/xl1-sdk'
14
- import { LocalNetwork } from '@xyo-network/xl1-sdk'
15
13
  import { useState } from 'react'
16
14
 
17
15
  import { usePagedAccountBalanceHistory } from '../hooks/index.ts'
@@ -20,14 +18,15 @@ import { AccountBalanceHistoryTableEx } from './BalanceHistoryTableEx.tsx'
20
18
  export default {
21
19
  title: 'AccountBalanceHistory/TableEx',
22
20
  component: AccountBalanceHistoryTableEx,
21
+ decorators: [SequenceNetworkGatewayDecorator],
23
22
  } as Meta
24
23
 
25
24
  const TEST_ADDRESS = 'aa9401662e9cd3ce8bb8a6ab92a35ed83e85ac67' as Address
26
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
25
+
27
26
  const TEST_ADDRESS_1 = '2b1a21d8c90e658d8bf1e2aad31c8dc892c353c1' as Address
28
27
 
29
28
  const useFetchBalanceHistory = (address?: Address, maxPage = 10, blockRange?: XL1BlockRange) => {
30
- const viewer = useHttpRpcViewer(LocalNetwork.url)
29
+ const viewer = useViewerFromGateway()
31
30
  return useAccountBalanceHistory(address, viewer, maxPage, blockRange)
32
31
  }
33
32
 
@@ -72,10 +71,10 @@ const TemplateLinked: StoryFn<typeof AccountBalanceHistoryTableEx> = (args) => {
72
71
  }
73
72
 
74
73
  const TemplatePaged: StoryFn<typeof AccountBalanceHistoryTableEx> = (args) => {
75
- const viewer = useHttpRpcViewer(LocalNetwork.url)
74
+ const viewer = useViewerInPage()
76
75
  const {
77
76
  pagedHistory, historyComplete, updateRange, error, loading,
78
- } = usePagedAccountBalanceHistory(TEST_ADDRESS, viewer, 1)
77
+ } = usePagedAccountBalanceHistory(TEST_ADDRESS_1, viewer, 1)
79
78
 
80
79
  return (
81
80
  <Stack gap={2}>
@@ -1,6 +1,4 @@
1
- import {
2
- ListItem, styled, Typography,
3
- } from '@mui/material'
1
+ import { Typography } from '@mui/material'
4
2
  import { ErrorRender } from '@xylabs/react-error'
5
3
  import { FlexCol } from '@xylabs/react-flexbox'
6
4
  import { isChainSummaryProducers } from '@xyo-network/chain-analyze'
@@ -32,8 +30,3 @@ export const BlockProducerStatsFlexbox: React.FC<BlockProducerStatsFlexboxProps>
32
30
  </FlexCol>
33
31
  )
34
32
  }
35
-
36
- export const StyledListItem = styled(ListItem)(() => ({
37
- paddingTop: 0,
38
- paddingBottom: 0,
39
- }))