@xyo-network/react-chain-blockchain 1.8.2 → 1.8.3

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/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.8.2",
4
+ "version": "1.8.3",
5
5
  "description": "XYO Layer One React SDK Blockchain",
6
6
  "homepage": "https://xylabs.com",
7
7
  "bugs": {
@@ -66,24 +66,24 @@
66
66
  "@xyo-network/boundwitness-builder": "^4.3.0",
67
67
  "@xyo-network/boundwitness-model": "^4.3.0",
68
68
  "@xyo-network/bridge-http": "^4.3.0",
69
- "@xyo-network/chain-analyze": "^1.8.2",
70
- "@xyo-network/chain-protocol": "^1.8.2",
71
- "@xyo-network/chain-services": "^1.8.2",
72
- "@xyo-network/chain-utils": "^1.8.2",
73
- "@xyo-network/chain-wrappers": "^1.8.2",
69
+ "@xyo-network/chain-analyze": "^1.8.3",
70
+ "@xyo-network/chain-protocol": "^1.8.3",
71
+ "@xyo-network/chain-services": "^1.8.3",
72
+ "@xyo-network/chain-utils": "^1.8.3",
73
+ "@xyo-network/chain-wrappers": "^1.8.3",
74
74
  "@xyo-network/module-model": "^4.3.0",
75
75
  "@xyo-network/payload-builder": "^4.3.0",
76
76
  "@xyo-network/payload-model": "^4.3.0",
77
77
  "@xyo-network/react-boundwitness-plugin": "^6.2.0",
78
- "@xyo-network/react-chain-blockies": "^1.8.2",
79
- "@xyo-network/react-chain-shared": "^1.8.2",
78
+ "@xyo-network/react-chain-blockies": "^1.8.3",
79
+ "@xyo-network/react-chain-shared": "^1.8.3",
80
80
  "@xyo-network/react-event": "^6.2.0",
81
81
  "@xyo-network/react-payload-raw-info": "^6.2.0",
82
82
  "@xyo-network/react-payload-table": "^6.2.0",
83
83
  "@xyo-network/react-shared": "^6.2.0",
84
84
  "@xyo-network/react-table": "^6.2.0",
85
85
  "@xyo-network/xl1-protocol": "^1.7.33",
86
- "@xyo-network/xl1-protocol-sdk": "^1.8.2"
86
+ "@xyo-network/xl1-protocol-sdk": "^1.8.3"
87
87
  },
88
88
  "devDependencies": {
89
89
  "@emotion/react": "^11.14.0",
@@ -1,6 +1,6 @@
1
1
  import type { ChipProps } from '@mui/material'
2
2
  import { Chip } from '@mui/material'
3
- import { EthAddress } from '@xylabs/eth-address'
3
+ import { EthAddressWrapper } from '@xylabs/eth-address'
4
4
  import { toAddress } from '@xylabs/hex'
5
5
  import { isString, isUndefined } from '@xylabs/typeof'
6
6
  import { BlockiesAvatar } from '@xyo-network/react-chain-blockies'
@@ -12,7 +12,7 @@ import { ChipSkeleton } from './ChipSkeleton.tsx'
12
12
  const formatProducerAddress = (address?: string): string | undefined => {
13
13
  if (isUndefined(address) || !isString(address)) return undefined
14
14
  const formattedAddress = toAddress(address)
15
- return EthAddress.parse(formattedAddress)?.toShortString(4)
15
+ return EthAddressWrapper.parse(formattedAddress)?.toShortString(4)
16
16
  }
17
17
 
18
18
  export interface BlockProducerChipProps extends ChipProps {
@@ -1,10 +1,10 @@
1
1
  import type { Address } from '@xylabs/hex'
2
2
  import type { ContextExState } from '@xylabs/react-shared'
3
3
  import type { ArchivistInstance } from '@xyo-network/archivist-model'
4
- import type { ChainBlockNumberIterator } from '@xyo-network/xl1-protocol'
4
+ import type { ChainBlockNumberIteratorService } from '@xyo-network/xl1-protocol'
5
5
 
6
6
  export type ChainInfoState = ContextExState<{
7
7
  chainArchivist?: ArchivistInstance
8
8
  chainId?: Address
9
- chainIterator?: ChainBlockNumberIterator
9
+ chainIterator?: ChainBlockNumberIteratorService
10
10
  }>
@@ -3,7 +3,7 @@ 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'
5
5
  import type {
6
- EventingChainBlockNumberIterator, HeadEventArgs,
6
+ EventingChainBlockNumberIteratorService, HeadEventArgs,
7
7
  HydratedBlock,
8
8
  } from '@xyo-network/xl1-protocol'
9
9
  import { hydrateBlock } from '@xyo-network/xl1-protocol-sdk'
@@ -13,12 +13,12 @@ export type Listener = (...args: Array<unknown>) => void
13
13
  export type ChainIteratorStoreValues = { chainIterator: ChainBlockNumberIterationService; error?: Error; head: HydratedBlock }
14
14
 
15
15
  export class ChainIteratorStore {
16
- private _chainIterator: EventingChainBlockNumberIterator | undefined
16
+ private _chainIterator: EventingChainBlockNumberIteratorService | undefined
17
17
  private _externalListeners: Listener[] = []
18
18
  private _internalUnsubscribes: WeakRef<() => void>[] = []
19
19
  private _values: ChainIteratorStoreValues | undefined
20
20
 
21
- get chainIterator(): EventingChainBlockNumberIterator {
21
+ get chainIterator(): EventingChainBlockNumberIteratorService {
22
22
  return assertEx(this._chainIterator, () => 'ChainIteratorStore has not been initialized')
23
23
  }
24
24
 
@@ -1,12 +1,12 @@
1
1
  import { toHex } from '@xylabs/hex'
2
2
  import type { ArchivistInstance } from '@xyo-network/archivist-model'
3
3
  import { findMostRecentBlock } from '@xyo-network/chain-protocol'
4
- import type { ChainBlockNumberIterator } from '@xyo-network/xl1-protocol'
4
+ import type { ChainBlockNumberIteratorService } from '@xyo-network/xl1-protocol'
5
5
  import { useEffect, useState } from 'react'
6
6
 
7
7
  export interface ChainIteratorUpdatingHeadParams {
8
8
  chainArchivist?: ArchivistInstance
9
- chainIterator?: ChainBlockNumberIterator
9
+ chainIterator?: ChainBlockNumberIteratorService
10
10
  interval?: number
11
11
  maxBlocks?: number
12
12
  }