@xyo-network/react-chain-blockchain 1.0.1 → 1.0.2
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 +13 -13
- package/dist/browser/index.mjs.map +1 -1
- package/dist/types/components/block/BlockHeadingFlexbox.d.ts +1 -1
- package/dist/types/components/block/BlockHeadingFlexbox.d.ts.map +1 -1
- package/dist/types/components/block/ProducerChip.d.ts +2 -2
- package/dist/types/components/block/ProducerChip.d.ts.map +1 -1
- package/dist/types/components/block/helpers/blockProducer.d.ts +1 -1
- package/dist/types/components/block/helpers/blockProducer.d.ts.map +1 -1
- package/dist/types/components/block/helpers/buildBlockChainRenderComponent.d.ts +3 -3
- package/dist/types/components/block/helpers/buildBlockChainRenderComponent.d.ts.map +1 -1
- package/dist/types/components/block/helpers/tsxFromBlock.d.ts +2 -2
- package/dist/types/components/block/helpers/tsxFromBlock.d.ts.map +1 -1
- package/dist/types/components/block/hooks/useBlockProducer.d.ts +1 -1
- package/dist/types/components/block/hooks/useBlockProducer.d.ts.map +1 -1
- package/dist/types/components/block/hooks/useDynamicBlockComponents.d.ts +3 -3
- package/dist/types/components/block/hooks/useDynamicBlockComponents.d.ts.map +1 -1
- package/dist/types/components/block/hooks/useStaticBlockComponents.d.ts +3 -3
- package/dist/types/components/block/hooks/useStaticBlockComponents.d.ts.map +1 -1
- package/dist/types/components/block/hooks/useTxsFromBlock.d.ts +2 -2
- package/dist/types/components/block/hooks/useTxsFromBlock.d.ts.map +1 -1
- package/dist/types/components/block/menu/Expanded.d.ts +1 -1
- package/dist/types/components/block/menu/Expanded.d.ts.map +1 -1
- package/dist/types/components/block/table/Ex.d.ts +1 -1
- package/dist/types/components/block/table/Ex.d.ts.map +1 -1
- package/dist/types/components/block/table/cell/BlockNumber.d.ts +1 -1
- package/dist/types/components/block/table/cell/BlockNumber.d.ts.map +1 -1
- package/dist/types/components/block/table/cell/Hash.d.ts +2 -2
- package/dist/types/components/block/table/cell/Hash.d.ts.map +1 -1
- package/dist/types/components/block/table/cell/JsonView.d.ts +1 -1
- package/dist/types/components/block/table/cell/JsonView.d.ts.map +1 -1
- package/dist/types/components/block/table/cell/Producer.d.ts +2 -2
- package/dist/types/components/block/table/cell/Producer.d.ts.map +1 -1
- package/dist/types/components/block/table/cell/TransactionCount.d.ts +2 -2
- package/dist/types/components/block/table/cell/TransactionCount.d.ts.map +1 -1
- package/dist/types/components/block/table/cell/Verification.d.ts +1 -1
- package/dist/types/components/block/table/cell/Verification.d.ts.map +1 -1
- package/dist/types/components/block/table/cell/hooks/useLinkedBlockItem.d.ts +2 -2
- package/dist/types/components/block/table/cell/hooks/useLinkedBlockItem.d.ts.map +1 -1
- package/dist/types/components/block/table/cell/lib/BlockTableCellProps.d.ts +2 -2
- package/dist/types/components/block/table/cell/lib/BlockTableCellProps.d.ts.map +1 -1
- package/dist/types/components/block/table/row/TableRow.d.ts +1 -1
- package/dist/types/components/block/table/row/TableRow.d.ts.map +1 -1
- package/dist/types/components/chain/controls/PollingControlsFlexbox.d.ts +2 -2
- package/dist/types/components/chain/controls/PollingControlsFlexbox.d.ts.map +1 -1
- package/dist/types/components/chain/dialog/Dialog.d.ts +1 -1
- package/dist/types/components/chain/dialog/Dialog.d.ts.map +1 -1
- package/dist/types/components/chain/hooks/useOnBlock.d.ts +1 -1
- package/dist/types/components/chain/hooks/useOnBlock.d.ts.map +1 -1
- package/dist/types/components/chain/list/Animated.d.ts +1 -1
- package/dist/types/components/chain/list/Animated.d.ts.map +1 -1
- package/dist/types/components/chain/list/TableEx.d.ts +1 -1
- package/dist/types/components/chain/list/TableEx.d.ts.map +1 -1
- package/dist/types/components/chain/pagination/BlockChainPagination.d.ts +1 -1
- package/dist/types/components/chain/pagination/BlockChainPagination.d.ts.map +1 -1
- package/dist/types/components/chain/pagination/hooks/usePagination.d.ts +2 -2
- package/dist/types/components/chain/pagination/hooks/usePagination.d.ts.map +1 -1
- package/dist/types/components/chain/render/dynamic/flexbox/Flexbox.d.ts +1 -1
- package/dist/types/components/chain/render/dynamic/flexbox/Flexbox.d.ts.map +1 -1
- package/dist/types/components/chain/render/dynamic/hooks/useDynamicBlockRenderComponents.d.ts +2 -2
- package/dist/types/components/chain/render/dynamic/hooks/useDynamicBlockRenderComponents.d.ts.map +1 -1
- package/dist/types/components/chain/render/dynamic/hooks/useRemoteBlockChainRenderProps.d.ts +2 -2
- package/dist/types/components/chain/render/dynamic/hooks/useRemoteBlockChainRenderProps.d.ts.map +1 -1
- package/dist/types/components/chain/render/static/flexbox/Flexbox.d.ts +1 -1
- package/dist/types/components/chain/render/static/flexbox/Flexbox.d.ts.map +1 -1
- package/dist/types/components/chain/render/static/hooks/useStaticBlockRenderComponents.d.ts +2 -2
- package/dist/types/components/chain/render/static/hooks/useStaticBlockRenderComponents.d.ts.map +1 -1
- package/dist/types/components/chain/render/static/table/Ex.d.ts +1 -1
- package/dist/types/components/chain/render/static/table/Ex.d.ts.map +1 -1
- package/dist/types/components/chain/stats/Dialog.d.ts +1 -1
- package/dist/types/components/chain/stats/Dialog.d.ts.map +1 -1
- package/dist/types/components/chain/stats/producer/ProducerFlexbox.d.ts +1 -1
- package/dist/types/components/chain/stats/producer/ProducerFlexbox.d.ts.map +1 -1
- package/dist/types/components/chain/stats/producer/Table.d.ts +2 -2
- package/dist/types/components/chain/stats/producer/Table.d.ts.map +1 -1
- package/dist/types/components/payload/builder/BuilderComponentProps.d.ts +1 -1
- package/dist/types/components/payload/builder/BuilderComponentProps.d.ts.map +1 -1
- package/dist/types/components/payload/builder/Flexbox.d.ts +3 -3
- package/dist/types/components/payload/builder/Flexbox.d.ts.map +1 -1
- package/dist/types/components/payload/builder/producer-intent/Flexbox.d.ts +1 -1
- package/dist/types/components/payload/builder/producer-intent/Flexbox.d.ts.map +1 -1
- package/dist/types/components/payload/builder/producer-intent/Form.d.ts +1 -1
- package/dist/types/components/payload/builder/producer-intent/Form.d.ts.map +1 -1
- package/dist/types/components/payload/builder/transfer/Flexbox.d.ts +1 -1
- package/dist/types/components/payload/builder/transfer/Flexbox.d.ts.map +1 -1
- package/dist/types/components/payload/builder/transfer/Form.d.ts +1 -1
- package/dist/types/components/payload/builder/transfer/Form.d.ts.map +1 -1
- package/dist/types/components/payload/builder/transfer/Transfer.d.ts +1 -1
- package/dist/types/components/payload/builder/transfer/Transfer.d.ts.map +1 -1
- package/dist/types/components/payload/builder/transfer/builder/SingleFlexbox.d.ts +2 -2
- package/dist/types/components/payload/builder/transfer/builder/SingleFlexbox.d.ts.map +1 -1
- package/dist/types/components/payload/fields/BlockNumberTextField.d.ts +1 -1
- package/dist/types/components/payload/fields/BlockNumberTextField.d.ts.map +1 -1
- package/dist/types/components/payload/fields/XyoAddressTextField.d.ts +2 -2
- package/dist/types/components/payload/fields/XyoAddressTextField.d.ts.map +1 -1
- package/dist/types/components/transactions/TransactionCountChip.d.ts +2 -2
- package/dist/types/components/transactions/TransactionCountChip.d.ts.map +1 -1
- package/dist/types/components/transactions/TransactionsQuickTipButton.d.ts +3 -3
- package/dist/types/components/transactions/TransactionsQuickTipButton.d.ts.map +1 -1
- package/dist/types/components/transactions/submit/Builder.d.ts +1 -1
- package/dist/types/components/transactions/submit/Builder.d.ts.map +1 -1
- package/dist/types/components/transactions/submit/Network.d.ts +1 -1
- package/dist/types/components/transactions/submit/Network.d.ts.map +1 -1
- package/dist/types/context/analyzer/Provider.d.ts +2 -2
- package/dist/types/context/analyzer/Provider.d.ts.map +1 -1
- package/dist/types/context/analyzer/context.d.ts +1 -1
- package/dist/types/context/analyzer/context.d.ts.map +1 -1
- package/dist/types/context/analyzer/state.d.ts +3 -3
- package/dist/types/context/analyzer/state.d.ts.map +1 -1
- package/dist/types/context/analyzer/use.d.ts +1 -1
- package/dist/types/context/analyzer/use.d.ts.map +1 -1
- package/dist/types/context/chain/Context.d.ts +1 -1
- package/dist/types/context/chain/Context.d.ts.map +1 -1
- package/dist/types/context/chain/Provider.d.ts +3 -2
- package/dist/types/context/chain/Provider.d.ts.map +1 -1
- package/dist/types/context/chain/State.d.ts +3 -3
- package/dist/types/context/chain/State.d.ts.map +1 -1
- package/dist/types/context/chain/use.d.ts +1 -1
- package/dist/types/context/chain/use.d.ts.map +1 -1
- package/dist/types/context/polling/Provider.d.ts +2 -2
- package/dist/types/context/polling/Provider.d.ts.map +1 -1
- package/dist/types/context/polling/context.d.ts +1 -1
- package/dist/types/context/polling/context.d.ts.map +1 -1
- package/dist/types/context/polling/state.d.ts +1 -1
- package/dist/types/context/polling/state.d.ts.map +1 -1
- package/dist/types/hooks/chain-iterator/ChainIteratorStore.d.ts +1 -1
- package/dist/types/hooks/chain-iterator/ChainIteratorStore.d.ts.map +1 -1
- package/dist/types/hooks/chain-iterator/useChainIteratorParams.d.ts +4 -4
- package/dist/types/hooks/chain-iterator/useChainIteratorParams.d.ts.map +1 -1
- package/dist/types/hooks/chain-iterator/useChainIteratorStore.d.ts +2 -2
- package/dist/types/hooks/chain-iterator/useChainIteratorStore.d.ts.map +1 -1
- package/dist/types/hooks/chain-iterator/useChainIteratorUpdatingHead.d.ts +2 -2
- package/dist/types/hooks/chain-iterator/useChainIteratorUpdatingHead.d.ts.map +1 -1
- package/dist/types/hooks/useIterateChain.d.ts +1 -1
- package/dist/types/hooks/useIterateChain.d.ts.map +1 -1
- package/dist/types/lib/getChainArchivist.d.ts +2 -2
- package/dist/types/lib/getChainArchivist.d.ts.map +1 -1
- package/dist/types/lib/getChainInformation.d.ts +2 -2
- package/dist/types/lib/getChainInformation.d.ts.map +1 -1
- package/dist/types/stories/ChainArchivistDecorator.d.ts +1 -1
- package/dist/types/stories/ChainArchivistDecorator.d.ts.map +1 -1
- package/dist/types/stories/ChainArchivistDelayedInsertDecorator.d.ts +1 -1
- package/dist/types/stories/ChainArchivistDelayedInsertDecorator.d.ts.map +1 -1
- package/dist/types/stories/ChainInfoContextDecorator.d.ts +1 -1
- package/dist/types/stories/ChainInfoContextDecorator.d.ts.map +1 -1
- package/dist/types/types/BlockComponentProps.d.ts +2 -2
- package/dist/types/types/BlockComponentProps.d.ts.map +1 -1
- package/dist/types/types/BlockComponents.d.ts +2 -2
- package/dist/types/types/BlockComponents.d.ts.map +1 -1
- package/dist/types/types/BlockListComponentProps.d.ts +1 -1
- package/dist/types/types/BlockListComponentProps.d.ts.map +1 -1
- package/dist/types/types/render/BlockChainRenderProps.d.ts +3 -3
- package/dist/types/types/render/BlockChainRenderProps.d.ts.map +1 -1
- package/dist/types/types/render/flexbox/BlockChainRenderFlexboxProps.d.ts +3 -3
- package/dist/types/types/render/flexbox/BlockChainRenderFlexboxProps.d.ts.map +1 -1
- package/dist/types/types/render/flexbox/RenderFlexboxProps.d.ts +2 -2
- package/dist/types/types/render/flexbox/RenderFlexboxProps.d.ts.map +1 -1
- package/dist/types/types/render/table/BlockChainRenderTableExProps.d.ts +3 -3
- package/dist/types/types/render/table/BlockChainRenderTableExProps.d.ts.map +1 -1
- package/dist/types/types/render/table/RenderTableProps.d.ts +2 -2
- package/dist/types/types/render/table/RenderTableProps.d.ts.map +1 -1
- package/eslint.config.mjs +1 -0
- package/package.json +14 -14
- package/src/components/block/BlockHeadingFlexbox.stories.tsx +4 -3
- package/src/components/block/BlockHeadingFlexbox.tsx +3 -3
- package/src/components/block/ProducerChip.tsx +3 -2
- package/src/components/block/helpers/blockProducer.ts +1 -1
- package/src/components/block/helpers/buildBlockChainRenderComponent.tsx +3 -3
- package/src/components/block/helpers/tsxFromBlock.ts +3 -2
- package/src/components/block/hooks/useBlockProducer.ts +1 -1
- package/src/components/block/hooks/useDynamicBlockComponents.ts +5 -5
- package/src/components/block/hooks/useStaticBlockComponents.ts +3 -3
- package/src/components/block/hooks/useTxsFromBlock.ts +2 -2
- package/src/components/block/menu/Expanded.tsx +1 -1
- package/src/components/block/table/Ex.stories.tsx +5 -3
- package/src/components/block/table/Ex.tsx +2 -1
- package/src/components/block/table/cell/BlockNumber.tsx +1 -1
- package/src/components/block/table/cell/Hash.tsx +3 -2
- package/src/components/block/table/cell/JsonView.tsx +1 -1
- package/src/components/block/table/cell/Producer.tsx +3 -2
- package/src/components/block/table/cell/TransactionCount.tsx +2 -2
- package/src/components/block/table/cell/Verification.tsx +2 -2
- package/src/components/block/table/cell/hooks/useLinkedBlockItem.tsx +2 -2
- package/src/components/block/table/cell/lib/BlockTableCellProps.ts +2 -2
- package/src/components/block/table/row/TableRow.stories.tsx +2 -2
- package/src/components/block/table/row/TableRow.tsx +1 -1
- package/src/components/chain/controls/PollingControlsFlexbox.tsx +3 -2
- package/src/components/chain/dialog/Dialog.tsx +2 -1
- package/src/components/chain/hooks/useOnBlock.ts +1 -1
- package/src/components/chain/list/Animated.tsx +1 -1
- package/src/components/chain/list/TableEx.tsx +1 -1
- package/src/components/chain/pagination/BlockChainPagination.tsx +2 -1
- package/src/components/chain/pagination/hooks/usePagination.tsx +3 -4
- package/src/components/chain/render/dynamic/flexbox/Flexbox.stories.tsx +1 -1
- package/src/components/chain/render/dynamic/flexbox/Flexbox.tsx +4 -5
- package/src/components/chain/render/dynamic/flexbox/Remote.stories.tsx +2 -2
- package/src/components/chain/render/dynamic/hooks/useDynamicBlockRenderComponents.ts +3 -2
- package/src/components/chain/render/dynamic/hooks/useRemoteBlockChainRenderProps.ts +2 -2
- package/src/components/chain/render/static/flexbox/Flexbox.stories.tsx +1 -1
- package/src/components/chain/render/static/flexbox/Flexbox.tsx +4 -3
- package/src/components/chain/render/static/hooks/useStaticBlockRenderComponents.ts +3 -2
- package/src/components/chain/render/static/table/Ex.stories.tsx +1 -1
- package/src/components/chain/render/static/table/Ex.tsx +1 -1
- package/src/components/chain/stats/Dialog.tsx +2 -1
- package/src/components/chain/stats/producer/ProducerFlexbox.tsx +2 -2
- package/src/components/chain/stats/producer/Table.tsx +3 -2
- package/src/components/payload/builder/BuilderComponentProps.ts +1 -1
- package/src/components/payload/builder/Flexbox.tsx +6 -4
- package/src/components/payload/builder/producer-intent/Flexbox.stories.tsx +1 -1
- package/src/components/payload/builder/producer-intent/Flexbox.tsx +1 -1
- package/src/components/payload/builder/producer-intent/Form.tsx +5 -6
- package/src/components/payload/builder/transfer/Flexbox.stories.tsx +1 -1
- package/src/components/payload/builder/transfer/Flexbox.tsx +1 -1
- package/src/components/payload/builder/transfer/Form.tsx +7 -7
- package/src/components/payload/builder/transfer/Transfer.ts +1 -1
- package/src/components/payload/builder/transfer/builder/SingleFlexbox.tsx +5 -3
- package/src/components/payload/fields/BlockNumberTextField.tsx +4 -2
- package/src/components/payload/fields/XyoAddressTextField.tsx +4 -2
- package/src/components/transactions/TransactionCountChip.tsx +3 -4
- package/src/components/transactions/TransactionsQuickTipButton.tsx +5 -4
- package/src/components/transactions/submit/Builder.tsx +2 -2
- package/src/components/transactions/submit/Network.tsx +4 -2
- package/src/components/transactions/submit/SubmitChain.stories.tsx +1 -1
- package/src/components/transactions/submit/SubmitChain.tsx +5 -5
- package/src/context/analyzer/Provider.tsx +5 -4
- package/src/context/analyzer/context.ts +1 -1
- package/src/context/analyzer/state.ts +3 -3
- package/src/context/analyzer/use.ts +1 -1
- package/src/context/chain/Context.ts +1 -1
- package/src/context/chain/Provider.tsx +2 -2
- package/src/context/chain/State.ts +3 -3
- package/src/context/chain/use.ts +1 -1
- package/src/context/polling/Provider.tsx +3 -2
- package/src/context/polling/context.ts +1 -1
- package/src/context/polling/state.ts +1 -1
- package/src/hooks/chain-iterator/ChainIteratorStore.ts +1 -1
- package/src/hooks/chain-iterator/useChainIteratorParams.ts +5 -4
- package/src/hooks/chain-iterator/useChainIteratorStore.ts +3 -2
- package/src/hooks/chain-iterator/useChainIteratorUpdatingHead.ts +3 -3
- package/src/hooks/useIterateChain.ts +3 -4
- package/src/lib/getChainArchivist.ts +5 -5
- package/src/lib/getChainInformation.ts +2 -2
- package/src/stories/ChainArchivistDecorator.tsx +3 -3
- package/src/stories/ChainArchivistDelayedInsertDecorator.tsx +5 -4
- package/src/stories/ChainInfoContextDecorator.tsx +4 -5
- package/src/stories/buildRandomBlockchain.ts +2 -2
- package/src/types/BlockComponentProps.ts +2 -2
- package/src/types/BlockComponents.ts +2 -2
- package/src/types/BlockListComponentProps.ts +1 -1
- package/src/types/render/BlockChainRenderProps.ts +3 -3
- package/src/types/render/flexbox/BlockChainRenderFlexboxProps.ts +3 -3
- package/src/types/render/flexbox/RenderFlexboxProps.ts +2 -2
- package/src/types/render/table/BlockChainRenderTableExProps.ts +3 -3
- package/src/types/render/table/RenderTableProps.ts +2 -2
- package/xy.config.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RenderFlexboxProps.d.ts","sourceRoot":"","sources":["../../../../../src/types/render/flexbox/RenderFlexboxProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"RenderFlexboxProps.d.ts","sourceRoot":"","sources":["../../../../../src/types/render/flexbox/RenderFlexboxProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AAE9D,MAAM,WAAW,kBAAmB,SAAQ,WAAW,EAAE,YAAY;CAAG"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TableExProps } from '@xyo-network/react-table';
|
|
2
|
-
import { BlockChainRenderBaseProps } from '../BlockChainRenderProps.ts';
|
|
3
|
-
import { RemoteArchivistProps } from '../RemoteArchivistProps.ts';
|
|
1
|
+
import type { TableExProps } from '@xyo-network/react-table';
|
|
2
|
+
import type { BlockChainRenderBaseProps } from '../BlockChainRenderProps.ts';
|
|
3
|
+
import type { RemoteArchivistProps } from '../RemoteArchivistProps.ts';
|
|
4
4
|
export interface BlockChainRenderTableExProps extends BlockChainRenderBaseProps, TableExProps {
|
|
5
5
|
}
|
|
6
6
|
export interface RemoteBlockChainRenderTableExProps extends BlockChainRenderBaseProps, RemoteArchivistProps, TableExProps {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockChainRenderTableExProps.d.ts","sourceRoot":"","sources":["../../../../../src/types/render/table/BlockChainRenderTableExProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"BlockChainRenderTableExProps.d.ts","sourceRoot":"","sources":["../../../../../src/types/render/table/BlockChainRenderTableExProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAE5D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAC5E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AAEtE,MAAM,WAAW,4BAA6B,SAAQ,yBAAyB,EAAE,YAAY;CAAG;AAEhG,MAAM,WAAW,kCAAmC,SAAQ,yBAAyB,EAAE,oBAAoB,EAAE,YAAY;CAAG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TableProps } from '@mui/material';
|
|
2
|
-
import { RenderProps } from '../BlockChainRenderProps.ts';
|
|
1
|
+
import type { TableProps } from '@mui/material';
|
|
2
|
+
import type { RenderProps } from '../BlockChainRenderProps.ts';
|
|
3
3
|
export interface RenderTableProps extends RenderProps, TableProps {
|
|
4
4
|
}
|
|
5
5
|
//# sourceMappingURL=RenderTableProps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RenderTableProps.d.ts","sourceRoot":"","sources":["../../../../../src/types/render/table/RenderTableProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"RenderTableProps.d.ts","sourceRoot":"","sources":["../../../../../src/types/render/table/RenderTableProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAE/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AAE9D,MAAM,WAAW,gBAAiB,SAAQ,WAAW,EAAE,UAAU;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { config as default } from '@xylabs/eslint-config-flat'
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@xyo-network/react-chain-blockchain",
|
|
4
|
-
"version": "1.0.
|
|
5
|
-
"description": "XYO Layer One SDK",
|
|
4
|
+
"version": "1.0.2",
|
|
5
|
+
"description": "XYO Layer One React SDK Blockchain",
|
|
6
6
|
"homepage": "https://xylabs.com",
|
|
7
7
|
"bugs": {
|
|
8
8
|
"url": "git+https://github.com/xylabs/xyo-chain/issues",
|
|
@@ -51,20 +51,20 @@
|
|
|
51
51
|
"@xyo-network/archivist-model": "^3.9.37",
|
|
52
52
|
"@xyo-network/boundwitness-builder": "^3.9.37",
|
|
53
53
|
"@xyo-network/bridge-http": "^3.9.37",
|
|
54
|
-
"@xyo-network/chain-ethereum": "^1.0.
|
|
55
|
-
"@xyo-network/chain-model": "^1.0.
|
|
56
|
-
"@xyo-network/chain-protocol": "^1.0.
|
|
57
|
-
"@xyo-network/chain-services": "^1.0.
|
|
54
|
+
"@xyo-network/chain-ethereum": "^1.0.2",
|
|
55
|
+
"@xyo-network/chain-model": "^1.0.2",
|
|
56
|
+
"@xyo-network/chain-protocol": "^1.0.2",
|
|
57
|
+
"@xyo-network/chain-services": "^1.0.2",
|
|
58
58
|
"@xyo-network/module-model": "^3.9.37",
|
|
59
59
|
"@xyo-network/payload-builder": "^3.9.37",
|
|
60
60
|
"@xyo-network/payload-model": "^3.9.37",
|
|
61
|
-
"@xyo-network/react-chain-blockies": "^1.0.
|
|
62
|
-
"@xyo-network/react-chain-boundwitness": "^1.0.
|
|
63
|
-
"@xyo-network/react-event": "^5.0.
|
|
64
|
-
"@xyo-network/react-payload-raw-info": "^5.0.
|
|
65
|
-
"@xyo-network/react-payload-table": "^5.0.
|
|
66
|
-
"@xyo-network/react-shared": "^5.0.
|
|
67
|
-
"@xyo-network/react-table": "^5.0.
|
|
61
|
+
"@xyo-network/react-chain-blockies": "^1.0.2",
|
|
62
|
+
"@xyo-network/react-chain-boundwitness": "^1.0.2",
|
|
63
|
+
"@xyo-network/react-event": "^5.0.4",
|
|
64
|
+
"@xyo-network/react-payload-raw-info": "^5.0.4",
|
|
65
|
+
"@xyo-network/react-payload-table": "^5.0.4",
|
|
66
|
+
"@xyo-network/react-shared": "^5.0.4",
|
|
67
|
+
"@xyo-network/react-table": "^5.0.4"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@emotion/react": "^11.14.0",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"@xylabs/ts-scripts-yarn3": "^6.0.9",
|
|
80
80
|
"@xylabs/tsconfig-react": "^6.0.9",
|
|
81
81
|
"@xyo-network/archivist-memory": "^3.9.37",
|
|
82
|
-
"@xyo-network/chain-utils": "^1.0.
|
|
82
|
+
"@xyo-network/chain-utils": "^1.0.2",
|
|
83
83
|
"eslint": "^9.22.0",
|
|
84
84
|
"react": "^19.0.0",
|
|
85
85
|
"react-dom": "^19.0.0",
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Alert, AlertTitle, List, ListItem, Stack,
|
|
3
3
|
} from '@mui/material'
|
|
4
|
-
import { Meta, StoryFn } from '@storybook/react'
|
|
5
|
-
import { BlockBoundWitness } from '@xyo-network/chain-model'
|
|
4
|
+
import type { Meta, StoryFn } from '@storybook/react'
|
|
5
|
+
import type { BlockBoundWitness } from '@xyo-network/chain-model'
|
|
6
6
|
import React, { useState } from 'react'
|
|
7
7
|
|
|
8
8
|
import { buildRandomBlockChainBlocksOnly } from '../../stories/index.ts'
|
|
9
9
|
import { BlockHeadingFlexbox } from './BlockHeadingFlexbox.tsx'
|
|
10
|
-
import { BlockHeaderEventNouns
|
|
10
|
+
import type { BlockHeaderEventNouns } from './hooks/index.ts'
|
|
11
|
+
import { useBlockHeadingEvents } from './hooks/index.ts'
|
|
11
12
|
|
|
12
13
|
export default {
|
|
13
14
|
title: 'Block/Flexbox',
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Hash } from '@xylabs/hex'
|
|
2
|
-
import { BWVerification, HashHeadingPaper } from '@xyo-network/react-chain-boundwitness'
|
|
1
|
+
import type { Hash } from '@xylabs/hex'
|
|
3
2
|
import { FlexCol, FlexRow } from '@xylabs/react-flexbox'
|
|
3
|
+
import { BWVerification, HashHeadingPaper } from '@xyo-network/react-chain-boundwitness'
|
|
4
4
|
import { usePayloadHash } from '@xyo-network/react-shared'
|
|
5
5
|
import React from 'react'
|
|
6
6
|
|
|
7
7
|
import { useChainPollingContext } from '../../context/index.ts'
|
|
8
|
-
import { BlockComponentWithTxsProps } from '../../types/index.ts'
|
|
8
|
+
import type { BlockComponentWithTxsProps } from '../../types/index.ts'
|
|
9
9
|
import { TransactionCountChip } from '../transactions/index.ts'
|
|
10
10
|
import { useBlockHeadingEvents } from './hooks/index.ts'
|
|
11
11
|
import { LinkedDivider } from './LinkedDivider.tsx'
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { ChipProps } from '@mui/material'
|
|
2
|
+
import { Chip } from '@mui/material'
|
|
3
3
|
import { EthAddress } from '@xylabs/eth-address'
|
|
4
|
+
import type { BlockBoundWitness } from '@xyo-network/chain-model'
|
|
4
5
|
import { BlockiesAvatar } from '@xyo-network/react-chain-blockies'
|
|
5
6
|
import { useMemo } from 'react'
|
|
6
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ArchivistInstance } from '@xyo-network/archivist-model'
|
|
2
|
-
import { ComponentType } from 'react'
|
|
1
|
+
import type { ArchivistInstance } from '@xyo-network/archivist-model'
|
|
2
|
+
import type { ComponentType } from 'react'
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import type {
|
|
5
5
|
BlockChainRenderComponent,
|
|
6
6
|
BlockComponentProps, BlockComponentWithTxsProps,
|
|
7
7
|
} from '../../../types/index.ts'
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { ReadArchivist } from '@xyo-network/archivist-model'
|
|
2
|
+
import type { BlockBoundWitness } from '@xyo-network/chain-model'
|
|
3
|
+
import { isTransactionBoundWitness } from '@xyo-network/chain-model'
|
|
3
4
|
import { PayloadBuilder } from '@xyo-network/payload-builder'
|
|
4
5
|
|
|
5
6
|
export const txsFromBlock = async (chainArchivist: ReadArchivist, block: BlockBoundWitness) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
} from '
|
|
4
|
-
import {
|
|
1
|
+
import type { BlockBoundWitness, XyoChainIteratorParams } from '@xyo-network/chain-model'
|
|
2
|
+
import { isBlockBoundWitness } from '@xyo-network/chain-model'
|
|
3
|
+
import type { ComponentType } from 'react'
|
|
4
|
+
import { useState } from 'react'
|
|
5
5
|
|
|
6
6
|
import { useChainAnalyzersContext } from '../../../context/index.ts'
|
|
7
|
-
import {
|
|
7
|
+
import type {
|
|
8
8
|
BlockChainRenderComponent,
|
|
9
9
|
BlockComponentProps, BlockComponentWithTxsProps,
|
|
10
10
|
} from '../../../types/index.ts'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BlockBoundWitness, XyoChainIteratorParams } from '@xyo-network/chain-model'
|
|
2
1
|
import { usePromise } from '@xylabs/react-promise'
|
|
3
|
-
import {
|
|
2
|
+
import type { BlockBoundWitness, XyoChainIteratorParams } from '@xyo-network/chain-model'
|
|
3
|
+
import type { ComponentType } from 'react'
|
|
4
4
|
|
|
5
5
|
import { useChainAnalyzersContext } from '../../../context/index.ts'
|
|
6
|
-
import { BlockComponentProps, BlockComponentWithTxsProps } from '../../../types/index.ts'
|
|
6
|
+
import type { BlockComponentProps, BlockComponentWithTxsProps } from '../../../types/index.ts'
|
|
7
7
|
import { buildBlockChainRenderComponent } from '../helpers/index.ts'
|
|
8
8
|
|
|
9
9
|
export const useStaticBlockComponents = (
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BlockBoundWitness } from '@xyo-network/chain-model'
|
|
2
1
|
import { usePromise } from '@xylabs/react-promise'
|
|
3
|
-
import { ReadArchivist } from '@xyo-network/archivist-model'
|
|
2
|
+
import type { ReadArchivist } from '@xyo-network/archivist-model'
|
|
3
|
+
import type { BlockBoundWitness } from '@xyo-network/chain-model'
|
|
4
4
|
|
|
5
5
|
import { txsFromBlock } from '../helpers/index.ts'
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MoreVert } from '@mui/icons-material'
|
|
2
2
|
import { IconButton, Menu } from '@mui/material'
|
|
3
|
-
import { BlockBoundWitness } from '@xyo-network/chain-model'
|
|
3
|
+
import type { BlockBoundWitness } from '@xyo-network/chain-model'
|
|
4
4
|
import { BWJsonMenuItem, BWPreviousHashMenuItem } from '@xyo-network/react-chain-boundwitness'
|
|
5
5
|
|
|
6
6
|
import { useAnchorElement } from '../hooks/index.ts'
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Alert, AlertTitle, Snackbar,
|
|
3
3
|
} from '@mui/material'
|
|
4
|
-
import { Meta, StoryFn } from '@storybook/react'
|
|
5
|
-
import { BlockBoundWitness
|
|
6
|
-
import {
|
|
4
|
+
import type { Meta, StoryFn } from '@storybook/react'
|
|
5
|
+
import type { BlockBoundWitness } from '@xyo-network/chain-model'
|
|
6
|
+
import { isBlockBoundWitness } from '@xyo-network/chain-model'
|
|
7
|
+
import type { Event } from '@xyo-network/react-event'
|
|
8
|
+
import { useEvent } from '@xyo-network/react-event'
|
|
7
9
|
import React, { useState } from 'react'
|
|
8
10
|
|
|
9
11
|
import { buildRandomBlockChain } from '../../../stories/index.ts'
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TableBody, TableCell, TableHead, TableRow,
|
|
3
3
|
} from '@mui/material'
|
|
4
|
-
import {
|
|
4
|
+
import type { TableExProps } from '@xyo-network/react-table'
|
|
5
|
+
import { TableEx } from '@xyo-network/react-table'
|
|
5
6
|
import { forwardRef } from 'react'
|
|
6
7
|
|
|
7
8
|
export const BlockchainTableEx = forwardRef<HTMLTableElement, TableExProps>(({ children, ...props }, ref) => {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import React from 'react'
|
|
5
5
|
|
|
6
6
|
import { useLinkedBlockItem } from './hooks/index.ts'
|
|
7
|
-
import { BlockTableCellProps } from './lib/index.ts'
|
|
7
|
+
import type { BlockTableCellProps } from './lib/index.ts'
|
|
8
8
|
|
|
9
9
|
export interface BlockNumberTableCellProps extends BlockTableCellProps {}
|
|
10
10
|
|
|
@@ -3,12 +3,13 @@ import {
|
|
|
3
3
|
Chip,
|
|
4
4
|
TableCell, Tooltip,
|
|
5
5
|
} from '@mui/material'
|
|
6
|
-
import {
|
|
6
|
+
import type { IdenticonProps } from '@xylabs/react-identicon'
|
|
7
|
+
import { Identicon } from '@xylabs/react-identicon'
|
|
7
8
|
import { usePayloadHash } from '@xyo-network/react-shared'
|
|
8
9
|
import React from 'react'
|
|
9
10
|
|
|
10
11
|
import { useLinkedBlockItem } from './hooks/index.ts'
|
|
11
|
-
import { BlockTableCellProps } from './lib/index.ts'
|
|
12
|
+
import type { BlockTableCellProps } from './lib/index.ts'
|
|
12
13
|
|
|
13
14
|
export interface BlockHashTableCellProps extends BlockTableCellProps {
|
|
14
15
|
identiconProps?: IdenticonProps
|
|
@@ -9,7 +9,7 @@ import { JsonViewerEx } from '@xyo-network/react-payload-raw-info'
|
|
|
9
9
|
import { usePayloadHash } from '@xyo-network/react-shared'
|
|
10
10
|
import React, { useState } from 'react'
|
|
11
11
|
|
|
12
|
-
import { BlockTableCellProps } from './lib/index.ts'
|
|
12
|
+
import type { BlockTableCellProps } from './lib/index.ts'
|
|
13
13
|
|
|
14
14
|
export interface BlockJsonViewTableCellProps extends BlockTableCellProps {}
|
|
15
15
|
|
|
@@ -3,9 +3,10 @@ import { FlexRow } from '@xylabs/react-flexbox'
|
|
|
3
3
|
import React from 'react'
|
|
4
4
|
|
|
5
5
|
import { useBlockProducer } from '../../hooks/index.ts'
|
|
6
|
-
import {
|
|
6
|
+
import type { BlockProducerChipProps } from '../../ProducerChip.tsx'
|
|
7
|
+
import { BlockProducerChip } from '../../ProducerChip.tsx'
|
|
7
8
|
import { useLinkedBlockItem } from './hooks/index.ts'
|
|
8
|
-
import { BlockTableCellProps } from './lib/index.ts'
|
|
9
|
+
import type { BlockTableCellProps } from './lib/index.ts'
|
|
9
10
|
|
|
10
11
|
export interface BlockProducerTableCell extends BlockTableCellProps {
|
|
11
12
|
producerChipProps?: BlockProducerChipProps
|
|
@@ -2,12 +2,12 @@ import { Error } from '@mui/icons-material'
|
|
|
2
2
|
import {
|
|
3
3
|
Link, TableCell, Tooltip,
|
|
4
4
|
} from '@mui/material'
|
|
5
|
-
import { ReadArchivist } from '@xyo-network/archivist-model'
|
|
5
|
+
import type { ReadArchivist } from '@xyo-network/archivist-model'
|
|
6
6
|
import React from 'react'
|
|
7
7
|
|
|
8
8
|
import { useTxsFromBlock } from '../../hooks/index.ts'
|
|
9
9
|
import { useLinkedBlockItem } from './hooks/index.ts'
|
|
10
|
-
import { BlockTableCellProps } from './lib/index.ts'
|
|
10
|
+
import type { BlockTableCellProps } from './lib/index.ts'
|
|
11
11
|
|
|
12
12
|
export interface BlockTransactionCountTableCellProps extends BlockTableCellProps {
|
|
13
13
|
chainArchivist?: ReadArchivist
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { TableCell } from '@mui/material'
|
|
2
|
-
import { BWVerification } from '@xyo-network/react-chain-boundwitness'
|
|
3
2
|
import { FlexRow } from '@xylabs/react-flexbox'
|
|
3
|
+
import { BWVerification } from '@xyo-network/react-chain-boundwitness'
|
|
4
4
|
import React from 'react'
|
|
5
5
|
|
|
6
6
|
import { useLinkedBlockItem } from './hooks/index.ts'
|
|
7
|
-
import { BlockTableCellProps } from './lib/index.ts'
|
|
7
|
+
import type { BlockTableCellProps } from './lib/index.ts'
|
|
8
8
|
|
|
9
9
|
export interface BlockVerificationTableCellProps extends BlockTableCellProps {}
|
|
10
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useEvent } from '@xyo-network/react-event'
|
|
2
|
-
import { RefObject } from 'react'
|
|
2
|
+
import type { RefObject } from 'react'
|
|
3
3
|
|
|
4
|
-
import { BlockHeaderEventNouns } from '../../../hooks/index.ts'
|
|
4
|
+
import type { BlockHeaderEventNouns } from '../../../hooks/index.ts'
|
|
5
5
|
|
|
6
6
|
export const useLinkedBlockItem = (noun?: BlockHeaderEventNouns, data?: string): [RefObject<HTMLElement | null>, (event: React.MouseEvent) => void] => {
|
|
7
7
|
const [ref, dispatch] = useEvent<HTMLAnchorElement, BlockHeaderEventNouns>()
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TableCellProps } from '@mui/material'
|
|
2
|
-
import { BlockBoundWitness } from '@xyo-network/chain-model'
|
|
1
|
+
import type { TableCellProps } from '@mui/material'
|
|
2
|
+
import type { BlockBoundWitness } from '@xyo-network/chain-model'
|
|
3
3
|
|
|
4
4
|
export interface BlockTableCellProps extends TableCellProps {
|
|
5
5
|
block?: BlockBoundWitness
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Table, TableBody } from '@mui/material'
|
|
2
|
-
import { Meta, StoryFn } from '@storybook/react'
|
|
3
|
-
import { BlockBoundWitness } from '@xyo-network/chain-model'
|
|
2
|
+
import type { Meta, StoryFn } from '@storybook/react'
|
|
3
|
+
import type { BlockBoundWitness } from '@xyo-network/chain-model'
|
|
4
4
|
import React from 'react'
|
|
5
5
|
|
|
6
6
|
import { buildRandomBlockChainBlocksOnly } from '../../../../stories/index.ts'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TableRow } from '@mui/material'
|
|
2
2
|
import { useMemo } from 'react'
|
|
3
3
|
|
|
4
|
-
import { BlockComponentProps } from '../../../../types/index.ts'
|
|
4
|
+
import type { BlockComponentProps } from '../../../../types/index.ts'
|
|
5
5
|
import {
|
|
6
6
|
BlockHashTableCell, BlockJsonViewTableCell, BlockNumberTableCell, BlockProducerTableCell,
|
|
7
7
|
BlockTransactionCountTableCell,
|
|
@@ -8,10 +8,11 @@ import {
|
|
|
8
8
|
Grow,
|
|
9
9
|
Icon, IconButton, Tooltip,
|
|
10
10
|
} from '@mui/material'
|
|
11
|
-
import { FlexBoxProps
|
|
11
|
+
import type { FlexBoxProps } from '@xylabs/react-flexbox'
|
|
12
|
+
import { FlexRow } from '@xylabs/react-flexbox'
|
|
12
13
|
import React, { memo } from 'react'
|
|
13
14
|
|
|
14
|
-
import { PollingState } from '../hooks/index.ts'
|
|
15
|
+
import type { PollingState } from '../hooks/index.ts'
|
|
15
16
|
import { ChainAnalyzerStatsDialogFromContext } from '../stats/index.ts'
|
|
16
17
|
import { StyledPulseSvgIcon } from './PulseSvgIcon.tsx'
|
|
17
18
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AnimatedList } from '@xylabs/react-animation'
|
|
2
2
|
|
|
3
|
-
import { BlockListComponentProps } from '../../../types/index.ts'
|
|
3
|
+
import type { BlockListComponentProps } from '../../../types/index.ts'
|
|
4
4
|
import { BlockListWrapperFlexBox } from '../styled/index.ts'
|
|
5
5
|
|
|
6
6
|
export const BlockListAnimated: React.FC<BlockListComponentProps> = ({ blockChainRenderComponents }) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { Fragment } from 'react'
|
|
2
2
|
|
|
3
|
-
import { BlockListComponentProps } from '../../../types/index.ts'
|
|
3
|
+
import type { BlockListComponentProps } from '../../../types/index.ts'
|
|
4
4
|
import { BlockchainTableEx } from '../../block/index.ts'
|
|
5
5
|
|
|
6
6
|
export const BlockListTableEx: React.FC<BlockListComponentProps> = ({ blockChainRenderComponents }) => {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { TablePaginationActionsProps } from '@xyo-network/react-payload-table'
|
|
2
|
+
import { TablePaginationActions } from '@xyo-network/react-payload-table'
|
|
2
3
|
import React from 'react'
|
|
3
4
|
|
|
4
5
|
export interface BlockChainPaginationProps extends TablePaginationActionsProps {}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
} from 'react'
|
|
1
|
+
import type { MouseEvent } from 'react'
|
|
2
|
+
import { useMemo, useState } from 'react'
|
|
4
3
|
|
|
5
|
-
import { BlockChainRenderComponent } from '../../../../types/index.ts'
|
|
4
|
+
import type { BlockChainRenderComponent } from '../../../../types/index.ts'
|
|
6
5
|
|
|
7
6
|
export const useChainPagination = (pageSize: number, blockComponents?: BlockChainRenderComponent[]) => {
|
|
8
7
|
const [page, setPage] = useState(0)
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { ChainProducersAnalyzer } from '@xyo-network/chain-protocol'
|
|
2
1
|
import { ErrorRender } from '@xylabs/react-error'
|
|
3
2
|
import { FlexCol } from '@xylabs/react-flexbox'
|
|
3
|
+
import { ChainProducersAnalyzer } from '@xyo-network/chain-protocol'
|
|
4
4
|
import React, { useMemo } from 'react'
|
|
5
5
|
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
} from '../../../../../
|
|
9
|
-
import { BlockChainRenderFlexboxProps, RemoteBlockChainRenderFlexboxProps } from '../../../../../types/index.ts'
|
|
6
|
+
import type { ChainAnalyzers } from '../../../../../context/index.ts'
|
|
7
|
+
import { ChainAnalyzersProvider, ChainPollingProvider } from '../../../../../context/index.ts'
|
|
8
|
+
import type { BlockChainRenderFlexboxProps, RemoteBlockChainRenderFlexboxProps } from '../../../../../types/index.ts'
|
|
10
9
|
import { BlockHeadingFlexbox } from '../../../../block/index.ts'
|
|
11
10
|
import { MemoizedPollingControlsFlexbox } from '../../../controls/index.ts'
|
|
12
11
|
import { BlockListAnimated } from '../../../list/index.ts'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Meta, StoryFn } from '@storybook/react'
|
|
1
|
+
import type { Meta, StoryFn } from '@storybook/react'
|
|
2
2
|
|
|
3
3
|
import { getChainInformation } from '../../../../../lib/index.ts'
|
|
4
|
-
import { BlockChainRenderProps } from '../../../../../types/index.ts'
|
|
4
|
+
import type { BlockChainRenderProps } from '../../../../../types/index.ts'
|
|
5
5
|
import { DynamicBlockchainRenderFlexbox } from './Flexbox.tsx'
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { ComponentType
|
|
1
|
+
import type { ComponentType } from 'react'
|
|
2
|
+
import { useMemo } from 'react'
|
|
2
3
|
|
|
3
4
|
import { useChainPollingContext } from '../../../../../context/index.ts'
|
|
4
5
|
import { useChainIteratorParams, useChainIteratorStore } from '../../../../../hooks/index.ts'
|
|
5
|
-
import { BlockChainRenderProps, BlockComponentWithTxsProps } from '../../../../../types/index.ts'
|
|
6
|
+
import type { BlockChainRenderProps, BlockComponentWithTxsProps } from '../../../../../types/index.ts'
|
|
6
7
|
import { useDynamicBlockComponents } from '../../../../block/index.ts'
|
|
7
8
|
import { useOnBlock } from '../../../hooks/index.ts'
|
|
8
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { usePromise } from '@xylabs/react-promise'
|
|
2
|
-
import { ModuleIdentifier } from '@xyo-network/module-model'
|
|
2
|
+
import type { ModuleIdentifier } from '@xyo-network/module-model'
|
|
3
3
|
import { useMemo } from 'react'
|
|
4
4
|
|
|
5
5
|
import { getChainArchivistFromBridge } from '../../../../../lib/index.ts'
|
|
6
|
-
import { BlockChainRenderBaseProps, BlockChainRenderProps } from '../../../../../types/index.ts'
|
|
6
|
+
import type { BlockChainRenderBaseProps, BlockChainRenderProps } from '../../../../../types/index.ts'
|
|
7
7
|
|
|
8
8
|
/** take blockChainRenderProps and remote archivist props and return with resolved chainArchivist */
|
|
9
9
|
export const useRemoteBlockChainRenderProps = (
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { ChainProducersAnalyzer } from '@xyo-network/chain-protocol'
|
|
2
1
|
import { ErrorRender } from '@xylabs/react-error'
|
|
3
2
|
import { FlexCol, FlexGrowRow } from '@xylabs/react-flexbox'
|
|
3
|
+
import { ChainProducersAnalyzer } from '@xyo-network/chain-protocol'
|
|
4
4
|
import React, { useMemo } from 'react'
|
|
5
5
|
|
|
6
|
-
import { ChainAnalyzers
|
|
7
|
-
import {
|
|
6
|
+
import type { ChainAnalyzers } from '../../../../../context/index.ts'
|
|
7
|
+
import { ChainAnalyzersProvider } from '../../../../../context/index.ts'
|
|
8
|
+
import type { BlockChainRenderFlexboxProps } from '../../../../../types/index.ts'
|
|
8
9
|
import { BlockHeadingFlexbox } from '../../../../block/index.ts'
|
|
9
10
|
import { BlockListAnimated } from '../../../list/index.ts'
|
|
10
11
|
import { BlockChainPagination } from '../../../pagination/index.ts'
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { exists } from '@xylabs/exists'
|
|
2
|
-
import { ComponentType
|
|
2
|
+
import type { ComponentType } from 'react'
|
|
3
|
+
import { useMemo } from 'react'
|
|
3
4
|
|
|
4
5
|
import { useChainIteratorParams, useIterateChain } from '../../../../../hooks/index.ts'
|
|
5
|
-
import { BlockChainRenderProps, BlockComponentWithTxsProps } from '../../../../../types/index.ts'
|
|
6
|
+
import type { BlockChainRenderProps, BlockComponentWithTxsProps } from '../../../../../types/index.ts'
|
|
6
7
|
import { useStaticBlockComponents } from '../../../../block/index.ts'
|
|
7
8
|
import { useChainPagination } from '../../../pagination/index.ts'
|
|
8
9
|
|
|
@@ -2,7 +2,7 @@ import { ErrorRender } from '@xylabs/react-error'
|
|
|
2
2
|
import { FlexCol, FlexGrowRow } from '@xylabs/react-flexbox'
|
|
3
3
|
import React from 'react'
|
|
4
4
|
|
|
5
|
-
import { BlockChainRenderTableExProps } from '../../../../../types/index.ts'
|
|
5
|
+
import type { BlockChainRenderTableExProps } from '../../../../../types/index.ts'
|
|
6
6
|
import { BlockChainTableRow } from '../../../../block/index.ts'
|
|
7
7
|
import { BlockListTableEx } from '../../../list/index.ts'
|
|
8
8
|
import { BlockChainPagination } from '../../../pagination/index.ts'
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ListItem, styled, Typography,
|
|
3
3
|
} from '@mui/material'
|
|
4
|
-
import { isChainSummaryProducers } from '@xyo-network/chain-protocol'
|
|
5
4
|
import { ErrorRender } from '@xylabs/react-error'
|
|
6
5
|
import { FlexCol } from '@xylabs/react-flexbox'
|
|
7
|
-
import {
|
|
6
|
+
import { isChainSummaryProducers } from '@xyo-network/chain-protocol'
|
|
7
|
+
import type { Payload } from '@xyo-network/payload-model'
|
|
8
8
|
import { useMemo } from 'react'
|
|
9
9
|
|
|
10
10
|
import { ChainProducerStatsTable } from './Table.tsx'
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import type { TableProps } from '@mui/material'
|
|
1
2
|
import {
|
|
2
|
-
Table, TableBody, TableCell, TableHead,
|
|
3
|
+
Table, TableBody, TableCell, TableHead,
|
|
3
4
|
TableRow,
|
|
4
5
|
useTheme,
|
|
5
6
|
} from '@mui/material'
|
|
6
|
-
import { AnalyzedProducer } from '@xyo-network/chain-protocol'
|
|
7
|
+
import type { AnalyzedProducer } from '@xyo-network/chain-protocol'
|
|
7
8
|
import { BlockiesAvatar } from '@xyo-network/react-chain-blockies'
|
|
8
9
|
import React from 'react'
|
|
9
10
|
|