Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d91c334cf8 | |||
| bce93ce3cd |
@@ -1,5 +1,12 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [0.24.1](https://github.com/ethersphere/bee-dashboard/compare/v0.24.0...v0.24.1) (2023-10-18)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* update `swap-endpoint` to `blockchain-rpc-endpoint` ([#628](https://github.com/ethersphere/bee-dashboard/issues/628)) ([bce93ce](https://github.com/ethersphere/bee-dashboard/commit/bce93ce3cdc1ef4b1f50fcf274591ba00726be16))
|
||||||
|
|
||||||
## [0.24.0](https://github.com/ethersphere/bee-dashboard/compare/v0.23.0...v0.24.0) (2023-08-11)
|
## [0.24.0](https://github.com/ethersphere/bee-dashboard/compare/v0.23.0...v0.24.0) (2023-08-11)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@ethersphere/bee-dashboard",
|
"name": "@ethersphere/bee-dashboard",
|
||||||
"version": "0.24.0",
|
"version": "0.24.1",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@ethersphere/bee-dashboard",
|
"name": "@ethersphere/bee-dashboard",
|
||||||
"version": "0.24.0",
|
"version": "0.24.1",
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ethersphere/bee-js": "^6.2.0",
|
"@ethersphere/bee-js": "^6.2.0",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ethersphere/bee-dashboard",
|
"name": "@ethersphere/bee-dashboard",
|
||||||
"version": "0.24.0",
|
"version": "0.24.1",
|
||||||
"description": "An app which helps users to setup their Bee node and do actions like cash out cheques",
|
"description": "An app which helps users to setup their Bee node and do actions like cash out cheques",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"bee",
|
"bee",
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export default function SettingsPage(): ReactElement {
|
|||||||
try {
|
try {
|
||||||
setAndPersistJsonRpcProvider(value)
|
setAndPersistJsonRpcProvider(value)
|
||||||
|
|
||||||
const shouldUpdateDesktop = isDesktop && (await getDesktopConfiguration(desktopUrl))['swap-endpoint']
|
const shouldUpdateDesktop = isDesktop && (await getDesktopConfiguration(desktopUrl))['blockchain-rpc-endpoint']
|
||||||
|
|
||||||
if (shouldUpdateDesktop) {
|
if (shouldUpdateDesktop) {
|
||||||
await setJsonRpcInDesktop(desktopUrl, value)
|
await setJsonRpcInDesktop(desktopUrl, value)
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ export default function EthereumConnectionCheck(): ReactElement | null {
|
|||||||
Getblock
|
Getblock
|
||||||
</a>
|
</a>
|
||||||
. By default, Bee expects a local node at http://localhost:8545. To use a provider instead, simply change
|
. By default, Bee expects a local node at http://localhost:8545. To use a provider instead, simply change
|
||||||
the <strong>swap-endpoint</strong> in your configuration file.
|
the <strong>blockchain-rpc-endpoint</strong> in your configuration file.
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</ExpandableListItemNote>
|
</ExpandableListItemNote>
|
||||||
|
|||||||
@@ -162,12 +162,12 @@ export function Swap({ header }: Props): ReactElement {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!desktopConfiguration['swap-endpoint']) {
|
if (!desktopConfiguration['blockchain-rpc-endpoint']) {
|
||||||
throw new SwapError('Swap endpoint is not configured in Swarm Desktop')
|
throw new SwapError('Blockchain RPC endpoint is not configured in Swarm Desktop')
|
||||||
}
|
}
|
||||||
await wrapWithSwapError(
|
await wrapWithSwapError(
|
||||||
Rpc.getNetworkChainId(desktopConfiguration['swap-endpoint']),
|
Rpc.getNetworkChainId(desktopConfiguration['blockchain-rpc-endpoint']),
|
||||||
`Swap endpoint not reachable at ${desktopConfiguration['swap-endpoint']}`,
|
`Blockchain RPC endpoint not reachable at ${desktopConfiguration['blockchain-rpc-endpoint']}`,
|
||||||
)
|
)
|
||||||
await wrapWithSwapError(sendSwapRequest(daiToSwap), GENERIC_SWAP_FAILED_ERROR_MESSAGE)
|
await wrapWithSwapError(sendSwapRequest(daiToSwap), GENERIC_SWAP_FAILED_ERROR_MESSAGE)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ export interface BeeConfig {
|
|||||||
'resolver-options': string
|
'resolver-options': string
|
||||||
'use-postage-snapshot': boolean
|
'use-postage-snapshot': boolean
|
||||||
'data-dir': string
|
'data-dir': string
|
||||||
'swap-endpoint'?: string
|
'blockchain-rpc-endpoint'?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function getBzzPriceAsDai(desktopUrl: string): Promise<Token> {
|
export async function getBzzPriceAsDai(desktopUrl: string): Promise<Token> {
|
||||||
@@ -29,13 +29,13 @@ export async function getBzzPriceAsDai(desktopUrl: string): Promise<Token> {
|
|||||||
export function upgradeToLightNode(desktopUrl: string, rpcProvider: string): Promise<BeeConfig> {
|
export function upgradeToLightNode(desktopUrl: string, rpcProvider: string): Promise<BeeConfig> {
|
||||||
return updateDesktopConfiguration(desktopUrl, {
|
return updateDesktopConfiguration(desktopUrl, {
|
||||||
'swap-enable': true,
|
'swap-enable': true,
|
||||||
'swap-endpoint': rpcProvider,
|
'blockchain-rpc-endpoint': rpcProvider,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function setJsonRpcInDesktop(desktopUrl: string, value: string): Promise<void> {
|
export async function setJsonRpcInDesktop(desktopUrl: string, value: string): Promise<void> {
|
||||||
await updateDesktopConfiguration(desktopUrl, {
|
await updateDesktopConfiguration(desktopUrl, {
|
||||||
'swap-endpoint': value,
|
'blockchain-rpc-endpoint': value,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user