feat: add stamp dilute and topup (#619)

* feat: add stamp dilute and topup

* fix: remove any

* chore: bump bee-js

* chore: remove obsolete workaround
This commit is contained in:
Cafe137
2023-08-12 00:41:10 +02:00
committed by GitHub
parent c9c4e7d7d1
commit 055a3002b3
19 changed files with 546 additions and 486 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ import {
Peer,
Topology,
} from '@ethersphere/bee-js'
import { createContext, ReactChild, ReactElement, useContext, useEffect, useState } from 'react'
import { ReactChild, ReactElement, createContext, useContext, useEffect, useState } from 'react'
import semver from 'semver'
import PackageJson from '../../package.json'
import { useLatestBeeRelease } from '../hooks/apiHooks'
+4 -4
View File
@@ -1,8 +1,8 @@
import { Bee, BeeDebug } from '@ethersphere/bee-js'
import { providers } from 'ethers'
import { createContext, ReactNode, ReactElement, useEffect, useState } from 'react'
import { useGetBeeConfig } from '../hooks/apiHooks'
import { ReactElement, ReactNode, createContext, useEffect, useState } from 'react'
import { DEFAULT_BEE_API_HOST, DEFAULT_BEE_DEBUG_API_HOST, DEFAULT_RPC_URL } from '../constants'
import { useGetBeeConfig } from '../hooks/apiHooks'
const LocalStorageKeys = {
providerUrl: 'json-rpc-provider',
@@ -18,7 +18,7 @@ interface ContextInterface {
isDesktop: boolean
desktopUrl: string
rpcProviderUrl: string
rpcProvider: providers.JsonRpcProvider
rpcProvider: providers.JsonRpcProvider | null
cors: string | null
dataDir: string | null
ensResolver: string | null
@@ -42,7 +42,7 @@ const initialValues: ContextInterface = {
desktopUrl: window.location.origin,
setAndPersistJsonRpcProvider: async () => {}, // eslint-disable-line
rpcProviderUrl: '',
rpcProvider: new providers.JsonRpcProvider(''),
rpcProvider: null,
cors: null,
dataDir: null,
ensResolver: null,