@xyo-network/react-chain-blockchain 1.16.9 → 1.16.11
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/account/BalanceHistoryFlexbox.d.ts +11 -0
- package/dist/browser/components/account/BalanceHistoryFlexbox.d.ts.map +1 -0
- package/dist/browser/components/account/BalanceHistoryFlexbox.stories.d.ts +6 -0
- package/dist/browser/components/account/BalanceHistoryFlexbox.stories.d.ts.map +1 -0
- package/dist/browser/components/account/index.d.ts +3 -0
- package/dist/browser/components/account/index.d.ts.map +1 -0
- package/dist/browser/components/account/table/AddressTableCell.d.ts +8 -0
- package/dist/browser/components/account/table/AddressTableCell.d.ts.map +1 -0
- package/dist/browser/components/account/table/BalanceHistoryTable.d.ts +9 -0
- package/dist/browser/components/account/table/BalanceHistoryTable.d.ts.map +1 -0
- package/dist/browser/components/account/table/BalanceHistoryTable.stories.d.ts +7 -0
- package/dist/browser/components/account/table/BalanceHistoryTable.stories.d.ts.map +1 -0
- package/dist/browser/components/account/table/BalanceHistoryTableRow.d.ts +8 -0
- package/dist/browser/components/account/table/BalanceHistoryTableRow.d.ts.map +1 -0
- package/dist/browser/components/account/table/RawAmountTableCell.d.ts +9 -0
- package/dist/browser/components/account/table/RawAmountTableCell.d.ts.map +1 -0
- package/dist/browser/components/account/table/index.d.ts +5 -0
- package/dist/browser/components/account/table/index.d.ts.map +1 -0
- package/dist/browser/components/account/table/types/index.d.ts +9 -0
- package/dist/browser/components/account/table/types/index.d.ts.map +1 -0
- package/dist/browser/components/block/helpers/blockProducer.d.ts +1 -3
- package/dist/browser/components/block/helpers/blockProducer.d.ts.map +1 -1
- package/dist/browser/components/block/hooks/useBlockProducer.d.ts +1 -3
- package/dist/browser/components/block/hooks/useBlockProducer.d.ts.map +1 -1
- package/dist/browser/components/block/table/cell/BlockNumber.d.ts +1 -0
- package/dist/browser/components/block/table/cell/BlockNumber.d.ts.map +1 -1
- package/dist/browser/components/block/table/cell/JsonView.d.ts.map +1 -1
- package/dist/browser/components/block/table/cell/PayloadCounts.d.ts +1 -1
- package/dist/browser/components/block/table/cell/PayloadCounts.d.ts.map +1 -1
- package/dist/browser/components/block/table/cell/TransactionCount.d.ts +1 -1
- package/dist/browser/components/block/table/cell/TransactionCount.d.ts.map +1 -1
- package/dist/browser/components/index.d.ts +1 -0
- package/dist/browser/components/index.d.ts.map +1 -1
- package/dist/browser/components/payload/builder/transfer/Transfer.d.ts +1 -1
- package/dist/browser/components/payload/builder/transfer/Transfer.d.ts.map +1 -1
- package/dist/browser/components/payload/builder/transfer/builder/SingleFlexbox.d.ts.map +1 -1
- package/dist/browser/components/payload/fields/XyoAddressTextField.d.ts +1 -1
- package/dist/browser/components/payload/fields/XyoAddressTextField.d.ts.map +1 -1
- package/dist/browser/components/transactions/TransactionCountChip.d.ts +1 -1
- package/dist/browser/components/transactions/TransactionCountChip.d.ts.map +1 -1
- package/dist/browser/components/transactions/TransactionsQuickTipButton.d.ts.map +1 -1
- package/dist/browser/components/transactions/submit/SubmitChain.d.ts.map +1 -1
- package/dist/browser/hooks/chain-iterator/useChainIteratorParams.d.ts +6 -12
- package/dist/browser/hooks/chain-iterator/useChainIteratorParams.d.ts.map +1 -1
- package/dist/browser/index.mjs +475 -293
- package/dist/browser/index.mjs.map +1 -1
- package/dist/browser/lib/getChainId.d.ts +1 -2
- package/dist/browser/lib/getChainId.d.ts.map +1 -1
- package/dist/browser/stories/ChainInfoContextDecorator.d.ts.map +1 -1
- package/dist/browser/types/BlockComponentProps.d.ts +1 -1
- package/dist/browser/types/BlockComponentProps.d.ts.map +1 -1
- package/dist/browser/types/render/BlockChainRenderProps.d.ts +1 -2
- package/dist/browser/types/render/BlockChainRenderProps.d.ts.map +1 -1
- package/package.json +31 -32
- package/src/components/account/BalanceHistoryFlexbox.stories.tsx +25 -0
- package/src/components/account/BalanceHistoryFlexbox.tsx +65 -0
- package/src/components/account/index.ts +2 -0
- package/src/components/account/table/AddressTableCell.tsx +25 -0
- package/src/components/account/table/BalanceHistoryTable.stories.tsx +75 -0
- package/src/components/account/table/BalanceHistoryTable.tsx +36 -0
- package/src/components/account/table/BalanceHistoryTableRow.tsx +41 -0
- package/src/components/account/table/RawAmountTableCell.tsx +52 -0
- package/src/components/account/table/index.ts +4 -0
- package/src/components/account/table/types/index.ts +17 -0
- package/src/components/block/BlockHeadingFlexbox.tsx +1 -1
- package/src/components/block/ProducerChip.tsx +3 -3
- package/src/components/block/hooks/useStaticBlockComponents.ts +1 -1
- package/src/components/block/table/Ex.stories.tsx +1 -1
- package/src/components/block/table/cell/BlockNumber.tsx +8 -3
- package/src/components/block/table/cell/Epoch.tsx +1 -1
- package/src/components/block/table/cell/Hash.tsx +1 -1
- package/src/components/block/table/cell/JsonView.tsx +1 -2
- package/src/components/block/table/cell/PayloadCounts.tsx +1 -1
- package/src/components/block/table/cell/TransactionCount.tsx +1 -1
- package/src/components/chain/render/static/flexbox/Flexbox.stories.tsx +1 -1
- package/src/components/chain/render/static/flexbox/variants/WithAnalysis.tsx +1 -1
- package/src/components/chain/render/static/hooks/useStaticBlockRenderComponents.ts +2 -2
- package/src/components/chain/render/static/table/Ex.stories.tsx +1 -1
- package/src/components/index.ts +1 -0
- package/src/components/payload/builder/producer-intent/Form.tsx +1 -1
- package/src/components/payload/builder/transfer/Form.tsx +2 -2
- package/src/components/payload/builder/transfer/Transfer.ts +1 -1
- package/src/components/payload/builder/transfer/builder/SingleFlexbox.tsx +2 -2
- package/src/components/payload/fields/XyoAddressTextField.tsx +2 -2
- package/src/components/transactions/TransactionCountChip.tsx +1 -1
- package/src/components/transactions/TransactionsQuickTipButton.tsx +1 -1
- package/src/components/transactions/submit/Builder.tsx +1 -1
- package/src/components/transactions/submit/SubmitChain.tsx +6 -2
- package/src/context/analyzer/Provider.tsx +1 -1
- package/src/hooks/chain-iterator/ChainIteratorStore.ts +1 -1
- package/src/hooks/chain-iterator/useChainIteratorParams.ts +2 -3
- package/src/hooks/chain-iterator/useChainIteratorUpdatingHead.ts +1 -1
- package/src/hooks/useIterateChain.ts +1 -1
- package/src/lib/getChainArchivist.ts +1 -1
- package/src/lib/getChainId.ts +2 -2
- package/src/stories/ChainArchivistDelayedInsertDecorator.tsx +1 -1
- package/src/stories/ChainInfoContextDecorator.tsx +1 -2
- package/src/types/BlockComponentProps.ts +1 -1
- package/src/types/render/BlockChainRenderProps.ts +1 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { CreatableName } from '@xylabs/
|
|
2
|
-
import { exists } from '@xylabs/
|
|
1
|
+
import type { CreatableName } from '@xylabs/sdk-js'
|
|
2
|
+
import { exists } from '@xylabs/sdk-js'
|
|
3
3
|
import type { ComponentType } from 'react'
|
|
4
4
|
import { useMemo } from 'react'
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryFn } from '@storybook/react-vite'
|
|
2
|
-
import type { CreatableName } from '@xylabs/
|
|
2
|
+
import type { CreatableName } from '@xylabs/sdk-js'
|
|
3
3
|
import React from 'react'
|
|
4
4
|
|
|
5
5
|
import { ChainArchivistDecorator } from '../../../../../stories/index.ts'
|
package/src/components/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Button, FormControl } from '@mui/material'
|
|
2
|
-
import type { Address } from '@xylabs/
|
|
2
|
+
import type { Address } from '@xylabs/sdk-js'
|
|
3
3
|
import { createProducerChainStakeIntent } from '@xyo-network/chain-protocol'
|
|
4
4
|
import type { ChainStakeIntent } from '@xyo-network/xl1-protocol'
|
|
5
5
|
import type { MouseEventHandler } from 'react'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Button, FormControl } from '@mui/material'
|
|
2
|
-
import type { Address, Hex } from '@xylabs/
|
|
3
|
-
import { isAddress } from '@xylabs/
|
|
2
|
+
import type { Address, Hex } from '@xylabs/sdk-js'
|
|
3
|
+
import { isAddress } from '@xylabs/sdk-js'
|
|
4
4
|
import type { Transfer } from '@xyo-network/xl1-protocol'
|
|
5
5
|
import { TransferSchema } from '@xyo-network/xl1-protocol'
|
|
6
6
|
import type { MouseEventHandler } from 'react'
|
|
@@ -2,10 +2,10 @@ import { RemoveCircle } from '@mui/icons-material'
|
|
|
2
2
|
import {
|
|
3
3
|
FormControl, Icon, IconButton,
|
|
4
4
|
} from '@mui/material'
|
|
5
|
-
import type { Address } from '@xylabs/hex'
|
|
6
|
-
import { isAddress, toHex } from '@xylabs/hex'
|
|
7
5
|
import type { FlexBoxProps } from '@xylabs/react-flexbox'
|
|
8
6
|
import { FlexRow } from '@xylabs/react-flexbox'
|
|
7
|
+
import type { Address } from '@xylabs/sdk-js'
|
|
8
|
+
import { isAddress, toHex } from '@xylabs/sdk-js'
|
|
9
9
|
import { BigIntInput } from '@xyo-network/react-shared'
|
|
10
10
|
import React, {
|
|
11
11
|
useEffect, useMemo, useState,
|
|
@@ -2,8 +2,8 @@ import type { StandardTextFieldProps } from '@mui/material'
|
|
|
2
2
|
import {
|
|
3
3
|
FormControl, FormHelperText, TextField,
|
|
4
4
|
} from '@mui/material'
|
|
5
|
-
import type { Address } from '@xylabs/
|
|
6
|
-
import { asAddress, isAddress } from '@xylabs/
|
|
5
|
+
import type { Address } from '@xylabs/sdk-js'
|
|
6
|
+
import { asAddress, isAddress } from '@xylabs/sdk-js'
|
|
7
7
|
import React, { useMemo, useState } from 'react'
|
|
8
8
|
|
|
9
9
|
interface XyoAddressTextFieldProps extends Omit<StandardTextFieldProps, 'value'> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import CompareArrowsIcon from '@mui/icons-material/CompareArrows'
|
|
2
2
|
import type { ChipProps } from '@mui/material'
|
|
3
3
|
import { Chip, Icon } from '@mui/material'
|
|
4
|
-
import type { Hash } from '@xylabs/
|
|
4
|
+
import type { Hash } from '@xylabs/sdk-js'
|
|
5
5
|
import React, { useMemo } from 'react'
|
|
6
6
|
|
|
7
7
|
export interface TransactionCountChipProps extends ChipProps {
|
|
@@ -2,13 +2,13 @@ import { ContentCopy as ContentCopyIcon, Paid } from '@mui/icons-material'
|
|
|
2
2
|
import {
|
|
3
3
|
Alert, AlertTitle, Collapse, Snackbar, Typography,
|
|
4
4
|
} from '@mui/material'
|
|
5
|
-
import type { Hash } from '@xylabs/hex'
|
|
6
5
|
import { ErrorRender } from '@xylabs/react-error'
|
|
7
6
|
import {
|
|
8
7
|
FlexGrowCol, FlexGrowRow, FlexRow,
|
|
9
8
|
} from '@xylabs/react-flexbox'
|
|
10
9
|
import type { QuickTipButtonProps } from '@xylabs/react-quick-tip-button'
|
|
11
10
|
import { QuickTipButton } from '@xylabs/react-quick-tip-button'
|
|
11
|
+
import type { Hash } from '@xylabs/sdk-js'
|
|
12
12
|
import type { HydratedBlock } from '@xyo-network/xl1-protocol'
|
|
13
13
|
import React, {
|
|
14
14
|
Fragment, useMemo, useState,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Button, FormControl, TextField,
|
|
3
3
|
} from '@mui/material'
|
|
4
|
-
import { toHex } from '@xylabs/hex'
|
|
5
4
|
import { FlexCol } from '@xylabs/react-flexbox'
|
|
5
|
+
import { toHex } from '@xylabs/sdk-js'
|
|
6
6
|
import type { ChainId, TransactionBoundWitnessFields } from '@xyo-network/xl1-protocol'
|
|
7
7
|
import { defaultTransactionFees } from '@xyo-network/xl1-protocol'
|
|
8
8
|
import React from 'react'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Alert, Grid, Typography,
|
|
3
3
|
} from '@mui/material'
|
|
4
|
-
import {
|
|
4
|
+
import { AxiosJson } from '@xylabs/axios'
|
|
5
5
|
import { ErrorRender } from '@xylabs/react-error'
|
|
6
6
|
import { FlexGrowCol } from '@xylabs/react-flexbox'
|
|
7
7
|
import { Account } from '@xyo-network/account'
|
|
@@ -13,6 +13,7 @@ import { PayloadBuilder } from '@xyo-network/payload-builder'
|
|
|
13
13
|
import type { Payload } from '@xyo-network/payload-model'
|
|
14
14
|
import type { TransactionBoundWitnessFields } from '@xyo-network/xl1-protocol'
|
|
15
15
|
import { buildTransaction } from '@xyo-network/xl1-protocol-sdk'
|
|
16
|
+
import { Axios } from 'axios'
|
|
16
17
|
import React, { useState } from 'react'
|
|
17
18
|
|
|
18
19
|
import { ChainTransactionBuilder } from './Builder.tsx'
|
|
@@ -45,7 +46,10 @@ export const SubmitChainTransaction: React.FC = () => {
|
|
|
45
46
|
.signer(randomAccount)
|
|
46
47
|
.build()
|
|
47
48
|
|
|
48
|
-
const response = await
|
|
49
|
+
const response = await new Axios(AxiosJson.axiosConfig()).post<ApiEnvelope<ModuleQueryResult>>(
|
|
50
|
+
network.href,
|
|
51
|
+
[queryBoundWitness, [insertQuery, transactionBoundWitness, chainTx]],
|
|
52
|
+
)
|
|
49
53
|
if (response.data.errors.length > 0) {
|
|
50
54
|
setError(new Error(response.data.errors.map(e => e.message).join('\n')))
|
|
51
55
|
} else {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { assertEx } from '@xylabs/
|
|
1
|
+
import { assertEx } from '@xylabs/sdk-js'
|
|
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'
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { assertEx } from '@xylabs/assert'
|
|
2
|
-
import { type Hash, isHash } from '@xylabs/hex'
|
|
3
1
|
import { usePromise } from '@xylabs/react-promise'
|
|
4
|
-
import {
|
|
2
|
+
import { type Hash, isHash } from '@xylabs/sdk-js'
|
|
3
|
+
import { assertEx, isDefined } from '@xylabs/sdk-js'
|
|
5
4
|
import type { ReadArchivist } from '@xyo-network/archivist-model'
|
|
6
5
|
import { BoundWitnessBuilder } from '@xyo-network/boundwitness-builder'
|
|
7
6
|
import type { BlockBoundWitness } from '@xyo-network/xl1-protocol'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { toHex } from '@xylabs/
|
|
1
|
+
import { toHex } from '@xylabs/sdk-js'
|
|
2
2
|
import type { ArchivistInstance } from '@xyo-network/archivist-model'
|
|
3
3
|
import { findMostRecentBlock } from '@xyo-network/chain-protocol'
|
|
4
4
|
import type { ChainBlockNumberIteratorService } from '@xyo-network/xl1-protocol-sdk'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { assertEx } from '@xylabs/assert'
|
|
2
1
|
import { usePromise } from '@xylabs/react-promise'
|
|
2
|
+
import { assertEx } from '@xylabs/sdk-js'
|
|
3
3
|
import type { XyoChainIteratorParams } from '@xyo-network/chain-services'
|
|
4
4
|
import { ChainBlockNumberIterationService } from '@xyo-network/chain-services'
|
|
5
5
|
import { PayloadBuilder } from '@xyo-network/payload-builder'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { assertEx } from '@xylabs/
|
|
1
|
+
import { assertEx } from '@xylabs/sdk-js'
|
|
2
2
|
import type { ArchivistInstance } from '@xyo-network/archivist-model'
|
|
3
3
|
import { asArchivistInstance } from '@xyo-network/archivist-model'
|
|
4
4
|
import type { HttpBridgeConfig } from '@xyo-network/bridge-http'
|
package/src/lib/getChainId.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import type { Address, Promisable } from '@xylabs/sdk-js'
|
|
2
|
+
import { toAddress } from '@xylabs/sdk-js'
|
|
3
3
|
|
|
4
4
|
const id = toAddress('ce080bf3043a40c6c8838c7e813c00ab53df1684')
|
|
5
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CircularProgress } from '@mui/material'
|
|
2
2
|
import type { Decorator } from '@storybook/react-vite'
|
|
3
|
-
import { delay } from '@xylabs/delay'
|
|
4
3
|
import { usePromise } from '@xylabs/react-promise'
|
|
4
|
+
import { delay } from '@xylabs/sdk-js'
|
|
5
5
|
import { MemoryArchivist } from '@xyo-network/archivist-memory'
|
|
6
6
|
import { ArchivistConfigSchema } from '@xyo-network/archivist-model'
|
|
7
7
|
import { buildRandomBlockChain } from '@xyo-network/react-chain-shared'
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { Decorator } from '@storybook/react-vite'
|
|
2
|
-
import { assertEx } from '@xylabs/assert'
|
|
3
2
|
import { usePromise } from '@xylabs/react-promise'
|
|
4
|
-
import { isDefined } from '@xylabs/
|
|
3
|
+
import { assertEx, isDefined } from '@xylabs/sdk-js'
|
|
5
4
|
import { ChainBlockNumberIterationService } from '@xyo-network/chain-services'
|
|
6
5
|
import { findFirstMatching } from '@xyo-network/chain-utils'
|
|
7
6
|
import type { Payload, WithStorageMeta } from '@xyo-network/payload-model'
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { CreatableName } from '@xylabs/
|
|
2
|
-
import type { Hash } from '@xylabs/hex'
|
|
1
|
+
import type { CreatableName, Hash } from '@xylabs/sdk-js'
|
|
3
2
|
import type { Payload, WithStorageMeta } from '@xyo-network/payload-model'
|
|
4
3
|
import type { ChainId } from '@xyo-network/xl1-protocol'
|
|
5
4
|
import type { PayloadMapRead } from '@xyo-network/xl1-protocol-sdk'
|