feat: bee-js revamp (#690)

* chore: initial commit

* refactor: remove unnecessary wrappers

* style: add missing newline

* chore: bump bee-js

* chore: ignore any cast in fdp

* fix: remove cid import

* fix: make TextEncoder and TextDecoder available in jest

* refactor: dedupe stamp ttl second conversion

* refactor: use convenience methods from bee-js

* feat: update to bee-js for restored ens support

* fix: bump bee-js to get download fix

* fix: resolve feed before downloading reference

* fix: fix token displays

* fix: fix token input modal error message

* refactor: remove wallet balance provider

* chore: remove dead code

* refactor: upcoming bee js 0.15.0 (#692)

* chore: initial commit

* fix: do not break page when duration seconds is 0

* ci: remove cache

* chore: upgrade bee-js

* feat: bee-js and bee v2.6 compatibility

* chore: switch upcoming/bee-js to ethersphere/bee-js
This commit is contained in:
Cafe137
2025-07-16 17:10:14 +02:00
committed by GitHub
parent 082a8f52ef
commit 1249c0df71
62 changed files with 675 additions and 16303 deletions
+5 -5
View File
@@ -1,5 +1,5 @@
import { Utils } from '@ethersphere/bee-js'
import { Typography } from '@material-ui/core/'
import { EthAddress } from '@ethersphere/bee-js'
import { ReactElement } from 'react'
import Identicon from 'react-identicons'
import { BLOCKCHAIN_EXPLORER_URL } from '../constants'
@@ -8,7 +8,7 @@ import { Flex } from './Flex'
import QRCodeModal from './QRCodeModal'
interface Props {
address: string | undefined
address: EthAddress | undefined
hideBlockie?: boolean
transaction?: boolean
truncate?: boolean
@@ -21,7 +21,7 @@ export default function EthereumAddress(props: Props): ReactElement {
<Flex>
{props.hideBlockie ? null : (
<div style={{ paddingTop: '5px', marginRight: '10px' }}>
<Identicon size={20} string={Utils.capitalizeAddressERC55(props.address)} />
<Identicon size={20} string={props.address.toChecksum()} />
</div>
)}
<div>
@@ -45,8 +45,8 @@ export default function EthereumAddress(props: Props): ReactElement {
{props.address}
</a>
</div>
<QRCodeModal value={Utils.capitalizeAddressERC55(props.address)} label={'Ethereum Address'} />
<ClipboardCopy value={Utils.capitalizeAddressERC55(props.address)} />
<QRCodeModal value={props.address.toChecksum()} label={'Ethereum Address'} />
<ClipboardCopy value={props.address.toChecksum()} />
</Flex>
) : (
'-'