Skip to content

Commit

Permalink
chore: update to bee 1.6.0-6ceadd35 (#665)
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Uhlíř <adam@uhlir.dev>

fix!: reserve state update (#675)
  • Loading branch information
bee-worker authored May 18, 2022
1 parent edbe93e commit f8564e3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 16 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
6 changes: 3 additions & 3 deletions src/modules/debug/status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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('-'))

Expand Down
4 changes: 1 addition & 3 deletions src/types/debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
11 changes: 4 additions & 7 deletions test/integration/modules/debug/states.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
})
})
})

0 comments on commit f8564e3

Please sign in to comment.