@xyo-network/react-chain-blockchain 1.15.27 → 1.16.0
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 +3 -3
- package/dist/browser/components/block/BlockHeadingFlexbox.stories.d.ts.map +1 -1
- package/dist/browser/components/block/table/Ex.stories.d.ts +3 -3
- package/dist/browser/components/block/table/Ex.stories.d.ts.map +1 -1
- package/dist/browser/components/block/table/row/TableRow.stories.d.ts +2 -2
- package/dist/browser/components/block/table/row/TableRow.stories.d.ts.map +1 -1
- package/dist/browser/components/chain/render/static/flexbox/Flexbox.stories.d.ts +3 -3
- package/dist/browser/components/chain/render/static/flexbox/Flexbox.stories.d.ts.map +1 -1
- package/dist/browser/components/chain/render/static/table/Ex.stories.d.ts +3 -3
- package/dist/browser/components/chain/render/static/table/Ex.stories.d.ts.map +1 -1
- package/dist/browser/components/payload/builder/producer-intent/Flexbox.stories.d.ts +1 -1
- package/dist/browser/components/payload/builder/producer-intent/Flexbox.stories.d.ts.map +1 -1
- package/dist/browser/components/payload/builder/transfer/Flexbox.stories.d.ts +1 -1
- package/dist/browser/components/payload/builder/transfer/Flexbox.stories.d.ts.map +1 -1
- package/dist/browser/components/transactions/submit/SubmitChain.stories.d.ts +1 -1
- package/dist/browser/components/transactions/submit/SubmitChain.stories.d.ts.map +1 -1
- package/dist/browser/context/chain/Context.d.ts +3 -3
- package/dist/browser/context/chain/State.d.ts +2 -1
- package/dist/browser/context/chain/State.d.ts.map +1 -1
- package/dist/browser/context/chain/use.d.ts +1 -1
- package/dist/browser/hooks/chain-iterator/ChainIteratorStore.d.ts +2 -1
- package/dist/browser/hooks/chain-iterator/ChainIteratorStore.d.ts.map +1 -1
- package/dist/browser/hooks/chain-iterator/useChainIteratorParams.d.ts +6 -0
- package/dist/browser/hooks/chain-iterator/useChainIteratorParams.d.ts.map +1 -1
- package/dist/browser/hooks/chain-iterator/useChainIteratorUpdatingHead.d.ts +1 -1
- package/dist/browser/hooks/chain-iterator/useChainIteratorUpdatingHead.d.ts.map +1 -1
- package/dist/browser/index.mjs.map +1 -1
- package/package.json +45 -45
- package/src/context/chain/State.ts +2 -1
- package/src/hooks/chain-iterator/ChainIteratorStore.ts +2 -4
- package/src/hooks/chain-iterator/useChainIteratorUpdatingHead.ts +1 -2
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.
|
|
4
|
+
"version": "1.16.0",
|
|
5
5
|
"description": "XYO Layer One React SDK Blockchain",
|
|
6
6
|
"homepage": "https://xylabs.com",
|
|
7
7
|
"bugs": {
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
"package-cycle": "echo Nothing to do"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@storybook/react-vite": "~
|
|
48
|
-
"@xylabs/assert": "~5.0.
|
|
49
|
-
"@xylabs/axios": "~5.0.
|
|
50
|
-
"@xylabs/delay": "~5.0.
|
|
51
|
-
"@xylabs/eth-address": "~5.0.
|
|
52
|
-
"@xylabs/exists": "~5.0.
|
|
53
|
-
"@xylabs/hex": "~5.0.
|
|
54
|
-
"@xylabs/promise": "~5.0.
|
|
47
|
+
"@storybook/react-vite": "~10.0.6",
|
|
48
|
+
"@xylabs/assert": "~5.0.19",
|
|
49
|
+
"@xylabs/axios": "~5.0.19",
|
|
50
|
+
"@xylabs/delay": "~5.0.19",
|
|
51
|
+
"@xylabs/eth-address": "~5.0.19",
|
|
52
|
+
"@xylabs/exists": "~5.0.19",
|
|
53
|
+
"@xylabs/hex": "~5.0.19",
|
|
54
|
+
"@xylabs/promise": "~5.0.19",
|
|
55
55
|
"@xylabs/react-animation": "~7.1.8",
|
|
56
56
|
"@xylabs/react-error": "~7.1.8",
|
|
57
57
|
"@xylabs/react-flexbox": "~7.1.8",
|
|
@@ -59,50 +59,50 @@
|
|
|
59
59
|
"@xylabs/react-quick-tip-button": "~7.1.8",
|
|
60
60
|
"@xylabs/react-shared": "~7.1.8",
|
|
61
61
|
"@xylabs/react-theme": "~7.1.8",
|
|
62
|
-
"@xylabs/typeof": "~5.0.
|
|
63
|
-
"@xyo-network/account": "~5.1.
|
|
64
|
-
"@xyo-network/archivist-memory": "~5.1.
|
|
65
|
-
"@xyo-network/archivist-model": "~5.1.
|
|
66
|
-
"@xyo-network/boundwitness-builder": "~5.1.
|
|
67
|
-
"@xyo-network/boundwitness-model": "~5.1.
|
|
68
|
-
"@xyo-network/bridge-http": "~5.1.
|
|
69
|
-
"@xyo-network/chain-analyze": "~1.
|
|
70
|
-
"@xyo-network/chain-protocol": "~1.
|
|
71
|
-
"@xyo-network/chain-services": "~1.
|
|
72
|
-
"@xyo-network/chain-utils": "~1.
|
|
73
|
-
"@xyo-network/chain-wrappers": "~1.
|
|
74
|
-
"@xyo-network/module-model": "~5.1.
|
|
75
|
-
"@xyo-network/payload-builder": "~5.1.
|
|
76
|
-
"@xyo-network/payload-model": "~5.1.
|
|
77
|
-
"@xyo-network/react-boundwitness-plugin": "~7.3.
|
|
78
|
-
"@xyo-network/react-chain-blockies": "~1.
|
|
79
|
-
"@xyo-network/react-chain-shared": "~1.
|
|
80
|
-
"@xyo-network/react-event": "~7.3.
|
|
81
|
-
"@xyo-network/react-payload-raw-info": "~7.3.
|
|
82
|
-
"@xyo-network/react-payload-table": "~7.3.
|
|
83
|
-
"@xyo-network/react-shared": "~7.3.
|
|
84
|
-
"@xyo-network/react-table": "~7.3.
|
|
85
|
-
"@xyo-network/xl1-protocol": "~1.
|
|
86
|
-
"@xyo-network/xl1-protocol-sdk": "~1.
|
|
62
|
+
"@xylabs/typeof": "~5.0.19",
|
|
63
|
+
"@xyo-network/account": "~5.1.18",
|
|
64
|
+
"@xyo-network/archivist-memory": "~5.1.18",
|
|
65
|
+
"@xyo-network/archivist-model": "~5.1.18",
|
|
66
|
+
"@xyo-network/boundwitness-builder": "~5.1.18",
|
|
67
|
+
"@xyo-network/boundwitness-model": "~5.1.18",
|
|
68
|
+
"@xyo-network/bridge-http": "~5.1.18",
|
|
69
|
+
"@xyo-network/chain-analyze": "~1.16.0",
|
|
70
|
+
"@xyo-network/chain-protocol": "~1.16.0",
|
|
71
|
+
"@xyo-network/chain-services": "~1.16.0",
|
|
72
|
+
"@xyo-network/chain-utils": "~1.16.0",
|
|
73
|
+
"@xyo-network/chain-wrappers": "~1.16.0",
|
|
74
|
+
"@xyo-network/module-model": "~5.1.18",
|
|
75
|
+
"@xyo-network/payload-builder": "~5.1.18",
|
|
76
|
+
"@xyo-network/payload-model": "~5.1.18",
|
|
77
|
+
"@xyo-network/react-boundwitness-plugin": "~7.3.10",
|
|
78
|
+
"@xyo-network/react-chain-blockies": "~1.16.0",
|
|
79
|
+
"@xyo-network/react-chain-shared": "~1.16.0",
|
|
80
|
+
"@xyo-network/react-event": "~7.3.10",
|
|
81
|
+
"@xyo-network/react-payload-raw-info": "~7.3.10",
|
|
82
|
+
"@xyo-network/react-payload-table": "~7.3.10",
|
|
83
|
+
"@xyo-network/react-shared": "~7.3.10",
|
|
84
|
+
"@xyo-network/react-table": "~7.3.10",
|
|
85
|
+
"@xyo-network/xl1-protocol": "~1.13.0",
|
|
86
|
+
"@xyo-network/xl1-protocol-sdk": "~1.16.0"
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": {
|
|
89
89
|
"@emotion/react": "~11.14.0",
|
|
90
90
|
"@emotion/styled": "~11.14.1",
|
|
91
|
-
"@mui/icons-material": "~7.3.
|
|
92
|
-
"@mui/material": "~7.3.
|
|
91
|
+
"@mui/icons-material": "~7.3.5",
|
|
92
|
+
"@mui/material": "~7.3.5",
|
|
93
93
|
"@types/react": "~19.2.2",
|
|
94
|
-
"@xylabs/creatable": "~5.0.
|
|
95
|
-
"@xylabs/hex": "~5.0.
|
|
96
|
-
"@xylabs/ts-scripts-yarn3": "~7.
|
|
97
|
-
"@xylabs/tsconfig": "~7.
|
|
98
|
-
"@xylabs/tsconfig-dom": "~7.
|
|
99
|
-
"@xylabs/tsconfig-react": "~7.
|
|
100
|
-
"@xyo-network/api-models": "~5.1.
|
|
101
|
-
"eslint": "^9.39.
|
|
94
|
+
"@xylabs/creatable": "~5.0.19",
|
|
95
|
+
"@xylabs/hex": "~5.0.19",
|
|
96
|
+
"@xylabs/ts-scripts-yarn3": "~7.2.4",
|
|
97
|
+
"@xylabs/tsconfig": "~7.2.4",
|
|
98
|
+
"@xylabs/tsconfig-dom": "~7.2.4",
|
|
99
|
+
"@xylabs/tsconfig-react": "~7.2.4",
|
|
100
|
+
"@xyo-network/api-models": "~5.1.18",
|
|
101
|
+
"eslint": "^9.39.1",
|
|
102
102
|
"react": "~19.2.0",
|
|
103
103
|
"react-dom": "~19.2.0",
|
|
104
104
|
"react-router-dom": "^7.9.5",
|
|
105
|
-
"storybook": "~
|
|
105
|
+
"storybook": "~10.0.6",
|
|
106
106
|
"typescript": "~5.9.3"
|
|
107
107
|
},
|
|
108
108
|
"peerDependencies": {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ContextExState } from '@xylabs/react-shared'
|
|
2
2
|
import type { ArchivistInstance } from '@xyo-network/archivist-model'
|
|
3
|
-
import type {
|
|
3
|
+
import type { ChainId } from '@xyo-network/xl1-protocol'
|
|
4
|
+
import type { ChainBlockNumberIteratorService } from '@xyo-network/xl1-protocol-sdk'
|
|
4
5
|
|
|
5
6
|
export type ChainInfoState = ContextExState<{
|
|
6
7
|
chainArchivist?: ArchivistInstance
|
|
@@ -2,10 +2,8 @@ import { assertEx } from '@xylabs/assert'
|
|
|
2
2
|
import type { XyoChainIteratorParams } from '@xyo-network/chain-services'
|
|
3
3
|
import { ChainBlockNumberIterationService } from '@xyo-network/chain-services'
|
|
4
4
|
import { PayloadBuilder } from '@xyo-network/payload-builder'
|
|
5
|
-
import type {
|
|
6
|
-
|
|
7
|
-
HydratedBlock,
|
|
8
|
-
} from '@xyo-network/xl1-protocol'
|
|
5
|
+
import type { HydratedBlock } from '@xyo-network/xl1-protocol'
|
|
6
|
+
import type { EventingChainBlockNumberIteratorService, HeadEventArgs } from '@xyo-network/xl1-protocol-sdk'
|
|
9
7
|
import { hydrateBlock } from '@xyo-network/xl1-protocol-sdk'
|
|
10
8
|
|
|
11
9
|
export type Listener = (...args: Array<unknown>) => void
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { toHex } from '@xylabs/hex'
|
|
2
2
|
import type { ArchivistInstance } from '@xyo-network/archivist-model'
|
|
3
3
|
import { findMostRecentBlock } from '@xyo-network/chain-protocol'
|
|
4
|
-
import type { ChainBlockNumberIteratorService } from '@xyo-network/xl1-protocol'
|
|
4
|
+
import type { ChainBlockNumberIteratorService } from '@xyo-network/xl1-protocol-sdk'
|
|
5
5
|
import { useEffect, useState } from 'react'
|
|
6
6
|
|
|
7
7
|
export interface ChainIteratorUpdatingHeadParams {
|
|
@@ -42,7 +42,6 @@ export const useChainIteratorUpdatingHead = ({
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
// Schedule the next polling function
|
|
45
|
-
// eslint-disable-next-line @eslint-react/web-api/no-leaked-timeout
|
|
46
45
|
pollArchivistTimeout = setTimeout(() => void pollingFunction(), interval)
|
|
47
46
|
}
|
|
48
47
|
|