@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
package/dist/browser/index.mjs
CHANGED
|
@@ -2,8 +2,8 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
3
|
|
|
4
4
|
// src/components/block/BlockHeadingFlexbox.tsx
|
|
5
|
-
import { BWVerification, HashHeadingPaper } from "@xyo-network/react-chain-boundwitness";
|
|
6
5
|
import { FlexCol as FlexCol2, FlexRow as FlexRow2 } from "@xylabs/react-flexbox";
|
|
6
|
+
import { BWVerification, HashHeadingPaper } from "@xyo-network/react-chain-boundwitness";
|
|
7
7
|
import { usePayloadHash } from "@xyo-network/react-shared";
|
|
8
8
|
import React8 from "react";
|
|
9
9
|
|
|
@@ -233,12 +233,12 @@ var ChainTransactionNetwork = /* @__PURE__ */ __name(({ network, onNetworkChange
|
|
|
233
233
|
// src/components/transactions/submit/SubmitChain.tsx
|
|
234
234
|
import { Alert, Grid2, Typography } from "@mui/material";
|
|
235
235
|
import { axios } from "@xylabs/axios";
|
|
236
|
-
import { buildTransaction } from "@xyo-network/chain-protocol";
|
|
237
236
|
import { ErrorRender } from "@xylabs/react-error";
|
|
238
237
|
import { FlexGrowCol } from "@xylabs/react-flexbox";
|
|
239
238
|
import { Account } from "@xyo-network/account";
|
|
240
239
|
import { ArchivistInsertQuerySchema } from "@xyo-network/archivist-model";
|
|
241
240
|
import { QueryBoundWitnessBuilder } from "@xyo-network/boundwitness-builder";
|
|
241
|
+
import { buildTransaction } from "@xyo-network/chain-protocol";
|
|
242
242
|
import { PayloadBuilder as PayloadBuilder2 } from "@xyo-network/payload-builder";
|
|
243
243
|
import React5, { useState as useState5 } from "react";
|
|
244
244
|
var BETA_PENDING_TRANSACTIONS_ARCHIVIST = "https://beta.api.chain.xyo.network/8050fee682a2762f504d5449d8269a6f17f0b693";
|
|
@@ -827,8 +827,8 @@ var BlockTransactionCountTableCell = /* @__PURE__ */ __name(({ block, chainArchi
|
|
|
827
827
|
|
|
828
828
|
// src/components/block/table/cell/Verification.tsx
|
|
829
829
|
import { TableCell as TableCell6 } from "@mui/material";
|
|
830
|
-
import { BWVerification as BWVerification2 } from "@xyo-network/react-chain-boundwitness";
|
|
831
830
|
import { FlexRow as FlexRow5 } from "@xylabs/react-flexbox";
|
|
831
|
+
import { BWVerification as BWVerification2 } from "@xyo-network/react-chain-boundwitness";
|
|
832
832
|
import React14 from "react";
|
|
833
833
|
var BlockVerificationTableCell = /* @__PURE__ */ __name(({ block, linked, ...props }) => {
|
|
834
834
|
const [ref, handleClick] = useLinkedBlockItem("block-verification", block?.block.toString());
|
|
@@ -902,9 +902,9 @@ import { useState as useState10 } from "react";
|
|
|
902
902
|
|
|
903
903
|
// src/components/chain/stats/producer/ProducerFlexbox.tsx
|
|
904
904
|
import { ListItem, styled, Typography as Typography3 } from "@mui/material";
|
|
905
|
-
import { isChainSummaryProducers } from "@xyo-network/chain-protocol";
|
|
906
905
|
import { ErrorRender as ErrorRender3 } from "@xylabs/react-error";
|
|
907
906
|
import { FlexCol as FlexCol3 } from "@xylabs/react-flexbox";
|
|
907
|
+
import { isChainSummaryProducers } from "@xyo-network/chain-protocol";
|
|
908
908
|
import { useMemo as useMemo9 } from "react";
|
|
909
909
|
|
|
910
910
|
// src/components/chain/stats/producer/Table.tsx
|
|
@@ -1172,9 +1172,9 @@ var useChainPagination = /* @__PURE__ */ __name((pageSize, blockComponents) => {
|
|
|
1172
1172
|
}, "useChainPagination");
|
|
1173
1173
|
|
|
1174
1174
|
// src/components/chain/render/dynamic/flexbox/Flexbox.tsx
|
|
1175
|
-
import { ChainProducersAnalyzer } from "@xyo-network/chain-protocol";
|
|
1176
1175
|
import { ErrorRender as ErrorRender4 } from "@xylabs/react-error";
|
|
1177
1176
|
import { FlexCol as FlexCol5 } from "@xylabs/react-flexbox";
|
|
1177
|
+
import { ChainProducersAnalyzer } from "@xyo-network/chain-protocol";
|
|
1178
1178
|
import React20, { useMemo as useMemo14 } from "react";
|
|
1179
1179
|
|
|
1180
1180
|
// src/components/chain/list/Animated.tsx
|
|
@@ -1272,9 +1272,9 @@ var ChainIteratorStore = class _ChainIteratorStore {
|
|
|
1272
1272
|
|
|
1273
1273
|
// src/hooks/chain-iterator/useChainIteratorParams.ts
|
|
1274
1274
|
import { assertEx as assertEx2 } from "@xylabs/assert";
|
|
1275
|
-
import { isBlockBoundWitness as isBlockBoundWitness2 } from "@xyo-network/chain-model";
|
|
1276
1275
|
import { usePromise as usePromise3 } from "@xylabs/react-promise";
|
|
1277
1276
|
import { BoundWitnessBuilder } from "@xyo-network/boundwitness-builder";
|
|
1277
|
+
import { isBlockBoundWitness as isBlockBoundWitness2 } from "@xyo-network/chain-model";
|
|
1278
1278
|
var resolveDefinedHead = /* @__PURE__ */ __name(async (head, chainArchivist) => {
|
|
1279
1279
|
const [headPayload] = await chainArchivist.get([
|
|
1280
1280
|
head
|
|
@@ -1312,8 +1312,8 @@ import { usePromise as usePromise4 } from "@xylabs/react-promise";
|
|
|
1312
1312
|
import { useEffect as useEffect4, useMemo as useMemo11, useRef as useRef3, useSyncExternalStore } from "react";
|
|
1313
1313
|
|
|
1314
1314
|
// src/hooks/chain-iterator/useChainIteratorUpdatingHead.ts
|
|
1315
|
-
import { findMostRecentBlock } from "@xyo-network/chain-protocol";
|
|
1316
1315
|
import { toHex } from "@xylabs/hex";
|
|
1316
|
+
import { findMostRecentBlock } from "@xyo-network/chain-protocol";
|
|
1317
1317
|
import { useEffect as useEffect3, useState as useState12 } from "react";
|
|
1318
1318
|
var useChainIteratorUpdatingHead = /* @__PURE__ */ __name(({ chainIterator, interval = 500, maxBlocks, chainArchivist }) => {
|
|
1319
1319
|
const [error, setError] = useState12();
|
|
@@ -1409,9 +1409,9 @@ var useChainIteratorStore = /* @__PURE__ */ __name((chainIteratorParams) => {
|
|
|
1409
1409
|
|
|
1410
1410
|
// src/hooks/useIterateChain.ts
|
|
1411
1411
|
import { assertEx as assertEx3 } from "@xylabs/assert";
|
|
1412
|
+
import { usePromise as usePromise5 } from "@xylabs/react-promise";
|
|
1412
1413
|
import { isBlockBoundWitness as isBlockBoundWitness3 } from "@xyo-network/chain-model";
|
|
1413
1414
|
import { XyoChainBlockNumberIterator as XyoChainBlockNumberIterator2 } from "@xyo-network/chain-services";
|
|
1414
|
-
import { usePromise as usePromise5 } from "@xylabs/react-promise";
|
|
1415
1415
|
var iterateChain = /* @__PURE__ */ __name(async (chainIteratorParams, maxDepth) => {
|
|
1416
1416
|
const { chainArchivist, head } = chainIteratorParams ?? {};
|
|
1417
1417
|
if (chainArchivist && head) {
|
|
@@ -1580,9 +1580,9 @@ var DynamicBlockchainRenderFlexbox = {
|
|
|
1580
1580
|
};
|
|
1581
1581
|
|
|
1582
1582
|
// src/components/chain/render/static/flexbox/Flexbox.tsx
|
|
1583
|
-
import { ChainProducersAnalyzer as ChainProducersAnalyzer2 } from "@xyo-network/chain-protocol";
|
|
1584
1583
|
import { ErrorRender as ErrorRender5 } from "@xylabs/react-error";
|
|
1585
1584
|
import { FlexCol as FlexCol6, FlexGrowRow as FlexGrowRow2 } from "@xylabs/react-flexbox";
|
|
1585
|
+
import { ChainProducersAnalyzer as ChainProducersAnalyzer2 } from "@xyo-network/chain-protocol";
|
|
1586
1586
|
import React21, { useMemo as useMemo16 } from "react";
|
|
1587
1587
|
|
|
1588
1588
|
// src/components/chain/render/static/hooks/useStaticBlockRenderComponents.ts
|
|
@@ -1951,9 +1951,9 @@ var TransferBuilderFlexbox = /* @__PURE__ */ __name(({ onBuild, ...props }) => /
|
|
|
1951
1951
|
}), "TransferBuilderFlexbox");
|
|
1952
1952
|
|
|
1953
1953
|
// src/stories/buildRandomBlockchain.ts
|
|
1954
|
+
import { Account as Account2 } from "@xyo-network/account";
|
|
1954
1955
|
import { buildRandomChain } from "@xyo-network/chain-ethereum";
|
|
1955
1956
|
import { flattenHydratedBlocks } from "@xyo-network/chain-protocol";
|
|
1956
|
-
import { Account as Account2 } from "@xyo-network/account";
|
|
1957
1957
|
var buildRandomBlockChain = /* @__PURE__ */ __name(async (blockCount = 10) => {
|
|
1958
1958
|
const initialBlockProducer = await Account2.random();
|
|
1959
1959
|
const blocks = await buildRandomChain(initialBlockProducer, blockCount);
|
|
@@ -1967,10 +1967,10 @@ var buildRandomBlockChainBlocksOnly = /* @__PURE__ */ __name(async (blockCount =
|
|
|
1967
1967
|
|
|
1968
1968
|
// src/stories/ChainArchivistDecorator.tsx
|
|
1969
1969
|
import { CircularProgress } from "@mui/material";
|
|
1970
|
-
import { isBlockBoundWitness as isBlockBoundWitness4 } from "@xyo-network/chain-model";
|
|
1971
1970
|
import { usePromise as usePromise7 } from "@xylabs/react-promise";
|
|
1972
1971
|
import { MemoryArchivist } from "@xyo-network/archivist-memory";
|
|
1973
1972
|
import { ArchivistConfigSchema } from "@xyo-network/archivist-model";
|
|
1973
|
+
import { isBlockBoundWitness as isBlockBoundWitness4 } from "@xyo-network/chain-model";
|
|
1974
1974
|
import { useEffect as useEffect7 } from "react";
|
|
1975
1975
|
var ChainArchivistDecorator = /* @__PURE__ */ __name((Story, context) => {
|
|
1976
1976
|
const [randomBlockChain] = usePromise7(async () => await buildRandomBlockChain(), []);
|
|
@@ -2015,11 +2015,11 @@ var ChainArchivistDecorator = /* @__PURE__ */ __name((Story, context) => {
|
|
|
2015
2015
|
|
|
2016
2016
|
// src/stories/ChainArchivistDelayedInsertDecorator.tsx
|
|
2017
2017
|
import { CircularProgress as CircularProgress2 } from "@mui/material";
|
|
2018
|
-
import { isBlockBoundWitness as isBlockBoundWitness5 } from "@xyo-network/chain-model";
|
|
2019
2018
|
import { delay } from "@xylabs/delay";
|
|
2020
2019
|
import { usePromise as usePromise8 } from "@xylabs/react-promise";
|
|
2021
2020
|
import { MemoryArchivist as MemoryArchivist2 } from "@xyo-network/archivist-memory";
|
|
2022
2021
|
import { ArchivistConfigSchema as ArchivistConfigSchema2 } from "@xyo-network/archivist-model";
|
|
2022
|
+
import { isBlockBoundWitness as isBlockBoundWitness5 } from "@xyo-network/chain-model";
|
|
2023
2023
|
import { useEffect as useEffect8, useState as useState19 } from "react";
|
|
2024
2024
|
var chainArchivistRef;
|
|
2025
2025
|
var ChainArchivistDelayedInsertDecorator = /* @__PURE__ */ __name((Story, context) => {
|
|
@@ -2089,10 +2089,10 @@ var ChainArchivistDelayedInsertDecorator = /* @__PURE__ */ __name((Story, contex
|
|
|
2089
2089
|
|
|
2090
2090
|
// src/stories/ChainInfoContextDecorator.tsx
|
|
2091
2091
|
import { assertEx as assertEx5 } from "@xylabs/assert";
|
|
2092
|
+
import { usePromise as usePromise9 } from "@xylabs/react-promise";
|
|
2092
2093
|
import { isBlockBoundWitness as isBlockBoundWitness6 } from "@xyo-network/chain-model";
|
|
2093
2094
|
import { XyoChainBlockNumberIterator as XyoChainBlockNumberIterator3 } from "@xyo-network/chain-services";
|
|
2094
2095
|
import { findFirstMatching } from "@xyo-network/chain-utils";
|
|
2095
|
-
import { usePromise as usePromise9 } from "@xylabs/react-promise";
|
|
2096
2096
|
var archivistConfig = {
|
|
2097
2097
|
url: "http://localhost:8080",
|
|
2098
2098
|
chainArchivistModuleId: "XYOPublic:XYOChain:Chain"
|