From f8564e36371f75903d62562f7d800ba5645d6985 Mon Sep 17 00:00:00 2001 From: bee-worker <70210089+bee-worker@users.noreply.github.com> Date: Wed, 18 May 2022 13:07:15 +0200 Subject: [PATCH] chore: update to bee 1.6.0-6ceadd35 (#665) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Adam Uhlíř fix!: reserve state update (#675) --- package.json | 6 +++--- src/modules/debug/status.ts | 6 +++--- src/types/debug.ts | 4 +--- test/integration/modules/debug/states.spec.ts | 11 ++++------- 4 files changed, 11 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index 50d93e4d..dd55e3f0 100644 --- a/package.json +++ b/package.json @@ -134,8 +134,8 @@ "engines": { "node": ">=12.0.0", "npm": ">=6.0.0", - "beeApiVersion": "3.0.0", - "beeDebugApiVersion": "2.0.0", - "bee": "1.5.1-d0a77598" + "beeApiVersion": "3.0.1", + "beeDebugApiVersion": "2.0.1", + "bee": "1.6.0-6ceadd35" } } diff --git a/src/modules/debug/status.ts b/src/modules/debug/status.ts index 9667b16c..75764956 100644 --- a/src/modules/debug/status.ts +++ b/src/modules/debug/status.ts @@ -6,9 +6,9 @@ import getMajorSemver from 'semver/functions/major.js' // Following lines bellow are automatically updated with GitHub Action when Bee version is updated // so if you are changing anything about them change the `update_bee` action accordingly! -export const SUPPORTED_BEE_VERSION_EXACT = '1.5.1-d0a77598' -export const SUPPORTED_API_VERSION = '3.0.0' -export const SUPPORTED_DEBUG_API_VERSION = '2.0.0' +export const SUPPORTED_BEE_VERSION_EXACT = '1.6.0-6ceadd35' +export const SUPPORTED_API_VERSION = '3.0.1' +export const SUPPORTED_DEBUG_API_VERSION = '2.0.1' export const SUPPORTED_BEE_VERSION = SUPPORTED_BEE_VERSION_EXACT.substring(0, SUPPORTED_BEE_VERSION_EXACT.indexOf('-')) diff --git a/src/types/debug.ts b/src/types/debug.ts index 3164467f..3f27f8af 100644 --- a/src/types/debug.ts +++ b/src/types/debug.ts @@ -245,10 +245,8 @@ export interface PingResponse { export interface ReserveState { radius: number + commitment: number storageRadius: number - available: number - outer: NumberString - inner: NumberString } export interface ChainState { diff --git a/test/integration/modules/debug/states.spec.ts b/test/integration/modules/debug/states.spec.ts index fd841ecf..a74cdf1e 100644 --- a/test/integration/modules/debug/states.spec.ts +++ b/test/integration/modules/debug/states.spec.ts @@ -20,15 +20,12 @@ describe('modules/states', () => { describe('ReserveState', () => { it('should fetch the reserve state', async () => { const state = await states.getReserveState(BEE_DEBUG_URL) - + expect(state).toHaveProperty('commitment') expect(state).toHaveProperty('radius') - expect(state).toHaveProperty('available') - expect(state).toHaveProperty('outer') - expect(state).toHaveProperty('inner') + expect(state).toHaveProperty('storageRadius') expect(state.radius).toBeType('number') - expect(state.available).toBeType('number') - expect(state.outer).toBeNumberString() - expect(state.inner).toBeNumberString() + expect(state.commitment).toBeType('number') + expect(state.storageRadius).toBeType('number') }) }) })