@xyo-network/react-chain-blockchain 1.19.6 → 1.19.8

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.19.6",
4
+ "version": "1.19.8",
5
5
  "description": "XYO Layer One React SDK Blockchain",
6
6
  "homepage": "https://xylabs.com",
7
7
  "bugs": {
@@ -47,60 +47,60 @@
47
47
  "package-cycle": "echo Nothing to do"
48
48
  },
49
49
  "dependencies": {
50
- "@storybook/react-vite": "~10.2.3",
51
- "@xylabs/axios": "~5.0.65",
52
- "@xylabs/react-animation": "~7.1.13",
53
- "@xylabs/react-error": "~7.1.13",
54
- "@xylabs/react-flexbox": "~7.1.13",
55
- "@xylabs/react-promise": "~7.1.13",
56
- "@xylabs/react-quick-tip-button": "~7.1.13",
57
- "@xylabs/react-shared": "~7.1.13",
58
- "@xylabs/react-theme": "~7.1.13",
59
- "@xylabs/sdk-js": "~5.0.65",
50
+ "@storybook/react-vite": "~10.2.8",
51
+ "@xylabs/axios": "~5.0.78",
52
+ "@xylabs/react-animation": "~7.1.15",
53
+ "@xylabs/react-error": "~7.1.15",
54
+ "@xylabs/react-flexbox": "~7.1.15",
55
+ "@xylabs/react-promise": "~7.1.15",
56
+ "@xylabs/react-quick-tip-button": "~7.1.15",
57
+ "@xylabs/react-shared": "~7.1.15",
58
+ "@xylabs/react-theme": "~7.1.15",
59
+ "@xylabs/sdk-js": "~5.0.78",
60
60
  "@xyo-network/account": "~5.3.2",
61
61
  "@xyo-network/archivist-memory": "~5.3.2",
62
62
  "@xyo-network/archivist-model": "~5.3.2",
63
63
  "@xyo-network/boundwitness-builder": "~5.3.2",
64
64
  "@xyo-network/boundwitness-model": "~5.3.2",
65
- "@xyo-network/chain-analyze": "~1.19.6",
66
- "@xyo-network/chain-protocol": "~1.19.6",
67
- "@xyo-network/chain-wrappers": "~1.19.6",
65
+ "@xyo-network/chain-analyze": "~1.19.8",
66
+ "@xyo-network/chain-protocol": "~1.19.8",
67
+ "@xyo-network/chain-wrappers": "~1.19.8",
68
68
  "@xyo-network/module-model": "~5.3.2",
69
69
  "@xyo-network/payload-builder": "~5.3.2",
70
70
  "@xyo-network/payload-model": "~5.3.2",
71
71
  "@xyo-network/react-boundwitness-plugin": "~7.5.0",
72
- "@xyo-network/react-chain-blockies": "~1.19.6",
73
- "@xyo-network/react-chain-provider": "~1.19.6",
74
- "@xyo-network/react-chain-shared": "~1.19.6",
72
+ "@xyo-network/react-chain-blockies": "~1.19.8",
73
+ "@xyo-network/react-chain-provider": "~1.19.8",
74
+ "@xyo-network/react-chain-shared": "~1.19.8",
75
75
  "@xyo-network/react-error": "~7.5.0",
76
76
  "@xyo-network/react-event": "~7.5.0",
77
77
  "@xyo-network/react-payload-raw-info": "~7.5.0",
78
78
  "@xyo-network/react-payload-table": "~7.5.0",
79
79
  "@xyo-network/react-shared": "~7.5.0",
80
80
  "@xyo-network/react-table": "~7.5.0",
81
- "@xyo-network/xl1-sdk": "~1.21.10"
81
+ "@xyo-network/xl1-sdk": "~1.23.6"
82
82
  },
83
83
  "devDependencies": {
84
84
  "@emotion/react": "~11.14.0",
85
85
  "@emotion/styled": "~11.14.1",
86
86
  "@mui/icons-material": "~7.3.7",
87
87
  "@mui/material": "~7.3.7",
88
- "@types/react": "~19.2.10",
89
- "@xylabs/react-button": "~7.1.13",
90
- "@xylabs/sdk-js": "~5.0.65",
88
+ "@types/react": "~19.2.13",
89
+ "@xylabs/react-button": "~7.1.15",
90
+ "@xylabs/sdk-js": "~5.0.78",
91
91
  "@xylabs/ts-scripts-yarn3": "~7.3.2",
92
92
  "@xylabs/tsconfig": "~7.3.2",
93
93
  "@xylabs/tsconfig-dom": "~7.3.2",
94
94
  "@xylabs/tsconfig-react": "~7.3.2",
95
95
  "@xyo-network/api-models": "~5.3.2",
96
96
  "@xyo-network/bridge-http": "~5.3.2",
97
- "@xyo-network/xl1-sdk": "~1.21.10",
98
- "axios": "^1.13.4",
97
+ "@xyo-network/xl1-sdk": "~1.23.6",
98
+ "axios": "^1.13.5",
99
99
  "eslint": "^9.39.2",
100
100
  "react": "~19.2.4",
101
101
  "react-dom": "~19.2.4",
102
102
  "react-router-dom": "^7.13.0",
103
- "storybook": "~10.2.3",
103
+ "storybook": "~10.2.8",
104
104
  "typescript": "~5.9.3"
105
105
  },
106
106
  "peerDependencies": {
@@ -14,7 +14,7 @@ export const buildBlockChainRenderComponent = async (
14
14
  blockComponentProps: BlockComponentProps,
15
15
  ) => {
16
16
  const { block, ...remainingProps } = blockComponentProps
17
- const blockTxs = await txsFromBlock(context, block)
17
+ const blockTxs = await txsFromBlock(block)
18
18
  const txHashes = blockTxs.map(([_, hash]) => hash)
19
19
 
20
20
  const item: BlockChainRenderComponent = {
@@ -2,10 +2,10 @@ import type { Hash } from '@xylabs/sdk-js'
2
2
  import { HydratedBlockWrapper } from '@xyo-network/chain-wrappers'
3
3
  import { PayloadBuilder } from '@xyo-network/payload-builder'
4
4
  import type { Payload } from '@xyo-network/payload-model'
5
- import type { BaseContext, HydratedBlockWithHashMeta } from '@xyo-network/xl1-sdk'
5
+ import type { HydratedBlockWithHashMeta } from '@xyo-network/xl1-sdk'
6
6
 
7
- export const txsFromBlock = async (context: BaseContext, block: HydratedBlockWithHashMeta): Promise<[Payload, Hash][]> => {
8
- const wrapper = await HydratedBlockWrapper.parse(context, block)
7
+ export const txsFromBlock = async (block: HydratedBlockWithHashMeta): Promise<[Payload, Hash][]> => {
8
+ const wrapper = await HydratedBlockWrapper.parse(block)
9
9
  const txs = wrapper.transactions
10
10
  const txPayloads = txs.map(tx => tx.boundWitness)
11
11
  return await PayloadBuilder.hashPairs(txPayloads)
@@ -2,13 +2,11 @@ import { usePromise } from '@xylabs/react-promise'
2
2
  import type { HydratedBlockWithHashMeta } from '@xyo-network/xl1-sdk'
3
3
 
4
4
  import { txsFromBlock } from '../helpers/index.ts'
5
- import { useBaseContext } from './useBaseContext.ts'
6
5
 
7
6
  export const useTxsFromBlock = (block?: HydratedBlockWithHashMeta) => {
8
- const context = useBaseContext()
9
7
  return usePromise(async () => {
10
8
  if (block) {
11
- return await txsFromBlock(context, block)
9
+ return await txsFromBlock(block)
12
10
  }
13
11
  }, [block])
14
12
  }