@xyo-network/react-chain-blockchain 1.16.10 → 1.16.12
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 +1 -1
- package/dist/browser/components/account/BalanceHistoryFlexbox.d.ts.map +1 -1
- package/dist/browser/components/account/table/RawAmountTableCell.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/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 -6
- package/dist/browser/hooks/chain-iterator/useChainIteratorParams.d.ts.map +1 -1
- package/dist/browser/index.mjs +27 -32
- 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 +28 -33
- package/src/components/account/BalanceHistoryFlexbox.stories.tsx +1 -1
- package/src/components/account/BalanceHistoryFlexbox.tsx +2 -2
- package/src/components/account/table/BalanceHistoryTable.stories.tsx +1 -1
- package/src/components/account/table/BalanceHistoryTable.tsx +1 -1
- package/src/components/account/table/RawAmountTableCell.tsx +1 -2
- 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/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/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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getChainId.d.ts","sourceRoot":"","sources":["../../../src/lib/getChainId.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"getChainId.d.ts","sourceRoot":"","sources":["../../../src/lib/getChainId.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAKzD,eAAO,MAAM,UAAU,QAAO,UAAU,CAAC,OAAO,CAE/C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainInfoContextDecorator.d.ts","sourceRoot":"","sources":["../../../src/stories/ChainInfoContextDecorator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"ChainInfoContextDecorator.d.ts","sourceRoot":"","sources":["../../../src/stories/ChainInfoContextDecorator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAoBtD,eAAO,MAAM,yBAAyB,EAAE,SA2BvC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockComponentProps.d.ts","sourceRoot":"","sources":["../../../src/types/BlockComponentProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"BlockComponentProps.d.ts","sourceRoot":"","sources":["../../../src/types/BlockComponentProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAE9D,8DAA8D;AAC9D,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,aAAa,CAAA;IACpB,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED,gFAAgF;AAChF,MAAM,WAAW,0BAA2B,SAAQ,mBAAmB;IACrE,YAAY,EAAE,IAAI,EAAE,CAAA;CACrB"}
|
|
@@ -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';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockChainRenderProps.d.ts","sourceRoot":"","sources":["../../../../src/types/render/BlockChainRenderProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"BlockChainRenderProps.d.ts","sourceRoot":"","sources":["../../../../src/types/render/BlockChainRenderProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC1E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAEnE,iEAAiE;AACjE,MAAM,WAAW,WAAW;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,sDAAsD;AACtD,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,cAAc,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,CAAA;IACnD,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,IAAI,EAAE,aAAa,CAAA;CACpB;AAED,uCAAuC;AACvC,MAAM,WAAW,qBAAsB,SAAQ,kBAAkB,EAAE,WAAW;CAE7E;AAED,gFAAgF;AAChF,MAAM,WAAW,yBAAyB;IACxC,qBAAqB,CAAC,EAAE,qBAAqB,CAAA;IAC7C,KAAK,CAAC,EAAE,KAAK,CAAA;CACd"}
|
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.16.
|
|
4
|
+
"version": "1.16.12",
|
|
5
5
|
"description": "XYO Layer One React SDK Blockchain",
|
|
6
6
|
"homepage": "https://xylabs.com",
|
|
7
7
|
"bugs": {
|
|
@@ -45,13 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@storybook/react-vite": "~10.0.7",
|
|
48
|
-
"@xylabs/
|
|
49
|
-
"@xylabs/axios": "~5.0.25",
|
|
50
|
-
"@xylabs/delay": "~5.0.25",
|
|
51
|
-
"@xylabs/eth-address": "~5.0.25",
|
|
52
|
-
"@xylabs/exists": "~5.0.25",
|
|
53
|
-
"@xylabs/hex": "~5.0.25",
|
|
54
|
-
"@xylabs/promise": "~5.0.25",
|
|
48
|
+
"@xylabs/axios": "~5.0.33",
|
|
55
49
|
"@xylabs/react-animation": "~7.1.8",
|
|
56
50
|
"@xylabs/react-error": "~7.1.8",
|
|
57
51
|
"@xylabs/react-flexbox": "~7.1.8",
|
|
@@ -59,25 +53,25 @@
|
|
|
59
53
|
"@xylabs/react-quick-tip-button": "~7.1.8",
|
|
60
54
|
"@xylabs/react-shared": "~7.1.8",
|
|
61
55
|
"@xylabs/react-theme": "~7.1.8",
|
|
62
|
-
"@xylabs/
|
|
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.16.
|
|
70
|
-
"@xyo-network/chain-protocol": "~1.16.
|
|
71
|
-
"@xyo-network/chain-services": "~1.16.
|
|
72
|
-
"@xyo-network/chain-utils": "~1.16.
|
|
73
|
-
"@xyo-network/chain-wrappers": "~1.16.
|
|
74
|
-
"@xyo-network/module-model": "~5.1.
|
|
75
|
-
"@xyo-network/payload-builder": "~5.1.
|
|
76
|
-
"@xyo-network/payload-model": "~5.1.
|
|
56
|
+
"@xylabs/sdk-js": "~5.0.33",
|
|
57
|
+
"@xyo-network/account": "~5.1.22",
|
|
58
|
+
"@xyo-network/archivist-memory": "~5.1.22",
|
|
59
|
+
"@xyo-network/archivist-model": "~5.1.22",
|
|
60
|
+
"@xyo-network/boundwitness-builder": "~5.1.22",
|
|
61
|
+
"@xyo-network/boundwitness-model": "~5.1.22",
|
|
62
|
+
"@xyo-network/bridge-http": "~5.1.22",
|
|
63
|
+
"@xyo-network/chain-analyze": "~1.16.12",
|
|
64
|
+
"@xyo-network/chain-protocol": "~1.16.12",
|
|
65
|
+
"@xyo-network/chain-services": "~1.16.12",
|
|
66
|
+
"@xyo-network/chain-utils": "~1.16.12",
|
|
67
|
+
"@xyo-network/chain-wrappers": "~1.16.12",
|
|
68
|
+
"@xyo-network/module-model": "~5.1.22",
|
|
69
|
+
"@xyo-network/payload-builder": "~5.1.22",
|
|
70
|
+
"@xyo-network/payload-model": "~5.1.22",
|
|
77
71
|
"@xyo-network/react-boundwitness-plugin": "~7.3.10",
|
|
78
|
-
"@xyo-network/react-chain-blockies": "~1.16.
|
|
79
|
-
"@xyo-network/react-chain-provider": "~1.16.
|
|
80
|
-
"@xyo-network/react-chain-shared": "~1.16.
|
|
72
|
+
"@xyo-network/react-chain-blockies": "~1.16.12",
|
|
73
|
+
"@xyo-network/react-chain-provider": "~1.16.12",
|
|
74
|
+
"@xyo-network/react-chain-shared": "~1.16.12",
|
|
81
75
|
"@xyo-network/react-error": "~7.3.10",
|
|
82
76
|
"@xyo-network/react-event": "~7.3.10",
|
|
83
77
|
"@xyo-network/react-payload-raw-info": "~7.3.10",
|
|
@@ -85,23 +79,23 @@
|
|
|
85
79
|
"@xyo-network/react-shared": "~7.3.10",
|
|
86
80
|
"@xyo-network/react-table": "~7.3.10",
|
|
87
81
|
"@xyo-network/xl1-protocol": "~1.13.11",
|
|
88
|
-
"@xyo-network/xl1-protocol-sdk": "~1.16.
|
|
82
|
+
"@xyo-network/xl1-protocol-sdk": "~1.16.12"
|
|
89
83
|
},
|
|
90
84
|
"devDependencies": {
|
|
91
85
|
"@emotion/react": "~11.14.0",
|
|
92
86
|
"@emotion/styled": "~11.14.1",
|
|
93
87
|
"@mui/icons-material": "~7.3.5",
|
|
94
88
|
"@mui/material": "~7.3.5",
|
|
95
|
-
"@types/react": "~19.2.
|
|
96
|
-
"@xylabs/
|
|
97
|
-
"@xylabs/hex": "~5.0.25",
|
|
89
|
+
"@types/react": "~19.2.5",
|
|
90
|
+
"@xylabs/sdk-js": "~5.0.33",
|
|
98
91
|
"@xylabs/ts-scripts-yarn3": "~7.2.8",
|
|
99
92
|
"@xylabs/tsconfig": "~7.2.8",
|
|
100
93
|
"@xylabs/tsconfig-dom": "~7.2.8",
|
|
101
94
|
"@xylabs/tsconfig-react": "~7.2.8",
|
|
102
|
-
"@xyo-network/api-models": "~5.1.
|
|
103
|
-
"@xyo-network/xl1-network-model": "~1.16.
|
|
104
|
-
"@xyo-network/xl1-rpc": "~1.16.
|
|
95
|
+
"@xyo-network/api-models": "~5.1.22",
|
|
96
|
+
"@xyo-network/xl1-network-model": "~1.16.12",
|
|
97
|
+
"@xyo-network/xl1-rpc": "~1.16.12",
|
|
98
|
+
"axios": "^1.13.2",
|
|
105
99
|
"eslint": "^9.39.1",
|
|
106
100
|
"react": "~19.2.0",
|
|
107
101
|
"react-dom": "~19.2.0",
|
|
@@ -114,6 +108,7 @@
|
|
|
114
108
|
"@emotion/styled": "~11",
|
|
115
109
|
"@mui/icons-material": ">=6 <8",
|
|
116
110
|
"@mui/material": ">=6 <8",
|
|
111
|
+
"axios": "^1",
|
|
117
112
|
"react": "~19",
|
|
118
113
|
"react-dom": "~19",
|
|
119
114
|
"react-router-dom": "^7"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryFn } from '@storybook/react-vite'
|
|
2
|
-
import type { Address } from '@xylabs/
|
|
2
|
+
import type { Address } from '@xylabs/sdk-js'
|
|
3
3
|
import { useHttpRpcViewer } from '@xyo-network/react-chain-provider'
|
|
4
4
|
import { LocalNetwork } from '@xyo-network/xl1-network-model'
|
|
5
5
|
import React from 'react'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Typography } from '@mui/material'
|
|
2
|
-
import { type Address } from '@xylabs/hex'
|
|
3
2
|
import type { FlexBoxProps } from '@xylabs/react-flexbox'
|
|
4
3
|
import { FlexCol } from '@xylabs/react-flexbox'
|
|
5
|
-
import {
|
|
4
|
+
import { type Address } from '@xylabs/sdk-js'
|
|
5
|
+
import { isDefined } from '@xylabs/sdk-js'
|
|
6
6
|
import { useAccountBalanceHistory } from '@xyo-network/react-chain-provider'
|
|
7
7
|
import { ErrorRender } from '@xyo-network/react-error'
|
|
8
8
|
import { AttoXL1, XL1Amount } from '@xyo-network/xl1-protocol'
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
Alert, AlertTitle, LinearProgress, Snackbar,
|
|
3
3
|
} from '@mui/material'
|
|
4
4
|
import type { Meta, StoryFn } from '@storybook/react-vite'
|
|
5
|
-
import type { Address } from '@xylabs/
|
|
5
|
+
import type { Address } from '@xylabs/sdk-js'
|
|
6
6
|
import { useAccountBalanceHistory, useHttpRpcViewer } from '@xyo-network/react-chain-provider'
|
|
7
7
|
import { ErrorRender } from '@xyo-network/react-error'
|
|
8
8
|
import type { Event } from '@xyo-network/react-event'
|
|
@@ -2,7 +2,7 @@ import type { TableProps } from '@mui/material'
|
|
|
2
2
|
import {
|
|
3
3
|
Table, TableBody, TableCell, TableHead, TableRow,
|
|
4
4
|
} from '@mui/material'
|
|
5
|
-
import { isDefined } from '@xylabs/
|
|
5
|
+
import { isDefined } from '@xylabs/sdk-js'
|
|
6
6
|
import type { AccountBalanceHistoryItemFormatted } from '@xyo-network/react-chain-provider'
|
|
7
7
|
import React from 'react'
|
|
8
8
|
|
|
@@ -2,8 +2,7 @@ import {
|
|
|
2
2
|
Link,
|
|
3
3
|
TableCell, type TableCellProps, Tooltip,
|
|
4
4
|
} from '@mui/material'
|
|
5
|
-
import { toHex } from '@xylabs/
|
|
6
|
-
import { isDefined } from '@xylabs/typeof'
|
|
5
|
+
import { isDefined, toHex } from '@xylabs/sdk-js'
|
|
7
6
|
import type { BalanceTransactionType } from '@xyo-network/react-chain-provider'
|
|
8
7
|
import { useEvent } from '@xyo-network/react-event'
|
|
9
8
|
import { XL1Amount } from '@xyo-network/xl1-protocol'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Hash } from '@xylabs/hex'
|
|
2
1
|
import { FlexCol, FlexRow } from '@xylabs/react-flexbox'
|
|
2
|
+
import type { Hash } from '@xylabs/sdk-js'
|
|
3
3
|
import { BWVerification, HashHeadingPaper } from '@xyo-network/react-boundwitness-plugin'
|
|
4
4
|
import { usePayloadHash } from '@xyo-network/react-shared'
|
|
5
5
|
import React from 'react'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ChipProps } from '@mui/material'
|
|
2
2
|
import { Chip } from '@mui/material'
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import {
|
|
4
|
+
EthAddressWrapper, isString, isUndefined, toAddress,
|
|
5
|
+
} from '@xylabs/sdk-js'
|
|
6
6
|
import { BlockiesAvatar } from '@xyo-network/react-chain-blockies'
|
|
7
7
|
import type { HydratedBlock } from '@xyo-network/xl1-protocol'
|
|
8
8
|
import React, { useMemo } from 'react'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { usePromise } from '@xylabs/react-promise'
|
|
2
|
-
import { isDefined } from '@xylabs/
|
|
2
|
+
import { isDefined } from '@xylabs/sdk-js'
|
|
3
3
|
import type { XyoChainIteratorParams } from '@xyo-network/chain-services'
|
|
4
4
|
import type { HydratedBlock } from '@xyo-network/xl1-protocol'
|
|
5
5
|
import type { ComponentType } from 'react'
|
|
@@ -3,9 +3,8 @@ import {
|
|
|
3
3
|
Button,
|
|
4
4
|
Dialog, DialogActions, DialogContent, DialogTitle, IconButton, TableCell,
|
|
5
5
|
} from '@mui/material'
|
|
6
|
-
import { ellipsize } from '@xylabs/eth-address'
|
|
7
|
-
import { isHash } from '@xylabs/hex'
|
|
8
6
|
import { FlexRow } from '@xylabs/react-flexbox'
|
|
7
|
+
import { ellipsize, isHash } from '@xylabs/sdk-js'
|
|
9
8
|
import { JsonViewerEx } from '@xyo-network/react-payload-raw-info'
|
|
10
9
|
import { usePayloadRootHash } from '@xyo-network/react-shared'
|
|
11
10
|
import React, { useState } from 'react'
|
|
@@ -2,7 +2,7 @@ import { Error } from '@mui/icons-material'
|
|
|
2
2
|
import {
|
|
3
3
|
Link, TableCell, Tooltip,
|
|
4
4
|
} from '@mui/material'
|
|
5
|
-
import type { Hash } from '@xylabs/
|
|
5
|
+
import type { Hash } from '@xylabs/sdk-js'
|
|
6
6
|
import React from 'react'
|
|
7
7
|
|
|
8
8
|
import { usePayloadCountsFromBlock } from '../../hooks/index.ts'
|
|
@@ -2,7 +2,7 @@ import { Error } from '@mui/icons-material'
|
|
|
2
2
|
import {
|
|
3
3
|
Link, TableCell, Tooltip,
|
|
4
4
|
} from '@mui/material'
|
|
5
|
-
import type { Hash } from '@xylabs/
|
|
5
|
+
import type { Hash } from '@xylabs/sdk-js'
|
|
6
6
|
import React, { useMemo } from 'react'
|
|
7
7
|
|
|
8
8
|
import { useTxsFromBlock } from '../../../../hooks/index.ts'
|
|
@@ -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'
|
|
@@ -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'
|
|
@@ -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'
|