@xyo-network/react-chain-blockchain 1.20.14 → 1.20.15
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/table/types/index.d.ts +1 -1
- package/dist/browser/components/account/table/types/index.d.ts.map +1 -1
- package/dist/browser/index.mjs +3 -3
- package/dist/browser/index.mjs.map +1 -1
- package/package.json +8 -8
- package/src/components/account/table/BalanceHistoryTableRow.stories.tsx +1 -0
- package/src/components/account/table/BalanceHistoryTableRow.tsx +3 -3
- package/src/components/account/table/types/index.ts +1 -1
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.20.
|
|
4
|
+
"version": "1.20.15",
|
|
5
5
|
"description": "XYO Layer One React SDK Blockchain",
|
|
6
6
|
"homepage": "https://xylabs.com",
|
|
7
7
|
"bugs": {
|
|
@@ -56,13 +56,13 @@
|
|
|
56
56
|
"@xylabs/react-theme": "~7.1.17",
|
|
57
57
|
"@xylabs/sdk-js": "~5.0.90",
|
|
58
58
|
"@xyo-network/boundwitness-model": "~5.3.20",
|
|
59
|
-
"@xyo-network/chain-analyze": "~1.20.
|
|
60
|
-
"@xyo-network/chain-protocol": "~1.20.
|
|
61
|
-
"@xyo-network/chain-wrappers": "~1.20.
|
|
59
|
+
"@xyo-network/chain-analyze": "~1.20.15",
|
|
60
|
+
"@xyo-network/chain-protocol": "~1.20.15",
|
|
61
|
+
"@xyo-network/chain-wrappers": "~1.20.15",
|
|
62
62
|
"@xyo-network/react-boundwitness-plugin": "~7.5.8",
|
|
63
|
-
"@xyo-network/react-chain-blockies": "~1.20.
|
|
64
|
-
"@xyo-network/react-chain-provider": "~1.20.
|
|
65
|
-
"@xyo-network/react-chain-shared": "~1.20.
|
|
63
|
+
"@xyo-network/react-chain-blockies": "~1.20.15",
|
|
64
|
+
"@xyo-network/react-chain-provider": "~1.20.15",
|
|
65
|
+
"@xyo-network/react-chain-shared": "~1.20.15",
|
|
66
66
|
"@xyo-network/react-error": "~7.5.8",
|
|
67
67
|
"@xyo-network/react-event": "~7.5.8",
|
|
68
68
|
"@xyo-network/react-payload-raw-info": "~7.5.8",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"@xylabs/tsconfig-dom": "~7.5.11",
|
|
89
89
|
"@xylabs/tsconfig-react": "~7.5.11",
|
|
90
90
|
"@xyo-network/bridge-http": "~5.3.20",
|
|
91
|
-
"@xyo-network/react-chain-network": "~1.20.
|
|
91
|
+
"@xyo-network/react-chain-network": "~1.20.15",
|
|
92
92
|
"@xyo-network/sdk-js": "~5.3.20",
|
|
93
93
|
"@xyo-network/xl1-sdk": "~1.26.11",
|
|
94
94
|
"axios": "^1.13.6",
|
|
@@ -10,6 +10,7 @@ import { BalanceHistoryTableRow } from './BalanceHistoryTableRow.tsx'
|
|
|
10
10
|
const sampleRow: AccountBalanceHistoryItemFormatted = {
|
|
11
11
|
amount: 866_949_573_941_165_034_031n,
|
|
12
12
|
blockNumber: 652_126,
|
|
13
|
+
blockHash: 'abc123456789abcdef123456789abcdef123456789abcdef123456789abcdef' as Hash,
|
|
13
14
|
debug: undefined as unknown as AccountBalanceHistoryItem,
|
|
14
15
|
from: '626cfa5650444825a1633287a0b4bc8a55f54735' as Address,
|
|
15
16
|
key: 'a80ee574-1c52-46bc-a5df-bbd9b9b8082e',
|
|
@@ -28,14 +28,14 @@ export const BalanceHistoryTableRow: React.FC<BalanceHistoryTableRowProps> = ({
|
|
|
28
28
|
linked, row, ...props
|
|
29
29
|
}) => {
|
|
30
30
|
const {
|
|
31
|
-
amount, blockNumber, debug, from, key, timestamp, to, type, txHash, transferHash,
|
|
31
|
+
amount, blockHash, blockNumber, debug, from, key, timestamp, to, type, txHash, transferHash,
|
|
32
32
|
} = row ?? {} as AccountBalanceHistoryItemFormatted
|
|
33
33
|
|
|
34
34
|
const linkedTableCallProps = useMemo(() => ({ linked }), [linked])
|
|
35
35
|
const [ref, handleClick] = useLinkedBalanceHistoryItem()
|
|
36
36
|
|
|
37
|
-
const noun: BalanceHistoryEventNouns = isDefined(txHash) ? 'tx-hash|transfer-hash' : 'block-
|
|
38
|
-
const data = isDefined(txHash) ? `${txHash}|${transferHash}` : `${
|
|
37
|
+
const noun: BalanceHistoryEventNouns = isDefined(txHash) ? 'tx-hash|transfer-hash' : 'block-hash|transfer-hash'
|
|
38
|
+
const data = isDefined(txHash) ? `${txHash}|${transferHash}` : `${blockHash}|${transferHash}`
|
|
39
39
|
|
|
40
40
|
return (
|
|
41
41
|
<StyledLinkableTableRow
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AccountBalanceHistoryItemFormatted } from '@xyo-network/react-chain-provider'
|
|
2
2
|
import type { ExtendEventNoun } from '@xyo-network/react-event'
|
|
3
3
|
|
|
4
|
-
export type BalanceHistoryEventNouns = ExtendEventNoun<'from-address' | 'to-address' | 'amount' | 'block-number' | 'tx-hash' | 'transfer-hash' | 'tx-hash|transfer-hash' | 'block-
|
|
4
|
+
export type BalanceHistoryEventNouns = ExtendEventNoun<'from-address' | 'to-address' | 'amount' | 'block-number' | 'tx-hash' | 'transfer-hash' | 'tx-hash|transfer-hash' | 'block-hash|transfer-hash'>
|
|
5
5
|
|
|
6
6
|
export type TableHeadingLabels = 'Tx Hash' | 'BlockNumber' | 'Timestamp' | 'From' | 'To' | 'Amount' | 'Debug' | 'TransferHash'
|
|
7
7
|
export type TableHeadings = { [key in keyof AccountBalanceHistoryItemFormatted]: TableHeadingLabels }
|